Page 1 of 1
Cannot open a Windows program via an entry in Fluxbox menu
Posted: 15. Dec 2010, 22:33
by h2t
I can launch a Windows program installed through Wine by double clicking on the executable file. I added an entry for
the program in Fluxbox menu with the code:
[exec] (ApplicationName) {/path/to/program}
However, the program cannot be launch from the Fluxbox menu. Can anyone help?
Re: Cannot open a Windows program via an entry in Fluxbox me
Posted: 15. Dec 2010, 22:36
by Shador
Try: wine /path/to/program
Re: Cannot open a Windows program via an entry in Fluxbox me
Posted: 16. Dec 2010, 00:25
by h2t
Thank you. Changing the notation for the path/ to/ program in my particular problem from /Program Files/KeePass Password Safe/ to /Program\ Files/KeePass\ Password\ Safe/ solved the problem. I did not know that Linux does not recognize the space between the file name.
After some searching I now learn that if you have files with spaces or special characters in their names, you have two ways of dealing with them: quoting the file name or escaping the confusing characters.
< Method 1: quoting >
This is very straightforward: put the file name in single quotes ( ' ) so spaces or special characters won't bother you anymore:
< Method 2: escaping >
Another way to deal with special characters in a file name is to escape the characters. You put a backslash ( \ ) in front of the special character or space. This makes the bash shell treat the special character like a normal character:
Re: Cannot open a Windows program via an entry in Fluxbox me
Posted: 16. Dec 2010, 10:19
by thenktor
h2t wrote:I did not know that Linux does not recognize the space between the file name.
How can a command interpreter know what is part of a file name and what is part of a new command?
