diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-util/pogo-manager-bin/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-util/pogo-manager-bin/files')
-rw-r--r-- | games-util/pogo-manager-bin/files/pogo-manager | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/games-util/pogo-manager-bin/files/pogo-manager b/games-util/pogo-manager-bin/files/pogo-manager new file mode 100644 index 000000000000..9866fec91a84 --- /dev/null +++ b/games-util/pogo-manager-bin/files/pogo-manager @@ -0,0 +1,17 @@ +#!/bin/bash + +# Config files are written to current directory, so make a config dir and pushd there + +if [[ ! -z "${XDG_CONFIG_DIR}" ]] ; then + config_dir="${XDG_CONFIG_DIR}/pogo-manager" +elif [[ ! -z "${HOME}" ]] ; then + config_dir="${HOME}/.config/pogo-manager" +else + config_dir="$(mktemp -d)" +fi + +echo "Using ${config_dir} for configuration files" +mkdir -p "${config_dir}" +pushd "${config_dir}" > /dev/null +java -Dfile.encoding=UTF-8 -jar /opt/pogo-manager/pogo-manager.jar + |