1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

Remove : from filename, it makes scp stupid

This commit is contained in:
Dave Davenport 2015-12-10 18:00:26 +01:00
parent ad77b9857a
commit bb39372dd3

View file

@ -587,7 +587,7 @@ static void menu_capture_screenshot ( void )
// Get current time.
GDateTime *now = g_date_time_new_now_local ();
// Format filename.
char *timestmp = g_date_time_format ( now, "rofi-%Y-%m-%d-%H:%M" );
char *timestmp = g_date_time_format ( now, "rofi-%Y-%m-%d-%H%M" );
char *filename = g_strdup_printf ( "%s.png", timestmp );
// Build full path
char *fpath = g_build_filename ( xdg_pict_dir, filename, NULL );