Ask Your Question
0

tales of pirates

asked 2013-12-09 08:17:41 -0600

Inry gravatar image

updated 2013-12-17 11:25:42 -0600

I want to run the Windows game "Tales of pirates online" from my desktop. The secret is I have to run the file pirates/system/Game.exe with parameter startgame and current directory have to be the pirates/

I tried '/usr/win/Tales of Pirates II/system/Game.exe' startgame "/usr/win/Tales of Pirates II/system/Game.exe" startgame /usr/win/Tales\ of\ Pirates\ II/system/Game.exe startgame wine '/usr/win/Tales of Pirates II/system/Game.exe' startgame

  • nothing works (the icon jumps for some time then stops). How to debug desktop shortcuts? But if I start these commands from Xterm, all is ok.
edit retag flag offensive close merge delete

Comments

I presume you're using Gnome, not Xfce as I do. However, you should be able to configure the shortcut to run in a terminal, so that you can see the output.

sideburns gravatar imagesideburns ( 2013-12-09 15:13:24 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-12-10 10:53:40 -0600

cobra gravatar image

updated 2013-12-10 10:56:49 -0600

If you can get this working from a terminal, you have the hard bit done.

You should try putting together a short bash script, this should look something like this:

#!/bin/bash
cd <your game directory>
<the command line you used in the terminal to launch the app>

Then point your desktop shortcut at that file. The file could be saved anywhere, but you probably want to save it in the same directory as your game.

One word of warning, if you're using wine to launch this application, or any other Linux program or tool, you might want to put the command's full path in the <the command line...> line.

Another note, you might have to mark the script as executable too - do chmod ug+x <script filename> to do this.

edit flag offensive delete link more
0

answered 2013-12-17 11:23:24 -0600

Inry gravatar image

Thanks, solved. I have to edit desktop shortcut manually, because of spaces in path. batch file:

==/usr/win/Tales of Pirates II/top==

#!/bin/sh

wine ./system/Game.exe startgame

====

desktop shortcut:

==~/.local/share/applications/top== [Desktop Entry]

Comment[ru]=MMORPG

Comment=MMORPG

Comment[en_US]=

Exec="/usr/win/Tales of Pirates II/top"

GenericName[ru]=Tales of Pirates

GenericName=Tales of Pirates

GenericName[en_US]=

Icon=/usr/win/Tales of Pirates II/107_1_32x32x24.png

Name[ru]=top2

Name=top2

Name[en_US]=kop

Path="/usr/win/Tales of Pirates II/"

StartupNotify=true

Terminal=false

====

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-12-09 08:17:41 -0600

Seen: 511 times

Last updated: Dec 17 '13