From 422d106fbab5505f3810fa845f4f71547c7a4332 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 8 Apr 2020 17:21:40 -0400 Subject: assume default values if xdg dirs not set --- .local/bin/queueandnotify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local/bin/queueandnotify') diff --git a/.local/bin/queueandnotify b/.local/bin/queueandnotify index 24746c8..002c2a3 100755 --- a/.local/bin/queueandnotify +++ b/.local/bin/queueandnotify @@ -3,7 +3,7 @@ # Podboat sucks. This script replaces it. # It reads the newsboat queue, queuing downloads with taskspooler. # It also removes the junk from extentions. -queuefile="$XDG_DATA_HOME/newsboat/queue" +queuefile="${XDG_DATA_HOME:$HOME/.local/share}/newsboat/queue" while read -r line; do [ -z "$line" ] && continue -- cgit v1.3.1