Bug#259400: Menu-methods for users Debian menu

Bill Allombert Bill Allombert <allomber@math.u-bordeaux.fr>, 259400-quiet@bugs.debian.org
Thu, 24 Feb 2005 15:49:38 +0100


--q8dntDJTu318bll0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello Debian GNOME maintainers,

This is a follow-up to the GNOME user menu-method:
I would like to clear some erros in tyhe previous announcement

> Please find in attachment:
> A menu-methods /etc/menu-methods/gnome-vfolder-user

The file permission must allows execution for all. This is very
important.

> A vfolder template /etc/gnome-vfs-2.0/vfolders/applications.templates

It should read "template" not "templates":

A vfolder template /etc/gnome-vfs-2.0/vfolders/applications.template

> You also need /etc/menu-methods/xdg-desktop-entry-spec-apps
> from the menu-xdg package.
> 
> To use it, run update-menus as a user.

Before running update-menus, please check that the directory
$HOME/.gnome2/vfolders is empty. I got reports of problems otherwise.

> This will create a new menu (Debian-user) which a copy of the Debian
> menu but including your local customisations.

I would like to thanks Andreas Tille, Eddy Flas and Morten Brix Pedersen
for their feedback.

Cheers,
-- 
Bill. <ballombe@debian.org>

Imagine a large red swirl here. 

--q8dntDJTu318bll0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=gnome-vfolder-user

#!/usr/sbin/install-menu
# gnome-vfolder based on:
# Also used as /etc/menu-methods/menu-xdg
# Copyright 2004 - Chris Cheney <ccheney@debian.org>
# Licensed under the GNU General Public License, version 2.

!include menu.h

compat="menu-2"
outputencoding="UTF-8";
outputlanguage="C";

function DirEntry() =
	"    <Name>" translate("",title()) "</Name>\n"
        "    <Desktop>" "debian" replacewith(tolower($section),"/","-") ".directory" "</Desktop>\n";

function desktop() = prefix() "/../../.local/share/applications/menu-xdg/X-Debian" replacewith($basesection,"/","-") "-" tolower(replacewith($title,"/ ","__") ".desktop");

supported;
 x11 = "<Include>" desktop() "</Include>\n";
 text = "<Include>" desktop() "</Include>\n";
endsupported;

startmenu = "  <Folder>\n" DirEntry();
endmenu = "  </Folder>\n";
submenutitle = "";

treewalk = "(M)";

genmenu = "applications.debmenu";
rcfile = "applications.vfolder-info";
examplercfile="applications.template";
mainmenutitle="Debian-user";

rootsection = "";

onlyrunasuser=true;
userprefix = ".gnome2/vfolders";
rootprefix = "/etc/gnome-vfs-2.0/vfolders";

preoutput = "";
postoutput = "";

--q8dntDJTu318bll0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="applications.template"

<?xml version="1.0"?>
<VFolderInfo>
  <Folder>
    <Name>Root</Name>
    <Parent>applications-all-users:///</Parent>
      <!-- Debian -->
include-menu-defs
  </Folder>
</VFolderInfo>

--q8dntDJTu318bll0--