Ubuntu Pastebin

Paste from log at Thu, 4 Jun 2015 14:33:56 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
=== modified file 'debian/control'
--- debian/control	2015-05-12 14:18:34 +0000
+++ debian/control	2015-06-04 14:33:29 +0000
@@ -79,7 +79,7 @@
          suru-icon-theme,
          whoopsie-preferences (>= 0.9),
          libsystemsettings1 (= ${binary:Version}),
-         system-image-dbus (>= 2.5),
+         system-image-dbus (>= 2.5) | system-image-snappy-cli,
          click,
          ubuntu-keyboard-data (>= 0.99.trunk.phablet2+15.04.20150421),
          urfkill,

=== modified file 'lib/SystemSettings/item-base.cpp'
--- lib/SystemSettings/item-base.cpp	2013-09-12 11:17:35 +0000
+++ lib/SystemSettings/item-base.cpp	2015-06-04 14:04:02 +0000
@@ -40,6 +40,7 @@
 const QLatin1String keyHasDynamicKeywords("has-dynamic-keywords");
 const QLatin1String keyHasDynamicVisibility("has-dynamic-visibility");
 const QLatin1String keyHideByDefault("hide-by-default");
+const QLatin1String keyVisibleIfExists("visible-if-exists");
 
 class ItemBasePrivate
 {

=== modified file 'lib/SystemSettings/item-base.h'
--- lib/SystemSettings/item-base.h	2014-10-27 13:28:49 +0000
+++ lib/SystemSettings/item-base.h	2015-06-04 13:53:49 +0000
@@ -40,6 +40,7 @@
 extern const QLatin1String keyHasDynamicKeywords;
 extern const QLatin1String keyHasDynamicVisibility;
 extern const QLatin1String keyHideByDefault;
+extern const QLatin1String keyVisibleIfExists;
 
 class ItemBasePrivate;
 class ItemBase: public QObject

=== modified file 'plugins/system-update/system-update.settings'
--- plugins/system-update/system-update.settings	2014-09-24 17:10:03 +0000
+++ plugins/system-update/system-update.settings	2015-06-04 14:30:49 +0000
@@ -9,6 +9,7 @@
         "software",
         "update",
         "apps",
+        "application",
         "automatic",
         "download",
         "upgrade",
@@ -16,5 +17,7 @@
     ],
     "has-dynamic-keywords": false,
     "has-dynamic-visibility": false,
-    "page-component": "PageComponent.qml"
+    "page-component": "PageComponent.qml",
+    "visible-if-exists": "/usr/share/dbus-1/system-services/com.canonical.SystemImage.service"
 }
+

=== modified file 'src/plugin.cpp'
--- src/plugin.cpp	2014-10-27 13:29:30 +0000
+++ src/plugin.cpp	2015-06-04 14:27:51 +0000
@@ -220,6 +220,12 @@
 bool Plugin::isVisible() const
 {
     Q_D(const Plugin);
+    if (!d->m_data.value(keyVisibleIfExists).isNull()) {
+        QFile KeyFile(d->m_data.value(keyVisibleIfExists).toString());
+        if (!KeyFile.exists())
+                return false;
+    }
+
     // TODO: visibility check depending on form-factor
     if (d->m_data.value(keyHasDynamicVisibility).toBool()) {
         if (!d->ensureLoaded()) return false;
Download as text