[Xfce4-commits] [apps/xfce4-terminal] 01/01: Point session manager to desktop file

noreply at xfce.org noreply at xfce.org
Tue Nov 5 16:55:41 CET 2019


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-terminal.

commit 492d7b5db387db15fdca849d229db67fc1a9d4f7
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Tue Nov 5 01:22:02 2019 +0100

    Point session manager to desktop file
    
    This means that the session manager will know the (translated) name and
    icon for the application. This is visible e.g. in xfce4-session-settings
    in the "Current Session" tab.
    
    Fixes bug #16121
    
    Signed-off-by: Igor <f2404 at yandex.ru>
---
 terminal/terminal-app.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/terminal/terminal-app.c b/terminal/terminal-app.c
index 56aa01c..6e46aa4 100644
--- a/terminal/terminal-app.c
+++ b/terminal/terminal-app.c
@@ -50,6 +50,7 @@
 #include <terminal/terminal-window-dropdown.h>
 
 #define ACCEL_MAP_PATH "xfce4/terminal/accels.scm"
+#define TERMINAL_DESKTOP_FILE (DATADIR "/applications/xfce4-terminal.desktop")
 
 
 
@@ -996,6 +997,7 @@ terminal_app_process (TerminalApp  *app,
                                                      PACKAGE_NAME ".desktop");
       if (xfce_sm_client_connect (app->session_client, &err))
         {
+          xfce_sm_client_set_desktop_file (app->session_client, TERMINAL_DESKTOP_FILE);
           g_signal_connect (G_OBJECT (app->session_client), "save-state",
                             G_CALLBACK (terminal_app_save_yourself), app);
           g_signal_connect (G_OBJECT (app->session_client), "quit",

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list