This commit is contained in:
Andros Fenollosa 2023-04-18 15:15:13 +02:00
parent b89956da3f
commit ec947ecc5b
2 changed files with 4 additions and 2 deletions

View File

@ -58,8 +58,6 @@ Description=Folder that watches when new videos are added to a folder and optimi
Restart=always Restart=always
RestartSec=5 RestartSec=5
User=[user] User=[user]
Group=[user]
WorkingDirectory=/home/[user]
ExecStart=dynamic-folders-video-optimizer --folder [folder to watch] ExecStart=dynamic-folders-video-optimizer --folder [folder to watch]
[Install] [Install]

View File

@ -12,6 +12,10 @@
# START # START
set -e set -e
# EXPORTS
# Fix: notify-send command doesn't launch the notification through systemd service
export DBUS_SESSION_BUS_ADDRESS="${DBUS_SESSION_BUS_ADDRESS:-unix:path=/run/user/${UID}/bus}"
# VARIABLES # VARIABLES
PROGNAME=$(basename "$0") PROGNAME=$(basename "$0")
FOLDER_ORIGIN="$2" FOLDER_ORIGIN="$2"