[shotwell/shotwell-0.30] Make send to portal work in viewer



commit 9a786c2c8f843d318192c5744be4c9f7f0f303bd
Author: Jens Georg <mail jensge org>
Date:   Sat Mar 12 14:21:29 2022 +0100

    Make send to portal work in viewer
    
    Apparently it does not like the - in the token

 src/Portal.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/Portal.vala b/src/Portal.vala
index 24a98de9..c2e8e1e0 100644
--- a/src/Portal.vala
+++ b/src/Portal.vala
@@ -45,7 +45,7 @@ public class Portal : GLib.Object {
 
     private static string generate_handle () {
         return "%s_%i".printf (
-            GLib.Application.get_default ().application_id.replace (".", "_"),
+            GLib.Application.get_default ().application_id.replace (".", "_").replace("-", "_"),
             Random.int_range (0, int32.MAX)
         );
     }


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