[Xfce4-commits] [xfce/exo] 01/01: Add trailing ; to mimeapps.list entries

noreply at xfce.org noreply at xfce.org
Sat May 25 16:52:45 CEST 2019


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

b   l   u   e   s   a   b   r   e       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 xfce/exo.

commit 404a7ef73246b73cb4cd2a4ab8cc10e1a02d6b74
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat May 25 10:52:38 2019 -0400

    Add trailing ; to mimeapps.list entries
---
 exo-helper/exo-helper.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/exo-helper/exo-helper.c b/exo-helper/exo-helper.c
index 13eef5d..8f7536d 100644
--- a/exo-helper/exo-helper.c
+++ b/exo-helper/exo-helper.c
@@ -706,6 +706,7 @@ exo_helper_database_set_default (ExoHelperDatabase *database,
   gchar       **mimetypes;
   guint         i;
   gchar        *path;
+  gchar        *entry;
 
   g_return_val_if_fail (category < EXO_HELPER_N_CATEGORIES, FALSE);
   g_return_val_if_fail (EXO_IS_HELPER_DATABASE (database), FALSE);
@@ -779,7 +780,11 @@ exo_helper_database_set_default (ExoHelperDatabase *database,
 
           for (i = 0; mimetypes[i] != NULL; i++)
             if (!exo_str_is_empty (mimetypes[i]))
-              xfce_rc_write_entry (rc, mimetypes[i], filename);
+              {
+                entry = g_strconcat (filename, ";", NULL);
+                xfce_rc_write_entry (rc, mimetypes[i], entry);
+                g_free (entry);
+              }
           g_strfreev (mimetypes);
         }
 

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


More information about the Xfce4-commits mailing list