diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:27:53 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:27:53 +0100 |
commit | 5b7b3b1dfd5ce7c275881098310667b09562ad27 (patch) | |
tree | d2760df372d76da84d901cfc3a20514d5dc73bdf /src/AppWindow.vala | |
parent | f6062696f6bbd00d4eaa8a6e994dabfefc455f31 (diff) |
New upstream version 0.32.10upstream/0.32.10upstream
Diffstat (limited to 'src/AppWindow.vala')
-rw-r--r-- | src/AppWindow.vala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/AppWindow.vala b/src/AppWindow.vala index 7398c74..ae8bfb9 100644 --- a/src/AppWindow.vala +++ b/src/AppWindow.vala @@ -586,6 +586,21 @@ public abstract class AppWindow : PageWindow { if (Resources.GIT_VERSION != null && Resources.GIT_VERSION != "" && Resources.GIT_VERSION != Resources.APP_VERSION) { hash = " (%s)".printf(Resources.GIT_VERSION.substring(0,7)); } + var runtime = AppDirs.get_runtime(); + switch (runtime) { + case AppDirs.Runtime.SNAP: + hash += " (Snap)"; + break; + case AppDirs.Runtime.FLATPAK: + hash += " (Flatpak)"; + break; + case AppDirs.Runtime.NATIVE: + hash += " (Native)"; + break; + default: + hash += " (Unknown)"; + break; + } string[] artists = {"Image of the Delmenhorst Town Hall by Charlie1965nrw, source: https://commons.wikimedia.org/wiki/File:Delmenhorst_Rathaus.jpg", null}; Gtk.show_about_dialog(this, "version", Resources.APP_VERSION + hash + " — Delmenhorst", |