LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-26-2019, 08:45 PM   #1
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,891
Blog Entries: 28

Rep: Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347
Feh Autostarting under Fluxbox on Ubuntu MATE


When I log into Fluxbox on Ubuntu MATE 18.04 LTS, feh autostarts (and displays a truly hideous wallpaper with the Ubuntu logo).

I have my own wallpaper script running just fine (it picks a random wallpaper from my library and displays it), then this feh thing appears on top. With a right-click, it displays a menu and I can exit the program. The startup programs that I specified are starting up just fine also.

I verified that feh was the culprit by doing a ps and killing the feh process, which made the beastly thing go away.

I cannot find what's calling feh. It's not referenced in any of the Fluxbox config files (init, startup, etc). A web search for "feh+unbuntu+fluxbox" was not helpful.

Any ideas as to what new rocks I should look under would be most appreciated.

Afterthought: I did install Fluxbox from the repos, and it has some *buntu customizations, such as a couple of Ubuntu themes (or styles).

Last edited by frankbell; 04-26-2019 at 09:02 PM.
 
Old 04-26-2019, 09:41 PM   #2
individual
Member
 
Registered: Jul 2018
Posts: 315
Blog Entries: 1

Rep: Reputation: 233Reputation: 233Reputation: 233
Could you post the output of
Code:
cat ~/.fluxbox/init
I'm specifically looking for the line that starts with "session.styleFile."

EDIT: Nevermind posting the fluxbox init file. It looks like there is a hidden file called ".fehbg" in the home directory which contains the following line:
Code:
feh --bg-scale '/usr/share/images/fluxbox/ubuntu-light.png'
It appears that the background image listed in that file is specified in /usr/share/fluxbox/styles/ubuntu-light. At least, that's where it is located on my Ubuntu VM. The style file is referenced in ~/.fluxbox/init.

EDIT2: I have a solution, although I'm not sure if it is a proper one.
First, uncomment the following line in ~/.fluxbox/overlay:
Code:
background: none
Log out and back in.
I don't know that .fehbg is actually used for anything. I rm'd it and just changed the background image using ~/.fluxbox/lastwallpaper. Here's an example:
Code:
$full $full|/home/user/Pictures/fluxbox.png||:0.0
Just an FYI, lastwallpaper is what fbsetbg writes to.

EDIT3: If you rm .fehbg and set the wallpaper in lastwallpaper, then log out and back in, fluxbox will write .fehbg with the image file referenced in lastwallpaper.

Last edited by individual; 04-26-2019 at 10:23 PM.
 
Old 04-29-2019, 08:28 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,891

Original Poster
Blog Entries: 28

Rep: Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347
Thanks for the suggestions.

I'll take a look at them and get back to you tomorrow.
 
Old 04-30-2019, 12:19 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,891

Original Poster
Blog Entries: 28

Rep: Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347
First I want to thank you for spending some time digging into this!

Here are the results of my testing today:

Code:
$ cat ~/.fluxbox/init | grep session.style
session.styleOverlay:   /home/frankbell/.fluxbox/overlay
session.styleFile:      /usr/share/fluxbox/styles/Operation
I've used a couple of other styles since setting Fluxbox up on this machine. I think the issue is unrelated to the style itself. Plus I've not encountered it on any other machine that I've used Fluxbox on.

I grabbed a screenshot showing the feh thing in operation: http://pineviewfarm.net/weblog/wp-co...4/flux_feh.jpg

One think I've noticed in the lastwallpaper file: I start Fluxbox and my wallpaper script sets a random background from my library, then this feh thingee runs and overwrites the setting in lastwallpaper. For example.

Code:
$ cat .fluxbox/lastwallpaper
! $full|/usr/share/images/fluxbox/ubuntu-light.png|style|:0.0
This does not change even after my wallpaper script sets another random background after unit time. For what it's worth:

Code:
$ ls -l .fluxbox/lastwallpaper
-rw-rw-r-- 1 frankbell frankbell 62 Apr 30 12:45 .fluxbox/lastwallpaper
This is hardly a serious issue, as I can make feh go away by exiting it via its menu, but I sure would like to solve this puzzle!
 
