← Back to team overview

ugr-testing team mailing list archive

[Bug 778900] Re: Cannot start games, wrong $PATH

 

No you can't ship the .bashrc, bacause it is in the user home and it
would overwrite the personal one.

Maybe you can symlink the /usr/bin to the /usr/games.
I don't know how the $PATH is generated and from which command.
But i think the best solution is to find this information and add /urs/share/games to the $PATH in this way.

Another way is to create a script (it shouldn't be hard with a little programming skills) that takes the .bashrc file(s), one per user, and search if there is the string 
"export PATH*"
If there isn't, it inserts a new line with "export PATH=$PATH:/usr/games/".
If there is, it looks, after that, if there isn't the string ":/usr/games" and adds it.
Otherwise, if this two condition are satisfied, exit without doing anything.

I've got an exam thursday so I can't take this for the moment.
I can do a try after that, but I'll do it in bash. And  I don't know how to list all the users in the system (maybe with ls /home can be a good idea).

-- 
You received this bug notification because you are a member of Ubuntu
GNOME Remix: Testing Team, which is subscribed to UGR (Ubuntu Gnome
Remix) Project.
https://bugs.launchpad.net/bugs/778900

Title:
  Cannot start games, wrong $PATH

Status in Ubuntu Gnome Remix Metapackages:
  Confirmed

Bug description:
  can't start foobillard or any other game that is located in /usr/games
  ,from the menu or from any location Inside a terminal  because
  /usr/games isnt't in the Environment Variable Path.


References