libera/#maemo-leste/ Saturday, 2024-03-02

Wizzupsicelo: I also added a path forward on how to edit debian submenu00:16
WizzupI just need some advice for FMG on how to pass the category as a string to the editor00:16
Wizzupotherwise it's mostly trivial00:16
Wizzupok, I think I figured out my gobject question11:54
diejuseWizzup Lately I've been playing around with editing the menu to create various submenus, editing ~/.config/menus/hildon.menu.12:31
diejuseI have also manually changed the order of the debian submenu.12:31
diejuseAs you say, hildon launcher editor because it breaks everything.12:33
diejusehttps://drive.google.com/file/d/1nuGgHkLF-Hfhw5XKzTuR65tVnA2KCMD5/view?usp=sharing12:41
Wizzupsicelo: I pushed code to also edit the debian submenu12:50
Wizzupso all issue should be fixed with that PR12:51
Wizzupdiejuse: ^12:51
Wizzupdiejuse: how do you create the submenus12:51
Wizzupdiejuse: this would be good to know, because currently the editor doesn't support more than the debian submenu, because I don't know how to make it work12:51
Wizzupthere is both /etc/xdg/menus which I presume you edited, but then there is /home/user/.config/menus/12:52
diejuseI only edit /home/user/.config/menus/menu.hildon12:55
diejuseFirst I created a folder that I called "main" /usr/share/applications/main12:56
diejuseIn menu.hildon the main structure is this: <menu><AppDir>/usr/share/applications/main</AppDir><DirectoryDir>/usr/share/applications/main</DirectoryDir>   </menu>12:58
diejuseAfter <DirectoryDir>/usr/share/applications/main</DirectoryDir> you add your submenus12:58
Wizzupyes, but this means you can't see the default hildon ones in the main view12:58
diejuseI have converted the default Hildon menu to another submenu.12:59
Wizzupyes, but this probably won't "fly" with us, but let's discuss12:59
Wizzupso the way hd-launcher-editor used to work: it always writes to /home/user/.config/menus/hildon.menu13:00
WizzupI made some changes to that it can write that file, but also /home/user/.config/menus/hildon/<SUBMENUNAME>.menu13:00
Wizzuphowever, for this to work and not 'take over' the menu as your example does, you have to double nest13:00
Wizzuplet me explain13:00
Wizzupthis is my /home/user/.config/menus/hildon.menu now: https://bpa.st/XIFQ13:01
Wizzupand this is my /home/user/.config/menus/hildon/debian.menu now: https://bpa.st/XSGQ13:01
Wizzupnevermind the Layout and Filename entries, those are just for sorting/ordering13:01
Wizzupnote that in hildon.menu there is an explicit <Menu> and <Name>Debian</Name> around the merge dirs13:02
Wizzupif you don't do this, the merge dirs will override everything standard maemo and you'll get what you have: no standard maemo icons13:02
WizzupI'm assuming we do want to keep this, and maybe just add sub menus for debian, android, webapps, etc13:02
Wizzupthis would be somewhat easy to add in my current PR, *but* this nesting I mentioned above is hardcoded13:03
WizzupI could add code to detect the different categories from the /etc/xdg/menus/ ... and somehow write those to hildon.menu13:03
WizzupI might also be "doing it wrong" but I don't see a better way to do this13:04
Wizzupbut yes, you *cannot* manually override /home/user/.config/menus/menu.hildon and expect it to work13:05
Wizzupbrb13:05
diejuseThe truth is that I realized that everything is made too complicated.13:08
diejuseI removed the part from <MergeFile type="parent">/etc/xdg/menus/hildon.menu</MergeFile>13:10
diejuseto make my structure independent.13:10
diejuseFor me the ideal operation is that a user could create a folder structure from ~/config/menus/hildon with .desktop files and that each folder was a submenu. For example ~/config/menus/hildon/debian and ~/config/menus/hildon/webapps.13:13
diejuseAnd then Maemo will simply show a menu how you have created your folders.13:13
Wizzupdiejuse: well I am working on the code now so let's think it through13:27
Wizzupwe could easily create more menus like the debian one(s), but I am not sure how those should be managed13:28
Wizzupwhat are these android things you mention, do they run inside of maemo, or13:28
diejuseDo you mean the Android submenu I created?13:29
Wizzupyes, what is in there13:30
diejusehttps://drive.google.com/file/d/1KwUDHA3xZV-hsujUjfkZRXLtZkK6BOqs/view?usp=sharing13:31
Wizzupdo those open android apps inside maemo X? or?13:32
diejuseSince I am emulating Maemo via proot I cannot open the camera or make calls natively, but I can directly open the Android camera or call the Android calling app from Maemo13:33
diejuseIf I click on the camera icon, the Android camera application opens. I take the photo, hit the Android button "back" and it returns to Maemo.13:34
diejuseYes, open android apps inside maemo13:35
Wizzupok, so it leaves the maemo X13:35
diejuseyes13:35
Wizzupwhat do these .desktop files look like13:35
diejuseThose .desktop files exec scripts I have in the /diejuse_scripts folder. Do you want to see the script that opens the camera?13:38
Wizzupjust curious how it works, but not super important13:38
diejusefor example: /diejuse_scripts/android_camera.sh has:13:41
diejuseam start -a android.media.action.STILL_IMAGE_CAMERA --user 013:42
diejuseit is a adb shell command to open the default android camera13:42
diejusewith proot in my PATH variable I add a path with adb shell commands13:43
diejuseThat way I can execute Android commands from within Maemo13:44
diejuseI am already creating an image prootMaemoLeste_arm64.tar.gz so that it can be unzipped on any Android and use maemo.13:45
diejuseI'm trying to minimize its space because it takes up between 2 and 3 gigabytes.13:46
diejuseI want a user-friendly installation13:46
diejuseI'll put the installation steps here: https://github.com/diejuse/proot_MaemoLeste_on_Android13:48
k1r1t0Hello, I updated the kernel, but it won't load. It can be fixed? Or reinstall the system.14:17
k1r1t0A week or two ago. The devel repository has been enabled14:19
gnarfacealmost certainly it's repairable14:31
gnarfacethough i can't really give you specifics14:32
Wizzupk1r1t0: what device are you on15:02
Wizzupdiejuse: thanks for elaborating15:03
k1r1t0 Nokia N90015:49
Wizzupsurprising to hear a kernel upgrade would break it, what behaviour do you observe15:50
arno11k1r1t0: when you say 'updated the kernel', you mean using 'apt dist-upgrade' ?16:11
Wizzupsicelo: fwiw I'll merge your changes once we have a new kernel build17:05
WizzupI'm waiting for uvos to do it, but I can also do it if it takes  too long17:06
sicelosure, thanks. the leste-config one can actually go in whether kernel's done or not17:09
siceloonly status-area one depends on kernel (because we're no longer blacklisting the charger in batmon.c)17:10
Wizzupuvos: I think I fixed the sphone build-dep in devel17:10
siceloand really nice work on the h-d rearranging issue :-)17:10
Wizzupsicelo: yeah, I'm still not super happy with it, but it'll work for us for now I think17:11
siceloi haven't tested yet (my d4 still bork), but from the description and the little i understand of the code, it's quite elegant fix17:11
Wizzupit'll work, but the whole .menu stuff is I think a bit ugly17:11
Wizzupit seems both overengineered but in some ways underpowered17:12
Wizzupfreemangordon: I think I'm just going to release OMP to latest stable and see what doesn't work17:12
Wizzupfreemangordon: then I can fix the image builds17:12
Wizzupuvos: the build failed now that it is actually building the voicecallmanager module, I'll make a merge request for it...17:16
Wizzupuvos: ended up just pushing a fix, lmk if you don't want me to do that in the future17:40
k1r1t0Amo11 yes18:05
k1r1t0Arno11 yes18:22
Wizzupweird, openmediaplayer just apt upgrades it looks like on stable image22:40

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!