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
|
|
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 : 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 |
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.
|
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 ! |
Subscription date : 26 October 2008
Messages : 1904
|
Eduardo could i request as well a plugin ? |
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. |
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. :¬) |
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!) |
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.
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! |
|