/srv/irclogs.ubuntu.com/2010/10/19/#ayatana.txt

barnexHello01:06
barnexI'm going to write universal remote for android and I'm interested in getting information about currently played item. I've read on SoundMenu page, that there is API planned to share that information.01:08
barnexHow hard will it be to acquire that information without that API? Will it work only on ubuntu?01:09
RAOFIt's already available, and called MPRIS (if I remember correctly).01:09
RAOFUnless the implementation plan changed, of course :)01:10
barnex:-)01:10
barnexThank you.01:11
OmegaI don't think it changed.01:12
barnexIs player-item.vala the file in which soundMenu is obtaining info about currently played track?02:36
barnexoh, it isn't. nvm02:39
RAOFbarnex: Frankly, I'd just be firing up d-feet and browsing the d-bus interface for whatever media player you have installed.04:01
=== seif_ is now known as seifloty
=== seifloty is now known as seiflotfy
* hyperair wonders if he is the only one experiencing weird notify-osd bubbles12:42
hyperairthey're cropped =(12:42
Zombieffi've experienced it in Lucid for some time12:44
Zombieffdon't know why this appeared and disappeared12:44
=== Zombieff_ is now known as Zombieff
ZombieffI've already asked yesterday, but had to go. So, can anyone help me with soundmenu integration for a music player?12:55
ZombieffI couldn't find any documentation on soundmenu.12:57
kklimondaI don't think there is any13:00
klattimerkenvandine: can you run the testcase I've uploaded here https://bugs.launchpad.net/ubuntu/+source/ibus/+bug/63767114:06
ubot5Launchpad bug 637671 in ibus (Ubuntu) "ibus python 100 % cpu for ever (affected: 24, heat: 126)" [Undecided,Fix committed]14:06
klattimersee if python hit's 100% cpu usage14:06
klattimeralso go ahead and release the patch in bug https://bugs.launchpad.net/ubuntu/+source/tomboy/+bug/62774414:07
ubot5Launchpad bug 627744 in indicator-application (Ubuntu) "Tomboy note names are blank in the Application Indicator fallback menu (affected: 14, heat: 92)" [Low,New]14:07
kenvandineklattimer, sure14:10
klattimerkenvandine: the test case does hit 100% cpu usage for me, I just want to check that it's the same for both of us, with this minimal test case14:10
klattimer39 bitchin' lines of testcase14:11
kenvandineso run it and let it start the keyboard indicator?14:13
kenvandinethen just watch the load14:13
kenvandineyup... 100% load14:14
klattimeryeah14:15
klattimerso you see the output strings, the signal handler works properly14:15
klattimerbut then python goes nuts14:15
klattimer... nowhere for me to put a debug statement in here14:15
klattimer:(14:15
klattimerkenvandine: what's your bet, pygtk bug or python bug?14:17
kenvandinei would look at pygtk first14:18
klattimerkenvandine: (14:19:04) walters: klattimer: if ibus takes over SIGCHLD like that it's going to break glib's spawning code14:20
klattimer(14:19:26) walters: resolution: use glib.spawn_*14:20
klattimernice to know someone is on the ball14:20
kenvandineha14:21
kenvandineklattimer, that's interesting, i've never even considered using glib.spawn in python14:24
klattimerkenvandine: obviously, a similar reasoning to it existing in C applies to python too14:25
klattimerurgh14:25
kenvandineyeah, just in python i always just go for subprocess14:25
klattimerdude, ibus has 288 open issues on their bug tracker14:25
klattimerI doubt this will get noticed by them14:25
klattimerkenvandine: yeah, I've usually been an os.system, subprocess or popen kinda guy14:26
klattimerkenvandine: even glib.spawn is broken14:39
klattimerthe signal is the failure point14:39
klattimerbut even commenting out the signal causes it to not show preferences more than once14:40
klattimerbut the other menu items are working14:40
klattimerhang on that was just my fail14:46
klattimerinput methods don't work at all though14:46
klattimerso i think I need to debug further14:46
klattimer:(14:46
kenvandine:(14:49
klattimerkenvandine: this might be fixed by the patch I showed you yesterday14:50
klattimer哦可卡人来14时51分itchintoday14:51
klattimerheh14:51
klattimerso, that patch does appear to do the fixing14:51
klattimerexcept14:52
klattimerI can't actually change layouts via the menu :/14:52
klattimerthis is a bit weird :/14:53
Cimironoc: where are you? :)16:18
ronocCimi, working in my room16:18
ronocand you ?16:18
ronoci thought you had the day off16:18
Cimironoc: I'm about to go next to the pool16:18
ronocCimi, ah very nice16:19
Cimironoc: yeah, I'll spend it next to the pool16:19
Cimironoc: come on dude, let's go outside16:19
ronocI might go for a swim at lunchtime, that breakfast was heavy16:19
ronocCimi, I have some work to get on with, later on dude16:19
Cimironoc: I meant, working outside16:19
Cimironoc: (if wifi works)16:20
ronocCimi, i think it does but I won't be able to see the pool16:20
ronoc*by16:20
ronocCimi, i might come down soon and see if it is viable16:20
Cimironoc: cool :)16:20
Cimironoc: ok I'm going downstairs, see you later or for lunch (not much, had a heavy breakfast too)16:22
ronocCimi, grand16:22
Cimironoc: I'm going downstairs again, come one!17:50
Cimi*on!17:51
ronocCimi, okay quick swim17:51
ronocbe there in 517:51
Cimironoc: still in your room?18:05
mokmeisterHi all, I've been having problems with notes in Tomboy, followed by a synch issue, and now I'm seeing two Tom boy instances when I start up. When I remove one from the panel and hover over the other with the mouse, I see two lots of my notes on the screen. Any advice as to how I can go about resolving this issue?18:58
Cimironoc: are you still in your room?19:31
Cimironoc: I didn't see you19:31
ronocCimi: 0044796705272420:06
Cimironoc: 0039349892348120:21
ronocCimi, thx20:22
Zombieffronoc: hi, I've tried to find any documentation on soundmenu integration for a mediaplayer, but without any results. Can you help me? Should I ask questions here or in PM?21:19
ronocZombieff: hi, you should be able to find all the info you need on wiki.ubuntu.com/SoundMenu21:20
ronocthere is a client registration section21:20
ronocany questions feel free to ping me21:20
ronocZombieff, what app are you planning to integrate ?21:20
Zombieffand how do I control a player? I want to integrate Deadbeef http://deadbeef.sourceforge.net/21:21
ronocmpris221:21
Zombieffis it the only way?21:21
ronocZombieff, that is current protocol supported yes21:21
ronocZombieff, why do you think there should be multiple protocols supported ?21:22
Zombieffand soundmenu automatically detects, what application is connected?21:22
ZombieffI just ask :)21:22
ronocZombieff, have a read of the wiki, what language is your app written in ?21:22
ZombieffC and C++21:24
ronocperfect, you can use libindicate for the registration process21:24
ronocand dbus using mpris2 for communication/control21:24
ronocZombieff, ^21:29
Zombieffyes, I see21:32
Zombieffthank you21:32
Zombieffso, server.show() informs soundmenu about new player?21:34
Zombieffronoc, ^21:35
ronocZombieff, yes as long as the name of the libindicate server you create is prefixed with 'music'21:36
Zombieffand that's enough, the player just have to listen for d-bus messages?21:37
ronocZombieff, as long as the player has a dbus mpris2 interface yes21:37
Zombieffok, thx21:37
ronocno probs21:37
ronocZombieff, ping me anytime you have any questions21:38
ronocthe only app off to top of my head which registers and is written in C is Amarok21:38
ronocnearly sure Amarok is written in C/C++21:38
ronocyou should try to fetch the amarok source21:39
ronocapt-get source amarok21:39
ronocshould pull down the sound menu extension agateau worte21:39
ronocs/worte/wrote21:39
Zombieffthank you for your ambition to help :)21:46
Zombieff*for21:47

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!