Old 04-30-2019, 12:46 PM   #5
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
OP - is there a file named ".fehbg" that is marked executable in the root of your user's home directory? Under your user's home, there is a .config directory under which there is an "autostart" directory (might be another sub). Does feh have a .desktop file in the autostart directory?
 
Old 05-07-2019, 09:01 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,891

Original Poster
Blog Entries: 28

Rep: Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347
Yes.

I just did a chmod -x on it. I'm using that computer right now, but I will log out and back in tomorrow and let you know what happens.

Thanks.
 
Old 05-07-2019, 09:44 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,891

Original Poster
Blog Entries: 28

Rep: Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347
I was able to test it tonight.

No change.

Drat.
 
Old 05-08-2019, 12:51 PM   #8
Patrick59
Member
 
Registered: Apr 2007
Location: North France
Distribution: Slackware64 15.0
Posts: 75

Rep: Reputation: 19
Hi,

Did you have a look in your .xinitrc ?

hth,
 
Old 05-08-2019, 03:55 PM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,261
Blog Entries: 21

Rep: Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785
Check in the .fluxbox theme file. It often sets a wallpaper which is different from the one set by startup or .xinitrc. The .fehbg file then gets reset to that wallpaper each time you run fluxbox.
 
Old 05-09-2019, 12:11 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by frankbell View Post
Yes.

I just did a chmod -x on it.
why not just delete it?
 
Old 05-09-2019, 06:02 AM   #11
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,261
Blog Entries: 21

Rep: Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785
Quote:
Originally Posted by ondoho View Post
why not just delete it?
I think if it is in the theme as "background image", .fehbg gets recreated. I had a similar problem a few months ago.
 
1 members found this post helpful.
Old 05-09-2019, 10:09 AM   #12
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Quote:
Originally Posted by frankbell View Post
Yes.

I just did a chmod -x on it. I'm using that computer right now, but I will log out and back in tomorrow and let you know what happens.

Thanks.
So, the executable .fehbg file tells feh what the last wallpaper was and when it starts, to use that wallpaper. It doesn't start feh though, you have to do that via .xinitrc or some other method.
 
Old 05-09-2019, 10:54 AM   #13
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,261
Blog Entries: 21

Rep: Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785Reputation: 4785
Quote:
Originally Posted by sevendogsbsd View Post
So, the executable .fehbg file tells feh what the last wallpaper was and when it starts, to use that wallpaper. It doesn't start feh though, you have to do that via .xinitrc or some other method.
It does start feh. Here is the content of the file on my system:
Code:
#!/bin/sh
feh --bg-scale '/home/hazel/.fluxbox/backgrounds/wallpaper.jpg'
 
Old 05-09-2019, 12:07 PM   #14
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Quote:
Originally Posted by hazel View Post
It does start feh. Here is the content of the file on my system:
Code:
#!/bin/sh
feh --bg-scale '/home/hazel/.fluxbox/backgrounds/wallpaper.jpg'
Right, I was going off memory, which in my advanced age may or may not be reliable...
 
Old 05-09-2019, 07:57 PM   #15
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,891

Original Poster
Blog Entries: 28

Rep: Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347Reputation: 6347
Thanks for all the suggestions! I'll look into them tomorrow and let you know what I find.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] AntiX MATE: How do I stop DE from autostarting? walterbyrd antiX / MX Linux 2 04-30-2017 04:15 PM
LXer: Ubuntu MATE 15.04 Arrives With MATE Desktop 1.8.2 and MATE Tweak LXer Syndicated Linux News 0 05-15-2015 09:30 AM
fluxbox feh fbsetbg background error on startup trey85stang Debian 0 10-12-2009 11:03 AM
fbsetbg wont recognize feh is installed in fluxbox 0.9.13 debiant Linux - Software 4 08-07-2006 10:36 PM
Fluxbox, dockapps not autostarting madchmst82 Linux - General 5 09-23-2003 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration