Merge lp:~seb128/ubuntu-system-settings/unity-dash-screenshot into lp:ubuntu-system-settings

Proposed by Sebastien Bacher
Status: Merged
Approved by: Iain Lane
Approved revision: 558
Merged at revision: 562
Proposed branch: lp:~seb128/ubuntu-system-settings/unity-dash-screenshot
Merge into: lp:ubuntu-system-settings
Diff against target: 36 lines (+5/-1)
2 files modified
CMakeLists.txt (+4/-1)
ubuntu-system-settings.desktop.in (+1/-0)
To merge this branch: bzr merge lp:~seb128/ubuntu-system-settings/unity-dash-screenshot
Reviewer Review Type Date Requested Status
Iain Lane Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+201064@code.launchpad.net

Commit message

install a screenshot, to be used in the unity dash

Description of the change

install a screenshot, to be used in the unity dash

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Iain Lane (laney) wrote :

Hm, I don't like the overloading of PLUGIN_MODULE_DIR here. Please could you use a separate variable (alias PLUGIN_MODULE_DIR to it if you want)?

Also, now that I look at it, this directory scheme seems perverse. Why isn't it just /usr/share/ubuntu-system-settings/? If you don't have a reason I'd like to change it. u-s-s-online-accounts should be changed too as it's not using the variables from the pcfile when it should be.

review: Needs Fixing
Revision history for this message
Sebastien Bacher (seb128) wrote :

> Please could you use a separate variable

sure, I'm going to do that

> Why isn't it just /usr/share/ubuntu-system-settings/?

Yeah, I've been thinking the same but just have been too lazy to change it, feel free to do that if you want.

Note that it's you who acked that version [1] ;-)

[1] https://code.launchpad.net/~mardy/ubuntu-system-settings/private-module-dir/+merge/177801

557. By Sebastien Bacher

rebase on trunk

558. By Sebastien Bacher

use a new variable to install the screenshot image

Revision history for this message
Sebastien Bacher (seb128) wrote :

I've pushed an update using a new variable, we should change the directory in another merge request (synced with an online account update)

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Iain Lane (laney) wrote :

Good!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2014-01-07 10:48:58 +0000
3+++ CMakeLists.txt 2014-01-13 14:30:13 +0000
4@@ -54,6 +54,7 @@
5 set(PLUGIN_MODULE_DIR "${CMAKE_INSTALL_PREFIX}/${LIBDIR}/${PLUGIN_MODULE_DIR_BASE}")
6 set(PLUGIN_QML_DIR "${CMAKE_INSTALL_PREFIX}/${PLUGIN_QML_DIR_BASE}")
7 set(PLUGIN_PRIVATE_MODULE_DIR "${CMAKE_INSTALL_PREFIX}/${LIBDIR}/${PLUGIN_PRIVATE_MODULE_DIR_BASE}")
8+set(SETTINGS_SHARE_DIR "${CMAKE_INSTALL_PREFIX}/${PLUGIN_MANIFEST_DIR_BASE}")
9
10 set(ANDR_PROP_LIB -landroid-properties)
11
12@@ -68,7 +69,9 @@
13 add_subdirectory(src)
14 add_subdirectory(tests)
15
16-install(FILES ubuntu-system-settings.desktop DESTINATION share/applications)
17+configure_file(ubuntu-system-settings.desktop.in ubuntu-system-settings.desktop @ONLY)
18+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ubuntu-system-settings.desktop DESTINATION share/applications)
19+install(FILES screenshot.png DESTINATION ${SETTINGS_SHARE_DIR})
20
21 if(cmake_build_type_lower MATCHES coverage)
22 ENABLE_COVERAGE_REPORT(TARGETS system-settings FILTER /usr/include ${CMAKE_SOURCE_DIR}/test/* ${CMAKE_BINARY_DIR}/*)
23
24=== added file 'screenshot.png'
25Binary files screenshot.png 1970-01-01 00:00:00 +0000 and screenshot.png 2014-01-13 14:30:13 +0000 differ
26=== renamed file 'ubuntu-system-settings.desktop' => 'ubuntu-system-settings.desktop.in'
27--- ubuntu-system-settings.desktop 2013-10-01 14:56:47 +0000
28+++ ubuntu-system-settings.desktop.in 2014-01-13 14:30:13 +0000
29@@ -7,6 +7,7 @@
30 StartupNotify=true
31 Categories=System;
32 Keywords=Preferences;Settings;
33+X-Screenshot=@SETTINGS_SHARE_DIR@/screenshot.png
34 X-Ubuntu-Gettext-Domain=ubuntu-system-settings
35 X-Ubuntu-Touch=true
36 X-Ubuntu-StageHint=SideStage

Subscribers

People subscribed via source and target branches