summaryrefslogtreecommitdiff
path: root/capplet/gsp-app-manager.c
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-05-03 11:26:50 +0800
committerVictor Kareh <[email protected]>2019-05-09 15:12:46 -0400
commite8499e2e738a5227ddfc11a4b04b55543716d559 (patch)
treea7f2c851bd7f61e6abd7a62feeb9f21c7bea6764 /capplet/gsp-app-manager.c
parent6b81375f406a5623015e4246d169b57ae621970e (diff)
downloadmate-session-manager-e8499e2e738a5227ddfc11a4b04b55543716d559.tar.bz2
mate-session-manager-e8499e2e738a5227ddfc11a4b04b55543716d559.tar.xz
Hide NoDisplay Apps in Startup Applications
Autostart applications are hidden in Startup Applications when NoDisplay=true. Fix #134.
Diffstat (limited to 'capplet/gsp-app-manager.c')
-rw-r--r--capplet/gsp-app-manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capplet/gsp-app-manager.c b/capplet/gsp-app-manager.c
index 7e245db..4072036 100644
--- a/capplet/gsp-app-manager.c
+++ b/capplet/gsp-app-manager.c
@@ -479,7 +479,7 @@ _gsp_app_manager_fill_from_dir (GspAppManager *manager,
desktop_file_path = g_build_filename (xdgdir->dir, name, NULL);
app = gsp_app_new (desktop_file_path, xdgdir->index);
- if (app != NULL) {
+ if (app != NULL && !gsp_app_get_nodisplay(app)) {
gsp_app_manager_add (manager, app);
g_object_unref (app);
}