Re: Writing C/C++ code to detect running desktop environment

2019-06-05 Thread Germano Massullo
Il giorno mar 4 giu 2019 alle ore 19:00 Björn Persson ha scritto: I'll be surprised if you can do that > to another user's session without help from some privileged service. That is a very good question, thank you for pointing it out. I will let you know __

Re: Writing C/C++ code to detect running desktop environment

2019-06-04 Thread Björn Persson
Germano Massullo skrev: >Il giorno mar 4 giu 2019 alle ore 17:31 Björn Persson > ha scritto: >> Have you confirmed that you're able to query another user's desktop session >> once >> you know which desktop it is? > >I cannot read XDG_CURRENT_DESKTOP of other users. I am actually >wondering if ch

Re: Writing C/C++ code to detect running desktop environment

2019-06-04 Thread Germano Massullo
Il giorno mar 4 giu 2019 alle ore 17:31 Björn Persson ha scritto: > So the question isn't what desktop the user is using, but rather what > desktops, if any, other users on the machine are using. Well when I started the thread I had not thought that BOINC client service is running on a confined u

Re: Writing C/C++ code to detect running desktop environment

2019-06-04 Thread Björn Persson
Germano Massullo wrote: >A dubt about XDG_CURRENT_DESKTOP. Since boinc-client runs as a service >with its own user, I don't think it will be able to read >XDG_CURRENT_DESKTOP defined in other users sessions. Therefore IMHO I >need another kind of solution So the question isn't what desktop the use

Re: Writing C/C++ code to detect running desktop environment

2019-06-03 Thread Germano Massullo
A dubt about XDG_CURRENT_DESKTOP. Since boinc-client runs as a service with its own user, I don't think it will be able to read XDG_CURRENT_DESKTOP defined in other users sessions. Therefore IMHO I need another kind of solution ___ devel mailing list -- d

Re: Writing C/C++ code to detect running desktop environment

2019-05-29 Thread Germano Massullo
Il giorno mer 29 mag 2019 alle ore 22:12 Stephen Gallagher ha scritto: > > On Wed, May 29, 2019 at 1:16 PM Kalev Lember wrote: > I realize you said that the reasons are off-topic, but in general I'd > recommend not making desktop-specific decisions at a high-level I need to retrieve user idle ti

Re: Writing C/C++ code to detect running desktop environment

2019-05-29 Thread Kevin Kofler
Stephen Gallagher wrote: > I realize you said that the reasons are off-topic, but in general I'd > recommend not making desktop-specific decisions at a high-level and > instead base your decisions off of availability of particular > functionality. For example, if your application needs to manage >

Re: Writing C/C++ code to detect running desktop environment

2019-05-29 Thread Stephen Gallagher
On Wed, May 29, 2019 at 1:16 PM Kalev Lember wrote: > > On Wed, May 29, 2019 at 7:11 PM Germano Massullo > wrote: >> >> I am working on implementing a piece of code that allows BOINC client >> [1] to detect the desktop environment used by the user (mainly GNOME, >> KDE Plasma, XFCE, LXDE/LXQT).

Re: Writing C/C++ code to detect running desktop environment

2019-05-29 Thread Kalev Lember
On Wed, May 29, 2019 at 7:11 PM Germano Massullo wrote: > I am working on implementing a piece of code that allows BOINC client > [1] to detect the desktop environment used by the user (mainly GNOME, > KDE Plasma, XFCE, LXDE/LXQT). > This feature will be needed for various reason that are off top

Writing C/C++ code to detect running desktop environment

2019-05-29 Thread Germano Massullo
I am working on implementing a piece of code that allows BOINC client [1] to detect the desktop environment used by the user (mainly GNOME, KDE Plasma, XFCE, LXDE/LXQT). This feature will be needed for various reason that are off topic. One idea is to use GDBus to scan DBus to detect the running d