Reorganizing paths
This commit is contained in:
parent
e9d204daab
commit
34cb856dd4
249 changed files with 118 additions and 294 deletions
31
assets/native/linux/snapcraft/launcher/launch-logarithmplotter
Executable file
31
assets/native/linux/snapcraft/launcher/launch-logarithmplotter
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/env bash
|
||||
# This is the maintainence launcher for the snap, make necessary runtime environment changes to make the snap work here. You may also insert security confinement/deprecation/obsoletion notice of the snap here.
|
||||
|
||||
set \
|
||||
-o errexit \
|
||||
-o errtrace \
|
||||
-o nounset \
|
||||
-o pipefail
|
||||
|
||||
# GTK theme integration (we have Qt fetch the GTK theme mirroring the host Qt theme...)
|
||||
# Currently broken with portals
|
||||
#export QT_QPA_PLATFORMTHEME=kde
|
||||
|
||||
# Check if the last parameter is a file, and if so, add the argument "--no-checks-for-updates" BEFORE it.
|
||||
|
||||
length=$(($#-1))
|
||||
|
||||
echo "Len: $length"
|
||||
|
||||
if [ $length -gt 0 ]; then
|
||||
last="${@:$#}" # last parameter
|
||||
args=("${@:1:$length}") # all parameters except the last
|
||||
|
||||
if [ -f "$last" ]; then
|
||||
${args} --no-check-for-updates "$last"
|
||||
else
|
||||
${@} --no-check-for-updates
|
||||
fi
|
||||
else
|
||||
${@} --no-check-for-updates
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue