Changeset View
Changeset View
Standalone View
Standalone View
files/Use-openjdk-8.patch
| Show All 10 Lines | |||||
| index babfd31..3c86396 100755 | index babfd31..3c86396 100755 | ||||
| --- a/projectlibre_build/resources/projectlibre | --- a/projectlibre_build/resources/projectlibre | ||||
| +++ b/projectlibre_build/resources/projectlibre | +++ b/projectlibre_build/resources/projectlibre | ||||
| @@ -56,15 +56,21 @@ | @@ -56,15 +56,21 @@ | ||||
| # logo it must direct them back to http://www.projectlibre.com. | # logo it must direct them back to http://www.projectlibre.com. | ||||
| #******************************************************************************* | #******************************************************************************* | ||||
| -CONF_DIR="$HOME/.projectlibre" | -CONF_DIR="$HOME/.projectlibre" | ||||
| +if [ -d $XDG_CONFIG_HOME ]; then | +if [ -d "$XDG_CONFIG_HOME" ]; then | ||||
| + CONF_DIR="$XDG_CONFIG_HOME/projectlibre" | + CONF_DIR="$XDG_CONFIG_HOME/projectlibre" | ||||
| +else | +else | ||||
| + CONF_DIR="$HOME/.config/projectlibre" | + CONF_DIR="$HOME/.config/projectlibre" | ||||
| +fi | +fi | ||||
| + | + | ||||
| +# Migrate the old conf dir | +# Migrate the old conf dir | ||||
| +if [ -d "$HOME/.projectlibre" ]; then | +if [ -d "$HOME/.projectlibre" ]; then | ||||
| + mv "$HOME/.projectlibre" "$CONF_DIR" | + mv "$HOME/.projectlibre" "$CONF_DIR" | ||||
| Show All 17 Lines | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.