Opened 10 years ago
Closed 10 years ago
#1373 closed defect (fixed)
Geospatial menu missing in LXDE
Reported by: | kalxas | Owned by: | hamish |
---|---|---|---|
Priority: | major | Milestone: | OSGeoLive8.0 |
Component: | OSGeoLive | Keywords: | menus, lxpanel |
Cc: | live-demo@… |
Description
We need to add and populate project categories in LXDE main menu.
Change History (15)
comment:1 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 10 years ago
the lovely docs,
I can merge into the main panel menu by adding the <Menu>
contents of osgeo-main.menu into /etc/xdg/lubuntu/menus/lxde-applications.menu but it would be better to have the whole thing in its own submenu, mimicking how the Geoclients currently is auto-added to the main panel menu.
<MergeDir>
seems like a possibility.
Getting it on the other side of a separator (where the top "Run"+wombat placeholder is now) at the top of the main panel menu will take modification of the panel's C code and rebuilding the lxpanel package, AFAICT. Not sure if we should worry about that later once the other is working, or go for that first, since that way might not need any change to our existing osgeo-main.menu file, which might save a lot of work.
Hamish
follow-up: 4 comment:3 by , 10 years ago
Hi Hamish,
I think rebuilding the C code for this is an overkill, lets stick to the simpler solution :)
comment:4 by , 10 years ago
Replying to kalxas:
I think rebuilding the C code for this is an overkill, lets stick to the simpler solution :)
you haven't seen the tangle of xml that needs to be edited in non obvious ways. ;-)
The C code may in fact be easier. I'll have a look.
Hamish
comment:6 by , 10 years ago
Keywords: | menus lxpanel added |
---|
Ok, it's not finished yet but I made some good progress on customizing the lubuntu 14.04 main menu with our submenus.
some lessons learned:
- lxpanel is ignoring /usr/local/share/desktop-directories/, need to use /usr/share/...
- .menu files want full menu hierarchy in the xml
- running
lxpanelctl restart
or logging out and back in wasn't enough to regenerate the menu tree; renaming the /usr/share/desktop-directories/osgeo-main.menu file to something else will do it though.
still todo:
- add <Exclude>s to the Education menu after verifying that all are accounted for
- tweak sub-menus to avoid duplicate copies of icons and sub-menus in the tree.
- figure out why top-level menu icons don't work but lower level menu icons do.
- ...?
Hamish
comment:7 by , 10 years ago
Ok, I fixed a bad menu file copy in r11661, the Geospatial menu should be (overly) populated now.
Dupe fix and submenu icons are still todo.
Hamish
comment:8 by , 10 years ago
Priority: | blocker → critical |
---|---|
Type: | task → defect |
Excellent work Hamish, as always.
I confirm that we have menus on build [11665] (with duplicates and missing icon ;)
follow-up: 12 comment:9 by , 10 years ago
Submenu icons & dupes hopefully all fixed with >r11694.
Spatialite GUI is missing an icon in its .desktop file.
Rasdaman appears twice, in databases and web server menus. Which should it be?
Do we want workshop install to be a menu item or just on the desktop?
Hamish
follow-up: 11 comment:10 by , 10 years ago
Priority: | critical → major |
---|
Hi Hamish,
Nice! The menu is working as in previous releases (tested build 11700). Rasdaman used to be in Databases menu before, lets keep it there for now. Workshop install should be a desktop item IMO.
The only thing left is the icon in front of the "Geospatial" menu. Perhaps use the education icon?
Angelos
comment:11 by , 10 years ago
Replying to kalxas:
The only thing left is the icon in front of the "Geospatial" menu. Perhaps use the education icon?
yeah I had that working locally, but didn't know which of my tweaks enabled it. I think it's just adding a <Directory> line at the top of osgeo-main.menu.
I had been using the same blue/green globe icon from the top menu in the last release, but the Education lxde icon is nice too. another thing I was wondering was if we should try to order the Geospatial menu at the top of the list + a separator, or just rely on a more colorful icon to have it stand out where it is.
Hamish
follow-up: 13 comment:12 by , 10 years ago
Replying to hamish:
Spatialite GUI is missing an icon in its .desktop file.
I got from Sandro both an *.ico file and a (larger) *.png for the icon. Can someone remind me where to put it? Thanks, Micha
Hamish
follow-up: 14 comment:13 by , 10 years ago
Replying to micha:
Replying to hamish:
Spatialite GUI is missing an icon in its .desktop file.
I got from Sandro both an *.ico file and a (larger) *.png for the icon. Can someone remind me where to put it?
in svn put it in app-conf/spatialite/.
on the disc copy it into /usr/local/share/icons/.
probably only the .png is interesting for us.
thanks, Hamish
comment:14 by , 10 years ago
Replying to hamish:
Replying to micha:
Replying to hamish:
Spatialite GUI is missing an icon in its .desktop file.
I got from Sandro both an *.ico file and a (larger) *.png for the icon. Can someone remind me where to put it?
in svn put it in app-conf/spatialite/.
Committed (at 4 sizes)
Do I need to do some change to the install_spatialite.sh ??
on the disc copy it into /usr/local/share/icons/.
probably only the .png is interesting for us.
thanks, Hamish
comment:15 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
ok, spatialite-gui icon now present in the nightly iso build r11826.
rasdaman subfolder icon also working.
everything else now ok AFAIK.
Hamish
yeah, just haven't gotten to it yet.