LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 11-29-2016, 09:10 PM   #1
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,372

Rep: Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419Reputation: 3419
WINE file association handler


Just wrote the following script to launch .exes in WINE from a file manager:

Code:
#!/bin/sh
exe="$(realpath "$1")"
cd "$(dirname "$exe")"
wine "$exe"
Set it as the default "Open With..." action for .exes, and they'll a) launch with WINE and b) behave as expected after being launched with WINE.

Last edited by dugan; 11-29-2016 at 09:15 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file association for an odd file type? lleb Linux - Desktop 8 10-14-2015 06:48 PM
[SOLVED] Wine set it as default handler for many mime-types. TruongAn Linux - Software 4 12-25-2010 01:42 PM
Perl File Handler - will autoflush clear the memory the file requires? doug23 Programming 3 08-20-2009 12:32 AM
wine filetype association with linux application simone.garza Linux - Software 0 07-23-2007 08:55 AM
setting ROX file/app association to launch a Wine.exe Onestep Linux - Newbie 7 07-18-2004 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration