Merge lp:~teemperor/pantheon-greeter/wallpaper-settings-from-file into lp:~elementary-pantheon/pantheon-greeter/trunk
Status: | Work in progress |
---|---|
Proposed branch: | lp:~teemperor/pantheon-greeter/wallpaper-settings-from-file |
Merge into: | lp:~elementary-pantheon/pantheon-greeter/trunk |
Diff against target: |
650 lines (+328/-208) 5 files modified
src/PantheonGreeter.vala (+4/-6) src/PantheonUser.vala (+7/-13) src/UserList.vala (+2/-2) src/Wallpaper.vala (+102/-187) src/WallpaperActor.vala (+213/-0) |
To merge this branch: | bzr merge lp:~teemperor/pantheon-greeter/wallpaper-settings-from-file |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Cody Garver (community) | Needs Fixing | ||
Review via email: mp+229515@code.launchpad.net |
Description of the change
LightDM-API doesn't supply things like scaling-method and primary/
So we read from now on the necessary information for the wallpaper from a file from the disk.
The file is named greeter-settings and is just a set of UTF-8-encoded key-value pars.
It is located directory in the home-folder of each user as we can read that on elementary OS due to 755 rights.
For other distributions like arch (which use 700-rights by default) we need to make a workaround with an external directory in case the user wants it background displayed without making his home 755 or 711.
This merge adds the functionality to the greeter that we read the file from the disk and display the wallpaper itself. Things like scaling and color are ignored for now, if i would add this too to the patch we would end up with a humongous match that nobody wants to review (like last time when i started dumping patches on lp).
Things that should be tested:
* It can read the wallpaper from the disk and displays it in any form (scaling is as said not the target of this patch).
* It doesn't crash on a malformed greeter-settings file
You can use this program [1] to generate a greeter-settings file for now. It's up to decision on what way this file will be written (gala-plugin, cerbere-service, directly from the shell-plug).
Cheers
Unmerged revisions
- 276. By Raphael Isemann
-
We now read the wallpaper from a .greeter-settings file
Patch was not supposed to be that big, i renamed Wallpaper.vala to WallpaperActor.vala due to the fact that one now represents the actual Wallpaper and the other the actor on the screen. The renaming made the diff quite big.