You are not logged in.
hi, i set up a simple alias command to run
wine /PATH-to-steam.exe
when i enter 'steam'
is there a way i could make an entry in /usr/bin/ so it can be run by dmenu or similar?
thanks
zom
Last edited by zomzilla (2012-03-26 18:44:03)
Offline
Sure, just create a script instead of the alias
#!/bin/bash
wine /PATH-to-steam.exe
make it executable and name this file 'steam'.
You don't have to put it in /usr/bin/ if dmenu runs all executable files from the $PATH, you can add e.g. ~/bin to the $PATH an put your scripts there.
Edit: $PATH is not the same as PATH in 'PATH-to-steam.exe'.
http://en.wikipedia.org/wiki/PATH_(variable)
Last edited by karol (2012-03-26 17:57:46)
Offline
I don't know much about this but the entry should be put in /usr/local/bin (someone correct if i am wrong this is definitely the case on mac os) and then you can create desktop file in /usr/share/applications.
Offline
Put a line
alias steam="/PATH/TO/steam.exe"
in you .bashrc (or .zshrc if you're using zsh)
Don't forget to do a source ~/.bashrc to enable this modification
Offline
Put a line
alias steam="/PATH/TO/steam.exe"in you .bashrc (or .zshrc if you're using zsh)
Don't forget to do a source ~/.bashrc to enable this modification
How dmenu can use this?
Offline
How dmenu can use this?
I've not taken the "dmenu" clause into account
Offline
Like quasifilmie said, I'd find /usr/local/bin the most elegant place for a bash script.
Offline
thanks guys thats great; just wasnt sure about how scripts would work in $PATH
thanks
Offline