[gnome-keysign: 1/9] desktop file: run with python3



commit 2846488fd15c87553b511ab390f9d7efd890674d
Author: Tobias Mueller <muelli cryptobitch de>
Date:   Wed Sep 5 23:18:54 2018 +0200

    desktop file: run with python3
    
    This is a cheap way to get the desktop file working in Flatpak again.
    We used to run Python 2 in the sandbox. Now we have bumped that to
    Python 3 even though have don't really have the need. The app is still
    bilingual.
    In flatpak, however, all dependencies are installed for python3 and
    Flatpak's python is python2. So the app doesn't start.
    
    Now we could make the desktop file execute "gnome-keysign", but that
    requires that name to be in the PATH. That is a problem for casual
    installations via pip, because ~/.local/bin/ is not in the PATH by
    default on many distributions.
    
    The other option is to use a dedicated .desktop file for the Flatpak
    build.
    
    This change is the easiest to make, albeit being not most correct. That
    is, the app does not require python3. But most people should be running
    python3, anyway...

 data/org.gnome.Keysign.raw.desktop | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/data/org.gnome.Keysign.raw.desktop b/data/org.gnome.Keysign.raw.desktop
index 5901e1e..2e10d53 100644
--- a/data/org.gnome.Keysign.raw.desktop
+++ b/data/org.gnome.Keysign.raw.desktop
@@ -3,7 +3,7 @@ Name=Keysign
 Comment=A keysigning helper to enable you to comfortably exchange OpenPGP keys with a friend
 Keywords=python;gpg;gnupg;key;openpgp;
 Type=Application
-Exec=python -m keysign
+Exec=python3 -m keysign
 Icon=org.gnome.Keysign
 Categories=GTK;GNOME;Utility;
 StartupNotify=true


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