Re: [Gambas-user] run project as root - BIS

2012-09-24 Thread Ru Vuott
> > > > AFAIK, Desktop.RunAsRoot("whoami") and "xdg-su -c whoami" > should do exactly > same thing. > However only "xdg-su -c whoami" works. > > I will investigate... > > Jussi > - At this moment I'm using another system:

Re: [Gambas-user] run project as root - BIS

2012-09-24 Thread Jussi Lahtinen
> AFAIK, Desktop.RunAsRoot("whoami") and "xdg-su -c whoami" should do > exactly same thing. > However only "xdg-su -c whoami" works. > OK, now I understand the problem. Destop.RunAsRoot() uses internally Exec command, and so redirections doesn't work. Instead of Exec there should be Shell..? Ben

Re: [Gambas-user] run project as root - BIS

2012-09-24 Thread Jussi Lahtinen
> > But Desktop.RunAsRoot() does something else..? > ...What do you mean ? > AFAIK, Desktop.RunAsRoot("whoami") and "xdg-su -c whoami" should do exactly same thing. However only "xdg-su -c whoami" works. I will investigate... Jussi

Re: [Gambas-user] run project as root - BIS

2012-09-23 Thread Ru Vuott
--- Dom 23/9/12, Jussi Lahtinen ha scritto: > I don't understand... > > This works in terminal (so there is nothing wrong with the > xdg-su script): > xdg-su -c whoami > > Jussi > I collect the data (like you know) from the supporting file, and I show those in TextEdit on Form. > But Deskto

Re: [Gambas-user] run project as root - BIS

2012-09-23 Thread Ru Vuott
Hello Jussi, > > I tried your code, and I obtain in TextEdit simply the > word:  root > > (But I should be getting: vuott) > Oh, I understand that I obtain "root" because I launched that command as "root" by Desktop.RunAsRoot() Uhmm... ok. --

Re: [Gambas-user] run project as root - BIS

2012-09-23 Thread Ru Vuott
> > ...but Ihad a problem: > I tried function Desktop.RunAsRoot(), but I heve got this > notice: > > /tmp/gambas.1000/3328/xdg-utils/xdg-su: 361: > /tmp/gambas.1000/3328/xdg-utils/xdg-su: xterm: not found > Opss, I didn't have "xterm" program installed in my system ! :-D Now I installed