The time now is Fri 20 Apr 2018, 14:39
All times are UTC - 4 |
Author |
Message |
liro
Joined: 28 Jul 2012 Posts: 164
|
Posted: 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
|
|
 |
Semme

Joined: 07 Aug 2011 Posts: 7826 Location: World_Hub
|
Posted: Sat 19 Jan 2013, 08:59 Post subject:
|
|
Liro- this sounds like the right thread. If I'm wrong, it's cause I didn't get enough sleep.
|
Back to top
|
|
 |
sfeeley
Joined: 14 Feb 2010 Posts: 809
|
Posted: 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
|
|
 |
liro
Joined: 28 Jul 2012 Posts: 164
|
Posted: Sun 20 Jan 2013, 13:08 Post subject:
|
|
Thanks to you both. Sorted now .
(Do you know how to do the auto-collapse menu thing too?)
|
Back to top
|
|
 |
|
|
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.0278s ][ Queries: 12 (0.0029s) ][ GZIP on ] |