Opened 5 years ago

Closed 5 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 Changed 5 years ago by hamish

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

yeah, just haven't gotten to it yet.

comment:2 Changed 5 years ago by hamish

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 Changed 5 years ago by kalxas

Hi Hamish,

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

comment:4 in reply to:  3 Changed 5 years ago by hamish

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 Changed 5 years ago by kalxas

Ah, nice :)

I am ok with what you feel is best.

comment:6 Changed 5 years ago by hamish

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 Changed 5 years ago by hamish

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 Changed 5 years ago by kalxas

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 Changed 5 years ago by hamish

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 Changed 5 years ago by kalxas

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

comment:11 in reply to:  10 Changed 5 years ago by hamish

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

comment:12 in reply to:  9 ; Changed 5 years ago by 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? Thanks, Micha

Hamish

comment:13 in reply to:  12 ; Changed 5 years ago by 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/.

on the disc copy it into /usr/local/share/icons/.

probably only the .png is interesting for us.

thanks, Hamish

comment:14 in reply to:  13 Changed 5 years ago by micha

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 Changed 5 years ago by hamish

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.