LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-06-2006, 04:52 PM   #1
bigalexe
Member
 
Registered: Apr 2006
Location: SE michigan
Distribution: Ubuntu, Currently Chained to Windows
Posts: 67

Rep: Reputation: 15
bash and wine


i know how to make a simple script for bash.

I want to make a simple one line command that launches a specified program using wine. Then i want an icon on my desktop. So the end result is that when i click the icon it launches the terminal, executes the command, and my program is opened.

However currently the terminal (and subsequently all wine programs) close as soon as it is done executing.
 
Old 05-06-2006, 05:20 PM   #2
hisnumber666isback
Newbie
 
Registered: May 2006
Posts: 10

Rep: Reputation: 0
you can do it without a script or a terminal, or otherwise calling the shell yourself.
here is how i do it in gnome:
go to the directory the .exe you want to run is in.
right click on it and select Make Link
once the link is created, right click on the link and select Properties.
in Properties window there are tabs on the top. select Open With.
click Add on the bottom. Add Application window will open.
just type wine(or whatever other flavor of wine you might be using).
you might have several entries in the list. make sure you select wine(click the baloon beside it).
you are done making the link(or shortcut if you want it call it windows style).
you move the link to your desktop or a menu. you can rename the link as well, since the link stores the full path to the target inside.
you can add fancy icons to it as well(also in Properties).

have fun. this is just a seamless way to do it, there are probably 100 other ways of doing it, this is just one of them.
 
Old 05-06-2006, 09:51 PM   #3
jlo_sandog
Member
 
Registered: Jul 2005
Location: USA
Distribution: F10 (x86_64)
Posts: 549

Rep: Reputation: 32
simple bash to launch firefox (win32) as an example.

#!/bin/bash
wine "C:\Program Files\Mozilla Firefox\firefox.exe"
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i call bash command from exe in wine jacktheripperis Programming 1 04-12-2006 03:06 AM
Bash: Print usage statement & exit; otherwise continue using Bash shorthand operators stefanlasiewski Programming 9 02-07-2006 05:20 PM
Link targets - problems with Wine (Though not Wine specific - Wine site doesn't help) Kevjml Linux - Newbie 1 01-13-2006 07:53 AM
When I type Wine in BASH, I get an error. cheeseincarnate Linux - Software 1 06-16-2004 11:51 PM
why did bash 2.05b install delete /bin/bash & "/bin/sh -> bash"? johnpipe Linux - Software 2 06-06-2004 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:58 AM.

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
Open Source Consulting | Domain Registration