Shortcuts to programs that run on Wine on the desktop
-
- Posts: 597
- Joined: Thu 13 Nov 2008, 13:45
Shortcuts to programs that run on Wine on the desktop
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.
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.
-
- Posts: 597
- Joined: Thu 13 Nov 2008, 13:45
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.
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.
- Moose On The Loose
- Posts: 965
- Joined: Thu 24 Feb 2011, 14:54
Re: Shortcuts to programs that run on Wine on the desktop
1 Drag XXXXXX.exe to desktopmini-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.
2 Rightclick icon on desktop
3 file "XXXXXX.exe" -> Set Run action
4 insert: wine "$@" as the run action
-
- Posts: 597
- Joined: Thu 13 Nov 2008, 13:45
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.
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.
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 :
(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
such as this one for ImgBurn
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).
(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
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/
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
As you mentioned, the default wine *.desktop files you will find along the path
Code: Select all
/root/.local/share/applications/wine/Programmes/
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
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
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)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
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 :
Example 2) For the yikes text editor :
I just put 2 and 2 together. I was inpired by the following links:
If the illustration is not clear, get back to me?
Enjoy!
musher0
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:$@"
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:$@"
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# (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)
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)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
-
- Posts: 597
- Joined: Thu 13 Nov 2008, 13:45