Changeset View
Changeset View
Standalone View
Standalone View
kcms/autostart/autostart.cpp
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
48 | { | 48 | { | ||
49 | widget = new Ui_AutostartConfig(); | 49 | widget = new Ui_AutostartConfig(); | ||
50 | widget->setupUi(this); | 50 | widget->setupUi(this); | ||
51 | 51 | | |||
52 | QStringList lstHeader; | 52 | QStringList lstHeader; | ||
53 | lstHeader << i18n( "Name" ) | 53 | lstHeader << i18n( "Name" ) | ||
54 | << i18n( "Command" ) | 54 | << i18n( "Command" ) | ||
55 | << i18n( "Status" ) | 55 | << i18n( "Status" ) | ||
56 | << i18nc("@title:column The name of the column that decides if the program is run on kde startup, on kde shutdown, etc", "Run On" ); | 56 | << i18nc("@title:column The name of the column that decides if the program is run on session startup, on session shutdown, etc", "Run On" ); | ||
57 | widget->listCMD->setHeaderLabels(lstHeader); | 57 | widget->listCMD->setHeaderLabels(lstHeader); | ||
58 | widget->listCMD->setFocus(); | 58 | widget->listCMD->setFocus(); | ||
59 | 59 | | |||
60 | setButtons(Help); | 60 | setButtons(Help); | ||
61 | 61 | | |||
62 | connect( widget->btnProperties, SIGNAL(clicked()), SLOT(slotEditCMD()) ); | 62 | connect( widget->btnProperties, SIGNAL(clicked()), SLOT(slotEditCMD()) ); | ||
63 | connect( widget->listCMD, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)), SLOT(slotEditCMD(QTreeWidgetItem*)) ); | 63 | connect( widget->listCMD, SIGNAL(itemDoubleClicked(QTreeWidgetItem*,int)), SLOT(slotEditCMD(QTreeWidgetItem*)) ); | ||
64 | 64 | | |||
65 | 65 | | |||
66 | connect(widget->btnAddScript, &QPushButton::clicked, this, &Autostart::slotAddScript); | 66 | connect(widget->btnAddScript, &QPushButton::clicked, this, &Autostart::slotAddScript); | ||
67 | connect(widget->btnAddProgram, &QPushButton::clicked, this, &Autostart::slotAddProgram); | 67 | connect(widget->btnAddProgram, &QPushButton::clicked, this, &Autostart::slotAddProgram); | ||
68 | connect(widget->btnRemove, &QPushButton::clicked, this, &Autostart::slotRemoveCMD); | 68 | connect(widget->btnRemove, &QPushButton::clicked, this, &Autostart::slotRemoveCMD); | ||
69 | connect(widget->btnAdvanced, &QPushButton::clicked, this, &Autostart::slotAdvanced); | 69 | connect(widget->btnAdvanced, &QPushButton::clicked, this, &Autostart::slotAdvanced); | ||
70 | connect(widget->listCMD, &QTreeWidget::itemClicked, this, &Autostart::slotItemClicked); | 70 | connect(widget->listCMD, &QTreeWidget::itemClicked, this, &Autostart::slotItemClicked); | ||
71 | connect(widget->listCMD, &QTreeWidget::itemSelectionChanged, this, &Autostart::slotSelectionChanged); | 71 | connect(widget->listCMD, &QTreeWidget::itemSelectionChanged, this, &Autostart::slotSelectionChanged); | ||
72 | 72 | | |||
73 | 73 | | |||
74 | KAboutData* about = new KAboutData(QStringLiteral("Autostart"), | 74 | KAboutData* about = new KAboutData(QStringLiteral("Autostart"), | ||
75 | i18n("KDE Autostart Manager"), | 75 | i18n("Session Autostart Manager"), | ||
ltoscano: Should this be "Session" or "Plasma Session"? Aren't the settings changed here valid for all… | |||||
lukas: Yes, it should be valid for all DEs (I'd vote for "Session" only then) | |||||
76 | QStringLiteral("1.0"), | 76 | QStringLiteral("1.0"), | ||
77 | i18n("KDE Autostart Manager Control Panel Module"), | 77 | i18n("Session Autostart Manager Control Panel Module"), | ||
78 | KAboutLicense::GPL, | 78 | KAboutLicense::GPL, | ||
79 | i18n("Copyright © 2006–2010 Autostart Manager team")); | 79 | i18n("Copyright © 2006–2010 Autostart Manager team")); | ||
80 | about->addAuthor(i18n("Stephen Leaf"), QString(), QStringLiteral("smileaf@gmail.com")); | 80 | about->addAuthor(i18n("Stephen Leaf"), QString(), QStringLiteral("smileaf@gmail.com")); | ||
81 | about->addAuthor(i18n("Montel Laurent"), i18n( "Maintainer" ), QStringLiteral("montel@kde.org")); | 81 | about->addAuthor(i18n("Montel Laurent"), i18n( "Maintainer" ), QStringLiteral("montel@kde.org")); | ||
82 | setAboutData( about ); | 82 | setAboutData( about ); | ||
83 | 83 | | |||
84 | } | 84 | } | ||
85 | 85 | | |||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
131 | } | 131 | } | ||
132 | 132 | | |||
133 | 133 | | |||
134 | void Autostart::load() | 134 | void Autostart::load() | ||
135 | { | 135 | { | ||
136 | // FDO user autostart directories are | 136 | // FDO user autostart directories are | ||
137 | // .config/autostart which has .desktop files executed by klaunch | 137 | // .config/autostart which has .desktop files executed by klaunch | ||
138 | 138 | | |||
139 | //Then we have KDE specific locations which run scripts | 139 | //Then we have Plasma-specific locations which run scripts | ||
140 | // .config/autostart-scripts which has scripts executed by ksmserver | 140 | // .config/autostart-scripts which has scripts executed by ksmserver | ||
141 | // .config/plasma-workspace/shutdown which has scripts executed by startkde | 141 | // .config/plasma-workspace/shutdown which has scripts executed by startkde | ||
142 | // .config/plasma-workspace/env which has scripts executed by startkde | 142 | // .config/plasma-workspace/env which has scripts executed by startkde | ||
143 | 143 | | |||
144 | //in the case of pre-startup they have to end in .sh | 144 | //in the case of pre-startup they have to end in .sh | ||
145 | //everywhere else it doesn't matter | 145 | //everywhere else it doesn't matter | ||
146 | 146 | | |||
147 | //the comment above describes how autostart *currently* works, it is not definitive documentation on how autostart *should* work | 147 | //the comment above describes how autostart *currently* works, it is not definitive documentation on how autostart *should* work | ||
▲ Show 20 Lines • Show All 322 Lines • Show Last 20 Lines |
Should this be "Session" or "Plasma Session"? Aren't the settings changed here valid for all desktops which follow the XDG spec?