[linux] add Desktop launch scripts

Former-commit-id: 57539ee9f0885f8f3ee1b39935813ec331565016
This commit is contained in:
R4SAS 2022-04-21 00:19:35 +00:00
parent 677f1671c7
commit a6f28e6fe0
4 changed files with 365 additions and 33 deletions

14
linux/build/scripts/execdesktop Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
I2PDB_START_PROG="$(grep '^X-I2PdBrowser-ExecShell' $1 | tail -1 | sed 's/^X-I2PdBrowser-ExecShell=//' | sed 's/%.//')"
shift
if [ "$#" -ge 1 ]
then
echo "Launching '${I2PDB_START_PROG} $@'..."
else
echo "Launching '${I2PDB_START_PROG}'..."
fi
${I2PDB_START_PROG} "$@"