> >
>
> 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:
> 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
> > 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
--- 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
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.
--
>
> ...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