/srv/irclogs.ubuntu.com/2008/09/16/#ubuntu-mobile.txt

persiaian_brasil: Firefox was pulled by midbrowser in some of the earlier images, but the recommends chain that brought it should be gone.  I suspect you've started with an old enough image to still have it.  Try purging it, or pull a new image.01:09
StevenKpersia: http://paste.ubuntu.com/47308/03:05
persiaStevenK: This is (loosely) based on applications.menu?03:06
StevenKpersia: Incredibly loosely.03:06
persiaRight.  Since the applications.menu from gnome-menus needs modification, and m-b-f doesn't respect <DefaultMergeDirs/> let's start with applications.menu03:07
persiaJust above where it has <!-- Accessories submenu --> add a section for <!-- Home submenu ==>03:08
persias/=/-/g03:08
persiaThis contains <Menu> containing <Name>, <Directory>, and <Include>03:09
persia<Include> contains a bunch of <Filename> links03:09
* StevenK digs up {applications,settings}.menu03:10
persiaAlso, there needs to be a /usr/share/desktop-directories/home.directory, but this can be incredibly sparse, as we don't use the Comment or Icon or GenericName or anything.03:10
persiaBasically home.directory only needs [DesktopEntry], Type=Directory, Encoding=UTF-8, and Name=Home03:11
StevenKpersia: Thinking about including all this stuff in -default-settings, too03:12
persiaThat means m-b-f needs to Depend on -default-settings.03:12
StevenKHm.03:13
StevenKWe need to upload m-b-f anyway03:13
persiaRight.  That's why I think it belongs in m-b-f :)03:13
StevenKDo we want to kill any menus from applications.menu?03:16
* persia looks03:16
persiaI'd rather not have the "Extras" menu03:19
StevenKThat doesn't exist in applications.menu :-)03:19
persiaMultimedia is mostly empty, but I'm guessing that we'll want audio/video stuff there.03:19
persiaDevelopment is mostly empty, but it won't be if someone wants to do development.03:20
persiaSo, Extras is the only one I want to kill, and you can't do it with the XML.03:20
StevenKsrc/mobile-basic-home-plugin.c:                         i->cat = g_strdup ("Extras");03:21
StevenKAh ha.03:21
StevenKThat line has "if (!i->cat)" before it03:22
persiaDoes that mean "Extras" is a catch-all for anything not shown elsewhere?03:22
persiaThat is actually useful, although ideally we won't actually present it.03:22
StevenKI guess it means Extras is a catch-all for anything that doesn't define a category03:23
StevenKFor example, it currently has Menu Editor, copa_ap_cp_name, OpenJDK Java 6 Runtime and Panel Manager03:23
persiaRight.  OpenJDK Java 6 Runtime should go away, as should copa_ap_cp_name03:27
persiaI'll take another look at Menu Editor and Panel Manager03:28
=== persia_ is now known as persia
persiaMenu Editor goes away with no longer depending on gnome-menus for {applications,settings}.menu03:34
StevenKAh, neat.03:34
StevenKA few other things should drop out, too03:34
persiaPanel Manager comes from matchbox-panel-manager03:35
persiaHow much of matchbox do we really use?  Could we get away with just installing matchbox-window-manager?03:36
StevenKI have no idea. Try it? :_)03:38
persiaIt looks to me like that's a spurious dependency in ubuntu-mid-default-settings : it ought depend on matchbox-window-manager, rather than matchbox.03:38
persiaI'll try it;03:38
persiaSeems to work.  Updating ubuntu-mid-default-settings03:41
StevenKI think I have the m-b-f changes too03:44
persiaExcellent.  Have you looked at hildon-desktop to drop copa_ap_cp_name ?03:44
StevenKThat's hildon-control-panel03:45
StevenKWe use that :-/03:45
persiaDo we use copa_ap_cp_name?  Does anyone else?  Is there any reason to ship the .desktop file?03:47
StevenKIt runs controlpanel03:48
StevenKMaybe we just want to give it a category and fix the name03:48
persiaThat works too :)03:49
StevenKNo Home with my new m-b-f03:52
persiaWhat do you have for applications.menu?03:52
StevenKI have to head off about nowish. Shall I put my source up?03:53
persiaPlease push it.  I'll fiddle, and see if I can get it to have Home.03:53
StevenKpersia: http://people.ubuntu.com/~stevenk/mobile-basic-flash_0.44-0ubuntu2.dsc03:55
persiaAt some point we probably ought to tell germinate about -mid :)03:57
StevenKpersia: Any news?05:05
persiaStevenK: Nope.  Just redownloaded the images, and upgraded them.  Booting now to fiddle.05:06
persia(or once the squashfs finishes)05:07
persia(and actually got distracted by upstream VLC showing up)05:08
StevenKpersia: On real hardware?05:08
persiaNo.  Virtual.  While I don't have any disks to fiddle with the installer right now, the live image boots.05:08
StevenKAhh05:09
persiaStevenK: Where was that gconf key in which the categories to be displayed were listed?05:22
StevenKpersia: /apps/marquee-plugins/categories or so05:22
persiaHrm.  Putting it there shows "Home" as an option in the menus, but the contents aren't the Home menu :/05:25
StevenKWhat are the contents?05:25
persiaWhatever the last shown menu contained.05:25
StevenKOdd.05:25
persiaIndeed.  It appears that it puts it in the menu, but then doesn't actually display the contents.05:26
persiaHmm.  I wonder if it's that "home.directory" != "Home.directory".05:27
* persia tries other things.05:27
StevenKMm. Maybe.05:28
persiaGrumble.  I'm not finding the defaults file for gconf, so have to set it *each* time.05:30
persiaGah!  It's m-b-f being even more non-XDG-compliant.05:31
StevenK\o/05:32
* persia dislikes debugging non-crashes, as there's no handy stacktrace05:33
StevenKpersia: Sprinkle abort(); into the code? That would give you a stack trace ....05:43
* StevenK chuckles05:43
persiaStevenK: Found it.  It's around line 922.  Notice the lack of anything parsing <Filename>05:44
persiaStevenK: Yes, but it still means I need to find the right function.  Just getting a random stacktrace doesn't help so much.05:44
StevenKpersia: I see that.05:44
persiaI much prefer to read code when I have a map telling me what is important to read :)05:44
StevenKI'm guessing it needs to be patched. More. :-(05:45
persiaStevenK: So as I see it, we have two choices: either add a check for <Filename> in the loop starting at line 928, or implement a hildon plugin for gnome-menus and drop this package entirely.05:45
persiaGiven that we're all sorts of frozen, I think it's a patch.05:46
StevenKIndeed05:46
StevenKNot sure how to crowbar Filename into it.05:46
persiaWell, actually, I suppose you could implement Home in a different manner, but I'm kinda partial to the XDG menu definition format.05:46
persiaI'm not sure either.  I think it needs entries in the hash table, but those all assume we're selecting based only on categories.05:47
persiaOn the other hand, I think the code is a little confusing.05:48
StevenKI've added the else case05:48
persiaI think that the variable "category" actually means a given submenu.05:49
persiaExcellent.  Does it work?05:49
StevenKAgreed. Nope, since I'm still in cdbs patch05:50
persiaHah.  Found it.06:14
persiaStevenK: Do you know anything about bug #209870 ?06:19
ubottuLaunchpad bug 209870 in acton "xsettings added back to moblin applets " [Critical,Fix released] https://launchpad.net/bugs/20987006:20
persia(specifically the matchbox-window-manager task)06:20
persiaSo, the reason fvwm1 is in the daily images is bug #145517 (patch attached)06:30
ubottuLaunchpad bug 145517 in matchbox-window-manager "Matchbox Window Manager doesn't provide x-window-manager virtual package and alternative :(" [Undecided,New] https://launchpad.net/bugs/14551706:30
StevenKAh ha!06:37
StevenKpersia: Can update-alternatives be run multiple times like that in the postinst?06:41
persiaMultiple times?  You mean --slave?06:42
StevenKpersia: Nope. You don't guard the update-alternatives run with configure or any other arguments06:42
persiaOh.  I just stole the code from fvwm106:43
persiaLet me look at a less deprecated example.06:43
persiaAnyway, rerunning the same update-alternatives command should have no impact.06:44
StevenKI'd just rather it was only run on $1 == configure, personally06:44
persiaOK.  Shall I fix that, or do you want to change it?06:44
StevenKFix it and upload, I say06:44
* persia can't upload06:45
persiafixing now ...06:45
StevenKYou're seperated from your key, or matchbox is main?06:46
persiathe latter.06:46
persiaAnyway, new debdiff going up now...06:46
* StevenK will happily upload it06:47
persiahttp://launchpadlibrarian.net/17637002/matchbox-window-manager_1.2-2ubuntu2.debdiff06:48
StevenKpersia: Uploaded.06:50
persiaStevenK: Thanks.  I'm up to 'p' in other package review.  Nothing else strikes me as quite so egregious as fvwm1 though :(06:51
* StevenK looks at m-b-f code again06:51
StevenKpersia: Suggestions? :-)06:52
persiaWhat happened when you added the else clause?06:52
StevenKNothing, since the else clause doesn't do anything yet06:52
persiaRIght.  Hold on while I bring up that code again06:53
persiaelse {} starts on line 932?06:54
StevenKI added "else if (!strcmp ((gchar *)iter->name, "Filename"))" on line 93106:55
persiaBefore or after "continue" ?06:56
persiaAlso, why iter->name rather than iterchild->name ?06:56
StevenKWhich continue?06:57
StevenKAnd everything else there is using iter->name, such as "else if (!strcmp ((gchar *)iter->name, "Include"))"06:58
persiaI had "continue" on line 931.06:58
persiaAnd for me, everything else is using iterchild->name06:58
* persia tries debian/rules patch to see if that helps06:59
persiaNope.  no rule to make target 'patch'.06:59
persiaSo, I'm looking at source retrieved by dget http://people.ubuntu.com/~stevenk/mobile-basic-flash_0.44-0ubuntu2.dsc07:00
persiaShould I be looking at something else?07:00
persiaShould I do anything special to get the source in shape to compare?07:00
persia(debian/README.source is silent on the matter)07:00
StevenKI did cdbs-edit-patch <lala>07:00
persiaRIght.  lala it is.07:00
persiaOK.  That's the problem.07:01
StevenKHm?07:02
persiaWe're looking at different code and passing back and forth line numbers.07:02
persiaSo, the loop that actually pulls in the Categories appears to start on line 933 (post-lala)07:02
persiaMind you, this will break, as it fails to recognise the negations in applications.menu, but wedging in a real XML parser would be fairly painful.07:03
persiaSo it's just going to skip over the negations.07:04
persiaI think it's in that loop that we also want to pull the <Filename> entries.07:04
persiaI'm just tracking through to figure out what m-b-f later does with c=>cat_table07:05
persiaLines 1040 and 1041 lead me to believe it's supposed to be interative07:06
persiaUnfortunately, I'm not getting a good idea what the context is supposed to contain at the end.  Do you have a mental model for that?07:08
StevenKNot really07:08
persiaGrumble.  The solution to buggy .desktop files was to delete the last four characters of an icon name if the icon string contains '.'.07:12
persiaNot fixing the .desktop files, or anything.07:12
persiaOK.  Found it.07:15
persiaSo, c->cat_table is a list of supported categories.07:15
persiaIt gets checked against the .desktop files on line 877.07:15
persiaSince this is at several removes and indirections from parsing, there's no good way to pass the <Filename> hints.07:16
StevenKArgh07:16
persiaSo, either we fix m-b-f to do it right (actually parse the menus, and the .desktop files and construct something dynamically), or we build a hardcoded wedge in somewhere.07:17
persia(perhaps based on some configuration file)07:17
StevenKWhich one is quicker? :-)07:17
persiaUmmm...07:18
persiaWell, if you know python reasonably well, and you know how to create a hildon-desktop plugin in python, there's a fairly simple API that lets you access gnome-menus from python.07:20
persiaProbably 200 lines of code or so.07:20
persiaIf you know XML parsers well, and want to rip open m-b-f, parse against the DTD cleanly, and then use that to generate your icon sets, that's some fun in C.07:21
persiaProbably about 400 lines, but a fair number are going to be comments and braces07:21
StevenKI know Python reasonably well, but I don't know how to create a hildon-desktop plugin in Python07:21
persiaIf you want to just stuff something in, add some extra logic checking some other configuration list around line 883 of m-b-h-p.c07:23
persiaThat's probably around 50-70 lines of C, but you'll have to operate within the context of m-b-f code, which means it will take longer than writing 50-75 lines from scratch.07:23
persiaYou probably want to extract most of that into a separate comparison function, just to keep the concerns separate.07:24
StevenKSigh.07:24
StevenKI wonder if it's just quicker to just write something in Python07:24
persiaI'm not sure.  Hence my lengthy answer to "Which one is quicker?" :)07:25
StevenKHah, yes07:25
StevenKI'm not sure my C knowledge will stand up to hacking m-b-f either07:26
persiaIt's exceedingly indirect C.07:26
* persia likes C as a *functional* language: it's a little odd when it's used as an object-oriented language07:26
persiaStevenK: I came up with a fairly short hack-in model.07:35
persiainsert around line 88607:35
StevenKWoot07:35
StevenKI was looking at writing a plugin in Python.07:35
persiaYou keep doing that.  I'll test my hack and see if it actually works.07:36
persiaIt's essentially setting a hardcoded list of names, and matching on i->name in a loop to artifically stuff i->cat = "Home" as duplicate entries.07:37
persiaErm.  Actually, that won't work, because it removes the entries from their regular locations.07:37
* persia looks more07:37
StevenKRight. I've written the hildondesktop bits07:38
StevenKWhere's the docs for the Python API into gnome-menus?07:38
persiahttp://bazaar.launchpad.net/%7Eogra/ograsac-desktop/launcher/annotate/3?file_id=launcher.py-20080602112229-01ljdznuwbnymvb5-2 might help on some of the python <-> gnome-menus bits.  Mind you, that code is *not* ready for production.07:39
persiaNote the use of the xdg.Menu object.07:39
* persia grumbles about the inconvenience of test cycles for non-native environments08:01
persiaRight.  I'm not understanding the code well enough.  http://paste.ubuntu.com/47353/ ought to show the "Buttons" app in "Home" in m-b-f.08:19
StevenKHm08:20
StevenKMy Python app has broken my Q108:20
persiaWell then.  How broken is it?08:21
StevenKm-b-f still loads08:21
StevenKBut I removed the desktop file for it08:21
persiaJust purge it.  Your python app would be a complete replacement.08:21
StevenKTrying to tell if my one is working is not helping08:27
StevenKHm.08:34
* persia tries to extract xfce4 from the images08:35
StevenKMine is not getting called.08:43
persiaRight.  I'll try another hack with C then.08:45
persiaBy the way, how important do you think it is to be able to print from mousepad?08:45
StevenKI'm not sure. Why?08:46
persiaOr rather, how important do you think it is to have the Xfce print manager to check on the status of printing from mousepad.08:46
persiaBecause if mousepad doesn't Recommend xfprint4 (already seeded by xubuntu-desktop, so no impact there), then we get to drop gtk2-engines-xfce, xfce4-icon-theme, xfce4-mcs-manager, xfce4-mcs-plugins, and xfprint408:46
persiaSo, if you don't think it's important, I'll go double-check with the xubuntu folk, and drop the recommendation to a suggestion08:47
* StevenK has brutally hacked the start up script to run hildon-desktop under strace08:50
StevenKAh ha09:01
StevenKWARNING **: Unknown Plugin Loader type: python09:01
persiaRight.  Let's hope this particular revision of lala does something useful then...09:03
StevenK        * src/Makefile.am: Removed support of python. Now it's splitted09:06
StevenK        * configure.ac: Removed python support.09:06
StevenKFrom the changelog09:06
StevenKof hildon-desktop, that is09:06
persiaI see.  I wonder what "Now it's splitted" means.  Is there another useful package?09:07
persiasomewhere in python-hildon perhaps?09:07
persiaHrm.  Maybe not.09:08
StevenKIf anything python-hildondesktop09:08
persiaThat's not something I can find though.  Is that not in Ubuntu?09:09
StevenKhttps://code.edge.launchpad.net/~ubuntu-mobile/python-hildondesktop/ubuntu09:10
persiaNope.  That version of lala just broke it entirely.09:13
persiaI see.  That's not in Ubuntu, and not in the PPA.09:14
persiaShall we fiddle with REVU, or wait for lool (who gets to make the decision wrt REVU anyway)09:15
StevenKI'm quickly building python-hildondesktop to see if that fixes it09:16
StevenKhildondesktop.c:988: error: implicit declaration of function 'hildon_home_area_set_batch_add'09:19
StevenKBah09:19
persiaRight.  m-b-f is smarter than I.09:23
* StevenK gets python-hildondesktop to build09:24
StevenKpython-hildondesktop doesn't help09:26
* StevenK grumbles at m-b-f09:29
StevenKWhat was your last version of lala?09:29
persiaMy last version of lala was a sledgehammer: add 2 lines after line 908.  The first set i->cat, and the second appended i to c->app_list again.09:33
persiaThe result was that *every* file showed for *every* submenu, which was very much not what I was expecting.09:34
persiaI even tried again after shutting down gconfd, and adjusting the .gconf configuration for the ubuntu user by hand to force inclusion of "Home" in the list.09:34
persiaThat's when I decided m-b-f was smarter than I.09:35
StevenKI think we want lool, at this point.09:37
persiaRight.  So, invoking the magic token to match the filter:09:38
persialool: m-b-f is broken in several ways, and we can't add a Home menu.  Trying to hack a quick replacement with python-hildondesktop didn't succeed.09:38
loolhmm09:48
loolI expect python stuff might be broken, and would like to receive test results09:49
loolI ripped off -fm bits from python-hildon, and that was a bit crude09:49
StevenKlool: The problem with the Python stuff is that hildon-desktop doesn't support Python plugins any more09:50
loolConcerning mbf, what's the matter?  You're trying to get the Home menu to work?09:51
persialool: Right.09:52
loolWhat's the current WIP?  you told mbf to parse an additional file and to use the Home menu as the default?09:52
persialool: Essentially, m-b-f doesn't actually implement the spec very well.  It conflates Categories with submenus.09:52
persialool: We've gone far beyond that.  m-b-f can't parse anything except on a Categories basis.09:53
loolWell what mbf give you in the drop down are category filters so to speak09:53
persiaThe last hack was to try to force an additional hardcoded condition in the parse_desktop_files function, which didn't work.09:53
persiaRight.  But we don't want category filters.  We want support for <Filename> or in the absence of that, some way to feed it a hardcoded list.09:54
loolHmm right now it just skips over anything else than category09:54
persiaYep, and it does it in a way that only builds a category list, so injecting stuff there isn't very helpful.09:55
persiaThat category list is then examined in parse_desktop_files and used as a comparator when populating the menu hash.09:56
persia(specifically context->app_list)09:56
loolThe stupidest thing is that mbf used to call into gnome-menus in the past10:01
loolas in API calls10:01
ograpersia, so whats your prob with grub-installer ? 10:01
=== ALo is now known as ALoGeNo
persiaogra: No idea.  I need to get my virtual disks working, and troubleshoot it.10:02
ograah10:02
loolIf I look at this honestly, I can only think that mbf's code to parse the menus is completely wrong; it's so wrong that I think it's fair to consider replacing mbf as you tried to do or replacing the menu parsing part10:02
loolIf we replace the menu parsing part, we should go with the gnome-menus lib I guess10:02
ograyou need gnome-menus since it brings in the xdg parsing pieces10:03
loologra: Right now, mbf doesn't give a shit about xdg10:03
* ogra can just point again to edubuntu-menus10:03
ograhmm, right, you had that hardcoded defines 10:04
loolIf you grep its C source for XDG, you're only going to find the two pathnames pointing at the menu files -- /etc/xdg10:04
persiaogra: Nope.  m-b-f only uses applications.menu and session.menu.  We copied those by hand, and mangled them.10:04
persialool: StevenK reimplemented m-b-f in python today, but hildon-desktop won't load python modules.10:05
ograbah10:05
ograStevenK, did you have an opportunity to test the new hal-info on the Q1 ? 10:06
* ogra isnt sure if he got all keycodes riht to behave like in hardy 10:06
StevenKogra: I didn't, no, sorry10:07
ograno hurry :)10:08
StevenKSo now we get to reimplement m-b-f? :-(10:08
ograthe patch is in at least ... all keys and the joystink work i can shuffle codes aroubd 10:08
ogra(in case they are wrong)10:09
ograsadly the kernel uses quirk keywords in hal, no keycodes 10:09
ograthats why i'm unsure 10:09
StevenKpersia: matchbox-window-manager is DEPWAITing on libxsettings-client-dev10:10
persiaStevenK: Thanks for reading my mail for me :)  I'll go take a look.10:13
StevenKHeh10:14
loolStevenK: what was the issue with python modules?10:18
StevenKWARNING **: Unknown Plugin Loader type: python10:20
StevenKlool: ^10:20
loolStevenK: You had python-hildondesktop installed?10:20
persiaStevenK: Well, it seems that someone arranged an MIR for it without actually promoting the dependencies.  It's been unbuildable for a while.  Shall we kick it back to universe?10:21
StevenKlool: Yes10:21
StevenKpersia: I think that's the simplest way forward10:22
persiaRight.  I'll check for demotion impact10:22
loolStevenK: Do you get any other error during hd startup?10:26
persiaStevenK: bug #27082410:26
ubottuLaunchpad bug 270824 in matchbox-window-manager "Please demote matchbox-window-manager to universe" [Undecided,New] https://launchpad.net/bugs/27082410:26
StevenKlool: To get that error I had to *strace* hildon-desktop10:30
* StevenK moves to his archive-admin hat10:30
loolI think you missed an earlier error when loading python support10:32
loolOk; /me needs to finish packing; it's unlikely that I fix this today10:32
loolI checked the module loading code in hildon-desktop, it's relatively straightforward so i'd look why python support doesn't work10:33
StevenKlool: I don't see that error10:33
loolAnd if we can't get python to work, we will have to revert back to gnome-menus for parsing10:34
StevenKI see very little in the strace output for Python10:34
StevenKpersia: matchbox-window-manager demoted10:35
persiaStevenK: Excellent.  I'll try some rebuilds.  See, this is why pushing stuff into main isn't always ideal :)10:35
StevenKpersia: It was promoted for hardy10:36
StevenKIt built then, too10:36
persiaIt *shouldn't* have built.10:38
persiaGiven that the same version was in gutsy, and there was no upload for hardy, I don't believe it ever was built against the main ogre restrictions.10:38
=== davmor2 is now known as davmor2_away
* StevenK starts looking at hildon-desktop again13:01
persiaTowards the goal of replacing m-b-f, or is this a new goal?13:02
StevenKpersia: Replacing m-b-f13:05
StevenKpersia: Reading hildon-desktop code about "WARNING **: Unknown Plugin Loader type: python"13:07
persiaBother.  libmatchbox has been manual-dependency-wait for the entire cycle because of excited MIRing13:07
StevenKIt needs demotion love too?13:08
persiaIndeed.  There are probably more.  I have the sense that the drive to promote a chunk of stuff to main was interrupted about half-way through.13:09
persiaLooking at the history, it seems to be fallout from bug #20987013:10
ubottuLaunchpad bug 209870 in acton "xsettings added back to moblin applets " [Critical,Fix released] https://launchpad.net/bugs/20987013:10
persiaStevenK: bug #27086613:14
ubottuLaunchpad bug 270866 in libmatchbox "Please demote libmatchbox from main to universe" [Undecided,New] https://launchpad.net/bugs/27086613:14
StevenKpersia: Help would be welcome, if you can.13:49
persiaStevenK: OK.  gobby?13:49
* persia isn't sure how to help13:50
persiaOr do you mean just tracking the error, and finding out why Python doesn't load?13:50
StevenKThe latter.13:51
StevenKHm. python-hildondesktop should do it13:53
persiaStevenK: Could you paste the .desktop for your module?13:55
StevenKNot easily13:55
persiaOK.  I'll just try to imagine it :)13:57
StevenKhttp://paste.ubuntu.com/47438/13:57
persiaThanks.13:57
StevenKAh ha13:58
persia?13:59
StevenKThere's a hildon-desktop-python-loader package too13:59
persiaheh.  That sounds like just the ticket.13:59
=== davmor2_away is now known as davmor2
ogradoesnt that .desktop need an Exec= line ? 14:03
persiaogra: Nope.  It's not a real .desktop file.  It's just a config file for a hildon-desktop module loader14:03
persialook for xdg complaince somewhere else14:03
ograheh14:04
persiaogra: See http://pastebin.com/f23284f55 as an example from upstream 14:04
ograso x-path would be the executable ? 14:05
persiaWell, not quite.14:06
persiaThe plugin must be in e.g. /usr/lib/hildon-desktop/$(X-Path).py14:06
persiaBut it's not exactly executed.  It's loaded into the context.  While *everything* in hildon is run within the context, most things are specifically executed, rather than just loaded.14:07
persiaThe difference being that loading something won't necessarily run that something unless it's providing some feature for which a hook has been received.14:08
persia(which may depend on the activation of some event, or other initiation path)14:08
persiaStevenK: You've seen https://stage.maemo.org/svn/maemo/projects/haf/trunk/python-hildondesktop/?  Seems to be a source package that provides both binary packages.14:10
StevenKIt's in LP, too14:11
StevenKIt's installed on my Q1 now14:11
persiaand you successfully reimplemented m-b-f in under a day?14:11
StevenKI wouldn't call it a success reimplementation14:12
StevenKStill doesn't run yet14:13
persiaSame or different error?14:13
StevenKIt's loading the python code14:14
persiaExcellent.  That's a step in the right direction, and ought give you more flexibility in debug output options.14:18
StevenKAh ha.14:21
StevenK'import hildondesktop' breaks14:21
persia\o/14:22
StevenKpersia: This keeps breaking14:41
persiaStevenK: define "this".14:41
StevenKpersia: python -c 'import hildondesktop'14:42
persiaWere you able to load your plugin?  Is it infrastructure code, or new code?14:42
* StevenK merges from upstream14:42
persiaThe vcs-imports branch?14:47
StevenKYes14:48
persiaStevenK: I'm building 0.0.1-1ubuntu1 now for testing.  As I wait for pam_mount to time out, I'm remembering having import issues with update-manager-hildon14:54
persiaSpecifically, when I first packaged it, I didn't provide all the right python packaging hints for it to work cleanly.14:54
persiaCould it be something like that ?14:54
* persia has only a weak understanding of python packaging14:54
StevenKpersia: Possibly14:55
ograthere is a wikipage :)14:55
StevenKpersia: I'm getting unknown symbols14:55
persiaogra: Indeed.  I've read it *many* times.  I tried using it to review packages, and routinely found that PAPT members would find 17 things I'd missed.14:55
persiaStevenK: Which symbol is unknown?14:56
StevenKpersia: hildon_home_area_set_layout_mode is the latest one14:56
StevenKpersia: There was one before that I removed.14:56
StevenKWhich I reverted14:56
persiaOK.  Are these expected python symbols, or bindings issues?14:56
StevenKI thought they existed, at least14:57
* StevenK builds 0.0.214:57
StevenKWoot15:04
persia0.0.2 works?15:04
StevenK0.0.2 doesn't display the same problem15:04
persiaHow many merge conflicts?15:04
StevenK315:04
* persia merges15:04
StevenKAll of them in debian15:04
StevenKIt still doesn't work15:05
StevenKOh, right15:05
StevenKThat was the second problem I didn't fix15:05
StevenKpython -c 'import xdg.Menu' fails15:05
persiaogra: ?15:06
StevenKpersia: I don't have the module15:06
StevenKSo I just to figure out which package I'm missing15:06
persiaStevenK: Right.  ogra knows which module you need.15:06
StevenKpython-xdg or so15:08
StevenKWhich source is pyxdg. *of course*15:08
ograright15:09
ograimport xdg.Menu15:09
ograimport xdg.Locale15:09
ograimport xdg.IconTheme15:09
ograthats what i use in the ograsac launcher15:10
StevenKRight, so now I think the first line of my thing probably runs15:10
persiaIsn't it a basic axiom that the py$(foo) source package generates the python-$(foo) binary package?15:11
persiaStevenK: I got conflicts in changelog and control, but I don't see the third.15:12
StevenKHm.15:12
StevenKBut I don't get anything showing up15:12
StevenKpersia: The third was due to my changing the hildon-dekstop*.install15:14
StevenKI hacked 0.0.1 to support python 2.415:14
StevenKEr, 2.515:14
persiaOK.  I shan't worry then.15:14
StevenKYay, progress15:17
* StevenK gets a hello world button to appear15:17
* ogra applauds15:17
StevenKI think I'm missing something in terms of the menu parsing code15:18
StevenKAh ha.15:19
StevenKIt doesn't work since /etc/xdg/menus/* has buggered off15:20
persiaOh.  You need gnome-menus back :)15:21
StevenKYes.15:21
* persia digs up the Home hints based on the assumption of proper XDG support15:21
* ogra thought python-xdg depended on gnome-menus15:21
persiaogra: Shouldn't, as not everything XDG is GNOME15:22
StevenKIt doesn't15:22
ograah, no there was a dep between gnome-menus and python-gmenu15:22
persiaHmm.  Do we want to use python-xdg or python-gmenu?15:22
ograwell, python-xdg shold suffice for a start 15:24
ograi'm not sure it respects the menu editor changes though15:25
StevenKHm15:25
persiaEssentially python-xdg means we do it from scratch, and are responsible for the menus.  python-gmenu means that we inherit the menus from Desktop, and can modify as we like with /etc/xdg/menus/applications-merged/15:28
persiaIf we want to use the GNOME menu editor, we probably ought use python-gmenu.  If we're going to use python-xdg, we should populate /etc/xdg/menus/ manually.15:29
ograXDG_CONFIG_DIRS is what you need15:29
ograwhich is used by python-xdg15:29
ograpython-gmenu will just sit on top of it15:29
persiaogra: Bah.  XDG_CONFIG_DIRS should just be /etc/xdg/menus/15:29
persiaChanging that is a hack.15:29
persia(and not in a good way)15:29
ogranah15:30
ograyou can use it like the PATH variable 15:30
ograand its supposed to be like that15:30
ograXDG_CONFIG_DIRS="/my/weird/hildon/dir:/etc/xdg"15:31
* persia clears throat, sucks teeth, clears throat, and fails to say anythign substantive15:31
ograthat way stuff gets merged automatically15:32
persiaYes, but one is intended to merge stuff with DefaultMergeDirs15:32
persiaThat's *why* DefaultMergeDirs exists.15:32
persiaXDG_CONFIG_DIRS should *always* be /etc/xdg/menus/ for a FHS-compliant system, or people like me who have spent hundreds of hours reading the XDG specs will get very frustrated debugging things.15:33
persia(like the full day I spent trying to describe how to define a Home menu before I realised just how broken m-b-f was)15:35
ograi didnt say you should drop /etc/xdg from it :)15:35
ograjust prepend the dirs you want stuff merged from15:36
persiaYes, but it's ^/etc/xdg/15:36
persiaWhat do you have against DefaultMergeDirs?15:36
ogra less /etc/xdg/user-dirs.conf15:37
ogra:)15:37
ogranothing15:37
persiaYes, but that's so *users* can override stuff.  Not for us to touch.15:38
ograthats a system file15:38
persiaStevenK: In case you want it again, http://paste.ubuntu.com/47129/ should be the bits to make a Home menu with an XDG-compliant menu parser15:38
persiaObviously, /etc/xdg/menus/home.menu could be longer15:39
StevenKI'm trying to get it parse what I have so far15:39
persiaThe hacked applications.menu ?15:39
StevenKNo, gnome-menus itself15:39
persiaOh.  Right.15:39
StevenKRight.16:00
StevenKI have a launcher that works. Ish.16:00
StevenKLooks like complete crap, too16:00
ograyay16:00
ogradid you define the proper icon size ? 16:00
StevenKIcon support doesn't exist yet16:00
ograoh16:00
StevenKNeither does scrolling16:01
* StevenK will look more tomorrow16:03
StevenKI find it strange I can't close anything16:08
persiaStevenK: Congratulations!16:08
StevenKpersia, ogra: http://people.ubuntu.com/~stevenk/IMG_2091.JPG16:15
ograwow, thats bling :)16:15
persiaCool!  Does the drop-down work to select menus?16:15
StevenKNope16:16
StevenKSince that is set via dbus16:17
StevenKI need to shrink the text, and add icons16:18
StevenKEssentially, I want it to look like m-b-f16:19
StevenKJust without the crack16:19
persiaStevenK: Very nice work.  Now that you have a menu, making icons is the easy bit.16:22
persiaPlus, we'll get to unseed m-b-f for Alpha-6, which is one more step towards the light.16:22
StevenKI'm not happy with it yet16:23
StevenKSo far it's only 38 lines of Python.16:23
StevenKAh ha. I thought it looked wrong16:25
* StevenK grumbles at Dath'Remar still being offline16:27
ograis that all buttons?16:28
* persia waits for another publisher cycle to *finally* build matchbox-window-manager16:28
ograin a table 16:28
ograStevenK, have a look at the iconview widget :)16:29
ograinstead of using a table with buttons16:29
StevenKogra: Yeah, it's a table with buttons16:29
ograwell, in the end you probably resemble ograsac launcher heh16:30
ograthough your xdg handling might be saner16:30
StevenKHehe16:30
StevenKMy XDG handling is like 8 lines16:31
ograheh, mine too16:31
ograbut mine parses the files directly as your m-b-f did ... it was a quick shot16:31
StevenKogra: My plan was add icons to the buttons16:31
ograi wouldnt use buttons16:31
StevenKAnd change the font on the buttons to be smaller16:31
ograiconview looks cleaner 16:32
ograand gtk has an oddbehavior that doesnt let you make buttons really transparent16:32
ograan iconview can just carry a wallpaper16:33
ograi stopped focusing on the icon stuff in ograsac launcher though and went for stacked eventboxes for a special smooth scroll mechanism16:33
ograbut i never finished that 16:34
ograso my launcher isnt functional at all right now16:34
ograbut scrolls very sweet :)16:34
ograi.e. translation the pixels of the full lenght of the launcher logarhitmically inot the screen size 16:35
ograthat way you dont have to lift your finger to scroll to top or bottom16:36
ograscreen top is launcher top, screen bottom is launcher bottom when scrolling16:36
* ogra notices thats really hard to explain without showing it ... its pretty cool UI behavior though16:38
ograStevenK, did you check if the menu editor actually influences the applist ? 16:42
ogra(i.e. does ~/config/*/*.menu get respected as it should)16:43
StevenKogra: You never implemented the actual launching bit16:43
ograi did in an old version 16:44
StevenKIf so, that code isn't on Launchpad16:44
ograbut the eventbox is layered above the iconview and scrolledwin16:44
StevenKRevision 1 still has no .connect16:44
ograoh, right16:44
ograi ditched that to work on the eventbox stuff16:44
StevenKHeh16:45
ograsince it first needs to translate the eventbox coordinated to iconview coordinated16:45
ogra*coordinates16:45
ograthen the eventbox just needs to proxy a click event to the icon16:45
StevenKThe finger scrolling stuff should be addable16:46
ograwell, if it works :)16:46
StevenKAdding a scrollbar is work for later, though16:46
ograthe prob is that an eventbox layered over your app will catch clicks 16:46
ograso they dont reach the icons 16:47
StevenKYes ...16:47
ograthats the point where i had stopped with my launcher16:47
ograi should probably finish that part and you can just use it 16:47
persiaI'd rather start from StevenK's implementation, because it runs in the target environment, even if the other bits aren't quite as cool.16:48
* StevenK goes to bed before he gets tempted to rewrite bits again.16:49
ograpersia, its pygtk16:49
ograthere is no target arch16:49
persiaStevenK: wise decision16:49
ograand i developed it inside a vbox ume install 16:49
persiaogra: Not "envionment" as architecture, but "environment" as hildon, and I thought ograsac was non-hildon.16:50
ograno,, its not but the launcher is a plain pygtk app16:50
StevenKMine isn't16:50
StevenKMine is a Hildon Desktop python plugin16:50
ograah16:50
persiaThis is why I want to start from StevenK's launcher16:51
* StevenK adds eight fixme items16:51
StevenK"# - Actually launching stuff"16:52
persiaBother.  It does need another publisher cycle.16:52
ograStevenK, http://paste.ubuntu.com/47490/16:53
ograthat has the exec bit16:53
ogra(on_select())16:54
ograsurely needs improvement16:54
ograoh, that launcher still works actually17:23
=== asac_ is now known as asac
=== mkrufk1 is now known as mkrufky

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