Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Chris Burch <chriscrylex at aol.com> Aug 18, 2005
- 528 views
Jerry Story wrote: > > Chris Burch wrote: > > > > No, its not, its a path issue. > > > > Generally speaking, when I want to run a gui program from a click, > > I write a little script, which changes the current directory to the > > one the program is in, then runs the program. If all the files > > required by the eu program are relative to this, then everytthing > > works fine. > > > > eg, I use my Fax Centre (in the archives), to filter out all the > > junk faxes I get, and automatically print faxes from known senders. > > > > To start the program, I use the script > > > > cd ~/Faxes (its in the Faxes directory of my home directory) > > FaxC.exe (I've named the bound executable an exe (sorry)) > > > > click on this, and everything works (as long as the script is > > executable of course) > > (chmod +x FaxC.scr) > > > > Chris > > > > <a > > href="http://members.aol.com/chriscrylex/euphoria.htm">http://members.aol.com/chriscrylex/euphoria.htm</a> > > <a href="http://uboard.proboards32.com/">http://uboard.proboards32.com/</a> > > > > Pardon my ignorance. What's a script? Is it something like bindu? > When I click on bindu, it doesn't work either. > > Would I need to run the script before running myprog? > That might work for me, but people who download myprog expect it to run simply > by clicking > on it. > A script is like a batch file in DOS. It will run a series of linux commands one after the other. Look for BASH scripting on the net for what you can do with it, but in its simplest form, if you have to repeat sets of commands over and over again, then instead of doing so, just put them into a script, and run the script. eg, for whatever reason, I have a file, which is made by another program, and I want to print it, and then delete it, I know the name of the file, and its always the same, then eack time I would have to type lpr ./the_file rm ./the file now instead I could put them into a script, I'll call it prem (print and remove), so I would do mc -e prem (I HATE vim), which starts a text editor, editing a new file called prem, enter thr above lines into it (don't worry about shebang, look that up later (hee hee)), then save the file (F2), exit (F10), and then make the file executable (chmod +x prem). Now if I wanted to print and remove the file, I would just type prem When you click on an executable file from Konqueror (or whatever file manager you are using) or the desktop, you are not necasserily starting from the correct directory, so any program called may not also be starting in the correct directory, and consequently no know where to look for things it needs (like card pictures), so I use a script to change to the correct directory, and then this script executes program I want to run. Clear as mud? Chris http://members.aol.com/chriscrylex/euphoria.htm http://uboard.proboards32.com/