[Desktop_printing] Portland tool: xdg-su (Was: Role of CUPS anderror handling)

Bastian, Waldo waldo.bastian at intel.com
Tue Apr 4 05:28:44 PDT 2006


>On Apr 3 21:18 Bastian, Waldo wrote (shortened):
>> >2.
>> >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
>> project.
>> 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:
>2.
>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
http://portland.freedesktop.org/

>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)?

See
http://webcvs.freedesktop.org/*checkout*/portland/portland/xdg-utils/scr
ipts/xdg-utils-common.in

Cheers,
Waldo




More information about the Printing-summit mailing list