How to open apps programmatically?
Unfortunately it is not possible any more to open apps with Qt.openUrlExternally()
like
Qt.openUrlExternally("/usr/share/applications/jolla-gallery.desktop")
These API changes are annoying. Has someone a solution? Maybe with some DBus stuff?
@jsommer
On a different note, but within the scope of what you are asking, I'd like to ask why you have opened practically the same question you posed just a few months back?; https://together.jolla.com/question/186475/how-to-launch-any-app-programmatically/
I answered you there as well, please close this question, there really is no point in posting duplicates.
Spam Hunter ( 2019-09-08 00:25:14 +0200 )editThe reason, why I have posted this question was, that the previous solution with Qt.openUrlExternally() doesn't work any more.
I think, last time I struggled with the import statement of the second option with a LauncherItem. Now I tried several imports:
The first one works to create a
LauncherItem
:For any reasons, the system complains now about a
Notification
definition like this:This worked before I have used the import statement. The log output says:
If I remove the last property, the log says:
In the end I have to remove each property in the definition. There seem to be a conflict after the import of Lipstick
jsommer ( 2019-09-08 00:44:04 +0200 )editThis was due to an actual bug fixing on the libcontentaction (some time back in july). It wasnt supposed to be workable at all. .desktops are "special" kind of files, which are not supposed to be opened as executables, for instance
tortoisedoc ( 2019-09-08 12:11:14 +0200 )editThe idea is you edit the old question, you've been here long enough to know this is how it works.
Spam Hunter ( 2019-09-08 12:40:13 +0200 )edit@tortoisedoc Thanks for the background information
@Edz Thank you for referring to the forum rules. Sometimes I confuse the many forums a bit. Community members in the UBports forum for example recommend to create new posts instead of editing old ones.
jsommer ( 2019-09-08 17:57:12 +0200 )edit