@@ -40,6 +40,7 @@ static gboolean should_daemonize = FALSE;
4040static gboolean follow_focus = FALSE;
4141static gboolean idle_hide = FALSE;
4242static gboolean start_hidden = FALSE;
43+ static gboolean test_mode = FALSE;
4344
4445static gint idle_timeout = 15 ;
4546
@@ -59,6 +60,7 @@ static GOptionEntry main_entries[] = {
5960 { "version" , 'v' , 0 , G_OPTION_ARG_NONE , & show_version , "Show version" , NULL },
6061 { "config" , 'c' , 0 , G_OPTION_ARG_FILENAME , & config_path , "Load config file" , NULL },
6162 { "daemonize" , 'd' , 0 , G_OPTION_ARG_NONE , & should_daemonize , "Detach from controlling terminal" , NULL },
63+ { "preview" , 'p' , 0 , G_OPTION_ARG_NONE , & test_mode , "Enable preview mode where any password can unlock" , NULL },
6264 { NULL },
6365};
6466
@@ -343,6 +345,7 @@ int main(int argc, char **argv) {
343345
344346 gtklock -> hidden = start_hidden ;
345347 gtklock -> idle_timeout = (guint )idle_timeout ;
348+ gtklock -> test_mode = test_mode ;
346349
347350 gtklock -> follow_focus = follow_focus ;
348351 gtklock -> use_idle_hide = idle_hide ;
0 commit comments