Merge lp:~silver-fox/ubuntu-desktop-accomplishments/change-wallpaper into lp:ubuntu-desktop-accomplishments

Proposed by s.fox
Status: Merged
Merged at revision: 29
Proposed branch: lp:~silver-fox/ubuntu-desktop-accomplishments/change-wallpaper
Merge into: lp:ubuntu-desktop-accomplishments
Diff against target: 84 lines (+70/-0)
3 files modified
accomplishments/ubuntu-desktop/en/accessories/change-wallpaper.accomplishment (+18/-0)
generated/accomplishments/ubuntu-desktop/change-wallpaper.c (+42/-0)
scripts/ubuntu-desktop/accessories/change-wallpaper.py (+10/-0)
To merge this branch: bzr merge lp:~silver-fox/ubuntu-desktop-accomplishments/change-wallpaper
Reviewer Review Type Date Requested Status
Ubuntu Desktop Accomplishments Reviewers Pending
Review via email: mp+111039@code.launchpad.net

Description of the change

Added accomplishment for changing wallpaper.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'accomplishments/ubuntu-desktop/en/accessories/change-wallpaper.accomplishment'
2--- accomplishments/ubuntu-desktop/en/accessories/change-wallpaper.accomplishment 1970-01-01 00:00:00 +0000
3+++ accomplishments/ubuntu-desktop/en/accessories/change-wallpaper.accomplishment 2012-06-19 15:45:26 +0000
4@@ -0,0 +1,18 @@
5+[accomplishment]
6+title=Change Wallpaper
7+description=You have changed your wallpaper
8+category=Accessories:System Settings
9+icon=default.png
10+author=s.fox <silver-fox@ubuntu.com>
11+collection=ubuntu-desktop
12+summary=This accomplishment is awarded when you change the wallpaper used by Ubuntu.
13+steps=Click the <i>Dash Home</i>
14+ Enter <i>System Settings</i>
15+ You will be presented with the System Settings application
16+ Click the <i>System Settings</i> icon
17+ Click <i>Appearance</i> icon
18+ Click + button
19+ <i>Navigate to</i> and <i>select</i> new wallpaper
20+tips=You can edit positioning and background colour
21+help=https://help.ubuntu.com/12.04/ubuntu-help/look-background.html
22+
23
24=== added file 'generated/accomplishments/ubuntu-desktop/change-wallpaper.c'
25--- generated/accomplishments/ubuntu-desktop/change-wallpaper.c 1970-01-01 00:00:00 +0000
26+++ generated/accomplishments/ubuntu-desktop/change-wallpaper.c 2012-06-19 15:45:26 +0000
27@@ -0,0 +1,42 @@
28+[accomplishment]
29+// ACCOMPLISHMENT: Completed Mahjongg - The Pyramid's Wall Level ('title' field)
30+// .
31+// ORIGINAL TRANSLATION:
32+// Completed Mahjongg - The Pyramid's Wall Level
33+
34+// .
35+// ----- TRANSLATION INSTRUCTIONS -----
36+// A short description of the accomplishment.
37+// NOTE: Describe this in the past tense as if it has been achieved (e.g. Registered On Launchpad).
38+_("ubuntu-desktop/mahjongg-pyramid_title")
39+// ACCOMPLISHMENT: Completed Mahjongg - The Pyramid's Wall Level ('description' field)
40+// .
41+// ORIGINAL TRANSLATION:
42+// You have completed Mahjongg - The Pyramid's Wall Level
43+
44+// .
45+// ----- TRANSLATION INSTRUCTIONS -----
46+// Add a descriptive single-line summary of the accomplishment.
47+_("ubuntu-desktop/mahjongg-pyramid_description")
48+// ACCOMPLISHMENT: Completed Mahjongg - The Pyramid's Wall Level ('summary' field)
49+// .
50+// ORIGINAL TRANSLATION:
51+// Mahjongg is a solitaire (one player) version of the classic Eastern tile game, Mahjongg. The objective is to select pairs of similar tiles. To achieve this accomplishment all you need to do is to clear the grid on the The Pyramid's Wall level
52+
53+// .
54+// ----- TRANSLATION INSTRUCTIONS -----
55+// Introduce the accomplishment, explain what the different concepts are that are involved, and provide guidance on how to accomplish it.
56+// NOTE: Break this into paragraphs by putting each paragraph on a new line.
57+// FORMATTING ALLOWED: <i> <strong> <tt>
58+_("ubuntu-desktop/mahjongg-pyramid_summary")
59+// ACCOMPLISHMENT: Completed Mahjongg - The Pyramid's Wall Level ('help' field)
60+// .
61+// ORIGINAL TRANSLATION:
62+// https://live.gnome.org/Mahjongg
63+
64+// .
65+// ----- TRANSLATION INSTRUCTIONS -----
66+// Add related help resources (e.g. IRC channel names).
67+// NOTE: Put each help resource on a new line
68+// FORMATTING ALLOWED: <i> <strong> <tt>
69+_("ubuntu-desktop/mahjongg-pyramid_help")
70
71=== added file 'scripts/ubuntu-desktop/accessories/change-wallpaper.py'
72--- scripts/ubuntu-desktop/accessories/change-wallpaper.py 1970-01-01 00:00:00 +0000
73+++ scripts/ubuntu-desktop/accessories/change-wallpaper.py 2012-06-19 15:45:26 +0000
74@@ -0,0 +1,10 @@
75+#!/usr/bin/python
76+import sys, subprocess
77+p = subprocess.Popen(["gconftool-2", "--get", "/desktop/gnome/background/picture_filename"],stdout=subprocess.PIPE)
78+result = p.communicate(0)
79+if (result == '') or (result == 'file:///usr/share/backgrounds/warty-final-ubuntu.png'):
80+ #user has not changed wallpaper'
81+ sys.exit(1)
82+else:
83+ #user has changed wallpaper'
84+ sys.exit(0)

Subscribers

People subscribed via source and target branches