[Tutor] Checking the desktop environment
srilyk at gmail.com
Fri Jun 20 23:39:22 CEST 2008
On Fri, Jun 20, 2008 at 1:48 PM, Timo <timovwb at gmail.com> 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.
I would probably just ask the user which one they're running. It's
probably the easiest way.
More information about the Tutor