Click to See Complete Forum and Search --> : How to add a Path?


animex2
01-31-2004, 11:19 AM
Hello, and i have a question

how do i add a Path and what file do I edit...

for example

I want all this

winex3 /home/tux/TransGaming_Drive/SIERRA/Half-Life/hl.exe

to happen if i type in H-L or something....

pezplaya
01-31-2004, 11:27 AM
you could edit your .bashrc file in your home directory and add:

alias hl='winex3 /home/tux/TransGaming_Drive/SIERRA/Half-Life/hl.exe'

Suminigashi
01-31-2004, 11:27 AM
Theres probley a better way of doing this, but one thing you could do is make a shell script on your desktop with this code.
#!/bin/bash

cd /home/tux/TransGaming_Drive/SIERRA/Half-Life/hl.exe
winex3 hl.exe

Then you can give it a nice little Half-Life icon instead of the genaric shell script one, and now you have a nice little Half-Life clickable.

But thats just one way, like I said there may be better ways of doing this.

animex2
01-31-2004, 11:32 AM
Im trying to be able to get it to work with the fluxbox menu

currently i have it as

[exec] (Half-Life) {sh /home/tux/hl.sh}

and it doesnt load at all...

when im in the term i type in

sh hl.sh and it loads fine x.x

so im hoping it will work if i add it to a path so the menu just has to execute hl or we/

that alias hl='winex3 /home/tux/TransGaming_Drive/SIERRA/Half-Life/hl.exe'

thing just gave me command not found when i typed in hl =/

pezplaya
01-31-2004, 11:36 AM
The only thing with what I suggested is that you have to be in your bash shell to use it... if you try running from a fluxbox menu it will not work.

Suminigashi
01-31-2004, 11:37 AM
O, well if your just trying to get it to exec from the fluxbox menu then change your command from this:

[exec] (Half-Life) {sh /home/tux/hl.sh}

to this:

[exec] (Half-Life) {winex3 /home/tux/TransGaming_Drive/SIERRA/Half-Life/hl.exe}

Yeah its a little long I know, but by providing all this info it should make it work.

animex2
01-31-2004, 12:23 PM
tried what you said before, didnt work =/

Suminigashi
01-31-2004, 01:31 PM
Hmmm, not to sure what else you can do then. Maybe someone else can give you help with this one.

animex2
01-31-2004, 01:38 PM
Im starting to like the Icon thing, but i do not know how to add things to my desktop in Fluxbox x.x

animex2
01-31-2004, 04:21 PM
ok, i got everything working using the fluxbox menu

the reason it wasnt working before is the permissions were bad so it couldnt launch