use xdg-user-dir to determine directories

This commit is contained in:
Joao Azevedo 2021-11-01 16:02:04 +01:00
parent e3c012fc0e
commit 2f5784c6b7
No known key found for this signature in database
GPG Key ID: 0E16C30A65F31D9D
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ case "$1" in
;;
esac
VIDEO="/home/purism/Videos/$(date +%Y-%m-%d-%H%M%S).avi"
VIDEO="$(xdg-user-dir VIDEOS)$(date +%Y-%m-%d-%H%M%S).avi"
yad --title ScreenCapture --text "A simple GUI to record the screen" --button="Start capture:100" --button="Quit:0" --buttons-layout=center
start_window_return=$?