move sxmo data to XDG_DATA_HOME

Breaking change. Make sure you send an email to the mailing list
telling users to move their
$XDG_CONFIG_HOME/{modem,notifications} files/folders to
$XDG_DATA_HOME

Signed-off-by: Anjandev Momi <anjan@momi.ca>
This commit is contained in:
Anjandev Momi 2020-11-08 15:12:47 -05:00
parent 65f18565f1
commit e11cf9e523
12 changed files with 16 additions and 16 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/env sh
trap gracefulexit INT TERM
NOTIFDIR="$XDG_CONFIG_HOME"/sxmo/notifications
NOTIFDIR="$XDG_DATA_HOME"/sxmo/notifications
gracefulexit() {
echo "Gracefully exiting $0"

View file

@ -1,5 +1,5 @@
#!/usr/bin/env sh
NOTIFDIR="$XDG_CONFIG_HOME"/sxmo/notifications
NOTIFDIR="$XDG_DATA_HOME"/sxmo/notifications
notificationmenu() {
CHOICES="Close Menu\nClear Notifications"

View file

@ -1,5 +1,5 @@
#!/usr/bin/env sh
NOTIFDIR="$XDG_CONFIG_HOME"/sxmo/notifications
NOTIFDIR="$XDG_DATA_HOME"/sxmo/notifications
# Takes 4 args:
# (1) the filepath of the notification to write (or random to generate a random id)
@ -22,4 +22,4 @@ writenotification() {
}
[ "$#" -lt 4 ] && echo "Need >=4 args to create a notification" && exit 1
writenotification
writenotification