mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-04-24 17:49:11 +00:00
Add new command line arguments
This commit is contained in:
parent
908c296523
commit
4e58326fb2
@ -17,7 +17,7 @@
|
|||||||
# If you do not wish to use the above .desktop files, simply run this script
|
# If you do not wish to use the above .desktop files, simply run this script
|
||||||
# from your terminal.
|
# from your terminal.
|
||||||
#
|
#
|
||||||
# version: 1.4
|
# version: 1.5
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
@ -51,18 +51,25 @@ export MESA_SHADER_CACHE_MAX_SIZE="10G"
|
|||||||
export wine_path="$(command -v wine | xargs dirname)"
|
export wine_path="$(command -v wine | xargs dirname)"
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
# Get a shell
|
# Command line arguments
|
||||||
#############################################
|
#############################################
|
||||||
# Drop us into a shell that contains the current environment
|
# shell - Drop into a Wine maintenance shell
|
||||||
# This is useful for getting a wine control panel, debugging, etc.
|
# config - Wine configuration
|
||||||
|
# controllers - Game controller configuration
|
||||||
# Usage: ./sc-launch.sh shell
|
# Usage: ./sc-launch.sh shell
|
||||||
if [ "$1" = "shell" ]; then
|
case "$1" in
|
||||||
echo "Entering Wine prefix maintenance shell"
|
"shell")
|
||||||
echo "Useful commands: winecfg, wine control joy.cpl, wineserver -k"
|
echo "Entering Wine prefix maintenance shell. Type 'exit' when done."
|
||||||
echo "Type 'exit' when done."
|
export PATH="$wine_path:$PATH"; export PS1="Wine: "
|
||||||
export PATH="$wine_path:$PATH"; export PS1="Wine: "
|
cd "$WINEPREFIX"; /usr/bin/env bash --norc; exit 0
|
||||||
cd "$WINEPREFIX"; /usr/bin/env bash --norc; exit 0
|
;;
|
||||||
fi
|
"config")
|
||||||
|
/usr/bin/env bash --norc -c "winecfg"; exit 0
|
||||||
|
;;
|
||||||
|
"controllers")
|
||||||
|
/usr/bin/env bash --norc -c "wine control joy.cpl"; exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
# Run optional prelaunch and postexit scripts
|
# Run optional prelaunch and postexit scripts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user