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 25 Oct 2014, 04:14
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 Posts_count  
Author Message
liro

Joined: 28 Jul 2012
Posts: 149

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: 3972
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: 809

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: 149

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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

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
[ Time: 0.0450s ][ Queries: 11 (0.0042s) ][ GZIP on ]