[SCM] KDE Base Workspace module packaging branch, master, updated. debian/4.4.5-3-11-gf1ece5c

Modestas Vainius modax at alioth.debian.org
Tue Oct 19 22:02:08 UTC 2010


The following commit has been merged in the master branch:
commit c68f2da6f99485003a2bdd5435c7e96a283d8c32
Author: Modestas Vainius <modestas at vainius.eu>
Date:   Wed Oct 20 00:11:12 2010 +0300

    Tie autostart handling to the explicit --desktop option in plasma-netbook.
    
    This change was done in order to maintain command line option compatibility
    with unpatched version of the binary. --desktop is supported by original
    plasma-netbook where it has no effect while --autostart would trigger a failure
    to start if a user used the same profile (and hence incompatible autostart
    file) with original version. We don't want to leave a user without a plasma
    shell.
---
 .../patches/30_plasma_netbook_fix_autostart.diff   |   38 +++++++++++++-------
 1 files changed, 25 insertions(+), 13 deletions(-)

diff --git a/debian/patches/30_plasma_netbook_fix_autostart.diff b/debian/patches/30_plasma_netbook_fix_autostart.diff
index eb8017a..9dcc73e 100644
--- a/debian/patches/30_plasma_netbook_fix_autostart.diff
+++ b/debian/patches/30_plasma_netbook_fix_autostart.diff
@@ -7,15 +7,6 @@ This patch should fully fix problems with startup of plasma-netbook when
 plasma-desktop is NOT installed. We aim to support "plasma-desktop"-less
 installation via kde-plasma-netbook metapackage hence this bug was a
 showstopper for this goal.
---- a/plasma/netbook/shell/plasma-netbook.desktop
-+++ b/plasma/netbook/shell/plasma-netbook.desktop
-@@ -1,5 +1,5 @@
- [Desktop Entry]
--Exec=plasma-netbook --desktop
-+Exec=plasma-netbook --autostart
- X-DBUS-StartupType=wait
- Name=Plasma Netbook
- Name[ca]=Plasma Netbook
 --- a/plasma/netbook/shell/CMakeLists.txt
 +++ b/plasma/netbook/shell/CMakeLists.txt
 @@ -22,5 +22,5 @@ endif(X11_Xrender_FOUND)
@@ -32,17 +23,38 @@ showstopper for this goal.
      m_plasmaNetbookAutostart.setAutostarts(!isDesktop);
      m_plasmaNetbookAutostart.setStartPhase(KAutostart::BaseDesktop);
 -    m_plasmaNetbookAutostart.setCommand("plasma-netbook");
-+    m_plasmaNetbookAutostart.setCommand("plasma-netbook --autostart");
++    m_plasmaNetbookAutostart.setCommand("plasma-netbook --desktop");
      m_plasmaNetbookAutostart.setAllowedEnvironments(QStringList()<<"KDE");
  
      KConfigGroup winCg(m_kwinConfig, "Windows");
 --- a/plasma/netbook/shell/main.cpp
 +++ b/plasma/netbook/shell/main.cpp
-@@ -58,9 +58,13 @@ KDE_EXPORT int kdemain(int argc, char **
+@@ -41,10 +41,16 @@ KDE_EXPORT int kdemain(int argc, char **
+ 
+ 
+     bool customGraphicsSystem = false;
++    bool argExplicitDesktop = false;
+     for (int i = 0; i < argc; ++i) {
+-        if (QString(argv[i]) == "-graphicssystem") {
++        QString arg(argv[i]);
++        if (arg == "-graphicssystem") {
+             customGraphicsSystem = true;
+             break;
++        } else if (arg == "--desktop") {
++            argExplicitDesktop = true;
++        } else if (arg == "--nodesktop") {
++            argExplicitDesktop = false;
+         }
+     }
+ 
+@@ -58,9 +64,16 @@ KDE_EXPORT int kdemain(int argc, char **
      KCmdLineOptions options;
      options.add("nodesktop", ki18n("Starts as a normal application instead of as the primary user interface"));
      options.add("screen <geometry>", ki18n("The geometry of the screen"), "800x480");
-+    options.add("autostart", ki18n("Take into account autostart settings before starting"));
++    if (argExplicitDesktop)
++        options.add("noautostart", ki18n("Explicit --desktop enables autostart handling which may be disabled with this option"));
++    else
++        options.add("autostart", ki18n("Enable autostart handling"));
      KCmdLineArgs::addCmdLineOptions(options);
  
      PlasmaApp *app = PlasmaApp::self();
@@ -111,7 +123,7 @@ showstopper for this goal.
 +    if (netbookAutostart.autostarts() != m_shallBeStarted) {
 +        netbookAutostart.setAutostarts(m_shallBeStarted);
 +        netbookAutostart.setStartPhase(KAutostart::BaseDesktop);
-+        netbookAutostart.setCommand("plasma-netbook --autostart");
++        netbookAutostart.setCommand("plasma-netbook --desktop");
 +        netbookAutostart.setAllowedEnvironments(QStringList()<<"KDE");
 +    }
 +}

-- 
KDE Base Workspace module packaging



More information about the pkg-kde-commits mailing list