You are not logged in.

#1 2012-07-07 19:40:05

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

feh fails(Reason...no HOME directory)

My system is xfce4 based and feh doesn't run with the following error msg:

sh-4.2# feh -g -d -S /mnt/md
feh ERROR: You have no HOME, cannot read themes
sh-4.2# 

Is this caused by xfce4 setup or the lack of a Home directory? EDIT: ...no Home partition

Last edited by lilsirecho (2012-07-07 20:47:58)


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#2 2012-07-07 19:50:04

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: feh fails(Reason...no HOME directory)

What happens if you just do this:

feh /mnt/md

The man page says -S and -g take arguments, but it does work for me without them, if I give feh a valid folder with images in it.

This is from the wiki:

To quickly browse images in a specific directory, you can launch feh with the following arguments:

$ feh -g 640x480 -d -S filename /path/to/directory

have you tried it with values after the -g and -S?

Last edited by 2ManyDogs (2012-07-07 20:13:12)

Offline

#3 2012-07-07 20:16:26

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: feh fails(Reason...no HOME directory)

I get the same error message with both trials.................

I assume there is something in xfce4 which handles the feh details.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#4 2012-07-07 20:34:14

ctxfi-user
Member
Registered: 2010-10-31
Posts: 56

Re: feh fails(Reason...no HOME directory)

The $HOME env var is not set, which normally points to your home directory. I could reproduce the error with:

unset HOME; feh test.jpg

Offline

#5 2012-07-07 20:46:42

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: feh fails(Reason...no HOME directory)

The post by ctfxi-user suggests the reason for my failed FEH is the fact that I have no Home directory.  I have only root and boot.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#6 2012-07-07 20:48:04

ctxfi-user
Member
Registered: 2010-10-31
Posts: 56

Re: feh fails(Reason...no HOME directory)

Try setting $HOME:

export HOME=/root/

Offline

#7 2012-07-07 21:06:21

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: feh fails(Reason...no HOME directory)

ctxfi-user:

Thanks for the export command which does the job!

Can this be made a permanent command say in rc.local?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#8 2012-07-07 21:51:10

ctxfi-user
Member
Registered: 2010-10-31
Posts: 56

Re: feh fails(Reason...no HOME directory)

Normally $HOME is set during login. Something is wrong there. I assume you use auto login. Please provide some details!

Offline

#9 2012-07-07 22:10:14

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: feh fails(Reason...no HOME directory)

My log-in is thru rc.local with no passwd into xfce4 using ....startxfce4 in rc.local.

My system is raid0 grub2 partitioned boot.  System uses 3 Compact Flash devices.

Feh runs now but doesn't operate as usual with default slideshow.

Latest kernel utilized x86_64 mode.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#10 2012-07-07 22:25:30

ctxfi-user
Member
Registered: 2010-10-31
Posts: 56

Re: feh fails(Reason...no HOME directory)

If you start XFCE in rc.local for example with

startxfce4

try changing it to

bash -l -c 'startxfce4'

This invokes bash as a login shell, that is, setting some env vars like $HOME and so. Plus directly starts XFCE, like before.

Sorry, but I can't help further with feh...

Offline

#11 2012-07-07 22:29:22

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: feh fails(Reason...no HOME directory)

Thanks for the suggestions and will try the arrangement you provided.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

Board footer

Powered by FluxBB