4
# This script can be used to automatically add
5
# subscriptions to Liferea. Just supply a valid
6
# and correctly escaped feed URL as parameter.
9
echo "Wrong parameter count!"
11
echo "Syntax: $0 <feed URL>"
18
if ! which dbus-send >/dev/null 2>&1; then
19
echo "Unable to locate the 'dbus-send' tool."
20
echo "You need DBUS installed!"
24
if ! pgrep -x liferea >/dev/null 2>&1; then
25
echo "Liferea is not running! You need to start it first."
29
dbus-send --session --dest=org.gnome.feed.Reader /org/gnome/feed/Reader org.gnome.feed.Reader.Subscribe "string:$URL"