CaffeineAddict
Well-Known Member
I have downloaded a self-contained game called OpenTTD and have extracted the archive into
The contents of the extracted game directory are as follows:
The game executable from that listing above is called
I attempted to create either symbolic or hard link to it on my desktop as follows:
The link was created successfully with both methods separately but there are two problems:
1. When I run the link with double click on my Desktop it asks me if I want to execute it, choosing "Execute" does nothing
So first question is, how do I make the link executable so that it doesn't ask me to execute it but instead launch the game right away?
2. Why executing the link from Desktop does not launch the game and how do I launch it by executing the link on Desktop the same way as if I would run the executable from directory in
Otherwise executing the
Btw. I know I can create a Desktop file on my Desktop instead of a link and that works fine, but I want to understand why links don't work?
/opt
directory.The contents of the extracted game directory are as follows:
Bash:
ls -l /opt/openttd-14.1-linux-generic-amd64/
total 57936
drwxr-xr-x 2 root root 4096 svi 3 23:06 ai
drwxr-xr-x 2 root root 4096 svi 3 23:06 baseset
-rw-r--r-- 1 root root 622939 svi 3 22:51 changelog.txt
-rw-r--r-- 1 root root 14396 svi 3 22:51 CONTRIBUTING.md
-rw-r--r-- 1 root root 18023 svi 3 22:51 COPYING.md
-rw-r--r-- 1 root root 3394 svi 3 22:51 CREDITS.md
drwxr-xr-x 2 root root 4096 svi 3 23:06 docs
drwxr-xr-x 2 root root 4096 svi 3 23:06 game
-rw-r--r-- 1 root root 23081 svi 3 22:51 known-bugs.txt
drwxr-xr-x 2 root root 4096 svi 3 23:06 lang
drwxr-xr-x 2 root root 4096 svi 3 23:06 lib
-rwxr-xr-x 1 root root 58587728 svi 3 23:06 openttd
-rw-r--r-- 1 root root 9758 svi 3 22:51 README.md
drwxr-xr-x 2 root root 4096 svi 3 23:06 scripts
drwxr-xr-x 5 root root 4096 svi 3 23:06 share
The game executable from that listing above is called
openttd
which runs the game (it has executable flag already set).I attempted to create either symbolic or hard link to it on my desktop as follows:
Bash:
# Option 1, symbolic link
ln -s /opt/openttd-14.1-linux-generic-amd64/openttd ~/Desktop/openttd
# Options 2, hard link
ln /opt/openttd-14.1-linux-generic-amd64/openttd ~/Desktop/openttd
The link was created successfully with both methods separately but there are two problems:
1. When I run the link with double click on my Desktop it asks me if I want to execute it, choosing "Execute" does nothing
So first question is, how do I make the link executable so that it doesn't ask me to execute it but instead launch the game right away?
2. Why executing the link from Desktop does not launch the game and how do I launch it by executing the link on Desktop the same way as if I would run the executable from directory in
/opt
?Otherwise executing the
openttd
executable from /opt
directory works just fine.Btw. I know I can create a Desktop file on my Desktop instead of a link and that works fine, but I want to understand why links don't work?