Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 19336  / 1 Year ago, sun, november 13, 2022, 4:48:37

I am about to ship a new 10.04 installed system to a customer. This is the 1st system that we are shipping with our preinstalled software and an additional hardware test platform, so I thought it would be a nice idea to have the desktop wallpaper include our company's logo.



What I want to do is just to add the logo to the default background image. the questions are:




  1. Where are the set of backgrounds stored?

  2. What are the rules for creating a custom background from scratch?

  3. If I create a background from scratch, how do I add it to the system's background set (i.e., not just save it in the user's Pictures directory - I want it to be available to all future users of the machine)?


More From » 10.04

 Answers
7

  • Place the image that you want to use as background image at /usr/share/backgrounds/
    Example:



    sudo cp ~/Pictures/1.jpg /usr/share/backgrounds/1.jpg


  • Edit the /usr/share/gnome-background-properties/ubuntu-wallpapers.xml. Remove the default images (if you want to) and add custom entries and finally save the file. (Make sure that the entries are done before the last line, that is, before the </wallpapers> line). Example:




nits@nits-workstation:$ gksudo gedit/usr/share/gnome-background-properties/ubuntu- wallpapers.xml



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
<wallpaper>
<name>Custom_Back1</name>
<filename>/usr/share/backgrounds/1.jpg</filename>
<options>zoom</options>
<pcolor>#000000</pcolor>
<scolor>#000000</scolor>
<shade_type>solid</shade_type>
</wallpaper>
</wallpapers>



  • Now whenever a user tries to change the background, the files listed according to the XML file only will show up by default in the Appearances Preferences window


[#43033] Tuesday, November 15, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aciousoun

Total Points: 178
Total Questions: 110
Total Answers: 98

Location: Lithuania
Member since Fri, Sep 4, 2020
4 Years ago
;