[sudo-users] incorrect theme when using sudo
Paul Stepowski
p.stepowski at qut.edu.au
Tue Mar 13 20:17:12 EDT 2007
Sudo does not perform a shell login when running commands. So it will not
inherit shell settings such as environment variables, or run the ..profile or
.rc files. Try something like
sudo su - username -c /usr/bin/galeon
Thanks,
Paul
tony wrote:
> I am trying to run Galeon as a different user, but it is not displaying the
> correct theme when it starts.
>
> This is what happens with various commands:-
>
> --------------------
>
> sudo -H -u username /usr/bin/galeon
>
> - Galeon displays with default theme instead of username's theme
>
> --------------------
>
> sudo -H -u username /usr/bin/xterm
>
> Then in the xterm:-
>
> /usr/bin/galeon
>
> - Galeon displays with username's theme
>
> --------------------
>
> sudo -H -u username /usr/bin/xterm -e /usr/bin/galeon
>
> - Galeon displays with default theme instead of username's theme
>
> --------------------
>
> Does anyone have an idea of why the correct theme is only applied when Galeon
> is started from a running xterm? And can I get it to display the correct
> theme without using an xterm?
>
> Cheers.
>
> Tony.
>
>
>
>
> ___________________________________________________________
> All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
> http://uk.docs.yahoo.com/nowyoucan.html
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
>
More information about the sudo-users
mailing list