[Pkg-xfce-devel] Bug#497199: Bug#497199: xfce4-session: xfce4-tips doesn't work for root

Simon Huggins huggie at earth.li
Sun Aug 31 09:19:59 UTC 2008

On Sat, Aug 30, 2008 at 09:06:32PM +0200, Alexis Huxley wrote:
> If /usr/games is not in the $PATH, as it is not for root, then xfce4-tips
> does not work.

> If root logs in to a newly installed machine then xfce4-tips runs
> automatically and it is somewhat disconcerting to have a blank tip
> window displayed.

> Running xfce4-tips from a terminal shows the problem:
>         sh: fortune: command not found

> Shouldn't xfce4-tips explicity either set the PATH or call
> /usr/games/fortune rather than just fortune when its calling a program
> that may very well not be in the user's $PATH?

Whilst I can see your point, the correct solution would really be not to
run X as root which is never a good idea.

If you need to run a graphical program as root (which I wouldn't
recommend) then you could use sudo from a normal session.

Nevertheless, improving xfce4-tips to call /usr/games/fortune instead
would indeed be better.


* "Emergency!  Emergency!  There's an emergency going on!" - Holly  *
|                                                                   |
*                                                                   *
           Brought to you by the letter O and the number 16

More information about the Pkg-xfce-devel mailing list