Author Topic: Why is it so hard to write a gui script for multiple DE?  (Read 2934 times)

Offline Mark342

  • Sr. Member
  • ****
  • Posts: 334
Re: Why is it so hard to write a gui script for multiple DE?
« Reply #45 on: December 05, 2010, 01:49:16 PM »
kde = kwin

Galen


Kwin can be used in other DEs.
I suggest plasma-desktop or checking for the environment variable KDE_FULL_SESSION as I demonstrated earlier in this thread.
Anything worth doing is worth overdoing.

Registered Linux user #493318
Register yourself here: Linux Counter

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Why is it so hard to write a gui script for multiple DE?
« Reply #46 on: December 20, 2010, 09:21:39 PM »
I'm bringing this up again because often it is needed to ask for root access in a script. Now, almost all DE's have their own su - kdesu, gtksu and the way of logging a user out is different too,

how is it possible to determine what DE is currently -running- and then call the necessary su and logoff commands?


...it doesn't help with log-off, but consolehelper can be used to run a script instead of gksu/kdesu...  it avoids the need to determine which DE, and can even work without a DE...  (but the rest of the script might not :o )

more info here:
http://mypclinuxos.com/forum/index.php?topic=2592.msg23434#msg23434
« Last Edit: December 20, 2010, 09:27:47 PM by travisn000 »

Offline pags

  • Hero Member
  • *****
  • Posts: 2515
  • Keep it clean.
Re: Why is it so hard to write a gui script for multiple DE?
« Reply #47 on: January 03, 2011, 09:52:59 AM »
Only tested with KDE and IceWM:
Code: [Select]
ps aux | grep `whoami` | grep /start | grep -v grep

Needs to be tested on other DE's...

The `whoami` limits the results to the current user...works for multiple users on the same PC (just thinking, now...this would fail for multiple sessions for the same user on the same PC)... :(
???