LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 04: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, 10:29 AM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Put it in a scipt, make script executable, create link to script.
 
Old 08-04-2009, 03: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, 08:35 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
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, 03: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


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 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 12:51 PM
Desktop Shortcut Magic02 Linux - Newbie 1 07-03-2005 04:48 PM
Shortcut to Desktop? Gerardoj Linux - Software 3 09-29-2003 05:29 PM
Desktop Shortcut MasterC Linux - Software 13 09-27-2002 11:36 AM


All times are GMT -5. The time now is 01:14 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