[gnome-build-meta/alatiera/remove-desktop-files: 3/3] vm: hide unwanted .desktop files from the launcher



commit 553d410eb19f77ee612296b9759290e736873521
Author: Jordan Petridis <jpetridis gnome org>
Date:   Sun Sep 22 08:59:04 2019 +0300

    vm: hide unwanted .desktop files from the launcher

 elements/core-deps/avahi.bst |  2 ++
 elements/sdk/fcitx.bst       | 15 +++++++++++----
 2 files changed, 13 insertions(+), 4 deletions(-)
---
diff --git a/elements/core-deps/avahi.bst b/elements/core-deps/avahi.bst
index 1bbcadc0..eaa8bb59 100644
--- a/elements/core-deps/avahi.bst
+++ b/elements/core-deps/avahi.bst
@@ -26,3 +26,5 @@ config:
     - |
       install -Dm644 -t "%{install-root}%{indep-libdir}/sysusers.d" \
                      extra/avahi.conf
+    - echo "NoDisplay=true" >> "%{install-root}%{datadir}/applications/bvnc.desktop"
+    - echo "NoDisplay=true" >> "%{install-root}%{datadir}/applications/bssh.desktop"
diff --git a/elements/sdk/fcitx.bst b/elements/sdk/fcitx.bst
index 058eceab..bee56422 100644
--- a/elements/sdk/fcitx.bst
+++ b/elements/sdk/fcitx.bst
@@ -31,7 +31,14 @@ public:
     split-rules:
       devel:
         (>):
-        - '%{libdir}/libfcitx-core.so'
-        - '%{libdir}/libfcitx-gclient.so'
-        - '%{libdir}/libfcitx-config.so'
-        - '%{libdir}/libfcitx-utils.so'
+        - "%{libdir}/libfcitx-core.so"
+        - "%{libdir}/libfcitx-gclient.so"
+        - "%{libdir}/libfcitx-config.so"
+        - "%{libdir}/libfcitx-utils.so"
+
+config:
+  install-commands:
+    (>):
+    - echo "NoDisplay=true" >> "%{install-root}%{datadir}/applications/fcitx-skin-installer.desktop"
+    - echo "NoDisplay=true" >> "%{install-root}%{datadir}/applications/fcitx-configtool.desktop"
+    - echo "NoDisplay=true" >> "%{install-root}%{datadir}/applications/fcitx.desktop"


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