The time now is Wed 19 Jun 2013, 00:15
All times are UTC - 4 |
| Author |
Message |
mini-jaguar
Joined: 13 Nov 2008 Posts: 402
|
Posted: Mon 14 Jan 2013, 09:29 Post_subject:
Shortcuts to programs that run on Wine on the desktop Sub_title: Need to add shortcuts to the .exe files in the C: drive under Program Files |
|
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.
|
|
Back to top
|
|
 |
muggins
Joined: 20 Jan 2006 Posts: 6663 Location: lisbon
|
Posted: Mon 14 Jan 2013, 12:37 Post_subject:
|
|
Can you give a few examples of programs that won't start?
|
|
Back to top
|
|
 |
mini-jaguar
Joined: 13 Nov 2008 Posts: 402
|
Posted: Mon 14 Jan 2013, 13:12 Post_subject:
|
|
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.
Edited_time_total
|
|
Back to top
|
|
 |
Moose On The Loose

Joined: 24 Feb 2011 Posts: 283
|
Posted: Mon 14 Jan 2013, 22:03 Post_subject:
Re: Shortcuts to programs that run on Wine on the desktop Sub_title: Need to add shortcuts to the .exe files in the C: drive under Program Files |
|
| 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
|
|
Back to top
|
|
 |
mini-jaguar
Joined: 13 Nov 2008 Posts: 402
|
Posted: Tue 15 Jan 2013, 07:33 Post_subject:
|
|
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.
|
|
Back to top
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 2273 Location: Gatineau (Qc), Canada
|
Posted: Tue 15 Jan 2013, 16:43 Post_subject:
|
|
Double posting. Sorry.
_________________
"To err is human; to really foul things up, you need a computer!" / "L'erreur est humaine; pour vraiment f... la m..., il faut un ordinateur." (Carleton University, banderole à la Rentrée 1979 / banner, start of 1979 school year) 
Edited_time_total
|
|
Back to top
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 2273 Location: Gatineau (Qc), Canada
|
Posted: Tue 15 Jan 2013, 16:46 Post_subject:
|
|
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: | | /mnt/sdb5/Windows/MyApps/bdd/ |
I create a CSVEditor.desktop file for it, in /usr/share/applications :
| Code: | [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: | | /root/.local/share/applications/wine/Programmes/ |
such as this one for ImgBurn
| Code: | [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: | #!/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
_________________
"To err is human; to really foul things up, you need a computer!" / "L'erreur est humaine; pour vraiment f... la m..., il faut un ordinateur." (Carleton University, banderole à la Rentrée 1979 / banner, start of 1979 school year) 
|
|
Back to top
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 2273 Location: Gatineau (Qc), Canada
|
Posted: Thu 17 Jan 2013, 03:10 Post_subject:
|
|
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: | #!/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: | #!/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:
| Quote: | # (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/finally_real_pdf_annotating_under_linux#comment-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
| Description |
|
| Filesize |
31.58 KB |
| Viewed |
166 Time(s) |

|
_________________
"To err is human; to really foul things up, you need a computer!" / "L'erreur est humaine; pour vraiment f... la m..., il faut un ordinateur." (Carleton University, banderole à la Rentrée 1979 / banner, start of 1979 school year) 
|
|
Back to top
|
|
 |
mini-jaguar
Joined: 13 Nov 2008 Posts: 402
|
Posted: Mon 21 Jan 2013, 03:24 Post_subject:
|
|
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.
|
|
Back to top
|
|
 |
|
|
|
Rules_post_cannot Rules_reply_cannot Rules_edit_cannot Rules_delete_cannot Rules_vote_cannot You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|