Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Plasma Phone Components
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
26
Issues
26
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Plasma
Plasma Phone Components
Commits
8d31e6b8
Commit
8d31e6b8
authored
Jul 28, 2016
by
Bhushan Shah
📱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch to krunner for launching applications
KRun was ported to kf5 since long time.. CCMAIL: notmart@gmail.com
parent
63358567
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
20 deletions
+0
-20
containments/homescreen/applicationlistmodel.cpp
containments/homescreen/applicationlistmodel.cpp
+0
-18
containments/homescreen/applicationlistmodel.h
containments/homescreen/applicationlistmodel.h
+0
-2
No files found.
containments/homescreen/applicationlistmodel.cpp
View file @
8d31e6b8
...
...
@@ -241,7 +241,6 @@ Q_INVOKABLE void ApplicationListModel::moveItem(int row, int destination)
endMoveRows
();
}
//TODO: the implementation of runApplicationKRun should be the only one remaining
void
ApplicationListModel
::
runApplication
(
const
QString
&
storageId
)
{
if
(
storageId
.
isEmpty
())
{
...
...
@@ -250,23 +249,6 @@ void ApplicationListModel::runApplication(const QString &storageId)
KService
::
Ptr
service
=
KService
::
serviceByStorageId
(
storageId
);
//ignore parameters like %u
QStringList
args
=
KShell
::
splitArgs
(
service
->
exec
().
replace
(
QRegExp
(
"%
\\
w"
),
""
));
QString
exec
=
args
.
takeFirst
();
qDebug
()
<<
"exec -> "
<<
exec
;
qDebug
()
<<
"args -> "
<<
args
;
qDebug
()
<<
"path -> "
<<
service
->
path
();
QProcess
::
startDetached
(
exec
,
args
,
service
->
path
());
}
void
ApplicationListModel
::
runApplicationKRun
(
const
QString
&
storageId
)
{
if
(
storageId
.
isEmpty
())
{
return
;
}
KService
::
Ptr
service
=
KService
::
serviceByStorageId
(
storageId
);
KRun
::
run
(
*
service
,
QList
<
QUrl
>
(),
0
);
}
...
...
containments/homescreen/applicationlistmodel.h
View file @
8d31e6b8
...
...
@@ -71,8 +71,6 @@ public:
Q_INVOKABLE
void
runApplication
(
const
QString
&
storageId
);
Q_INVOKABLE
void
runApplicationKRun
(
const
QString
&
storageId
);
Q_INVOKABLE
void
loadApplications
();
public
Q_SLOTS
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment