You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
plasma-desktop/0006-Fix-Bug-266760-The-aut...

31 lines
1.0 KiB

From ecbefe504d792aa5700451e8987ec05fdae2bf1d Mon Sep 17 00:00:00 2001
From: Montel Laurent <montel@kde.org>
Date: Sat, 7 Mar 2015 15:20:34 +0100
Subject: [PATCH 6/8] Fix Bug 266760 - The autostart kcm doesn't show the
correct name immediately after "adding program"
FIXED-IN: Plasma-5.2.1
BUG: 266760
---
kcms/autostart/autostart.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kcms/autostart/autostart.cpp b/kcms/autostart/autostart.cpp
index e948087..fd41fc8 100644
--- a/kcms/autostart/autostart.cpp
+++ b/kcms/autostart/autostart.cpp
@@ -302,8 +302,9 @@ void Autostart::slotAddProgram()
if ( dlg.exec() != QDialog::Accepted )
return;
}
+ KDesktopFile newConf(desktopTemplate.path());
DesktopStartItem * item = new DesktopStartItem( desktopPath, m_programItem,this );
- addItem( item, service->name(), m_pathName[0], service->exec() , false);
+ addItem( item, service->name(), m_pathName[0], newConf.desktopGroup().readEntry("Exec") , false);
}
void Autostart::slotAddScript()
--
1.9.3