gnome-terminal will not execute commands after a su (switch user) command
Hello!
I am executing: gnome-terminal --execute su - ..... --execute cd /home/test After the gnome-panel executes the su to another profile it ignores any later execute commands. Is there anyway to execute commands after a switch user command? Thanks! |
Can you do what you wish using sudo as opposed to su?
|
No.
|
Check the manual page again:
Quote:
So if you are using su instead of sudo then you'll need to pay attention to the -c option. Code:
gnome-terminal --execute su -l -c '...; ...; cd /home/test;' Code:
man gnome-terminal |
It's not a good idea to use either su or sudo in a big desktop environment like gnome. These desktops are held together by a slew of XDG environmental variables that can get corrupted if they are exposed to root ownership. Use gksudo instead.
|
Quote:
|
All times are GMT -5. The time now is 05:55 AM. |