Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets [Request] Liferea Plugin
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] [Request] Liferea Plugin
Guest English 16 Guest [Read]
30 April 2011 à 16:00

Guest, Tuesday 29 March 2011 à 17:18

Hi!
I'd like to ask for a plugin that would show the number of new or unread messages in liferea. They can be checked through DBus:

Number of New Messages:
dbus-send --print-reply --dest=org.gnome.feed.Reader /org/gnome/feed/Reader org.gnome.feed.Reader.GetNewItems


Number of Unread Messages:
dbus-send --print-reply --dest=org.gnome.feed.Reader /org/gnome/feed/Reader org.gnome.feed.Reader.GetNewItems


There's also some information here:
http://liferea.sourceforge.net/dbus.htm
that could be used for example to set the online state.

Thank you for your time!
Cheers!

fabounet, Wednesday 30 March 2011 à 17:37


Subscription date : 30 November 2007
Messages : 17118
ok, I didn't know this program but that's a good idea anyway
maybe you know some language like Python, Ruby or Bash ?

http://www.glx-dock.org/ww_page.php?p=Documentation&lang=en#4-Write%20simply%20an%20applet%20in%20your%20favorite%20language

Guest, Thursday 31 March 2011 à 20:24

I know some Bash, but I think this is still too much for me
I managed to write a small script that shows the number of unread messages and animates the icon when there's a new one through the dbus interface. I tried to make an applet out of it, but I couldn't figure it out. Is there any existing applet written in Bash to use as an example?

matttbe, Thursday 31 March 2011 à 21:58


Subscription date : 24 January 2009
Messages : 12573
Yes, you can have a look to the 'demo_bash' applet and these two applets: calendar and windowskiller applets (http://www.glx-dock.org/mc_applets.php)

Eduardo Mucelli, Tuesday 12 April 2011 à 20:04


Subscription date : 05 August 2009
Messages : 285
I can do that.

matttbe, Tuesday 12 April 2011 à 22:33


Subscription date : 24 January 2009
Messages : 12573
Great, good idea

Eduardo Mucelli, Wednesday 13 April 2011 à 15:15


Subscription date : 05 August 2009
Messages : 285
Hello again. I finished the very first version of the applet. The description is the following: This applet creates an interface with Liferea feed reader. Directly from the applet you can show the number of unread, or new messages, subscribe feeds, and change the status between online, and offline. Through the configuration screen you can choose to show the number of unread, or new messages. Right-click, and change the status directly from the menu. Middle-click, and enter the feed URL to be subscribed. Left-click controls the Liferea window and it seems like a Launcher.

Fabounet: ShowAppli works well when the application window can be focuse, e.g, when it is not hidden. But seems not work when the application window is hidden (like in this cases when there is just the icon in the notification bar). As soon as I push the code I will ask you to check this.

http://dl.dropbox.com/u/1433190/Liferea/liferea.png

fabounet, Wednesday 13 April 2011 à 16:40


Subscription date : 30 November 2007
Messages : 17118
indeed, because then the window does not exist any more (and I believe that the icon doesn't have an indicator any more).

so maybe we can try to launch the command, this may pop the window up; can you try that ?
I think you can get the Xid of the icon, and if it's 0, then it means the window doesn't exist (systray).

thanks for this new applet !

taiebot65, Wednesday 13 April 2011 à 19:09


Subscription date : 26 October 2008
Messages : 1904
Eduardo could i request as well a plugin ?

Eduardo Mucelli, Wednesday 13 April 2011 à 23:25


Subscription date : 05 August 2009
Messages : 285
fabounet :
indeed, because then the window does not exist any more (and I believe that the icon doesn't have an indicator any more).

so maybe we can try to launch the command, this may pop the window up; can you try that ?
I think you can get the Xid of the icon, and if it's 0, then it means the window doesn't exist (systray).

thanks for this new applet !


Worked like a charm catching the exception (the same way I was doing), and calling the application using subprocess, even thou was not necessary to check the Xid. Thanks for the suggestion.

Eduardo Mucelli, Wednesday 13 April 2011 à 23:25


Subscription date : 05 August 2009
Messages : 285
taiebot65 :
Eduardo could i request as well a plugin ?


Sure, but needs to be something simple because I'm newbie. :¬)

Eduardo Mucelli, Wednesday 13 April 2011 à 23:48


Subscription date : 05 August 2009
Messages : 285
Done. The code is there. Enjoy, Guest. :¬)

fabounet, Thursday 14 April 2011 à 10:46


Subscription date : 30 November 2007
Messages : 17118
Sure, but needs to be something simple because I'm newbie

allow me to laugh loudly !

matttbe, Thursday 14 April 2011 à 11:16


Subscription date : 24 January 2009
Messages : 12573
Added on bzr, our server and there: http://www.glx-dock.org/mc_album.php?a=6

Thank you Eduardo!

PS: I just changed the icon because your image was too small and to have the same design as other applets in cairo-dock-plug-ins (but you can propose another icon if you want!)

Eduardo Mucelli, Thursday 14 April 2011 à 12:59


Subscription date : 05 August 2009
Messages : 285
matttbe Ok, I will push the preview image that I forgot, but I guess it will be necessary to change the icon used in the page, since it is the older one.

edit: Done. The preview is this one here.
http://dl.dropbox.com/u/1433190/Liferea/preview

edit2: there is one typo in the page describing the applet, instead of "This applets", just "This applet". :¬)

matttbe, Thursday 14 April 2011 à 13:16


Subscription date : 24 January 2009
Messages : 12573
Thank you

Updated!

Guest, Saturday 30 April 2011 à 16:00

Eduardo Mucelli :
Done. The code is there. Enjoy, Guest. :¬)


Thank you!!
I've just install it, and it work great!

Applets | Applets

Subjects Author Language Messages Last message
[Locked] [Request] Liferea Plugin
Guest English 16 Guest [Read]
30 April 2011 à 16:00


Glx-Dock / Cairo-Dock List of forums Applets | Applets [Request] Liferea Plugin Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.