AvANa-BBS / freepto-lb

Encrypted GNU/Linux OS (based on Debian Wheezy) which can be installed on USB flash drive. Freepto is designed for encrypt your communications, carry your documents in secure way and save your anonymity.
http://www.freepto.mx/
43 stars 14 forks source link

Wallpaper on a second monitor #139

Open ghost opened 10 years ago

ghost commented 10 years ago

When a second monitor is used the default debian wallpaper is showed. It should be changed with the freepto wallpaper.

boyska commented 10 years ago

It seems not to be so easy: xfce4 does not obey to /etc/alternatives/desktop-background, nor /etc/alternatives/desktop-background.xml. Maybe it just looks to /etc/xdg/xfce4 ? It seems very hard to fix it.

Anyway, a hook that does

cp /etc/alternatives/desktop-background.xml /etc/skel/.config/xfce4/blablab/xfce4-desktop.xml

looks certainly better than the current situation!

boyska commented 10 years ago

this does the job:

xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path -s /usr/share/images/freepto-graphics/freepto-wallpaper_1024x768.png

but how can we set it at default? will it work as a chroot-hook?

boyska commented 10 years ago

seems that the configuration is read from /usr/share/desktop-base/profiles/xdg-config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml which basically fetches /usr/share/images/desktop-base/default-background

boyska commented 10 years ago

a51a8d8 starts addressing this problem.

How to test

Download: http://dev.freepto.mx/dev/139-graphics/140904_14.59_v1.0alpha1-39-g1f476a3-it/ Virtualization: I think that you CANNOT use virtualization What to do:

  1. Run freepto, and check that the default background is the black one with the freepto logo on it.
  2. Attach a secondo monitor and check that the background is the same