#17 feh command to set wallpaper
Merged 6 months ago by defolos. Opened 6 months ago by nasirhm.
i3-sig/ nasirhm/Fedora-i3-Spin background_live_wallpaper_fix  into  master

file modified
+6 -4
@@ -305,7 +305,6 @@ 

  # Remove machine-id on pre generated images

  rm -f /etc/machine-id

  touch /etc/machine-id

- 

  %end

  

  %post --nochroot
@@ -327,12 +326,10 @@ 

      %endif\

      ' /usr/share/lorax/templates.d/99-generic/live/x86.tmpl

  fi

- 

  %end

  

  %post

  # xfce configuration

- 

  # create /etc/sysconfig/desktop (needed for installation)

  

  cat > /etc/sysconfig/desktop <<EOF
@@ -372,10 +369,15 @@ 

  # and mark it as executable (new Xfce security feature)

  chmod +x /home/liveuser/Desktop/liveinst.desktop

  

+ # set background on LiveOS using feh by adding it .profile

+ echo "/usr/bin/feh --bg-scale /usr/share/backgrounds/default.png" >> /home/liveuser/.profile

+ 

  # this goes at the end after all other changes.

  chown -R liveuser:liveuser /home/liveuser

  restorecon -R /home/liveuser

  

+ 

+ 

  EOF

  

  %end
@@ -433,5 +435,5 @@ 

  i3status

  dunst

  brightlight

- 

+ feh

  %end

  • Addition of feh in the Packages list
  • Addition of /usr/bin/feh --bg-scale /usr/share/backgrounds/default.png in ~/.profile to set the wallpaper on LiveOS boot,

The background is now correctly set on Fedora 33 with this patch. Thanks @nasirhm!

Pull-Request has been merged by defolos

6 months ago
Metadata