Files
flameshot/dbus/other-path/service-gen.sh
2017-12-23 15:39:29 +01:00

15 lines
258 B
Bash

#!/usr/bin/bash
DIR=$(pwd)
TARGET="/usr/bin"
if [ -n "$1" ]
then
TARGET=${1%/}
fi
FILE='[D-BUS Service]\nName=org.dharkael.Flameshot\nExec=##REPLACE##/flameshot'
FILE=${FILE//##REPLACE##/$TARGET}
echo -e $FILE > $DIR/org.dharkael.Flameshot.service