* Gerhard Siegesmund <[EMAIL PROTECTED]> [060530 00:11]:
> In the newest version unstable package of ratpoison, the 
> ratpoison.desktop-File 
> again is missing. Just for your information. Or did I do something wrong?

That's a deliberate decision, documented in the Changelog.Debian.gz as
    - no longer ship a .desktop file as already registered in the Debian menu   
             

As ratpoison is neither a Gnome or a KDE program, it should in my eyes
not pester with their files. Its a long time bug in gdb and kdm to not
get this information from the Debian menu as it is supposed to do by
policy, but kdm should do so since 4:3.5.2-2 and gdm has a bug (360911) marked
pending to fix this.

As workaround you could either link/copy the files generated by menu-xdg
to the places where gdm finds them, change the directory menu-xdg
places them into, or add something like the attached file into your
/etc/menu-methods/ (but note that it creates and deletes files in
/usr/share, so it is perhaps not what one wants).

Ratpoison not shipping its own .desktop file has the advantage of
removing one more place to change when new translations or file format
changes arrive.

Hochachtungsvoll,
        Bernhard R. Link
#!/usr/sbin/install-menu
# xdg desktop entry spec - applications generation
# http://www.freedesktop.org/Standards/desktop-entry-spec
# Copyright 2004 - Chris Cheney
# Licensed under the GNU General Public License, version 2.
#
# written by Bill Allombert <[EMAIL PROTECTED]>
# retrieved from http://people.debian.org/~ballombe/xsessions
# (see msgid [EMAIL PROTECTED])
# 
# edited further by Bernhard R. Link


!include menu.h
!include lang.h

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

function AppEntry() =
        "[Desktop Entry]\n"
        "Encoding=UTF-8\n"
        "Type=Application\n"
        "Name=" title() "\n"
        forall(sections_translations(), "lang",
                "Name[" $lang "]=" translate($lang,title()) "\n") 
        ifelse($longtitle, 
                "Comment=" $longtitle "\n"
                forall(sections_translations(), "lang",
                        "Comment[" $lang "]=" translate($lang,$longtitle) "\n"
                ),
                "Comment=Start " $title " as your window manager\n")
        "Icon=" icon() "\n"
        "Exec=" $command "\n"
        "Categories=X-Debian" replacewith($basesection,"/","-") "\n";


supported;
 wm = AppEntry();
endsupported;

startmenu = "";
endmenu = "";
submenutitle = "";

treewalk = "M";

genmenu = ifempty($skipdesktopfile,ifnempty($command,"X-Debian" 
replacewith($basesection,"/","-") "-" tolower(replacewith($title,"/ ","__") 
".desktop")));

rootsection = "";

prerun = "rm -rf " prefix() "/X-Debian-*";

preoutput = "";

rootprefix = "/usr/share/xsessions";
userprefix=".desktop_files_for_window_managers"

Reply via email to