Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 19 Apr 2014, 01:21
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Shortcuts to programs that run on Wine on the desktop
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
mini-jaguar

Joined: 13 Nov 2008
Posts: 457

PostPosted: Mon 14 Jan 2013, 09:29    Post subject:  Shortcuts to programs that run on Wine on the desktop
Subject description: 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
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6666
Location: lisbon

PostPosted: Mon 14 Jan 2013, 12:37    Post subject:  

Can you give a few examples of programs that won't start?
Back to top
View user's profile Send private message 
mini-jaguar

Joined: 13 Nov 2008
Posts: 457

PostPosted: 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.

Last edited by mini-jaguar on Tue 15 Jan 2013, 11:45; edited 1 time in total
Back to top
View user's profile Send private message 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 478

PostPosted: Mon 14 Jan 2013, 22:03    Post subject: Re: Shortcuts to programs that run on Wine on the desktop
Subject description: 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
View user's profile Send private message 
mini-jaguar

Joined: 13 Nov 2008
Posts: 457

PostPosted: 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
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 3794
Location: Gatineau (Qc), Canada

PostPosted: Tue 15 Jan 2013, 16:43    Post subject:  

Double posting. Sorry.
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Last edited by musher0 on Tue 15 Jan 2013, 16:47; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 3794
Location: Gatineau (Qc), Canada

PostPosted: 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. Smile

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

Enjoy!

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 3794
Location: Gatineau (Qc), Canada

PostPosted: 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
wine-interface-between-editor-and-text.jpg
 Description   
 Filesize   31.58 KB
 Viewed   238 Time(s)

wine-interface-between-editor-and-text.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
mini-jaguar

Joined: 13 Nov 2008
Posts: 457

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0610s ][ Queries: 13 (0.0050s) ][ GZIP on ]