Skip to content

Commit

Permalink
Let icewmbg interpret command-line arguments relative to the current …
Browse files Browse the repository at this point in the history
…working directory.
  • Loading branch information
gijsbers committed Nov 1, 2023
1 parent 61ff479 commit 1c54bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/icewmbg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1207,13 +1207,13 @@ int main(int argc, char **argv) {
warn(_("Unrecognized option '%s'."), *arg);
}
else if (hasImageExt(*arg)) {
image += *arg;
appendFile(image, *arg);
}
else {
upath path(*arg + (**arg == '!'));
path = path.expand();
if (path.dirExists() && path.isSearchable())
image += *arg;
appendFile(image, *arg);
}
}

Expand Down

0 comments on commit 1c54bba

Please sign in to comment.