FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I want to start an application in Wine, I can't link it to the desktop. I'll use Pokerstars in my example. In order to start Pokerstars, I have to go to Applications/System Tools/Wine Files menu. Then navigate the wine/pokerstars folder, and double click the Pokerstars.exe file, to start the software. I've tried Dragging and dropping, copy/paste, and creating a custom launch on the desktop, with the Pokerstars.exe as the target.
The problem is most likely due to a space in your file path. Most windows programs use "Program Files" as their installation directory, and wine will mirror that in it's structure. Try enclosing the path in quotation marks like this:
I personally got so fed up with working around this problem that I make sure now to install all my wine programs to a directory path without spaces.
Actually, it's a good idea to avoid spaces in all of your file paths on a unix-based system. Most experiences users substitute the underscore "_" instead.
Last edited by David the H.; 08-26-2006 at 05:50 PM.
The problem is most likely due to a space in your file path. Most windows programs use "Program Files" as their installation directory, and wine will mirror that in it's structure. Try enclosing the path in quotation marks like this:
I personally got so fed up with working around this problem that I make sure now to install all my wine programs to a directory path without spaces.
Actually, it's a good idea to avoid spaces in all of your file paths on a unix-based system. Most experiences users substitute the underscore "_" instead.
Excellent suggestion, but unfortunately it didn't work. There are no spaces in my path name, either "one word" or underscores.
So can you start pokerstars from the comand line?
When you get that worked out it should work in the custom application launcher.
You say you have no spaces in the path, so presumably you know where pokerstars.exe is.
Mine are in somewhere in the .wine folder
So can you start pokerstars from the comand line?
When you get that worked out it should work in the custom application launcher.
You say you have no spaces in the path, so presumably you know where pokerstars.exe is.
Mine are in somewhere in the .wine folder
I've not tried to start it from the command line(not exactly sure how to do that to be truthful). Yes, I do know where the pokerstars.exe is, as I navigate to it through the menu, I just can't make a shortcut on my desktop work.
None of the above suggestions worked...
Thanks for the suggestions, got a feeling this may not work.
IGF
Last edited by IndyGunFreak; 08-27-2006 at 11:54 AM.
Running from the command line is as easy as typing 'wine /path_to_program/program.exe' in a shell terminal. Once you get it working there, copy that line to the "command" space in your shortcut.
If a path has spaces or other reserved characters in it, you can either put quotes around the whole path, or use a backslash to escape the illegal characters. So:
wine "/Path to Program/program.exe" and
wine /Path\ to\ Program/program.exe
should both work. Don't forget that Linux is case-sensitive.
And since wine simulates Windows behavior, you can also use the
wine "C:\Path to Program\program.exe"
pattern as well.
Here's an idea. You say you can start the program from the applications menu. So why not look and see what the application menu shortcut is using? Just open up whatever menu editor your system uses and copy the properties for that entry into a new desktop shortcut.
And since wine simulates Windows behavior, you can also use the
wine "C:\Path to Program\program.exe"
Well, I can't really start it from the applications menu.
I go to Applications/System Tools/Wine File.. Which then opens up a "windows explorer" type window, and allows me to navigate to the pokerstars.exe file. Its not directly linked there, or I'm sure the 1st suggestion would work.
Regardless of the fact, your second suggestion worked like a charm, Thanks alot, that has drove me nuts.
For anyone else who may encounter this problem and comes across this in a search, this is how it was fixed (I've saw this problem on other forums as well, with no known solution). The part I quoted is what worked for me, make sure you use the quotes and make sure you type wine before the path.
Thanks again to all who helped...
IGF
Last edited by IndyGunFreak; 08-27-2006 at 07:16 PM.
congrats on getting it working, but I'm a bit puzzled still, I thought the quotes were only needed if there was a gap between 2 words in the path, (it's normally "Program Files", and I've done mine a bit differently, ie,
wine /home/mike/.wine/drive_c/"Program Files"/GrooveMechanic25c/GrooveMech.exe )
Which also works fine, so the quotes can also just be used where the gap is.
Could you post the actual line you're using please, it might help to clear up any confusion.
congrats on getting it working, but I'm a bit puzzled still, I thought the quotes were only needed if there was a gap between 2 words in the path, (it's normally "Program Files", and I've done mine a bit differently, ie,
wine /home/mike/.wine/drive_c/"Program Files"/GrooveMechanic25c/GrooveMech.exe )
Whish also works fine, so the quotes can also just be used where the gap is.
Could you post the actual line you're using please, it might help to clear up any confusion.
Mike
First, I never suggested I was immune to mistakes, I simply didn't appreciate being called a loser because I more or less enjoy a monopoly version of Poker.
I couldn't get the link to work w/o the quotes, and I have no spaces in my path(I removed them to try one of the other suggestions above).. Your way might work also, I really don't know.
I didn't get linmix's reference to mistakes either
OK I'll try removing the gap in my path and see if it works without the quotes.
I'm still puzzled by this.
On a slightly different note, what are you doing about icons???
I got tired of multiple question marks.
I can't figure out how to extract them from the .exe file, so I've just taken a photo of them on my windows screen and added that image to /usr/share/pixmaps. It works but they're a bit fuzzy.
On a slightly different note, what are you doing about icons???
I got tired of multiple question marks.
After I created the launcher and tested it, and realized that it worked, I right clicked the launcher, chose properties, then on the "Basic" tab.. Click the Pic that is there. When I did this, it opened up a "Select a custom Icon" window. It was directed at my home file, but on the left,there was a folder called "PixMaps" I double clicked it, and it listed quite a few pre-installed icons, etc. I ended up finding one that looked like a Poker chip, which worked like a charm...
Edit: For the person who asked me to post the line I used.. wine "C:\ProgramFiles\Pokerstars\Pokerstars.exe"
I cant explain why I had to have the quotes(no spaces obviously) but it didn't work when I tried it w/o quotes..
Hope that helps...
Thanks again
IGF
Last edited by IndyGunFreak; 08-28-2006 at 11:34 AM.
There's a set of cli utilities called icoutils that will extract and convert icons. You use wrestool to pull the icons from the .exe or .dll files, and icotool to extract and convert the .ico files to .png. They're pretty simple to use and the resulting images are perfect for use as shortcut icons.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.