Skip to content
Snippets Groups Projects
Commit 31a2b570 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Merge branch 'start-at-supports-urls' of https://github.com/iglosiggio/feh...

Merge branch 'start-at-supports-urls' of https://github.com/iglosiggio/feh into iglosiggio-start-at-supports-urls
parents f13a473e 073e94cd
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ Name[en_US]=feh
GenericName=Image viewer
GenericName[en_US]=Image viewer
Comment=Image viewer and cataloguer
Exec=feh --start-at %f
Exec=feh --start-at %u
Terminal=false
Type=Application
Icon=feh
......
......@@ -843,7 +843,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
}
}
else if (finalrun && !opt.filelistfile && !opt.bgmode) {
if (opt.start_list_at && !path_is_url(opt.start_list_at) && strrchr(opt.start_list_at, '/')) {
if (opt.start_list_at && path_is_url(opt.start_list_at)) {
add_file_to_filelist_recursively(opt.start_list_at, FILELIST_FIRST);
} else if (opt.start_list_at && strrchr(opt.start_list_at, '/')) {
char *target_directory = estrdup(opt.start_list_at);
char *filename_start = strrchr(target_directory, '/');
if (filename_start) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment