[Desktop_printing] Portland tool: xdg-su (Was: Role of CUPS
waldo.bastian at intel.com
Tue Apr 4 05:28:44 PDT 2006
>On Apr 3 21:18 Bastian, Waldo wrote (shortened):
>> >Test that the effective user id is 0
>> >otherwise tell the user in the user's language
>> >that he must switch to root before running the setup program.
>> *shameless plug*
>> This step can be automated with the xdg-su tool from the Portland
>> See http://portland.freedesktop.org/wiki/TaskSu
>What I have in mind is to use only tools which are available
>by default for any Linux distribution.
That's the goal for xdg-su and the other xdg-utils. We pursue inclusion
nto LSB for next year.
>But I think I understand what you mean:
>Test if the user runs KDE or Gnome and try to use
>kdesu or gnomesu (and use su or sux as fallback)
>and if all fail, tell the user in the user's language
>that he must switch to root before running the setup program.
Exactly, and why invent the wheel yourself if you can download t from
>By the way:
>What is a good test to find out if the user runs KDE or Gnome
>(i.e. a test which works for any Linux distribution)?
More information about the Printing-summit