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
=== added file 'accomplishments/ubuntu-desktop/en/accessories/change-wallpaper.accomplishment'
--- accomplishments/ubuntu-desktop/en/accessories/change-wallpaper.accomplishment 1970-01-01 00:00:00 +0000
+++ accomplishments/ubuntu-desktop/en/accessories/change-wallpaper.accomplishment 2012-06-19 15:45:26 +0000
@@ -0,0 +1,18 @@
1[accomplishment]
2title=Change Wallpaper
3description=You have changed your wallpaper
4category=Accessories:System Settings
5icon=default.png
6author=s.fox <silver-fox@ubuntu.com>
7collection=ubuntu-desktop
8summary=This accomplishment is awarded when you change the wallpaper used by Ubuntu.
9steps=Click the <i>Dash Home</i>
10 Enter <i>System Settings</i>
11 You will be presented with the System Settings application
12 Click the <i>System Settings</i> icon
13 Click <i>Appearance</i> icon
14 Click + button
15 <i>Navigate to</i> and <i>select</i> new wallpaper
16tips=You can edit positioning and background colour
17help=https://help.ubuntu.com/12.04/ubuntu-help/look-background.html
18
019
=== added file 'generated/accomplishments/ubuntu-desktop/change-wallpaper.c'
--- generated/accomplishments/ubuntu-desktop/change-wallpaper.c 1970-01-01 00:00:00 +0000
+++ generated/accomplishments/ubuntu-desktop/change-wallpaper.c 2012-06-19 15:45:26 +0000
@@ -0,0 +1,42 @@
1[accomplishment]
2// ACCOMPLISHMENT: Completed Mahjongg - The Pyramid's Wall Level ('title' field)
3// .
4// ORIGINAL TRANSLATION:
5// Completed Mahjongg - The Pyramid's Wall Level
6
7// .
8// ----- TRANSLATION INSTRUCTIONS -----
9// A short description of the accomplishment.
10// NOTE: Describe this in the past tense as if it has been achieved (e.g. Registered On Launchpad).
11_("ubuntu-desktop/mahjongg-pyramid_title")
12// ACCOMPLISHMENT: Completed Mahjongg - The Pyramid's Wall Level ('description' field)
13// .
14// ORIGINAL TRANSLATION:
15// You have completed Mahjongg - The Pyramid's Wall Level
16
17// .
18// ----- TRANSLATION INSTRUCTIONS -----
19// Add a descriptive single-line summary of the accomplishment.
20_("ubuntu-desktop/mahjongg-pyramid_description")
21// ACCOMPLISHMENT: Completed Mahjongg - The Pyramid's Wall Level ('summary' field)
22// .
23// ORIGINAL TRANSLATION:
24// 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
25
26// .
27// ----- TRANSLATION INSTRUCTIONS -----
28// Introduce the accomplishment, explain what the different concepts are that are involved, and provide guidance on how to accomplish it.
29// NOTE: Break this into paragraphs by putting each paragraph on a new line.
30// FORMATTING ALLOWED: <i> <strong> <tt>
31_("ubuntu-desktop/mahjongg-pyramid_summary")
32// ACCOMPLISHMENT: Completed Mahjongg - The Pyramid's Wall Level ('help' field)
33// .
34// ORIGINAL TRANSLATION:
35// https://live.gnome.org/Mahjongg
36
37// .
38// ----- TRANSLATION INSTRUCTIONS -----
39// Add related help resources (e.g. IRC channel names).
40// NOTE: Put each help resource on a new line
41// FORMATTING ALLOWED: <i> <strong> <tt>
42_("ubuntu-desktop/mahjongg-pyramid_help")
043
=== added file 'scripts/ubuntu-desktop/accessories/change-wallpaper.py'
--- scripts/ubuntu-desktop/accessories/change-wallpaper.py 1970-01-01 00:00:00 +0000
+++ scripts/ubuntu-desktop/accessories/change-wallpaper.py 2012-06-19 15:45:26 +0000
@@ -0,0 +1,10 @@
1#!/usr/bin/python
2import sys, subprocess
3p = subprocess.Popen(["gconftool-2", "--get", "/desktop/gnome/background/picture_filename"],stdout=subprocess.PIPE)
4result = p.communicate(0)
5if (result == '') or (result == 'file:///usr/share/backgrounds/warty-final-ubuntu.png'):
6 #user has not changed wallpaper'
7 sys.exit(1)
8else:
9 #user has changed wallpaper'
10 sys.exit(0)

Subscribers

People subscribed via source and target branches