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
7b508648
Commit
7b508648
authored
14 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Read themes from ~/.config/feh/themes, don't autocreate for now
parent
d2ac8a9c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/deps.mk
+1
-1
1 addition, 1 deletion
src/deps.mk
src/options.c
+2
-23
2 additions, 23 deletions
src/options.c
with
3 additions
and
24 deletions
src/deps.mk
+
1
−
1
View file @
7b508648
...
...
@@ -24,7 +24,7 @@ menu.o: menu.c feh.h structs.h menu.h utils.h getopt.h debug.h support.h \
multiwindow.o
:
multiwindow.c feh.h structs.h menu.h utils.h getopt.h
\
debug.h winwidget.h timers.h filelist.h options.h
options.o
:
options.c feh.h structs.h menu.h utils.h getopt.h debug.h
\
filelist.h options.h help.inc
fehrc.inc
filelist.h options.h help.inc
signals.o
:
signals.c feh.h structs.h menu.h utils.h getopt.h debug.h
\
winwidget.h
slideshow.o
:
slideshow.c feh.h structs.h menu.h utils.h getopt.h debug.h
\
...
...
This diff is collapsed.
Click to expand it.
src/options.c
+
2
−
23
View file @
7b508648
...
...
@@ -28,7 +28,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include
"options.h"
static
void
check_options
(
void
);
static
void
feh_create_default_config
(
char
*
rcfile
);
static
void
feh_parse_option_array
(
int
argc
,
char
**
argv
);
static
void
feh_parse_environment_options
(
void
);
static
void
feh_check_theme_options
(
int
arg
,
char
**
argv
);
...
...
@@ -163,15 +162,12 @@ static void feh_load_options_for_theme(char *theme)
if
(
!
home
)
eprintf
(
"D'oh! Please define HOME in your environment! "
"It would really help me out...
\n
"
);
rcpath
=
estrjoin
(
"/"
,
home
,
".
fehrc
"
,
NULL
);
rcpath
=
estrjoin
(
"/"
,
home
,
".
config/feh/themes
"
,
NULL
);
D
((
"Trying %s for config
\n
"
,
rcpath
));
fp
=
fopen
(
rcpath
,
"r"
);
if
(
!
fp
&&
((
fp
=
fopen
(
"/etc/fehrc"
,
"r"
))
==
NULL
))
{
feh_create_default_config
(
rcpath
);
if
((
fp
=
fopen
(
rcpath
,
"r"
))
==
NULL
)
return
;
return
;
}
free
(
rcpath
);
...
...
@@ -861,20 +857,3 @@ static void show_usage(void)
,
stdout
);
exit
(
0
);
}
static
void
feh_create_default_config
(
char
*
rcfile
)
{
FILE
*
fp
;
if
((
fp
=
fopen
(
rcfile
,
"w"
))
==
NULL
)
{
weprintf
(
"Unable to create default config file %s
\n
"
,
rcfile
);
return
;
}
fputs
(
#include
"fehrc.inc"
,
fp
);
fclose
(
fp
);
return
;
}
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