Nitrogen not restoring wallpaper

jedi

Just a heads up to let you know that there is a known bug that is causing Nitrogen to not replace your wallpaper on a logout or reboot.  It is because of Conky using the 'desktop' own_window_type. Nitrogen 'sees' that and thinks it is an overlay covering the whole desktop.  So, no wallpaper.  I've gotten around it by using the (sleep 10s && launch foo here) in my autostart file in ./.fluxbox directory.  YMMV...
Forum Netiquette

"No matter how smart you are you can never convince someone stupid that they are stupid."  Anonymous

PackRat

What's the order in your autostart - Who's on first, conky or nitrogen?
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

#2
Quote from: PackRat on December 24, 2016, 05:39:48 PM
What's the order in your autostart - Who's on first, conky or nitrogen?

Conky is first up... Just corrected this on the ISO's and tested it

I have nitrogen on a 10s pause and it all starts the way is should .. I am going to tweak the times a bit make conky 3s and nitrogen 6s delays

Edit - Settled on 3s and 6s respectively 
VSIDO      VSIDO Change Blog    

    I dev VSIDO

VastOne

ISO's now look like this

(sleep 3s && conky -c ~/.conkyrc) &
(sleep 6s && nitrogen --restore) &
VSIDO      VSIDO Change Blog    

    I dev VSIDO

PackRat

I would also put nitrogen first - let it restore the wallpaper before conky starts.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

^ that's how I originally had it and it failed..
VSIDO      VSIDO Change Blog    

    I dev VSIDO

PackRat

#6
This is what I pulled of the live VSIDO -

sleep 1
{
compton --config ~/.compton.conf &
(sleep 3s && wicd-gtk --tray) &
(sleep 3s && conky -c ~/.conkyrc) &
nitrogen --restore &
## (sleep 3s && lxpanel) &
<snip>


I'd try it like -


<snip>

nitrogen --restore &

compton &
(sleep 3s && conky) &
(sleep 3s && tint2-bottom) &
(sleep 3s && tint2-top) &

< the apps like wicd --tray , no particular order >


Let nitrogen restore the wallpaper before anything else starts and keep it out of the sleep routines - maybe even add a sleep condition to compton. Then start up all those apps after the tint2 system tray is all set to go.

The startup file is read top-bottom and mixing the "sleep" and "&" may be causing some of the problem.

Edit - this doesn't always work - No problem with it on the desktop computer, wallpaper fails to restore on the laptop. Setup similar to what vastone previously posted works.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

#7
I just uploaded the new ISO's that has the following changes on it now

(sleep 3s && conky -c ~/.conkyrc) &
(sleep 6s && nitrogen --restore) &


It works... is there any particular reason why it should not be done this way?

VSIDO      VSIDO Change Blog    

    I dev VSIDO

jedi

I'm sorry guys.  Been out of commission lately due to cavities.  I ended up starting Nitrogen first, then putting a 30 second pause on Conky.  30 seconds is extreme but I really don't care as long as it worked.  Mine is all set running Nitrogen first and delaying the Conky's.
Forum Netiquette

"No matter how smart you are you can never convince someone stupid that they are stupid."  Anonymous

VastOne

#9
I'll redo the ISO's

Thanks
VSIDO      VSIDO Change Blog    

    I dev VSIDO

VastOne

VSIDO      VSIDO Change Blog    

    I dev VSIDO

PackRat

from the nitrogen dev -

Quote<snip>
I've discovered an issue with Nitrogen and Conky (with own_window/own_window_type='desktop'
<snip>

based on that comment, I switched from:

own_window = 'desktop',

to

own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',


and everything seems to be working fine with running nitrogen before conky:

~/.fluxbox/startup
# set wallpaper
# fbsetbg -c -r "$HOME/wallpaper" &
nitrogen --restore &

(sleep 2s && compton) &
(sleep 2s && tint2) &
(sleep 2s && conky -dc $HOME/conky/conkyfboxrc) &
#(sleep 10s && conky -dc $HOME/conky/conkyfboxrc) &

(sleep 2s && wicd-gtk --tray) &
# (sleep 2s && nitrogen --restore) &


Maybe tintker with the own_window_type 'normal' and own_window_type = 'override' settings and see if you get some results you like.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

#12
My personal one was always normal until Jedi brought this issue up  ...  :-[  and there is NO issue when it is normal

I cannot recall why the ISO's are set to desktop but I am sure there was a reason for it

:D

I do know that the fonts in the top conky bar looks better when it is set to desktop vs normal
VSIDO      VSIDO Change Blog    

    I dev VSIDO

VastOne

Quote from: PackRat on December 25, 2016, 12:41:46 AM

Edit - this doesn't always work - No problem with it on the desktop computer, wallpaper fails to restore on the laptop. Setup similar to what vastone previously posted works.


Just came on to say basically the same thing.. on my desktop, your proposal of putting nitrogen works perfectly but on the build machines (v-box setup) it will only work the way I now have it on the ISO's

Strange strange strange
VSIDO      VSIDO Change Blog    

    I dev VSIDO