瀏覽代碼

rpm: fix notification-daemon setup

Marek Marczykowski-Górecki 10 年之前
父節點
當前提交
5912ea4330
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      rpm_spec/core-vm.spec

+ 4 - 1
rpm_spec/core-vm.spec

@@ -54,6 +54,7 @@ Requires:   gnome-packagekit-updater
 %endif
 Requires:   ImageMagick
 Requires:   fakeroot
+Requires:   notification-daemon
 Provides:   qubes-core-vm
 Obsoletes:  qubes-core-commonvm
 Obsoletes:  qubes-core-appvm
@@ -173,7 +174,9 @@ echo 'OnlyShowIn=GNOME;NetVM;' >> /etc/xdg/autostart/nm-applet.desktop || :
 %endif
 
 # Enable autostart of notification-daemon when installed
-ln -s /usr/share/applications/notification-daemon.desktop /etc/xdg/autostart/
+if [ ! -e /etc/xdg/autostart/notification-daemon.desktop ]; then
+    ln -s /usr/share/applications/notification-daemon.desktop /etc/xdg/autostart/
+fi
 
 usermod -p '' root
 usermod -L user