Problems at use | Problèmes à l'utilisation
Guest, Monday 24 May 2010 à 11:26
|
|
|
Hi,
I have liferea launcher in glx-dock 2.1.3-9(fedora 13), and to have information of unread items I have in crontab:
DISPLAY=:0.0
* * * * * ~/liferea_cairodock.sh > /dev/null 2>&1
liferea_cairodock.sh#!/usr/bin/env bash
ps=`dbus-send --session --print-reply=literal --type=method_call --dest=org.gnome.feed.Reader /org/gnome/feed/Reader org.gnome.feed.Reader.GetUnreadItems`
num=${ps##* }
if [ "$num" -gt "0" ]; then
dbus-send --session --dest=org.cairodock.CairoDock /org/cairodock/CairoDock org.cairodock.CairoDock.SetQuickInfo string:$num string:none string:liferea string:none
elif [ "$num" -eq "0" ]; then
dbus-send --session --dest=org.cairodock.CairoDock /org/cairodock/CairoDock org.cairodock.CairoDock.SetQuickInfo string: string:none string:liferea string:none
fi
The question is, how to effectively unset SetQuickInfo when there are no unread items, because the hack I use, an empty string, will leave this:
regards |
Guest, Monday 24 May 2010 à 11:34
|
|
|
For comparability, this is when there is one unread item:
|
Subscription date : 29 November 2007
Messages : 7408
|
@Fabounet : BTW, you can see the "1" is not centered |
Guest, Monday 24 May 2010 à 12:46
|
|
|
It's for Fabounet then.
I notice it too, but this is because of the theme or font, isn't it? |
Subscription date : 29 November 2007
Messages : 7408
|
nope ... it's because the label aren't centered at all |
Subscription date : 30 November 2007
Messages : 17118
|
I've forgotten this case in the API, I'll add it
so passing a null string will remove the quick-info
same for the labels
PS : the test is centered, it depends on the font. |
Subscription date : 29 November 2007
Messages : 7408
|
It could be better with a larger bubble |
Subscription date : 30 November 2007
Messages : 17118
|
ok, I'll set a minimum size |
Problems at use | Problèmes à l'utilisation
|