Re: [Development] QFreedesktopApplication

2022-04-25 Thread Thiago Macieira
On Monday, 25 April 2022 03:16:05 PDT Ilya Fedin wrote: > Also, personally I stopped using QtDBus in my projects due to > QTBUG-63884 and the fact it's unmaintained for 6 years. I still have the code that implements the new-style connect in https://gitlab.com/thiagomacieira/qtbase/-/commit/ a5314c

Re: [Development] QFreedesktopApplication

2022-04-25 Thread Liang Qi
s://github.com/GNOME/glib/blob/main/gio/gapplication.h * https://docs.gtk.org/gio/class.Application.html Best regards, Liang From: Development on behalf of Ilya Fedin Sent: Monday, April 25, 2022 12:16 PM To: development@qt-project.org Subject: Re: [Development]

Re: [Development] QFreedesktopApplication

2022-04-25 Thread Ilya Fedin
On Sun, 24 Apr 2022 20:01:10 -0700 Thiago Macieira wrote: > Then this should be implemented regardless of whether glib is used. > > We also need to know whether the KDE equivalent is being used and > avoid confusing the launcher by emitting twice. As I said, it's opt-in... > I don't agree with

Re: [Development] QFreedesktopApplication

2022-04-24 Thread Thiago Macieira
On Sunday, 24 April 2022 10:06:12 PDT Ilya Fedin wrote: > It's a part of the Desktop Entry Specification[1]. It's used by most > gtk & KDE applications. gtk ones use GApplication, KDE ones use > KDBusService. Then this should be implemented regardless of whether glib is used. We also need to know

Re: [Development] QFreedesktopApplication

2022-04-24 Thread Ilya Fedin
On Sun, 24 Apr 2022 19:43:09 +0200 Kevin Kofler via Development wrote: > So if Qt implements the same D-Bus interface using GApplication, will > that not break the KDE applications that use the existing > KDBusService? No, I made the uniqueness opt-in via setFlags > And why is using the KNotifi

Re: [Development] QFreedesktopApplication

2022-04-24 Thread Kevin Kofler via Development
Ilya Fedin wrote: >> On another note, just what is org.freedesktop.Application? There are >> ZERO references to it on freedesktop.org. If this isn't well-defined, >> should we adventure into it? If this is a D-Bus API, then the >> questions above about accessing the interface and implementing the >

Re: [Development] QFreedesktopApplication

2022-04-24 Thread Ilya Fedin
On Sun, 24 Apr 2022 07:53:49 -0700 Thiago Macieira wrote: > Hello Ilya > > Please explain why we need this API in the first place. If an > application requires a Qt event loop that links to GLib and use > GMainLoop, then they can easily link to glib directly themselves and > access GApplication.

Re: [Development] QFreedesktopApplication

2022-04-24 Thread Thiago Macieira
On Saturday, 23 April 2022 23:05:58 PDT Ilya Fedin wrote: > Hello, I was asked to write here about QFreedesktopApplication[1]. My main > intention was to get nice GApplication APIs that implement a number of XDG > standarts to be accessble by Qt applications. The main thing is running the > GApplic

[Development] QFreedesktopApplication

2022-04-23 Thread Ilya Fedin
Hello, I was asked to write here about QFreedesktopApplication[1]. My main intention was to get nice GApplication APIs that implement a number of XDG standarts to be accessble by Qt applications. The main thing is running the GApplication instance, although I made a number of wrapping APIs to use o

[Development] QFreedesktopApplication

2022-04-23 Thread Ilya Fedin
Hello, I was asked to write here about QFreedesktopApplication[1]. My main intention was to get nice GApplication APIs that implement a number of XDG standarts to be accessble by Qt applications. The main thing is running the GApplication instance, although I made a number of wrapping APIs to use o

[Development] QFreedesktopApplication

2022-04-23 Thread Илья Федин
Hello, I was asked to write here about QFreedesktopApplication[1]. My main intention was to get nice GApplication APIs that implement a number of XDG standarts to be accessble by Qt applications. The main thing is running the GApplication instance, although I made a number of wrapping APIs to use o