<Wizzup>
sicelo: I pushed code to also edit the debian submenu
<Wizzup>
so all issue should be fixed with that PR
<Wizzup>
diejuse: ^
<Wizzup>
diejuse: how do you create the submenus
<Wizzup>
diejuse: 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 work
<Wizzup>
there is both /etc/xdg/menus which I presume you edited, but then there is /home/user/.config/menus/
<diejuse>
I only edit /home/user/.config/menus/menu.hildon
<diejuse>
First I created a folder that I called "main" /usr/share/applications/main
<diejuse>
In menu.hildon the main structure is this: <menu><AppDir>/usr/share/applications/main</AppDir><DirectoryDir>/usr/share/applications/main</DirectoryDir> </menu>
<diejuse>
After <DirectoryDir>/usr/share/applications/main</DirectoryDir> you add your submenus
<Wizzup>
yes, but this means you can't see the default hildon ones in the main view
<diejuse>
I have converted the default Hildon menu to another submenu.
<Wizzup>
yes, but this probably won't "fly" with us, but let's discuss
<Wizzup>
so the way hd-launcher-editor used to work: it always writes to /home/user/.config/menus/hildon.menu
<Wizzup>
I made some changes to that it can write that file, but also /home/user/.config/menus/hildon/<SUBMENUNAME>.menu
<Wizzup>
however, for this to work and not 'take over' the menu as your example does, you have to double nest
<Wizzup>
let me explain
<Wizzup>
this is my /home/user/.config/menus/hildon.menu now: https://bpa.st/XIFQ
<Wizzup>
and this is my /home/user/.config/menus/hildon/debian.menu now: https://bpa.st/XSGQ
<Wizzup>
nevermind the Layout and Filename entries, those are just for sorting/ordering
<Wizzup>
note that in hildon.menu there is an explicit <Menu> and <Name>Debian</Name> around the merge dirs
<Wizzup>
if you don't do this, the merge dirs will override everything standard maemo and you'll get what you have: no standard maemo icons
<Wizzup>
I'm assuming we do want to keep this, and maybe just add sub menus for debian, android, webapps, etc
<Wizzup>
this would be somewhat easy to add in my current PR, *but* this nesting I mentioned above is hardcoded
n900 has joined #maemo-leste
<Wizzup>
I could add code to detect the different categories from the /etc/xdg/menus/ ... and somehow write those to hildon.menu
<Wizzup>
I might also be "doing it wrong" but I don't see a better way to do this
moparisthebest has quit [Ping timeout: 260 seconds]
<Wizzup>
but yes, you *cannot* manually override /home/user/.config/menus/menu.hildon and expect it to work
<Wizzup>
brb
<diejuse>
The truth is that I realized that everything is made too complicated.
<diejuse>
I removed the part from <MergeFile type="parent">/etc/xdg/menus/hildon.menu</MergeFile>
<diejuse>
to make my structure independent.
<diejuse>
For 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.
<diejuse>
And then Maemo will simply show a menu how you have created your folders.
mdz has quit [Ping timeout: 260 seconds]
<Wizzup>
diejuse: well I am working on the code now so let's think it through
<Wizzup>
we could easily create more menus like the debian one(s), but I am not sure how those should be managed
<Wizzup>
what are these android things you mention, do they run inside of maemo, or
<diejuse>
Do you mean the Android submenu I created?
<Wizzup>
do those open android apps inside maemo X? or?
<diejuse>
Since 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 Maemo
<diejuse>
If 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.
<diejuse>
Yes, open android apps inside maemo
<Wizzup>
ok, so it leaves the maemo X
<diejuse>
yes
<Wizzup>
what do these .desktop files look like
<diejuse>
Those .desktop files exec scripts I have in the /diejuse_scripts folder. Do you want to see the script that opens the camera?
<Wizzup>
just curious how it works, but not super important
diejuse has quit [Quit: Client closed]
diejuse has joined #maemo-leste
<diejuse>
for example: /diejuse_scripts/android_camera.sh has:
<diejuse>
am start -a android.media.action.STILL_IMAGE_CAMERA --user 0
<diejuse>
it is a adb shell command to open the default android camera
<diejuse>
with proot in my PATH variable I add a path with adb shell commands
<diejuse>
That way I can execute Android commands from within Maemo
<diejuse>
I am already creating an image prootMaemoLeste_arm64.tar.gz so that it can be unzipped on any Android and use maemo.
<diejuse>
I'm trying to minimize its space because it takes up between 2 and 3 gigabytes.