[shotwell] Make send to portal work in viewer



commit 3c8662e4d070e748f50f144b811f85d96078b2e4
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]