Martchus
80704e0028
Apparently just setting HOME does not work anymore. At least in my Plasma setup XDG_DATA_HOME and XDG_CONFIG_HOME are now interfering. This change introduced an extra helper script to take care of the environment variables which unsets the XDG_… variables and also takes care of QT_PLUGIN_PATH by the way.
19 lines
592 B
Bash
Executable File
19 lines
592 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
script_dir=$(dirname "${BASH_SOURCE[0]}")
|
|
source "$script_dir/settestenv.sh"
|
|
|
|
# use the package dir within the source-tree so one does not need to run CMake again for updating
|
|
# build-tree copy all the time
|
|
package_dir=$script_dir/../package
|
|
|
|
# copy the generated desktop file back into the source-tree package dir so it can actually be used
|
|
meta_data_file=$1
|
|
cp --target-directory="$package_dir" "$meta_data_file"
|
|
|
|
# install or update the package into the working directory
|
|
if ! plasmapkg2 --install "$package_dir"; then
|
|
plasmapkg2 --upgrade "$package_dir"
|
|
fi
|
|
exit $?
|