diff --git a/src/Application.vala b/src/Application.vala index 0123274..b2d478f 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -516,7 +516,10 @@ public class DesktopFolderApp : Gtk.Application { if (args.length > 1 && args[1].up () == DesktopFolder.PARAM_SHOW_DESKTOP.up ()) { minimize_all (args); return 0; - } else { + } if(args.length>1 && (args[1].up()==DesktopFolder.PARAM_SHOW_VERSION.up() || args[1].up()=="--"+DesktopFolder.PARAM_SHOW_VERSION.up())){ + stdout.printf ("Desktop Folder. Version %s\n",DesktopFolder.VERSION); + return 0; + }else { var app = new DesktopFolderApp (); if(args.length>1){ DesktopFolderApp.desktop_folder_name=args[1]; diff --git a/src/Resources.vala b/src/Resources.vala index 4e2d89d..8e54c79 100644 --- a/src/Resources.vala +++ b/src/Resources.vala @@ -26,6 +26,7 @@ namespace DesktopFolder { public const string NEW_PHOTO_EXTENSION = "desktopphoto"; /** param to show the desktop */ public const string PARAM_SHOW_DESKTOP = "show-desktop"; + public const string PARAM_SHOW_VERSION = "version"; public const int ICON_SIZE = 48; public const string PANEL_BLACKLIST_FILE = ".nopanel"; public const int HEADERBAR_HEIGHT = 34;