add another .desktop file directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I have applications installed in /opt branch. /opt may be exported to
other machine under different branch such as /usr2, so I think it's
better to keep the .desktop files in the same branch. By default,
gnome search desktop files in:

,------------[ desktop file search path ]
| ~/.local/share/applications
| /usr/share/applications
| /usr/local/share/applications
`-----------------------------------------------

I would like to add /opt/share/applications to the search path. So I
add a file to /etc/xdg/menus/applications-merged/ with the following
lines:

--8<---------------cut here---------------start------------->8---
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
 "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd";>
<Menu>
  <Name>Applications</Name>
  <AppDir>/opt/share/applications</AppDir>
</Menu>
--8<---------------cut here---------------end--------------->8---

Now the desktop files put in /opt/share/applications will appear in
gnome menus. However, when I do 'update-desktop-database -v' there is
no /opt/share/applications in the search path and no mimeinfo.cache in
this directory either. Any fix?

Thank you for your help.
-- 
Leon
os: Fedora core 5 (development)


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux