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
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