1. wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Kenneth Rhodes <ken_rhodes30436 at yahoo.com> Aug 16, 2005
- 556 views
Jerry Story wrote: > > The problem remains unsolved. > > The problem has nothing to do with translating from Eu to C. > I am not trying to do that. > > Only: > bindu freecell.exu > (This is a demo in wxEuphoria.) > > Now there is a binded file called freecell. > > I can run it by: > ./freecell > > What I want to do is run it by clicking on it. > ok with: Euphoria 2.5, *bindu freecell.exw* renders the executable file "freecell"... with: SuSE 9.3/KDE/nautilus/ double clicking "freecell" executes the program perfectly. with: SuSE 9.3/KDE/gentoo/ double clicking "freecell" executes the program perfectly. with: SuSE 9.3/KDE/Konqueror/ single clicking "freecell" results in an aborted run with a blank freecell window and an error message indicating that the image from cards.png cannot be loaded: the file does not exist. I believe the problem may be a Linux Desktop/file manager issue. Ken Rhodes SuSE Linux 9.3 100% MicroSoft Free
2. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Aug 16, 2005
- 528 views
Kenneth Rhodes wrote: > > ok > with: Euphoria 2.5, *bindu freecell.exw* renders the executable file > "freecell"... > > with: SuSE 9.3/KDE/nautilus/ double clicking "freecell" executes the > program perfectly. > > with: SuSE 9.3/KDE/gentoo/ double clicking "freecell" executes the > program perfectly. > > with: SuSE 9.3/KDE/Konqueror/ single clicking "freecell" results in an aborted > run > with a blank freecell window and an error message indicating that the image > from cards.png > cannot be loaded: the file does not exist. > > I believe the problem may be a Linux Desktop/file manager issue. > It sounds like the issue is whether the current directory is being set or not. I've run into this problem when running Euphoria programs that are in my path, but not in the current directory. The executing program doesn't know where it came from (even by looking at command_line()), just from where it was called. The other problem is that error messages only go out via a terminal in which the program is running. Under windows, Euphoria will create a new console if one doesn't already exist, but this doesn't happen under Linux, so it looks like nothing happened. I'm not sure what the answer is, although, I suppose that if you plan to distribute a bound program, you need to have a plan as to where your program's data will be and how to get at it, which really implies an actual installation, so that everything is in a known place, or that some environment variable is set. Matt Lewis
3. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Chris Burch <chriscrylex at aol.com> Aug 16, 2005
- 518 views
- Last edited Aug 17, 2005
Kenneth Rhodes wrote: > > Jerry Story wrote: > > > > The problem remains unsolved. > > > > The problem has nothing to do with translating from Eu to C. > > I am not trying to do that. > > > > Only: > > bindu freecell.exu > > (This is a demo in wxEuphoria.) > > > > Now there is a binded file called freecell. > > > > I can run it by: > > ./freecell > > > > What I want to do is run it by clicking on it. > > > > ok > with: Euphoria 2.5, *bindu freecell.exw* renders the executable file > "freecell"... > > with: SuSE 9.3/KDE/nautilus/ double clicking "freecell" executes the > program perfectly. > > with: SuSE 9.3/KDE/gentoo/ double clicking "freecell" executes the > program perfectly. > > with: SuSE 9.3/KDE/Konqueror/ single clicking "freecell" results in an aborted > run > with a blank freecell window and an error message indicating that the image > from cards.png > cannot be loaded: the file does not exist. > > I believe the problem may be a Linux Desktop/file manager issue. > > Ken Rhodes > SuSE Linux 9.3 > 100% MicroSoft Free > Hi 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 http://members.aol.com/chriscrylex/euphoria.htm http://uboard.proboards32.com/
4. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Jerry Story <jstory at ocii.com> Aug 17, 2005
- 544 views
- Last edited Aug 18, 2005
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.
5. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Chris Burch <chriscrylex at aol.com> Aug 18, 2005
- 530 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/
6. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Jerry Story <jstory at ocii.com> Aug 18, 2005
- 552 views
Chris Burch wrote: > > 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 I now understand better what a script is, but how it solves the problem is still as clear as mud to me. Question 1: Do you mean that I should make a script and click on it? Question 2: If myprog doesn't know how to find itself, how does the script know how to find itself? Question 3: Most programs work when clicked, without a script. Why not myprog?
7. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by ChrisBurch2 <crylex at freeuk.co.uk> Aug 18, 2005
- 529 views
Jerry Story wrote: > > Chris Burch wrote: > > > > 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 > > I now understand better what a script is, but > how it solves the problem is still as clear as mud to me. > > Question 1: > Do you mean that I should make a script and click on it? > Yes. > Question 2: > If myprog doesn't know how to find itself, how does the script > know how to find itself? > Got me on that one. Eu progs in Linux are pretty bad at finding themselves, or knowing where they are starting from. It turns out, and thinking about it on the way to work, that most programs are installed in standard places (/usr/bin, /usr/x11/bin et al), so they know where they are going, if a filename is passed to a program, then the full path is passed (which solves the problem of the program knowing where the file to bo worked on is). If anybody can think of a program in Linux (not just eu) that knows where itself is, or doesn't create a directory in the users home directory ( a standard place) then let me know. This is one of my (teeny weeny little) niggles with wxEuphoria. As a standard library it _should_ install in /usr/lib, but it doesn't, it _has_ (afaik) to be installed in ~/euhporia/bin - for a distributable do you have to make ~/euphoria/bin directory? If you are making a distributable, make a script that installs your program, so you know where its going, either into the users home directory, or into /usr/bin (etc), and possibly make a directory in the users home directory, where all the data goes. > Question 3: > Most programs work when clicked, without a script. > Why not myprog? > See above, most programs don't know where they are (as far as I can tell), but they know where the data is for the user, or if they do work, it doesn't matter ehere they are running from (case in point, the self contained wxEuphoria demos, as opposed to the demos requiring external data (card) files). Also, in some cases, even clicking on a program may not be able to find it, if the paths are not complete. For instance if you have a program in dirctory ~/ttt , but you don't have a path to ~/ttt , then navigating there in (eg) konqueror, and clicking on it may not produce the desired result (although this would be VERY strange behaviour), if konqueror is not set up to execute from the current directory. Also, (again), if you put a program on the desktop, the current directory when you click on the desktop icon, is the ./desktop directory in your home folder. So, I use a script which changes the current directory to the directory of my program, and THEN executes it. This script is what is pointed too on the desktop icon. _Most_ other iconed programs on the desktop, don't care where they are run from, and use the users home directory as a base. Clearer? Muddier? Chris
8. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by irv mullins <irvm at ellijay.com> Aug 19, 2005
- 542 views
Jerry Story wrote: > I now understand better what a script is, but > how it solves the problem is still as clear as mud to me. > > Question 1: > Do you mean that I should make a script and click on it? > > Question 2: > If myprog doesn't know how to find itself, how does the script > know how to find itself? > > Question 3: > Most programs work when clicked, without a script. > Why not myprog? A script is not necessary. The reason your program fails to execute properly when clicked from within Konqueror is because Konqueror does not change your logged-in directory to follow you as you click around. IOW, if you are in your home directory: /home/jerry, and browse around into /home/jerry/somefolder and click on someprog.eu, the logged in directory is *still* /home/jerry. So the program looks there for any graphics, ini, or other files it needs to use. It won't find them. Changing or setting path in your environment won't help. I (finally) solved that problem in EuGTK. Look there for the answer. It's a matter of parsing the command line. You can easily add this to your programs. If you are running someone else's bound pgm, you are SOL. Regards, Irv
9. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Bernie Ryan <xotron at bluefrog.com> Aug 19, 2005
- 541 views
- Last edited Aug 20, 2005
irv mullins wrote: > IOW, if you are in your home directory: /home/jerry, and browse around > into /home/jerry/somefolder and click on someprog.eu, the logged > in directory is *still* /home/jerry. So the program looks there > for any graphics, ini, or other files it needs to use. It won't > find them. Changing or setting path in your environment won't help. > > I (finally) solved that problem in EuGTK. Look there for the answer. > It's a matter of parsing the command line. You can easily add this > to your programs. If you are running someone else's bound pgm, you > are SOL. > Irv: Can't you tell exu to always look in the current directory. by adding the current directory symbol ./ in either the profile EUDIR or EUINC exports ? Bernie My files in archive: w32engin.ew mixedlib.e eu_engin.e win32eru.exw Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan
10. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Alexander Toresson <alexander.toresson at gmail.com> Aug 19, 2005
- 543 views
- Last edited Aug 20, 2005
Bernie Ryan wrote: > > irv mullins wrote: > > > IOW, if you are in your home directory: /home/jerry, and browse around > > into /home/jerry/somefolder and click on someprog.eu, the logged > > in directory is *still* /home/jerry. So the program looks there > > for any graphics, ini, or other files it needs to use. It won't > > find them. Changing or setting path in your environment won't help. > > > > I (finally) solved that problem in EuGTK. Look there for the answer. > > It's a matter of parsing the command line. You can easily add this > > to your programs. If you are running someone else's bound pgm, you > > are SOL. > > > > Irv: > > Can't you tell exu to always look in the current directory. > by adding the current directory symbol ./ in either > the profile EUDIR or EUINC exports ? > > > Bernie > The problem is that the current directory aren't set correctly by the file manager. That means that ./ will still look in the current directory which was /home/jerry in the example above. Regards, Alexander Toresson
11. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Chris Burch <chriscrylex at aol.com> Aug 19, 2005
- 530 views
- Last edited Aug 20, 2005
Alexander Toresson wrote: > > Bernie Ryan wrote: > > > > irv mullins wrote: > > > > > IOW, if you are in your home directory: /home/jerry, and browse around > > > into /home/jerry/somefolder and click on someprog.eu, the logged > > > in directory is *still* /home/jerry. So the program looks there > > > for any graphics, ini, or other files it needs to use. It won't > > > find them. Changing or setting path in your environment won't help. > > > > > > I (finally) solved that problem in EuGTK. Look there for the answer. > > > It's a matter of parsing the command line. You can easily add this > > > to your programs. If you are running someone else's bound pgm, you > > > are SOL. > > > > > > > Irv: > > > > Can't you tell exu to always look in the current directory. > > by adding the current directory symbol ./ in either > > the profile EUDIR or EUINC exports ? > > > > > > Bernie > > > > The problem is that the current directory aren't set correctly by the > file manager. That means that ./ will still look in the current > directory which was /home/jerry in the example above. > > Regards, Alexander Toresson > > Thats right, thats why a 2 line script solves all your problems, no matter who wrote the program Chris http://members.aol.com/chriscrylex/euphoria.htm http://uboard.proboards32.com/ http://members.aol.com/chriscrylex/EUSQLite/eusql.html
12. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by irv mullins <irvm at ellijay.com> Aug 19, 2005
- 551 views
- Last edited Aug 20, 2005
Chris Burch wrote: > Thats right, thats why a 2 line script solves all your problems, no matter who > wrote > the program Not quite all: unless you change the logged directory back to where it was before the change, you'll have some very annoyed users. Irv
13. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Kenneth Rhodes <ken_rhodes30436 at yahoo.com> Aug 20, 2005
- 566 views
irv mullins wrote: > > Jerry Story wrote: > > > I now understand better what a script is, but > > how it solves the problem is still as clear as mud to me. > > > > Question 1: > > Do you mean that I should make a script and click on it? > > > > Question 2: > > If myprog doesn't know how to find itself, how does the script > > know how to find itself? > > > > Question 3: > > Most programs work when clicked, without a script. > > Why not myprog? > > A script is not necessary. > The reason your program fails to execute properly when clicked > from within Konqueror is because Konqueror does not change your > logged-in directory to follow you as you click around. > > IOW, if you are in your home directory: /home/jerry, and browse around > into /home/jerry/somefolder and click on someprog.eu, the logged > in directory is *still* /home/jerry. So the program looks there > for any graphics, ini, or other files it needs to use. It won't > find them. Changing or setting path in your environment won't help. > > I (finally) solved that problem in EuGTK. Look there for the answer. EuGTK seems to have disappeared from the archive... is it still available? > It's a matter of parsing the command line. You can easily add this > to your programs. If you are running someone else's bound pgm, you > are SOL. > > Regards, > Irv > Ken Rhodes SuSE Linux 9.3 100% MicroSoft Free
14. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Jerry Story <jstory at ocii.com> Aug 20, 2005
- 543 views
Kenneth Rhodes wrote: > > EuGTK seems to have disappeared from the archive... > is it still available? EuGTK for GTK2 is on freshmeat and on sourceforge. I have both EuGTK for GTK1 and EuGTK for GTK2 backed up on both hard drive and CD.
15. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Kenneth Rhodes <ken_rhodes30436 at yahoo.com> Aug 20, 2005
- 554 views
Jerry Story wrote: > > Kenneth Rhodes wrote: > > > > EuGTK seems to have disappeared from the archive... > > is it still available? > > EuGTK for GTK2 is on freshmeat and on sourceforge. > I have both EuGTK for GTK1 and EuGTK for GTK2 backed up on both hard drive and > CD. > Thanks Jerry, Did Irv's remarks about his EuGTK fix for the Linux current directory path problem help you? I'm clueless as to how to search the EuGTK code for the fix - hmmm guess I could do a guru search for current directory. Hope Matt can apply the fix to wxEU. Ken Rhodes SuSE Linux 9.3 100% MicroSoft Free
16. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Jerry Story <jstory at ocii.com> Aug 20, 2005
- 542 views
Kenneth Rhodes wrote: > > Jerry Story wrote: > > > > Kenneth Rhodes wrote: > > > > > > EuGTK seems to have disappeared from the archive... > > > is it still available? > > > > EuGTK for GTK2 is on freshmeat and on sourceforge. > > I have both EuGTK for GTK1 and EuGTK for GTK2 backed up on > > both hard drive and CD. > > > > Thanks Jerry, > > Did Irv's remarks about his EuGTK fix for the Linux > current directory path problem help you? > I'm clueless as to how to search the EuGTK code > for the fix - hmmm guess > I could do a guru search for current directory. > Hope Matt can apply the fix to wxEU. There is code in Irv's EuGTK (for GTK1) in main.e that has to do with paths. I have code that parses the command_line() in the EuGTK version of DMAK and exactly the same code in the wxEuphoria version of DMAK (not yet uploaded). It works in the EuGTK version but nothing happens when I click on the binded wxEuphoria version. Maybe the problem is something entirely different. The problem of making wxEuphoria programs clickable on Linux (Windows is no problem) will be a continuing problem again and again until it is solved. Once it is solved, it will be solved for all wxEuphoria programs for all time (I hope). It is necessary to solve this problem in order to put wxEuphoria programs on freshmeat, because people who download stuff from freshmeat usually don't have Euphoria installed and they want to be able to run the binary file by clicking on it.
17. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Aug 20, 2005
- 545 views
On Fri, 19 Aug 2005 22:15:13 -0700, Jerry Story <guest at RapidEuphoria.com> wrote: >The problem of making wxEuphoria programs clickable on Linux >(Windows is no problem) will be a continuing problem again >and again until it is solved. Have you tried something like this:
?1 include wxEuphoria ?2
Regards, Pete
18. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Aug 20, 2005
- 523 views
Jerry Story wrote: > > There is code in Irv's EuGTK (for GTK1) in main.e that > has to do with paths. > > I have code that parses the command_line() in the > EuGTK version of DMAK and exactly the same code in the > wxEuphoria version of DMAK (not yet uploaded). > It works in the EuGTK version but nothing happens > when I click on the binded wxEuphoria version. > Maybe the problem is something entirely different. I'll take a look at EuGTK to see what needs to be done. Matt Lewis
19. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by irv mullins <irvm at ellijay.com> Aug 20, 2005
- 534 views
Matt Lewis wrote: > > Jerry Story wrote: > > > > There is code in Irv's EuGTK (for GTK1) in main.e that > > has to do with paths. > > > > I have code that parses the command_line() in the > > EuGTK version of DMAK and exactly the same code in the > > wxEuphoria version of DMAK (not yet uploaded). > > It works in the EuGTK version but nothing happens > > when I click on the binded wxEuphoria version. > > Maybe the problem is something entirely different. > > I'll take a look at EuGTK to see what needs to be done. > > Matt Lewis I believe I just looked at command_line() [1], which will be the full path to the executable (even when run by clicking an icon in Konqueror). e.g. /home/jerry/somedir/somepgm.eu reverse it, find the 'first' slash, remove everthing up to that slash, ue.mgpemos/ridemos/yrrej/emoh/ remove everthing up to that slash, /ridemos/yrrej/emoh/ and reverse it again, there's your path. /home/jerry/somedir/ Now, add the path to any images, etc. which need to be loaded by your program. path&'mypic.jpg'
20. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Jerry Story <jstory at ocii.com> Aug 20, 2005
- 529 views
Pete Lomax wrote: > > On Fri, 19 Aug 2005 22:15:13 -0700, Jerry Story > <guest at RapidEuphoria.com> wrote: > > >The problem of making wxEuphoria programs clickable on Linux > >(Windows is no problem) will be a continuing problem again > >and again until it is solved. > Have you tried something like this: > ?1 > include wxEuphoria > ?2 > > Regards, > Pete I tried it just now. Nothing happens.
21. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Robert Craig <rds at RapidEuphoria.com> Aug 20, 2005
- 523 views
- Last edited Aug 21, 2005
Jerry Story wrote: > Pete Lomax wrote: > > On Fri, 19 Aug 2005 22:15:13 -0700, Jerry Story > > <guest at RapidEuphoria.com> wrote: > > > > >The problem of making wxEuphoria programs clickable on Linux > > >(Windows is no problem) will be a continuing problem again > > >and again until it is solved. > > Have you tried something like this: > > > ?1 > > include wxEuphoria > > ?2 > > > > Regards, > > Pete > > I tried it just now. > Nothing happens. What about: ?1 ?getc(0) include wxEuphoria.e ?2 ?getc(0) Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
22. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Chris Burch <chriscrylex at aol.com> Aug 20, 2005
- 522 views
- Last edited Aug 21, 2005
Robert Craig wrote: > > What about: > > ?1 > ?getc(0) > include wxEuphoria.e > ?2 > ?getc(0) > Eh - can someone pleeeeease explain that to me! Chris http://members.aol.com/chriscrylex/euphoria.htm http://uboard.proboards32.com/ http://members.aol.com/chriscrylex/EUSQLite/eusql.html
23. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Jerry Story <jstory at ocii.com> Aug 20, 2005
- 551 views
- Last edited Aug 21, 2005
Robert Craig wrote: > > Jerry Story wrote: > > Pete Lomax wrote: > > > On Fri, 19 Aug 2005 22:15:13 -0700, Jerry Story > > > <guest at RapidEuphoria.com> wrote: > > > > > > >The problem of making wxEuphoria programs clickable on Linux > > > >(Windows is no problem) will be a continuing problem again > > > >and again until it is solved. > > > Have you tried something like this: > > > > > ?1 > > > include wxEuphoria > > > ?2 > > > > > > Regards, > > > Pete > > > > I tried it just now. > > Nothing happens. > > What about: > > ?1 > ?getc(0) > include wxEuphoria.e > ?2 > ?getc(0) > > Regards, > Rob Craig > Rapid Deployment Software Still nothing. When I run it run gentoo on blackbox, I must press return on a terminal, and then it runs. When I click on Nautilus, nothing happens.
24. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Kenneth Rhodes <ken_rhodes30436 at yahoo.com> Aug 20, 2005
- 538 views
- Last edited Aug 21, 2005
Robert Craig wrote: > > Jerry Story wrote: > > Pete Lomax wrote: > > > On Fri, 19 Aug 2005 22:15:13 -0700, Jerry Story > > > <guest at RapidEuphoria.com> wrote: > > > > > > >The problem of making wxEuphoria programs clickable on Linux > > > >(Windows is no problem) will be a continuing problem again > > > >and again until it is solved. > > > Have you tried something like this: > > > > > ?1 > > > include wxEuphoria > > > ?2 > > > > > > Regards, > > > Pete > > > > I tried it just now. > > Nothing happens. > > What about: > > ?1 > ?getc(0) > include wxEuphoria.e > ?2 > ?getc(0) > > Regards, > Rob Craig > Rapid Deployment Software > <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a> > That works on my system when bound or translated/compiled. But isn't this one heck of a kludge? Lets hope Matt can apply Irv's path fix to the wxEuphoria.e so no one will have to worry bout this stuff. Is there anyway that this problem can be remedied from within the Euphoria Linux interpreter? Ken Rhodes SuSE Linux 9.3 100% MicroSoft Free
25. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Kenneth Rhodes <ken_rhodes30436 at yahoo.com> Aug 20, 2005
- 546 views
- Last edited Aug 21, 2005
Kenneth Rhodes wrote: > > Robert Craig wrote: > > > > Jerry Story wrote: > > > Pete Lomax wrote: > > > > On Fri, 19 Aug 2005 22:15:13 -0700, Jerry Story > > > > <guest at RapidEuphoria.com> wrote: > > > > > > > > >The problem of making wxEuphoria programs clickable on Linux > > > > >(Windows is no problem) will be a continuing problem again > > > > >and again until it is solved. > > > > Have you tried something like this: > > > > > > > ?1 > > > > include wxEuphoria > > > > ?2 > > > > > > > > Regards, > > > > Pete > > > > > > I tried it just now. > > > Nothing happens. > > > > What about: > > > > ?1 > > ?getc(0) > > include wxEuphoria.e > > ?2 > > ?getc(0) > > > > Regards, > > Rob Craig > > Rapid Deployment Software > > <a href="http://www.RapidEuphoria.com">http://www.RapidEuphoria.com</a> > > > > That works on my system when bound or translated/compiled. Sorry, this was in error I was using wxIDE not freecell.exw. > But isn't this one heck > of a kludge? Lets hope Matt can apply Irv's path fix to the wxEuphoria.e >so > no one > will have to worry bout this stuff. > > Is there anyway that this problem can be remedied from within the Euphoria > Linux interpreter? > > > Ken Rhodes > SuSE Linux 9.3 > 100% MicroSoft Free > Ken Rhodes SuSE Linux 9.3 100% MicroSoft Free
26. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Brian Broker <brian_broker at yahoo.com> Aug 21, 2005
- 542 views
Jerry Story wrote: > > Robert Craig wrote: > > > > Jerry Story wrote: > > > Pete Lomax wrote: > > > > On Fri, 19 Aug 2005 22:15:13 -0700, Jerry Story > > > > <guest at RapidEuphoria.com> wrote: > > > > > > > > >The problem of making wxEuphoria programs clickable on Linux > > > > >(Windows is no problem) will be a continuing problem again > > > > >and again until it is solved. > > > > Have you tried something like this: > > > > > > > ?1 > > > > include wxEuphoria > > > > ?2 > > > > > > > > Regards, > > > > Pete > > > > > > I tried it just now. > > > Nothing happens. > > > > What about: > > > > ?1 > > ?getc(0) > > include wxEuphoria.e > > ?2 > > ?getc(0) > > > > Regards, > > Rob Craig > > Rapid Deployment Software > > Still nothing. > > When I run it run gentoo on blackbox, I must press return on a terminal, > and then it runs. > When I click on Nautilus, nothing happens. > So is this a Euphoria programming mailing list or is this a "I can't figure out how to use Euphoria on *nix" mailing list? Maybe there should be a EUnixforum? (I'd ignore it all if I didn't find it all so amusing. :D --
27. Re: wxEuphoria Linux Problem: double clicking freecell executable
- Posted by Kenneth Rhodes <ken_rhodes30436 at yahoo.com> Aug 25, 2005
- 557 views
Brian Broker wrote: >So is this a Euphoria programming mailing list or is this a "I can't > >figure >out how to use Euphoria on *nix" mailing list? I dare say that less than a hundredth of the total man hours has gone into the development of the wxEuphoria and EuGTK gui libraries compared to the amount of time contributed to the development of the several Windows libraries for Euphoria. And the number of respective postings on the list specifically regarding Windows probably exceeds Linux postings by a factor of at least 500. > > Maybe there should be a EUnixforum? > Why? The problem in question regarded wxEuphoria which is a cross platform GUI library. And the fix, if I understand Irv Mullins post, is a function which would return the current "working" directory. Shouldn't this be generic enough to be included in the Euphoria core distribution? Shortly after the release of Win32 support for Euphoria I believe Jiri Babor observed that the list had become dominated by Windows programming issues and that perhaps there should be a Windows specific mailing list. > > (I'd ignore it all if I didn't find it all so amusing. :D > -- > Likewise :) Ken Rhodes SuSE Linux 9.3 100% MicroSoft Free