[Live-demo] Add all installed application to the menu at the top
of the desktop.
Juan Lucas Domínguez Rubio
juan_lucas_dr at yahoo.com
Sun Mar 7 16:56:51 EST 2010
-- On Fri, 3/5/10, Hamish <hamish_b at yahoo.com> wrote:
> From: Hamish <hamish_b at yahoo.com>
> Subject: Re: [Live-demo] Add all installed application to the menu at the top of the desktop.
> To: live-demo at lists.osgeo.org, "Juan Lucas Domínguez Rubio" <juan_lucas_dr at yahoo.com>
> Date: Friday, March 5, 2010, 4:41 PM
> Juan Lucas Domínguez Rubio wrote:
> > I understand that you have _NOT_ edited this file:
> > /etc/xdg/xubuntu/menus/xfce-applications.menu
> > in your new .sh scripts. Is that so?
>
> That is so. I have not edited, added, or removed anything
> from
> the main Applications menu. I used it as a template to make
> a
> brand new menu right next to it containing only the Geo
> apps &
> help, and added it to the panel.
>
> It should be fairly simple to add more submenus to the new
> xfce-osgeo.menu (eg beta*), but for now I've started out
> simple
> just to confirm that it works.
>
> The file I did edit is the skeleton copy from which new
> panels
> are cloned: /etc/xdg/xubuntu/xfce4/panel/panels.xml
>
> So it assumes that the ISO build process will be starting
> as
> a new user with a fresh home dir.
>
>
> If it all actually works on the first take I'll be happy
> and
> mildly surprised. I'm sort of making the big assumption
> that
> 9.10 is going to have a similar layout to 9.04 (is there
> still
> a top taskbar?).
>
> Any project which does not install an icon on the desktop
> will
> not be in the new menu.
>
>
> > If one of your scripts does update that file, which
> .sh is
> > it?
>
> the only script involved is install_desktop.sh.
> see trac #419 for hints.
> https://trac.osgeo.org/osgeo/ticket/419
>
>
> regards,
> Hamish
>
> ps- without install_beta_and_submenu.sh it would have
> taken
> me about another 5 hours to track down all theses
> scattered
> interconnected files. so very a big thank you.
>
>
Hello, the log for rc3 has some ugly messages regarding the creation of new items in the top panel.
I think there is a little bug at the end of install_desktop.sh. It says:
...
# create individual menu entries from desktop icons:
for APP in $DESKTOP_APPS ; do
for APPL in `ls $APP.desktop` ; do
if [ -e "$APPL" ] ; then
sed -e 's/^Categories=.*/Categories=Geospatial;Desktop GIS;/' \
"$APPL" > "/usr/share/applications/osgeo-$APPL"
fi
done
done
...
(and 3 other similar loops)
...
but at that moment, the .desktop files are not in $HOME/Desktop but in $HOME/Desktop/"Desktop GIS", $HOME/Desktop/"Navigation and Maps", etc, so the:
`ls $APP.desktop`
does not work.
I am using a Xubuntu 9.10 live CD to test that our .sh scripts work. After fixing the previous problem, some things are working:
- the background image is properly set (very nice by the way)
- the help icon is on the desktop as expected
- the four folders are created as well, with the various icons inside them
_BUT_ I have not seen the top panel updated. Even though the file panels.xml is actually updated, this seems to have no effect.
If you right click on the top panel, it lets you customize it by adding new shortcuts, but it does not look very flexible, and surprisingly, the changes are not reflected in the file panels.xml, so I don't know where the structure of that panel is actually stored.
Perhaps I made some mistake at the start and my panel is corrupt (?).
Regards,
Juan Lucas
More information about the Live-demo
mailing list