Skip to content
July 23, 2009 / Pratik

I Don’t Want To Leave KDE Behind

A while back I made BashPodder just use Notify OSD. I recently thought just using Notify OSD is really out of place in KDE, when normal KDE applications use KDE’s notification system. Then I made BashPodder automatically use the notification system for KDE or GNOME when it’s appropriate.

In Gnome
Notify OSD Screenshot

In KDE
KDE Notification Screenshot

If you want to use Gnome’s notifications system or Canonical’s Notify OSD (the one Ubuntu uses) you still need notify-send installed. (See the previous post about making BashPodder use Notify OSD for more information.)

I just added the lines in the box below to the end of bashpodder.shell
If you added the line from previous post about making BashPodder use Notify OSD you need to replace that line calling notify-send in bashpodder.shell with these lines.

if [ $DESKTOP_SESSION == 'kde' ]; then
    kdialog --title="bashpodder.shell" --passivepopup "bashpodder.shell has finished downloading the podcasts." 10
elif [ $DESKTOP_SESSION == 'gnome' ]; then
    notify-send --icon="terminal" "bashpodder.shell" "bashpodder.shell has finished downloading the podcasts."
fi

It won’t work if you use GNU Screen and you start downloading in one desktop environment, and then you change to the other desktop environment while it finishes.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: