Page 1 of 7 123 ... LastLast
Results 1 to 10 of 65

Thread: How do I create a wallpaper package?

  1. #1
    Join Date
    Mar 2011
    Beans
    802
    Distro
    Ubuntu 13.04 Raring Ringtail

    Question How do I create a wallpaper package?

    How do I create a wallpaper package as a .deb file that will make the wallpapers automatically appear on the Change Desktop Background's 'wallpaper' list?
    Bring Chrome to the Software Center. Now.
    https://bugs.launchpad.net/ubuntu/+s...r/+bug/1186564

  2. #2
    Join Date
    Feb 2010
    Location
    WI USA
    Beans
    9,785
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I create a wallpaper package?

    I think there are wallpaper changer applications available , but have never attempted to write one. I only see Wally in the software center so far. Check here: http://www.liberiangeek.net/2012/03/...cise-pangolin/
    Last edited by Frogs Hair; July 27th, 2012 at 09:20 PM.
    Infinite diversity in infinite combination.

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Manual

  3. #3
    Join Date
    Mar 2011
    Beans
    802
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How do I create a wallpaper package?

    Quote Originally Posted by Frogs Hair View Post
    I think there are wallpaper changer applications available , but have never attempted to write one. I only see Wally in the software center so far.
    Great app, but no thanks
    I want to create a wallpaper pack to mass-distribute on the Ubuntu Software Center, so it will have to be one that auto-configures itself in such a way that the computer "sees" them on the first 'Wallpapers' list on the stock wallpaper changer program in Ubuntu.
    Bring Chrome to the Software Center. Now.
    https://bugs.launchpad.net/ubuntu/+s...r/+bug/1186564

  4. #4
    Join Date
    Dec 2007
    Location
    /home
    Beans
    483

    Re: How do I create a wallpaper package?

    you'll need a directory called whatever you want to call your package. inside that directory, another directory called DEBIAN, and another called usr. inside usr, another directory called share. inside share, another called backgrounds. inside backgrounds, your wallpaper.

    inside the DEBIAN directory, 2 files: a text file called "control" and a "postinst" script.

    this is an example of a control file:

    Code:
    Package: package name
    Priority: optional
    Section: misc
    Maintainer: your name <your@email>
    Architecture: all
    Version: version number
    Depends: whatever it depends on.
    Description: a brief description of what your package includes or does.
    notice the blank line at the end. it's important.

    the postinst script will just tell the system what to do with the included files. here's an example:

    Code:
    #!/bin/bash
    
    chmod a+r /usr/share/backgrounds/your-awesome-wallpaper
    
    exit 0

    once you have this, you'll need to change ownership of the directory. suppose you have it on /home/you/wallpaper

    you would:

    Code:
    sudo chown -R root.root /home/you/wallpaper
    once ownership has been given to root, you just build the package.

    Code:
    sudo dpkg -b /home/you/wallpaer wallpaper.deb
    and that's it.

    it sounds and looks more complicated than it really is.
    Don't eff with The Cult...

  5. #5
    Join Date
    Mar 2011
    Beans
    802
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How do I create a wallpaper package?

    Thanks
    I'll probably need some more help, but if and when I do, I'll hit you up! Thanks
    Bring Chrome to the Software Center. Now.
    https://bugs.launchpad.net/ubuntu/+s...r/+bug/1186564

  6. #6
    Join Date
    Mar 2011
    Beans
    802
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How do I create a wallpaper package?

    What would I put for "depends"? "Section"?
    Bring Chrome to the Software Center. Now.
    https://bugs.launchpad.net/ubuntu/+s...r/+bug/1186564

  7. #7
    Join Date
    Dec 2007
    Location
    /home
    Beans
    483

    Smile Re: How do I create a wallpaper package?

    well, if it's just a set of wallpapers, i guess you could leave it blank it's just images, so it doesn't really need anything other tan a display.
    Don't eff with The Cult...

  8. #8
    Join Date
    Mar 2011
    Beans
    802
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How do I create a wallpaper package?

    If I have multiple pictures, how would I design the Postinst file? The postinst file is confusing me
    Bring Chrome to the Software Center. Now.
    https://bugs.launchpad.net/ubuntu/+s...r/+bug/1186564

  9. #9
    Join Date
    Dec 2007
    Location
    /home
    Beans
    483

    Smile Re: How do I create a wallpaper package?

    well, the postinst script just makes sure that everything is set up with the right permissions once installed. you want to make sure the user has read permissions on all the images.

    so, for example, if your wallpapers are called image1, image2, image3, and so on, you would have to do as follows:

    Code:
    #!/bin/bash
    
    chmod a+r /usr/share/backgrounds/image1
    chmod a+r /usr/share/backgrounds/image2
    chmod a+r /usr/share/backgrounds/image3
    
    exit 0
    this way you'll ensure that all users have read permissions on the images. otherwise they won't be able to see them, even if they're on the correct directory.
    Don't eff with The Cult...

  10. #10
    Join Date
    Mar 2011
    Beans
    802
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How do I create a wallpaper package?

    Okay, now if there is a space in the file name, do I put a "_" (underscore) or just keep a space?
    Bring Chrome to the Software Center. Now.
    https://bugs.launchpad.net/ubuntu/+s...r/+bug/1186564

Page 1 of 7 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •