mail <[EMAIL PROTECTED]> posted [EMAIL PROTECTED], excerpted below, on Sat, 28 Apr 2007 08:01:44 -0400:
> Does anybody know where the files are that make the gnome menu? I would > like to copy them to another user. I don't know gnome directly, but much of it is freedesktop.org standard now for both it and KDE, which I know a bit more about, so this might help. The freedesktop.org standard environmental vars that control searched locations should be the $XDG_* family, XDG_*_HOME denoting user locations (single dir), with parallel system location vars (colon separated multiple dirs) as well. From gterm or whatever, see if you have those vars exported as follows: export|grep XDG_ The normal defaults (to which GNOME may add for the system versions, KDE does, and Gentoo may change the defaults a bit too) are: XDG_DATA_HOME="$HOME/.local/share" XDG_CONFIG_HOME="$HOME/.config" XDG_DATA_DIRS="/usr/local/share/:/usr/share/" XDG_CONFIG_DIRS=/etc/xdg" So obviously, for menu stuff, if those vars are set, check the locations they point at. If they aren't, check the defaults. >From what I've read, there are two types of entries, *.desktop files, mainly at the system level, and *.menu files, at the user level (with *.desktop files supported there as well, but legacy, I believe). For user menu cloning, the system locations aren't likely to be of interest to you. All you'll probably need are the user customizations. For these look in (as noted above) ~/.config/menus (the location of *.menu files) and ~/.local/share/applications and desktop-directories (the first being the location of menu item entires, *.desktop files, the second being the submenu entries, *.directory, both of which are AFAIK now deprecated in favor of the *.menu files in the location above). Again, I really have little idea how much of that applies to GNOME, but as KDE has made changes to come into desktop.org spec compatibility, I've read GNOME's doing the same thing, and in theory, at least new versions should use the same locations and formats, tho legacy support will differ. Hope it at least gives you a place to start, even if it's not entirely correct for GNOME. -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman -- [EMAIL PROTECTED] mailing list
