/srv/irclogs.ubuntu.com/2012/11/11/#kubuntu-devel.txt

shadeslayerI'm not entirely sure how this is happening, but does anyone have kdelibs5 on their systems? kubuntu-desktop doesn't pull it in I think02:05
JontheEchidnakdelibs5 is a transitional package02:10
JontheEchidnaor rather, it used to be. doesn't exist anymore02:12
jlittleover on KFN it's been suggested to drop in here to say thanks!  Kubuntu is fantastic, and really appreciated.05:00
ScottKjlittle: Thanks.05:38
=== Jonno_ is now known as Jon_Severinsson
=== Jon_Severinsson is now known as Jonno_
Martiini1. How do i delete all my submitted bugs on kde bugtracker? 2. how do i delete kde bugtracker account, please.  https://bugs.kde.org/userprefs.cgi09:46
yofel_Martiini: if that's possible someone in #kde-sysadmin should know how you can delete your account09:53
apacheloggerrdieter: is that the thing that shows stuff via a kio slave that generates html?12:48
apacheloggeroh yes, I find that totally scary, for reasons like connectDCOPSignal ^^12:49
apacheloggerand the html one of course12:49
apacheloggerScottK: bug 1040259 actually breaks things?12:51
ubottuLaunchpad bug 1040259 in skype-wrapper "FFE: libmessaging-menu transitions for quantal" [High,In progress] https://launchpad.net/bugs/104025912:51
apacheloggerScottK, JontheEchidna, Riddell: thoughts on bug 107753813:19
ubottuLaunchpad bug 1077538 in KdeSudo "Entered kdesudo apt-get -f install in Konsole. kubuntu 12.10" [Low,Triaged] https://launchpad.net/bugs/107753813:19
* apachelogger thinks his kcm has too many frames :@13:44
apacheloggershould have done it in qml, JontheEchidna was right after all -.-13:44
apacheloggerJontheEchidna: ping14:28
BluesKajHi all15:14
CQhello, I upgraded to quantal and can't log in, it jumps back to the login screen. Logging in on a console works fine, home is mounted... any ideas?15:43
apacheloggerfor support please use #kubuntu15:44
CQSame thing happens with xfce and xubuntu-desktop and I"ve tried --reinstall'ing kdm and kubuntu-desktop15:44
apacheloggermost likely something with your graphics driver is broken though, that behavior sounds like X is crashing15:44
JontheEchidnaapachelogger: pong15:44
CQapachelogger: nobody answers there so I figured I'd try here before filing a bug15:44
apacheloggerJontheEchidna: now I forgot it all :P15:45
CQthe X logs show nothing weird though, I've looked there15:45
apacheloggerJontheEchidna: wouldn't it be better for kubuntu-notification-helper to actually use qapt rather than using qapt-batch?15:45
apacheloggerJontheEchidna: also is there a way to track when qapt is doing stuff?15:45
apacheloggerlatter would be to prevent reboot notifications from popping up while stuff is still being installed15:46
apacheloggerunless you have a better idea on how to achieve that15:46
apacheloggerthe update-notifier crap is somewhat underdocumented -.-15:46
JontheEchidnaheh15:46
JontheEchidnaSo since k-n-h is a KDED module, it in theory should do as little as possible. That probably shouldn't include MMap-ing a 42 MiB cache file and spending 2-5 seconds (depending on how fast your computer is) building dependency caches15:48
apacheloggeroh, that is a good point15:48
JontheEchidnadelegating it to a detached process seems to be the proper way (tm) to do it15:49
JontheEchidnaas for tracking15:49
JontheEchidnathe best way would probably be to monitor the lock file in /var/lib/dpkg/15:51
JontheEchidnasince a process installing something will hold that lock until they are finished15:51
JontheEchidnaperhaps k-n-h should try to (briefly) grab it when it wants to do reboot notify, and only notify when it can grab it and release it15:52
apacheloggerthat sounds only remoetly spooky :P15:52
JontheEchidnawelcome to 1998 :P15:52
JontheEchidnathe good thing about that method is that it will work with anything using apt/dpkg, not just custom signals the qaptworker could emit15:53
JontheEchidna& also reboot notify stuff should probably get moved to the muon-notifier KDED15:54
apacheloggerso should hooks then :P15:54
apacheloggerthey are part of the same 'spec'15:54
apacheloggeralso they are both in ubuntu's update-notifier thing15:54
JontheEchidnayeah15:55
JontheEchidnathat actually only leaves k-n-h as a plugin installation notify thingy15:55
apacheloggerincidentially that makes me then wonder whether the knh should remain a kded15:55
apacheloggerJontheEchidna: apport too15:55
JontheEchidnaoh yeah15:55
apacheloggeralthough that one is broken beyond repair anyway15:55
JontheEchidnathat silly thing15:55
apacheloggerinstall could be a script though15:55
apacheloggeras that is on-demand anyway15:56
apacheloggerwell script/tinyapp15:56
JontheEchidnain-GUI notifications (using KMessageWidget) would probably be better than popping up a tray icon/notification15:56
apacheloggerobersavtion of the day15:56
apachelogger/var/lib/update-notifier/dpkg-run-stamp is not actually touched when dpkg runs :P15:56
apacheloggerJontheEchidna: hm... would require some serious meta widgeting going on15:57
apacheloggereven then you either patch that into kdecore or have to also patch cmakelists15:58
apachelogger:S15:58
JontheEchidnayou'd have to patch each of the apps that wanted notifications for installing stuff to have a KMessageWidget in their main gui15:58
JontheEchidnaso actually that's a bit invasive...15:58
apachelogger~15:58
apacheloggerultimately it mostly amounts to KMW(visual parent)15:59
apacheloggermost of the time visual parent is a layout, so you can hide most of the invasiveness15:59
apacheloggerJontheEchidna: http://paste.kde.org/603950/16:07
JontheEchidnaapachelogger: reboot on kde major version change?16:08
apacheloggerany upstream version16:08
JontheEchidnaah, k16:08
apacheloggerIIRC bug 553182 was primarily about konqueror going all ninja on the user because it could not load the file plugin anymore in a minor update16:09
ubottuLaunchpad bug 553182 in kde4libs (Ubuntu) "kdelibs point updates should suggest reboot" [Low,Triaged] https://launchpad.net/bugs/55318216:09
apacheloggerminor/patch16:09
apachelogger(file plugin = file kio slave)16:09
* apachelogger needs something to eat :O16:09
apacheloggerJontheEchidna: also I hope the muon notifier features better code16:10
apacheloggerthe module init code should have been refactored 3 times over16:10
JontheEchidnamuon notifier is based on that Event class :P16:10
apacheloggerline 8 of the patch being where it was made me go :'(16:10
JontheEchidnalol16:11
apacheloggerJontheEchidna: well,my architecture is fine :P16:11
apacheloggeronly the implementation is spooky16:11
apacheloggeralso after having dealt with overload problems in phonon I'd not overload the event base functions/slots themselfs anymore but provide stubs that can be overloaded16:14
apacheloggerthe event functions ought to then call the stub16:14
apacheloggerthus forcing the event code always to be executed prevent people from forgetting super::func16:15
apacheloggeralways fun to look at old code ^^16:15
JontheEchidna^^16:15
apacheloggernotify->setPixmap(KIcon(icon).pixmap(NOTIFICATION_ICON_SIZE));16:16
apacheloggerknotification api is somewhat fail16:16
apacheloggeroh now I forgot the lock file16:34
apacheloggermeh16:34
apacheloggerJontheEchidna: did I mention that we then need to keep checking?16:34
freinhardhi!16:34
apacheloggerahoy freinhard16:35
freinhardcan one interface muon over dbus to trigger package installations?16:35
freinhard(easily?)16:35
apacheloggerdepends on whether it is a local deb file or not I think16:36
freinhardbackground: i once started a patch for kde-telepathy to install additional packages, but that one was depending on packagekit which kubuntu doesn't use16:36
freinhardno local file, something from an existing repository16:37
apacheloggerIMHO it would be better to create a plugin infrastructure 16:37
freinhardwere talking about packages like telepathy-gabble, telepathy-haze which are not part of kde-telepathy16:38
apacheloggerwell16:38
apacheloggerfreinhard: qapt-batch is your friend16:38
freinhardit's the same situation like with amarok: basic functionality is there but if you wan't to play mp3's install some more packages16:39
apacheloggerI am still not sure this is a durable implemenation16:39
freinhardthe one amarok uses?16:39
apacheloggernah, yours16:39
apacheloggerthen again I do not know the detaisl of your approach16:40
apacheloggerbut...16:40
freinhardat the moment there is none for kubuntu, i only did an proof of concept implementation for packagekit16:40
apacheloggerphonon/gstreamer uses a distribution provided binary to install stuff, so it only calls gstreamer-codec-install with a well defined set of arguments and gstreamer-codec-install does all the distribution dependent work16:41
freinharduah16:41
freinhardthere should.. there needs to be a desktop standard16:42
freinhardthnks for the hint. i'll take a look at gstreamer-codec-install16:42
apacheloggerfreinhard: note that this is tricky to do on a global scale16:42
apacheloggerfoo in opensuse may be called bar in debian16:42
freinhardkate stays kate, kopete stays kopete. no need for a 100% solution if a simple one works for 99%16:43
apacheloggerfreinhard: systemsettings or system-settings? ;)16:44
freinhardpackagers... ;)16:45
apacheloggerjust saying16:45
freinhardi know.. the other way would be to do it the microsoft way16:46
freinhardjust install some kind of "standard" which, in that case, would be the package name for the distribution with the biggest userbase 16:47
freinhardso if some auto-install doesn't work, people can start yelling at the packagers of some distribution ;)16:47
freinhardor you use some magic with cmake and let the packager override some default package names16:48
apacheloggerwell, the up and coming trend is to map desktop files to packages16:49
apacheloggerwhich makes sense given that most of the time you'd want to either install a service/plugin or another app16:49
apacheloggerso that is a good enough solution for the important use cases16:49
apachelogger(of course that also does not work for gstreamer as codecs don't have desktop files though one could argue they should )16:50
apacheloggerJontheEchidna: update-notifier actually watches the apt cache, lib and dpkg lib dirs to detect activity Oo16:52
apacheloggerreally shitty16:52
JontheEchidnayup16:52
apacheloggerJontheEchidna: I take it if the reboot stuff were to move to muon it'd be easier to check whether stuff is doing stuff?16:53
JontheEchidnamuon-notifier is really just k-n-h with a different set of Event subclasses16:53
JontheEchidnaso not really16:54
apacheloggermeh16:54
apacheloggerohohoh16:54
apacheloggerJontheEchidna: don't you need to be root to lock the lockfile?16:54
JontheEchidnayeah16:54
apacheloggerno solution then16:55
JontheEchidnayou could probably see if you could lock it with osstat?16:55
apacheloggerunless we make a dbus helper :S16:55
JontheEchidna*os.stat16:55
apachelogger-rw-r----- 1 root root 0 Nov 11 17:25 /var/lib/dpkg/lock16:55
apacheloggeryou can't do anything with that file16:55
JontheEchidnaaptdaemon has this fancy bit of pyth0rn to determine who holds the lock: http://paste.ubuntu.com/1351080/16:57
apacheloggerhrrrhrr16:58
apacheloggerto the hacking lab16:59
* apachelogger wonders if one can kdirwatch that file16:59
apacheloggerJontheEchidna: looks fancier than it is :P17:16
ScottKapachelogger: re 1040259: Apparently if you're in Unity using Quassel the messaging stuff no longer works.17:17
apacheloggernice17:17
apacheloggerpost mortem seems appropriate :P17:17
apacheloggerJontheEchidna: doesn't help though, as I cannot open the file17:18
ScottKapachelogger: re 1077538, I think it's quite ugly as is and if it wouldn't be hard to make it nicer, it should be.17:19
apacheloggerbug 107753817:19
ubottuLaunchpad bug 1077538 in KdeSudo "Entered kdesudo apt-get -f install in Konsole. kubuntu 12.10" [Low,Triaged] https://launchpad.net/bugs/107753817:19
apacheloggerScottK: needs new strings though17:20
* apachelogger notes that kdesudo probably should be refactored17:20
apacheloggerreally silly code at parts17:20
apacheloggerlike right after that kFatal there it runs exit(1) rather than qapp->exit()17:20
ScottKRight, but even if there's an nice box with an untranslated string, that's still better than a traceback.17:21
apacheloggerusers who don't speak english will go :? eitherway ;)17:25
apacheloggeranywho, I guess I am saying .. I have no idea how kdesudo's l10n process works17:25
ScottKWIth a nice error box you can copy and paste the text into google translate.17:25
apachelogger*at all*17:25
* ScottK neither.17:25
apacheloggeralso I have no clue why I have not moved it to kde17:25
apacheloggerJontheEchidna: why did I not force kdesudo onto kde infrastructure?17:25
apacheloggeralso the lock file business is a dead end17:26
apacheloggerone needs to be able to open the file to check if it has locks17:26
apacheloggerso either we also start watching every directory and the world or you need to make some nice thing in qapt17:27
apacheloggerbecause really I only care about UI driven updates not triggering the reboot notification ^^17:27
apacheloggerScottK: you might want to review http://paste.kde.org/604016/ before I break raring17:27
ScottKDoes postrm run on package upgrade?17:28
apacheloggeryep17:29
apacheloggerhttp://paste.kde.org/604022/17:29
apacheloggerfrom ppa2 to 3 that is17:29
ScottKOK.17:30
ScottKNext question: Since this is it's own trigger, can we have a different action to restart their session rather than a full reboot?  Reboot isn't actually required.17:30
apacheloggerwe can, that again requires a new string though17:30
apacheloggeralso somewhat excessive additions to kubuntu-notification-helper17:31
ScottKYes, but I think it's a good point of differentiation from the competition.  One doesn't actually need to reboot.17:32
apacheloggerprimary issue is ... since we have no means to detect when a package manager is doing stuff we display the reboot notification when the trigger is touched, if we were to have a logout and a reboot we end up with both being displayed17:33
ScottKAlso is a restart needed for point release changes, i.e. 4.9.2 -> 4.9.3 or is 4.8 -> 4.9 sufficient?17:34
apacheloggerworst case kdelibs would get upgraded -> logout notification, dbus gets upgraded -> reboot notification17:34
apacheloggerScottK: all upstream changes17:34
apacheloggerbug 553182 says so17:34
ScottKRight, so you'd have to make sure rebooting clears both the logout and reboot notifications.17:34
ubottuLaunchpad bug 553182 in kde4libs (Ubuntu) "kdelibs point updates should suggest reboot" [Low,Triaged] https://launchpad.net/bugs/55318217:34
ScottKOK.17:34
apacheloggerand IIRC it was about kio slaves become incompatible due to internal changes or something17:35
ScottKI see.17:35
ScottKDo you trust the bug reporter?17:35
apacheloggernot really17:35
apacheloggerbut it sounds sane enough :P17:35
ScottKOK.17:35
apacheloggeralso regarding notification clearing ... if I am not mistaken you cannot clear notifications17:36
apacheloggertray icon wise it would work though17:36
apacheloggerstill a bit of a silly experience17:36
ScottKThe reboot notification goes away when you reboot.17:36
ScottKDoesn't matter if you clicked on it or not.17:36
apacheloggernah I mean replace logout with reboot notification17:36
apacheloggeronce it becomes apparent that we need a reboot rather than a logout17:36
apacheloggeras I said the UI experience there will not be sensible until we have found a way to detect when apt is actually done with doing stuff17:37
apacheloggerthen the helper just needs to evaluate which triggers are there and dispathc the appropiate notifications17:37
ScottKRight.17:37
apacheloggerthat however entirely depends on JontheEchidna giving me dbus api :P17:38
ScottKI'm sure JontheEchidna can tell you how to do that.  He's managed progress dialogues in Muon Updaters, so clearly he knows how to find 100%.17:38
apachelogger^^17:38
* apachelogger thinks we need a monochrome plasma theme version of the reboot icon17:39
apacheloggerhttp://wstaw.org/m/2012/11/11/plasma-desktopym2523.png17:39
apacheloggerle ugly17:39
ScottKNo.  I think the fact that's it's so visible is a feature.17:39
apacheloggercan be achieved by more sensible means17:40
ScottKOK.17:40
* ScottK will bbiab.17:40
ScottKOr maybe right now.17:41
apacheloggerlol17:42
apacheloggerhttp://techbase.kde.org/Development/Tutorials/Plasma/ThemeDetails#.22icons.22_folder18:24
apacheloggerit's plasma because it is not working18:24

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