Skip to content

Commit

Permalink
version parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
spheras committed Feb 26, 2018
1 parent f632b26 commit 9af1bfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
1 change: 1 addition & 0 deletions src/Resources.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9af1bfb

Please sign in to comment.