LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2009, 03:49 AM   #1
own3mall
LQ Newbie
 
Registered: Aug 2009
Posts: 20

Rep: Reputation: 0
Desktop Shortcut in Ubuntu With Additional Parameters After the Target


How do I create a shortcut to MOHAA_SERVER.EXE with Ubuntu 9.04 with the added commands of:

+set dedicated 1 +set ui_console 1 +set g_gametype3 +set sv_maxclients 14 +exec server.cfg after the path of the MOHAA_SERVER.exe

I want it to match the setup of the desktop shortcut in windows:

http://www.uhost4free.com/images/mohaatarget2.jpg

I'm using wine for my mohaa (Medal of Honor Allied Assault) server, and it seems to be working, but I don't want to manually have to type in exec server.cfg every time either.

Let me know.
--
Thanks
OwN
 
Old 08-04-2009, 09:29 AM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Put it in a scipt, make script executable, create link to script.
 
Old 08-04-2009, 02:49 PM   #3
own3mall
LQ Newbie
 
Registered: Aug 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jay73 View Post
Put it in a scipt, make script executable, create link to script.
How do I do that?

My path to the file is

/home/eric/desktop/mohaa/MOHAA_SERVER.exe

How would I set this up to run with the extra parameters? I have no idea what I'm doing on Ubuntu, so please help!
 
Old 08-04-2009, 07:35 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Quote:
#! /bin/bash
wine /home/eric/desktop/mohaa/MOHAA_SERVER.exe options &
Put that into a text file, save it and make it executable:
chmod u+x filename

Then you can launch it with:
./filename
or, if you put the file into /usr/bin or /home/username/bin with:
filename
You can also create a link to it.
 
Old 08-08-2009, 02:08 AM   #5
own3mall
LQ Newbie
 
Registered: Aug 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks, I got it!

Quote:
Originally Posted by jay73 View Post
Put that into a text file, save it and make it executable:
chmod u+x filename

Then you can launch it with:
./filename
or, if you put the file into /usr/bin or /home/username/bin with:
filename
You can also create a link to it.

Thanks, I got it working!
 
  


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
create a shortcut in /home/username/Desktop but not still not appear on desktop! swgiant Linux - Newbie 1 09-27-2008 11:51 AM
Desktop Shortcut Magic02 Linux - Newbie 1 07-03-2005 03:48 PM
Shortcut to Desktop? Gerardoj Linux - Software 3 09-29-2003 04:29 PM
Desktop Shortcut MasterC Linux - Software 13 09-27-2002 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:47 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
Open Source Consulting | Domain Registration