Files
flameshot/data/dbus/other-path/service-gen.sh
2020-07-10 20:10:14 -05: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