On Fri, Jun 20, 2008 at 1:48 PM, Timo <[EMAIL PROTECTED]> wrote:
> Thanks for your explanation. Apparently it's not possible to detect it
> in all cases, but it would be nice to detect it for regular users, so
> people who have a default install.
>
> Well, my program needs a text-editor and a graphical box for
> root-password. So it checks for the desktop environment so it could set
> these things to gedit and gksudo for Gnome and kate and kdesu for KDE.
>
> Timo

I would probably just ask the user which one they're running. It's
probably the easiest way.

-Wayne
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to