linux: create a small linux script to properly launch PCSX2 from a desktop shortcut

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4291 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut@gmail.com 2011-02-12 10:42:32 +00:00
parent ccc86cfaf8
commit 94b0ead7ff
1 changed files with 17 additions and 0 deletions

17
bin/launch_pcsx2_linux.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
# This script is a small wrapper to the PCSX2 exectuable. The purpose is to
# launch PCSX2 from the same repository every times.
# Rationale: There is no guarantee on the directory when PCSX2 is launched from a shortcut.
# This behavior trigger the first time wizards everytime...
# Note: sh (dash on debian) does not support pushd, popd...
# Save current directory
PWD_old=$PWD
# Go to the script directory
chdir `dirname $0`
./pcsx2
# Go back to the old directory
chdir $PWD_old