[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mandrake-cooker
Subject:    Re: [Cooker] Should menus be sorted by default (re. 13069)
From:       Andrey Borzenkov <arvidjaar () mail ! ru>
Date:       2005-03-20 8:36:58
Message-ID: 200503201137.02583.arvidjaar () mail ! ru
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[unfortunately you ignore mwhen I ask to Cc me on replies so I am forced to 
skip most of the message; copying from web archive and editing is not fun]

> Did you try uncommenting
> sort=tolower(title())
> 
> in /etc/menu-method/menu.h ?

Yes. It did not make any difference (see diff):

Anyway that would be wrong place to do it. This sorting happens (if ever) when 
menus are generated; even if it using locale and translated titles (does it?) 
there is no reason to believe, user locale will be the same when he will 
*use* those menus. Just switching from Russian to English would completely 
break sort order again.

I do not speak about all possible window managers. My concern is actually XDG 
menus. For them the only thing that needs be changed is to conditionally not 
emit <Layout> tags and let XDG code deal with sorting locally merged menus.

Sans bug with inlined menus :)

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCPTYuR6LMutpd94wRAocBAKDRpu8n1aJE8RjFNcKxbZC8tON1+ACeJixq
jdycbGOc3Dx1PR+95+wIUj8=
=WuRr
-----END PGP SIGNATURE-----

["menu-sort.diff" (text/x-diff)]

--- /var/lib/menu-xdg/menus/applications-mdk.menu	2005-03-20 09:17:20.000000000 +0300
+++ .config/menus/applications-mdk.menu	2005-03-20 11:23:42.149840762 +0300
@@ -3,10 +3,8 @@
 <!-- Automatically generated do not edit -->
 <Menu>
 <DefaultMergeDirs/>
-<AppDir>/var/lib/menu-xdg/applications</AppDir>
-<DirectoryDir>/var/lib/menu-xdg/desktop-directories</DirectoryDir>
-<DefaultAppDirs/>
-<DefaultDirectoryDirs/>
+<AppDir>/home/test/.local/share/applications</AppDir>
+<DirectoryDir>/home/test/.local/share/desktop-directories</DirectoryDir>
 <Name>Mandrakelinux</Name>
 <Directory>mandrakelinux.directory</Directory>
 <Include>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic