Cannot open a Windows program via an entry in Fluxbox menu

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
h2t
Posts: 10
Joined: 9. Jul 2010, 01:57

Cannot open a Windows program via an entry in Fluxbox menu

Post 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?
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Cannot open a Windows program via an entry in Fluxbox me

Post by Shador »

Try: wine /path/to/program
Image
h2t
Posts: 10
Joined: 9. Jul 2010, 01:57

Re: Cannot open a Windows program via an entry in Fluxbox me

Post 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:
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: Cannot open a Windows program via an entry in Fluxbox me

Post 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? ;)
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
Post Reply