lib/csd/application/minisip/component/gnome.rb in csd-0.1.18 vs lib/csd/application/minisip/component/gnome.rb in csd-0.2.0
- old
+ new
@@ -48,9 +48,10 @@
# Every desktop entry file not created via dpkg will not update the gnome menus cache. We need to
# do this manually here. See https://bugs.launchpad.net/ubuntu/+source/gnome-menus/+bug/581838
# If this step would not be done, the MiniSIP menu item would disappear after restarting Ubuntu.
#
def update_gnome_menu_cache
+ return unless Gem::Platform.local.ubuntu_10?
Cmd.run %{sudo sh -c "/usr/share/gnome-menus/update-gnome-menus-cache /usr/share/applications/ > /usr/share/applications/desktop.${LANG}.cache"}, :announce_pwd => false
end
# Sends an OSD notification.
#