Comment 1 for bug 1427182

Revision history for this message
Iain Lane (laney) wrote :

I have comments

diff -Nru ubuntu-mate-settings-0.4.2ubuntu1/debian/control ubuntu-mate-settings-0.4.3ubuntu1/debian/control
--- ubuntu-mate-settings-0.4.2ubuntu1/debian/control 2015-02-13 16:38:54.000000000 +0000
+++ ubuntu-mate-settings-0.4.3ubuntu1/debian/control 2015-03-02 16:17:39.000000000 +0000
@@ -13,6 +13,7 @@
 Depends: ${misc:Depends}, libglib2.0-bin, mate-panel, ttf-ubuntu-font-family
 Replaces: policykit-desktop-privileges-ubuntu-mate
 Suggests: mate-desktop-environment-core (>= 1.8.0)
+Conflicts: xubuntu-default-settings
 Description: Default settings for Ubuntu MATE
  Various system settings tailored for Ubuntu MATE.

This seems quite bad. Is it for Qt settings? Could we instead change Qt to look for a Trolltech-$session.conf file? As a bonus it could then be in a system location instead of in the skel directory, which only works for new users.

I think that would probably even be acceptable for Qt upstream.

diff -Nru ubuntu-mate-settings-0.4.2ubuntu1/debian/ubuntu-mate-default-settings.postinst ubuntu-mate-settings-0.4.3ubuntu1/debian/ubuntu-mate-default-settings.postinst
--- ubuntu-mate-settings-0.4.2ubuntu1/debian/ubuntu-mate-default-settings.postinst 1970-01-01 01:00:00.000000000 +0100
+++ ubuntu-mate-settings-0.4.3ubuntu1/debian/ubuntu-mate-default-settings.postinst 2015-03-02 16:17:39.000000000 +0000
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ -f /etc/xdg/autostart/nm-applet-mate.desktop ]; then
+ rm -f /etc/xdg/autostart/nm-applet-mate.desktop
+fi
+
+if [ -f /etc/xdg/autostart/tilda.desktop ]; then
+ rm -f /etc/xdg/autostart/tilda.desktop
+fi
+
+#DEBHELPER#

You should use dpkg-maintscript-helper, so that user changes are preserved.

diff -Nru ubuntu-mate-settings-0.4.2ubuntu1/etc/profile.d/qt-accessibility.sh ubuntu-mate-settings-0.4.3ubuntu1/etc/profile.d/qt-accessibility.sh
--- ubuntu-mate-settings-0.4.2ubuntu1/etc/profile.d/qt-accessibility.sh 1970-01-01 01:00:00.000000000 +0100
+++ ubuntu-mate-settings-0.4.3ubuntu1/etc/profile.d/qt-accessibility.sh 2015-03-02 16:17:39.000000000 +0000
@@ -0,0 +1 @@
+export QT_ACCESSIBILITY=1

Can you please restrict this to your session too?