Re: [Tutor] Checking the desktop environment

2008-06-20 Thread Tiago Saboga
On Sat, Jun 21, 2008 at 01:00:36AM +0100, Alan Gauld wrote: > "Timo" <[EMAIL PROTECTED]> wrote > >> graphical box for root-password. > > This is the sort of thing that I meant about modern Unices messing > things up. Why on earth should anyone need a user environment > specific su box. That should

Re: [Tutor] Checking the desktop environment

2008-06-20 Thread Alan Gauld
"Timo" <[EMAIL PROTECTED]> wrote Well, my program needs a text-editor OK, That should be determined by checking the VISUAL environment variable which is the standard Unix value that a user should set to determine their preferred visual (ie full screen) text editor. The EDITOR environrnent vari

Re: [Tutor] Checking the desktop environment

2008-06-20 Thread W W
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 graph

Re: [Tutor] Checking the desktop environment

2008-06-20 Thread Timo
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

Re: [Tutor] Checking the desktop environment

2008-06-20 Thread Alan Gauld
"Timo" <[EMAIL PROTECTED]> wrote Hello all, in my program I need to know what desktop environment the user is running. A few years ago I would have said that meant you had a broken design since it was very bad practice for any program to depend on the users environment. nfortunately recent dev