[shotwell] Make send to portal work in viewer
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Make send to portal work in viewer
- Date: Sat, 12 Mar 2022 13:29:51 +0000 (UTC)
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]