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 hamish, 10 years ago

Owner: changed from live-demo@… to hamish
Status: newassigned

yeah, just haven't gotten to it yet.

comment:2 by hamish, 10 years ago

the lovely docs,

http://standards.freedesktop.org/menu-spec/1.0/

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

comment:3 by kalxas, 10 years ago

Hi Hamish,

I think rebuilding the C code for this is an overkill, lets stick to the simpler solution :)

in reply to:  3 comment:4 by hamish, 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:5 by kalxas, 10 years ago

Ah, nice :)

I am ok with what you feel is best.

comment:6 by hamish, 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 hamish, 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 kalxas, 10 years ago

Priority: blockercritical
Type: taskdefect

Excellent work Hamish, as always.

I confirm that we have menus on build [11665] (with duplicates and missing icon ;)

comment:9 by hamish, 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

comment:10 by kalxas, 10 years ago

Priority: criticalmajor

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

in reply to:  10 comment:11 by hamish, 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

in reply to:  9 ; comment:12 by micha, 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

in reply to:  12 ; comment:13 by hamish, 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

in reply to:  13 comment:14 by micha, 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 hamish, 10 years ago

Resolution: fixed
Status: assignedclosed

ok, spatialite-gui icon now present in the nightly iso build r11826.

rasdaman subfolder icon also working.

everything else now ok AFAIK.

Hamish

Note: See TracTickets for help on using tickets.