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
RestartSec=5
User=[user]
Group=[user]
WorkingDirectory=/home/[user]
ExecStart=dynamic-folders-video-optimizer --folder [folder to watch]
[Install]

View File

@ -12,6 +12,10 @@
# START
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
PROGNAME=$(basename "$0")
FOLDER_ORIGIN="$2"