LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-31-2009, 08:01 PM   #1
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 9, LineageOS 13
Posts: 1,454

Rep: Reputation: 182Reputation: 182
PATH for game files in /usr/local


Hello. I enjoy playing robotron via xmame every once in a while. To simplify the opening of it, from entering "xmame.SDL --fullscreen robotron" within the program fbrun (which is a run command program for fluxbox, that I have key-mapped to my F3 key), I wrote a simple bash script with this command on it, which was entitled "robotron". I initially put this in /usr/local/games directory, but it did not work from there. After I put it in the /usr/local/bin directory, it works perfectly.

Shouldn't commands and/or files for games go in the games directory? Is there a way to put this directory into the path of my system? Am I doing something wrong? Do files in the games directory need something else?

Just wondering.
 
Old 08-31-2009, 08:31 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,813
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Yeah, the purpose of /usr/local/games is to hold games binaries. But you can put them in /usr/local/bin if you want. Or $HOME/bin. It's up to you. Add the following to your ~/.bashrc (preferred) or ~/.bash_profile if you want /usr/local/games in your $PATH
Code:
export PATH=$PATH:/usr/local/games
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to allow users to access files in /usr/local/<directory> vitalstrike82 SUSE / openSUSE 3 03-26-2008 10:04 PM
making files available in /usr/local/bin and /usr/sbin reakinator Linux - Newbie 1 10-14-2006 05:09 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
Who should own files in /usr/local (and executables, libraries in general)? erika_Dec2004 Linux - Newbie 5 01-12-2005 10:56 PM
/usr/local/kde/bin in PATH aeshley Linux - Newbie 2 05-23-2002 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration