Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
feh
Commits
05ab8b33
Commit
05ab8b33
authored
6 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Plain Diff
Merge branch 'Ferada-output-directory-for-image-saving'
parents
60d3bcfd
ddf90e15
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
man/feh.pre
+3
-1
3 additions, 1 deletion
man/feh.pre
src/slideshow.c
+11
-3
11 additions, 3 deletions
src/slideshow.c
src/utils.c
+1
-0
1 addition, 0 deletions
src/utils.c
with
15 additions
and
4 deletions
man/feh.pre
+
3
−
1
View file @
05ab8b33
...
...
@@ -594,7 +594,9 @@ image.
.
Save files to
.Ar directory
.Pq only useful with -k .
when using
.Cm --keep-http
or the save_image command.
By default, files are saved in the current working directory.
.
.It Cm -p , --preload
...
...
This diff is collapsed.
Click to expand it.
src/slideshow.c
+
11
−
3
View file @
05ab8b33
...
...
@@ -615,16 +615,24 @@ void slideshow_save_image(winwidget win)
{
char
*
tmpname
;
Imlib_Load_Error
err
;
char
*
base_dir
=
""
;
if
(
opt
.
output_dir
)
{
base_dir
=
estrjoin
(
""
,
opt
.
output_dir
,
"/"
,
NULL
);
}
if
(
win
->
file
)
{
tmpname
=
feh_unique_filename
(
""
,
FEH_FILE
(
win
->
file
->
data
)
->
name
);
tmpname
=
feh_unique_filename
(
base_dir
,
FEH_FILE
(
win
->
file
->
data
)
->
name
);
}
else
if
(
mode
)
{
char
*
tmp
;
tmp
=
estrjoin
(
"."
,
mode
,
"png"
,
NULL
);
tmpname
=
feh_unique_filename
(
""
,
tmp
);
tmpname
=
feh_unique_filename
(
base_dir
,
tmp
);
free
(
tmp
);
}
else
{
tmpname
=
feh_unique_filename
(
""
,
"noname.png"
);
tmpname
=
feh_unique_filename
(
base_dir
,
"noname.png"
);
}
if
(
opt
.
output_dir
)
{
free
(
base_dir
);
}
if
(
opt
.
verbose
)
...
...
This diff is collapsed.
Click to expand it.
src/utils.c
+
1
−
0
View file @
05ab8b33
...
...
@@ -152,6 +152,7 @@ char path_is_url(char *path) {
return
0
;
}
/* Note: path must end with a trailing / or be an empty string */
/* free the result please */
char
*
feh_unique_filename
(
char
*
path
,
char
*
basename
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment