Location: Liferea Plugin

Discussion: Directly use Dbus ?Reported This is a featured thread

Showing 1 post

dolce.gabbana
Directly use Dbus ?
Jun 22 2007, 5:20 AM EDT | Post edited: Jun 22 2007, 5:20 AM EDT
num = liferea.feedlist_get_unread_item_count()
awn = "/usr/bin/dbus-send --session --dest=com.google.code.Awn /com/google/code/
Awn com.google.code.Awn."
name = "liferea"

if num == 0 then
cmd = string.format("%s%s string:%s", awn, "UnsetInfoByName", name)
else
cmd = string.format ("%s%s string:%s string:%s", awn, "SetInfoByName", n
ame, num)
msg = os.execute (cmd)
end
1  out of 1 found this valuable. Do you?    
Keyword tags: None

Sign in to be the first to reply.