linux desktop integration
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4522 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+2
-1
@@ -2,7 +2,8 @@
|
||||
# CUBE_DIR should refer to the directory in which Cube is placed.
|
||||
#CUBE_DIR=~/cube
|
||||
#CUBE_DIR=/usr/local/cube
|
||||
CUBE_DIR=./
|
||||
#CUBE_DIR=./
|
||||
CUBE_DIR=$(dirname $(readlink -f "${0}"))
|
||||
|
||||
# CUBE_OPTIONS contains any command line options you would like to start Cube with.
|
||||
#CUBE_OPTIONS="-f"
|
||||
|
||||
Executable
+35
@@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
# announce the game to modern desktop environments
|
||||
# (by creating ~/.local/share/applications/assaultcube_svn.desktop and ~/.local/share/icons/assaultcube.png)
|
||||
# Hint: this script has to be located in the assaultcube base directory to work
|
||||
|
||||
# get Exec target path (CUBE_DIR has to be the full path of the assaultcube base directory)
|
||||
CUBE_DIR=$(dirname $(readlink -f "${0}"))
|
||||
|
||||
if [ -x ${CUBE_DIR}/assaultcube.sh ]
|
||||
then
|
||||
cd ${CUBE_DIR}
|
||||
mkdir -pv ~/.local/share/applications
|
||||
mkdir -pv ~/.local/share/icons
|
||||
cat > ~/.local/share/applications/assaultcube_svn.desktop << EOF_DESKTOPFILE
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Encoding=UTF-8
|
||||
Name=AssaultCube SVN Test Version
|
||||
Type=Application
|
||||
GenericName=First Person Shooter
|
||||
Icon=assaultcube.png
|
||||
StartupNotify=false
|
||||
Categories=Game;ActionGame;
|
||||
Comment=Fast paced first-person shooter based upon the Cube engine
|
||||
Comment[pl]=Szybka strzelanka oparta na silniku gry Cube
|
||||
Comment[de]=Schneller Ego-Shooter basierend auf der Cube-Engine
|
||||
EOF_DESKTOPFILE
|
||||
echo "Exec=${CUBE_DIR}/assaultcube.sh" >> ~/.local/share/applications/assaultcube_svn.desktop
|
||||
cp ${CUBE_DIR}/docs/pics/assaultcube.png ~/.local/share/icons
|
||||
else
|
||||
echo "could not find the AssaultCube base directory"
|
||||
echo "move this script to the AC base directory and start it again"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -563,6 +563,3 @@
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -132,7 +132,8 @@
|
||||
<td rowspan="1" colspan="1">
|
||||
<b>Linux</b><br clear="none" />
|
||||
Download the tarball from Sourceforge. Extract it somewhere where you have permissions
|
||||
to read/write.
|
||||
to read/write. If you want to start the game from your desktop application menu, you
|
||||
have to run client_desktop_install.sh once.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -184,6 +185,7 @@
|
||||
<b>Linux</b><br clear="none" />
|
||||
In a console, change your location (cd) to the main AssaultCube directory and then
|
||||
execute <i>assaultcube.sh</i>.
|
||||
You can also pick AssaultCube from the 'Games' section of your desktop application menu.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -209,7 +211,7 @@
|
||||
<b>Users of Linux:</b>
|
||||
<br clear="none" />
|
||||
<b>Note:</b> Files that AssaultCube writes during the game (such as screenshots, configs
|
||||
and maps) get saved in the hidden <i>.assaultcube</i> folder in your users home
|
||||
and maps) get saved in the hidden <i>.assaultcube_v1.1</i> folder in your users home
|
||||
directory.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
Reference in New Issue
Block a user