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?
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
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.
"Our intention creates our reality. "
Ubuntu Documentation Search: Popular Pages
Ubuntu: Security Basics
Ubuntu: Flavors
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
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:
notice the blank line at the end. it's important.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.
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:
once ownership has been given to root, you just build the package.Code:sudo chown -R root.root /home/you/wallpaper
and that's it.Code:sudo dpkg -b /home/you/wallpaer wallpaper.deb
it sounds and looks more complicated than it really is.
Don't eff with The Cult...
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
What would I put for "depends"? "Section"?
Bring Chrome to the Software Center. Now.
https://bugs.launchpad.net/ubuntu/+s...r/+bug/1186564
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...
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
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:
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.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
Don't eff with The Cult...
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
Bookmarks