[gnome-session] autostart: Replace should_show() with get_show_in() again



commit 8c73ddc660703ed80207469aea6b64b845ba657d
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri May 9 12:42:22 2014 +0200

    autostart: Replace should_show() with get_show_in() again
    
    GDesktopAppInfo's should_show() implementation also considers the
    NoDisplay flag, which is generally used by core components like
    window managers. Return to use get_show_in(), which just checks
    ShowOnlyIn and friends based on XDG_CURRENT_DESKTOP to get the
    session back working.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729575

 gnome-session/gsm-autostart-app.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-session/gsm-autostart-app.c b/gnome-session/gsm-autostart-app.c
index 6d7335f..21a6004 100644
--- a/gnome-session/gsm-autostart-app.c
+++ b/gnome-session/gsm-autostart-app.c
@@ -135,7 +135,7 @@ is_disabled (GsmApp *app)
         }
 
         /* Check OnlyShowIn/NotShowIn/TryExec */
-        if (!g_app_info_should_show (G_DESKTOP_APP_INFO (priv->app_info))) {
+        if (!g_desktop_app_info_get_show_in (priv->app_info, NULL)) {
                 g_debug ("app %s is not for the current desktop",
                          gsm_app_peek_id (app));
                 return TRUE;


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