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:
parent
65f18565f1
commit
e11cf9e523
12 changed files with 16 additions and 16 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env sh
|
||||
trap gracefulexit INT TERM
|
||||
WIN=$(xdotool getwindowfocus)
|
||||
NOTIFDIR="$XDG_CONFIG_HOME"/sxmo/notifications
|
||||
NOTIFDIR="$XDG_DATA_HOME"/sxmo/notifications
|
||||
|
||||
gracefulexit() {
|
||||
echo "Gracefully exiting $0"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
# Prints in output format: "number: contact"
|
||||
|
||||
CONTACTSFILE="$XDG_CONFIG_HOME"/sxmo/contacts.tsv
|
||||
LOGFILE="$XDG_CONFIG_HOME"/sxmo/modem/modemlog.tsv
|
||||
LOGFILE="$XDG_DATA_HOME"/sxmo/modem/modemlog.tsv
|
||||
|
||||
contacts() {
|
||||
grep -q . "$CONTACTSFILE" || echo " " > "$CONTACTSFILE"
|
||||
|
|
|
@ -8,7 +8,7 @@ update() {
|
|||
if pgrep -f sxmo_modemcall.sh; then
|
||||
NOWS="$(date +"%s")"
|
||||
CALLSTARTS="$(date +"%s" -d "$(
|
||||
grep -aE 'call_start|call_pickup' "$XDG_CONFIG_HOME"/sxmo/modem/modemlog.tsv |
|
||||
grep -aE 'call_start|call_pickup' "$XDG_DATA_HOME"/sxmo/modem/modemlog.tsv |
|
||||
tail -n1 |
|
||||
cut -f1
|
||||
)")"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue