Shortcuts to programs that run on Wine on the desktop

Using applications, configuring, problems
Post Reply
Message
Author
mini-jaguar
Posts: 597
Joined: Thu 13 Nov 2008, 13:45

Shortcuts to programs that run on Wine on the desktop

#1 Post by mini-jaguar »

Somewhere in the file system I have found some .desktop files to the appropriate programs I have installed with Wine, however they do not run those programs. They do have the correct looking icons, but that is about it.

I must mention that installed programs cannot be started by manually going through the folders under /root/.wine either, they only start with winefile or wineexplorer. I guess there could be some other way, I haven't found it though.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#2 Post by muggins »

Can you give a few examples of programs that won't start?

mini-jaguar
Posts: 597
Joined: Thu 13 Nov 2008, 13:45

#3 Post by mini-jaguar »

Rebirth, HammerHead, Drumbox...

Actually the only ones that start without winefile or wine explorer are .exe files that need no installation.

edit: actually Rebirth works by simply clicking the icon. The others don't.
Last edited by mini-jaguar on Tue 15 Jan 2013, 15:45, edited 1 time in total.

User avatar
Moose On The Loose
Posts: 965
Joined: Thu 24 Feb 2011, 14:54

Re: Shortcuts to programs that run on Wine on the desktop

#4 Post by Moose On The Loose »

mini-jaguar wrote:Somewhere in the file system I have found some .desktop files to the appropriate programs I have installed with Wine, however they do not run those programs. They do have the correct looking icons, but that is about it.

I must mention that installed programs cannot be started by manually going through the folders under /root/.wine either, they only start with winefile or wineexplorer. I guess there could be some other way, I haven't found it though.
1 Drag XXXXXX.exe to desktop

2 Rightclick icon on desktop

3 file "XXXXXX.exe" -> Set Run action

4 insert: wine "$@" as the run action

mini-jaguar
Posts: 597
Joined: Thu 13 Nov 2008, 13:45

#5 Post by mini-jaguar »

It's already set to that by default, and does not start the program properly.

Even using the console to start the programs does not work. I mean the usual:
wine "c:\program files\app\appname.exe", the actual names of course not "app" or "appname", but as indicated by going through the menus.

It starts the program, but the program doesn't work properly if I start it that way (no sound for example).

It only works the way I mentioned earlier.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#6 Post by musher0 »

Double posting. Sorry.
Last edited by musher0 on Tue 15 Jan 2013, 20:47, edited 1 time in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#7 Post by musher0 »

Hi!

My example will be based on CSVed, probably the best csv editor for any OS.

First of all, a little methodology. I keep my wine applications in their own "Windows" folder on a vfat hard disk outside of the Puppy savefile.

So I unpack my CSVEditor there, in folder

Code: Select all

/mnt/sdb5/Windows/MyApps/bdd/
I create a CSVEditor.desktop file for it, in /usr/share/applications :

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=CSVed-2.0
Name[fr]=CSVed-2.0
Type=Application
Comment=CSVed-2.0
Icon=/usr/share/icons/text_csv-48x-mod.png
TryExec=/mnt/sdb5/Windows/MyApps/bdd/CSVed.sh
Exec=/mnt/sdb5/Windows/MyApps/bdd/CSVed.sh
Terminal=false
Categories=Database
GenericName=CSVed-2.0
NoDisplay=false
(Note: for wine applications, I recommend using the "TryExec=" entry. It is not necessary for ordinary Linux executables.)

As you mentioned, the default wine *.desktop files you will find along the path

Code: Select all

/root/.local/share/applications/wine/Programmes/
such as this one for ImgBurn

Code: Select all

[Desktop Entry]
Name=ImgBurn
Exec=env WINEPREFIX="/root/.wine" wine C:\\\\windows\\\\command\\\\start.exe /Unix /root/.wine/dosdevices/c:/users/Public/Menu\\ Démarrer/Programmes/ImgBurn/ImgBurn.lnk
Type=Application
StartupNotify=true
Path=/root/.wine/dosdevices/c:/PortableApps/ImgBurn
Icon=3548_ImgBurn.0
are NOT the best way to launch a wine application. The developers at winehq are providing the most general solution, which does not work for us at Puppy. The "env WINEPREFIX=" solution is cumbersome, and more often than not ends up launching nothing in Puppy.

In Puppy, the best way is to create a very direct sh script to launch CSVEditor (or any wine application).

Code: Select all

#!/bin/sh
# CSVed.sh
####
cd /mnt/sdb5/Windows/MyApps/bdd/CSVed
wine /mnt/sdb5/Windows/MyApps/bdd/CSVed/CSVed.exe
(Note: Repeating the path helps.)

You can drag either the script or the csveditor.desktop file on your desktop. Perhaps the *desktop file is better, since the icon will show already.

Click on this icon on your desktop, and CSVEditor will start. :)

That's it. The above solution can be generalized to most wine programs.

Enjoy!

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#8 Post by musher0 »

Hello again, Puppyists !

Here are a couple of other examples, if ever you need to load a file from Puppy in a wine program.

Example 1) For the pdf reader Sumatra :

Code: Select all

#!/bin/bash
# $MBINS/voir-avec-Sumatra.sh # Pont entre linux et wine
# (View a pdf file with Sumatra.)
####
EXE="C:\PortableApps\SumatraPDF\SumatraPDF.exe"
cd "/root/.wine/drive_c/PortableApps/SumatraPDF"
wine $EXE "Z:$@"
Example 2) For the yikes text editor :

Code: Select all

#!/bin/sh
# yikes.sh # Pont entre linux et wine
# (Load a txt file in yikes.)
####
EXE="/mnt/sdb5/Windows/MyApps/Ecritoire/Editeurs/yikes/yikes.exe"
cd /mnt/sdb5/Windows/MyApps/Ecritoire/Editeurs/yikes
wine $EXE "Z:$@"
I just put 2 and 2 together. I was inpired by the following links:
# (It is a mix of the following two references.)
# Inspiré de l'astuce de A. Tres Finocchiaro
# dans le forum winehq.
# wine start "Z:$@";
# Et de : http://www.gnurou.org/blog/2008/09/09/f ... mment-1815
# Script: "Submitted by Philipp (not verified) on Wed, 2010-05-12 12:54."
# Consulté le 4 janv. 2012, vers 21 h 30. (musher0)
The interface is simply a link from the sh script placed in /root/.config/rox.sourceforge.net/SendTo/.text_plain or /root/.config/rox.sourceforge.net/SendTo/.application_pdf
If the illustration is not clear, get back to me?

Enjoy!

musher0
Attachments
wine-interface-between-editor-and-text.jpg
(31.58 KiB) Downloaded 384 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

mini-jaguar
Posts: 597
Joined: Thu 13 Nov 2008, 13:45

#9 Post by mini-jaguar »

Sorry, I think I'm not advanced enough to do what you are doing.

And I am also not interested in putting my c: drive on removable media either.

Post Reply