diff options
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", | 
