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 26 Jul 2014, 01:18
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
"Open with" using a Wine program
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
liro

Joined: 28 Jul 2012
Posts: 146

PostPosted: Sat 19 Jan 2013, 08:09    Post subject:  "Open with" using a Wine program  

When I right-click a file and choose the "open with" option, I'd like to be able to open the file with a Wine program.

I've tried putting a link to the program exe file in the /.config/rox.sourceforge.net/send_to folder, but when I then choose this program from the "open with" menu nothing happens.

Does anyone know how I can do this?

Thanks!

Ps. As a small side issue, is there any way I can make the "open with" menu automatically collapse, rather than clicking on it then choosing the program?
Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 3561
Location: World_Hub

PostPosted: Sat 19 Jan 2013, 08:59    Post subject:  

Liro- this sounds like the right thread. If I'm wrong, it's cause Wink I didn't get enough sleep.
Back to top
View user's profile Send private message 
sfeeley

Joined: 14 Feb 2010
Posts: 807

PostPosted: Sat 19 Jan 2013, 12:48    Post subject:  

so, you want to open a file type with a particular program that is running in wine? Use this script. Adapt the .exe portion to fit your wine installation. make the file executable.

And then in the right click, customize menu option, drag a link to the file, voila!

Not my stuff-- I got this from here: http://208.109.22.214/puppy/viewtopic.php?t=77391&sid=7c927588ed0e9331f843cb4bd8fce93b

*****************************

Code:
#wine "/mnt/home/.wine/drive_c/Program Files/Microsoft Office/OFFICE11/WINWORD.EXE"


#!/bin/bash
# transfert-PDFXCview.sh # entre linux et wine
####
EXE="/mnt/home/.wine/drive_c/Program Files/Microsoft Office/OFFICE11/WINWORD.EXE"
# "C:\Program Files\Tracker Software\PDF Viewer\PDFXCview.exe"
ROOTDRIVE="Z" # Z:\home\yourname\...

if [ ! -z "$1" ]; then
 # Make Windows path
 file=$(echo "$ROOTDRIVE:$1" | sed 's!/!\\!g')
 env WINEPREFIX="$HOME/.wine" wine "$EXE" "$file"
else
 env WINEPREFIX="$HOME/.wine" wine "$EXE"
fi

# Source : 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)

*****************************
Back to top
View user's profile Send private message 
liro

Joined: 28 Jul 2012
Posts: 146

PostPosted: Sun 20 Jan 2013, 13:08    Post subject:  

Thanks to you both. Sorted now Smile.

(Do you know how to do the auto-collapse menu thing too?)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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.0443s ][ Queries: 12 (0.0040s) ][ GZIP on ]