/srv/irclogs.ubuntu.com/2014/01/18/#xubuntu-devel.txt

ali1234indicators are special stand-alone processes00:00
ali1234what apps do, is talk to those processes00:00
ali1234if the app wants to just make a generic icon, like a old-style notification icon, then it has to talk to indicator-application00:00
ali1234if the app is a music player, then it has to go through indicator-sound, which present information in a different way00:01
ali1234and same for messaging apps00:01
ali1234there's nothing to prevent an app from creating both a notification icon and an indicator-application icon00:02
ali1234in fact pidgin does this, if you tell it to00:02
ali1234so the way that indicators used to work is that the panel plugin loads the .so file, and the .so file goes and asks for the indicator service on dbus, then dbus will run the backend process (which is just a normal executable)00:03
elfyok00:03
elfytha makes sense to me 00:03
ali1234that is changed in trusty - now the panel/desktop environment is responsible for launching the backend. it won't happen automatically00:03
ali1234there are two problems with this00:04
elfyand this is the tedg things ?00:04
ali1234one is that stuff like lightdm-gtk-greeter doesn't even know it has to do this00:04
ali1234the other is related to dbus activation00:04
ali1234previously, dbus would run the backed when something asked for the service00:04
ali1234so as soon as the backend started up, something was instantly ready to use the provided dbus service00:05
ali1234then the backend would quit when there were no more watchers of the service00:05
ali1234under the new model there is no guarantee that there will be something waiting to use the dbus service when the backend starts, so the backends often just instaquit00:06
elfyok - that's logical 00:06
elfyright00:06
ali1234yes, this is the tedg thing00:06
elfyok - so I wonder with clementine, I tell it to use desktop notification - I assume then I would just get left with the one in ind-panle00:07
ali1234"desktop notification" means the notification area00:07
elfyapprently not00:07
ali1234it might also mean notifications as in the pop up bubbles00:08
elfyyea00:08
ali1234those have nothing at all to do with either the notification area or indicators, it's just a naming collision00:08
elfyok - bit more with it now00:08
elfythanks ali1234 00:08
elfyyep - got that collision00:08
elfygood job I've not been called the tech lead I guess LOL00:09
elfymy 'biggest' problem is I know what you are all talking in general terms, but it doesn't actually mean much specifically 00:10
ali1234the whole indicator thing is pretty confusing really - there are many parts to it, plus it uses dbus heavily00:11
elfythough in truth the biggest problem is most people just test it and carry on without telling us :)00:11
ali1234but the worst thing is since this is a race condition, it doesn't affect everyone00:12
ali1234it just depends how quickly your computer boots up00:12
elfyyep - I can understand that 00:12
elfynot 'so' fast here 00:12
ali1234there's about 20 different bugs about it on LP and nobody knows which are duplicates or what00:12
elfyjust faster than the last one :)00:12
ali1234becuse there was a bug on saucy that had a similar effect (missing indicators) but it got fixed00:13
elfyali1234: LOL - there are about 100k bugs like that :)00:13
ali1234this one is particularly bad because it seems like me and tedg are the only two people who actually understand it :)00:13
elfy:)00:13
ali1234so there's a lot of people complaining about this, but spread over many bugs00:14
elfyall I can say is I'm glad you're about :)00:14
ali1234anyway, i sent a patch to fix this, but tedg is still reworking the whole codebase, so it's all still up in the air00:14
elfyali1234: yea - I see that, understand that from a user position- but most either come into here from a different desktop or from windows00:14
ali1234until he finishes with that we can't do much00:15
elfyand those last lot just assume a reinstall fixes it 00:15
ali1234haha yeah00:15
elfyyep00:15
ali1234that never works on linux, ever00:15
elfywe're in the position of really being bottom heavy here 00:15
ali1234bottom heavy?00:15
elfyali1234: agreed with that ;)00:15
elfyyep - lots of people at the bottom pushing up - but not so many at the top that can take the lid of the kettle to let the pressure out00:16
ali1234well, if you ask me, the problem is that debian packaging is too damn hard00:16
* elfy is a physical engineeer - work with wire and stuff - will wire you a jumbo jet00:17
ali1234i've tried to learn it countless times, i don't think i will ever understand it00:17
elfyali1234: it's all dutch to me :)00:17
ali1234but, as a user, apt-get is the best00:17
ali1234it's a tricky one00:18
elfyI never created games with commodores and the like00:18
elfyhad kids00:18
elfyapt-get is best 00:18
elfybut00:18
elfyI'd love it with the rpm delta thing00:18
elfywhich I got used to between unity in 11.04(ish) and coming to xubuntu00:18
elfythat was just great thing00:19
ali1234from a "making packages" PoV, gentoo ebuilds are the easiest to create i think00:19
elfyI know there is an apt one - but it never really worked for me 00:19
ali1234but emerge just sucks for the users00:19
* elfy has no idea - I want a system I can install, link music to, reboot - job done00:20
drcah...linux from scratch.00:20
elfythough I have done it - just really, no thanks :)00:20
* elfy prefers building planes from that ... 00:21
elfyali1234: thanks for all that - sorted it out a bit for me :)00:21
elfythe current question really is - how to get people that have some interest involved in the sponsor queue00:23
elfywhich 'could' be a managiing situation rather than a coding one - in which case I'd be interested00:23
elfy/no idea though if it is or isn't00:24
ali1234if i were the boss of xubuntu i'd just say "screw it, xubuntu is now a ppa, we ignore ubuntu release schedule"00:24
ali1234and just put out ISOs with whatever we feel like00:25
Unit193So, deluge indicator works fine in Ubuntu (so I'm shown and told), but looks like http://i.imgur.com/UqdLbnJ.png in Xubuntu (Predating saucy, saucy, and trusty+gtk3)...10:10
Unit193http://i.imgur.com/jOuuf2h.png is what it should look like.10:12
knomeUnit193, heh.10:25
Unit193Finally went to deluge about it, and he shows me it working in Ubuntu.  Sooo, no idea.10:26
brainwashUnit193: looks like it falls back to notification icon10:32
brainwashdid you apply the workaround?10:32
Unit193Workaround?  And no, that's an indicator, trayicon works fine.10:32
brainwashhttps://wiki.ubuntu.com/Xubuntu/Roadmap/Specifications/Trusty/Gtk3Indicators10:33
brainwash"Indicators may fail to load"10:33
Unit193No, haven't needed to as they've been working fine... notification icon == tray icon?10:35
brainwashyes10:35
brainwashindicators are special10:36
Unit193Then indicators are working fine, I know the difference. :P  (Also, it'd work much better if it were falling back, and the problem happens here on saucy.)10:36
brainwashI would like to test it myself... but something broke wrapper-2.0 (xfce4-indicator-plugin) over night10:36
brainwashmaybe caused by the final move to gnome 3.1010:37
Unit193My indicator-application is the one from saucy though, in the trusty vm.10:38
brainwashor by one of my debug additions10:38
Unit193brainwash: But you'll be able to take a look later on perhaps?11:04
brainwashUnit193: yes, the menu looks different in unity and xubuntu11:19
damiankhi14:01
ali1234Unit193: the tray menu and indicator both load exactly the same glade file16:02
brainwashbut the strings are different and some icons are hidden too in unity/gnome16:06
ali1234never the less, it is the same menu object, from the same glade file16:09
brainwashyes, you said that already :)16:10
brainwashdid the strings got translated?16:11
ali1234no16:20
ali1234i think i see the problem16:20
ali1234however i don't understand why it works in unity16:20
ali1234this could be a bug in the panel plugin16:21
brainwashvery likely, the normal try icon menu looks ok16:22
brainwashtray16:22
ali1234right, fixed it16:23
brainwashyet another bug which you were able to fix :)16:24
ali1234are you really sure this works in unity?16:25
ali1234i don't see how that is even possible16:25
brainwashit looked ok in unity and gnome16:27
michel_just tried the trusty daily build. why is iBus used for keyboard layouts instead of xkb?16:38
slickymasterafternoon all16:54
ali1234brainwash: Unit193: finally tested in unity. same bug, as i expected19:13
ali1234so this really is a bug in deluge19:13
ali1234http://imagebin.org/28740219:16
ali1234the reason this happens is because of the lines in the glade file like this:19:18
ali1234<property name="stock">gtk-media-pause</property>19:18
ali1234That is on the "Pause All" button19:18
ali1234 /menu item19:18
ali1234when that property is set, the label gets changed to "Pause"19:18
ali1234the fix is simply to remove all those "stock" properties19:19
ali1234i suppose it might be consideed a bug in indicator-application or somewhere else in that stack19:20
Unit193sudo sed '/name="stock"/d' tray_menu.glade -i fixed it, weird.19:24
ali1234i don't understand the purpose of those lines in the glade, nor do i understand how deluge is setting the custom icons on the upload/download limit menus19:26
Unit193Perhaps glade/torrent_menu.glade:215 and systemtray.py:146?19:42
ali1234no19:49
ali1234it's just 14619:50
Unit193Bah, copied the wrong one, meant the GtkImage id in tray_menu, but I don't know glade.19:51
Unit193But OK, anywho it's a deluge bug.19:52
ali1234still could be indicators20:03
ali1234here's a test case demonstrating the bug: http://paste.ubuntu.com/6776134/20:10
ali1234i'm beginning to think that it's a bug indicators really20:14
ali1234i mean it seems reasonable to expect the same glade to look the same in both places20:14
Unit193And the glade has been the same for "years"20:14
ali1234of course20:14
ali1234hmm there's a changelog item "Fix custom labels on stock items."20:21
ali1234bug 52004820:21
ubottubug 520048 in indicator-application (Ubuntu) "Custom labels in GtkActionEntries aren't resepected by Application Indicators C-bindings" [Low,Fix released] https://launchpad.net/bugs/52004820:21
ali1234the file that patch applies to doesn't even exist any more20:24
ali1234i'd say this is a regression20:24
ali1234ok, reproduced it with no glade weirdness20:38
ali1234bug 127048620:44
ubottubug 1270486 in indicator-application (Ubuntu) "indicator-application doesn't use the menu item's label if it has a stock icon" [Undecided,New] https://launchpad.net/bugs/127048620:44
Unit193Wow, thanks very much!20:45
brainwashhow does unity work around this bug?20:46
ali1234it doesn't20:46
ali1234deluge is broken there too20:46
ali1234don't even try to tell me it isn't20:46
ali1234i just spent two hours installing and upgrading VMs to test it20:46
brainwashthe menu looked ok20:46
brainwashno play button and correct label "resume all"20:47
brainwashfor example20:47
holsteini usually try as a different user. removing my config from the equation20:48
brainwashhere is the screenshot linked before in this channel20:48
brainwashhttp://i.imgur.com/jOuuf2h.png20:48
brainwashit looks like this in unity/gnome20:48
ali1234maybe, it might be an old version20:48
ali1234it's broken in trusty and saucy20:48
brainwashtrusty20:48
holsteini would also try something without forced 3d20:48
ali1234brainwash: try the testcase if you don't believe me...20:49
brainwashok, but let me try it20:49
holsteinsorry.. wrong channel.. though, it happens to read so relevantly ;)20:49
Unit193brainwash, ali1234: That was precise.20:51
ali1234the screenshot? yeah, this bug has been fixed before...20:51
brainwashso testcase indicators shows "hello"21:01
brainwashindicator21:01
brainwashali1234: unity21:02
ali1234ಠ_ಠ21:02
brainwashso something wrong with xfce4-indicator-plugin?21:03
ali1234no21:06
ali1234when you see "hello" you don't see the pause icon right?21:06
brainwashright21:06
ali1234thus, you haven't really broken the testcase21:07
ali1234te idea is to see the pause icon and have the label read "hello" at the same time21:07
ali1234i'm not sure why the icon isn't there21:07
brainwashnow I get it21:07
brainwashwe want both.. icon and correct label :)21:08
ali1234yeah21:11
ali1234so you need gnome-icon-theme-full installed to have that icon installed21:11
ali1234if not installed, gtk will ignore it -> so appindicator bug won't be triggered21:11
ali1234this is useful tho, i'll do another test case i suppose, with something installed by default21:11
brainwashgnome-icon-theme-full is installed21:13
brainwasheven selected21:14
brainwashbut still no icon21:14
Unit193I get the icon, but not the text "hello", I do not have -full but have humanity and gnome-icon-theme.21:16
brainwashUnit193: can you build your xfdesktop package with this patch applied? https://bugzilla.xfce.org/show_bug.cgi?id=1060521:18
ubottubugzilla.xfce.org bug 10605 in General "Desktop icons/labels are not properly themed after login" [Normal,New]21:18
brainwashwe need to test it, elfy is affected too21:19
Unit193It's by eric, does it really need any testing? ;)21:20
Unit193Sure, should apply.21:21
brainwashthanks21:21
ali1234i am looking for an icon where this works out the box...21:23
ali1234hmm21:28
ali1234so this really does bevahe differently on trusty21:28
ali1234but the glade testcase is still broken21:28
ali1234brainwash try this: https://bugs.launchpad.net/ubuntu/+source/indicator-application/+bug/1270486/+attachment/3951740/+files/testcase2.py21:30
ubottuUbuntu bug 1270486 in indicator-application (Ubuntu) "indicator-application doesn't use the menu item's label if it has a stock icon" [Undecided,Confirmed]21:30
ali1234it might be a gtk2/3 thing21:32
brainwashtestcase 2: pause icon + "pause" label21:34
ali1234right, as expected21:34
Unit193Dang, uploaded to wrong ppa. >_<21:51
=== gry is now known as Guest38163
Unit193So how do you even see if it's gone?  It didn't happen every time, and restarting xfdesktop won't help as it "fixed" the problem before. :P22:18
ali1234eric said he knew what was causing it22:20
Unit193brainwash: update.22:21
brainwashUnit193: thank you :)22:30
brainwashit usually happens after you log in22:30
Unit193Yeah, had it on this desktop, restarted lightdm resterday (or, restarted dbus which crashed lightdm but left X hanging.)22:31
brainwashbefore updating I'll try to delay xfsettingsd to force this bug22:31
brainwashso I'll have a 100% testcase for the patch22:31
Unit193Wow, xmir actually works on the one desktop now, quite amazing.  (After a slight xorg crash and fall back to lightdm)22:34
brainwashit might work almost perfectly, but without a hardware cursor and dedicated support by the mir guys I feel like we are going nowhere22:41
Unit193(This should have gone to -offtopic, whoops) No, I mean it was real bad before, http://unit193.net/mir/DSCF3866.AVI22:42
brainwashxmir talk is always welcome :D22:43
Unit193(I don't like -devel, so tend to migrate to -offtopic a lot)22:43
Unit193Hah, xonotic took it down. :P22:49
Unit193brainwash: Patch didn't work for me.22:55
brainwashsame here23:05
Unit193Can poke eric here, in #xfce-dev or bug. :P23:06
brainwasheric_the_idiot: the patch does not fix the xfdesktop issue (10605)23:24
brainwashxfsettingsd is like the first thing to start on session login23:25
brainwashor isn't it?23:26
brainwashxfce4-panel simply refreshes its appearance after xfsettingsd is finally up and running23:30
brainwashxfdesktop does not23:30
brainwashadded a 5sec delay23:31
ali1234yes, normally things do refresh when the settings daemon starts/stops, which is odd23:33
ali1234maybe it is something different about the way it is initiallly launched23:33
brainwashnow I got it, so xfdesktop does actually wait for xfwm4 and now additionally for xfsettingsd (patch)23:35
damiankhi brainwash23:35
brainwashbut there is a 5sec timeout23:35
brainwashthen xfdesktop will start23:36
brainwashdespite the status of xfwm4/xfsettingd23:36
brainwashhey damiank 23:37
ali1234yeah, and it always times out23:37
damianki have a lot of spare time this weekend, so i'm downloading today daily to test23:37
brainwashali1234: so we got two issues here.. the 5sec timeout and the missing theme refresh23:38
ali1234i think what might be happening is that xfdesktop is waiting for xfwm, but xfwm is waiting for xfdesktop23:39
brainwashwoot23:39
brainwash:D23:39
ali1234this would be a good candidate for some syslog debugging, to log all the times that everything gets started23:40
ali1234i just so happen to have a shim that will do this without patching everything23:40
ali1234http://paste.ubuntu.com/6777124/23:40
ali1234rename xfdesktop to xfdesktop.real23:41
ali1234copy the built shim to where xfdesktop was23:41
brainwashah nice23:41
ali1234do the same for xfwm and xfsettingsd23:41
ali1234it automatically knows what to run23:41
brainwashok23:41
ali1234and it will log everything23:41
brainwashI'll test it tomorrow23:43
brainwashhere's the bug report + upstream report in case you want to add some findings23:43
brainwashbug 127026123:44
ubottubug 1270261 in xfdesktop4 (Ubuntu) "Desktop items have background" [Undecided,Confirmed] https://launchpad.net/bugs/127026123:44
brainwashgood night23:44

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