mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 01:41:19 +00:00
15 lines
258 B
Bash
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
|