|
2011-12-19
, 14:18
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#52
|
Awww, this is disappointing. And I was under the impression in the first version it didn't work like this. Can't you implement it so that meefolders uses it's own .desktop files (perhaps copied) so that we're free to rename the ones we don't want in the main screen after putting them in folders? It would make the main app screen SO much tidier
|
2011-12-19
, 14:21
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#53
|
Hi,
Can you share how you execute the aplications? I'm getting problems using the qprocess... :s can you share this little piece of code? thanks
|
2011-12-19
, 15:03
|
Posts: 586 |
Thanked: 471 times |
Joined on Jan 2010
@ Finland
|
#54
|
|
2011-12-19
, 15:07
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#55
|
|
2011-12-19
, 15:07
|
Posts: 34 |
Thanked: 12 times |
Joined on Sep 2009
@ Portugal, Porto
|
#56
|
I don't use QProcess for this. I just call Qt.openUrlExternally(<path/to/desktop/file>) from QML. This is the same as using QDesktopServices:penUrl(QUrl(<path/to/desktop/file>)). I would only use QProcess if I needed more control.
|
2011-12-19
, 15:14
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#57
|
Thanks
But per example for Maps applications you get "/usr/bin/invoker --type=e /usr/bin/maps -u %U" in exec parameter. Do you use all the string in Qt.openUrlExternally? Like this Qt.openUrlExternally("/usr/bin/invoker --type=e /usr/bin/maps -u %U") ?
I'm asking because i can't try it right now
Qt.openUrlExternally("/usr/share/applications/maps.desktop")
The Following User Says Thank You to marxian For This Useful Post: | ||
|
2011-12-19
, 15:28
|
Posts: 34 |
Thanked: 12 times |
Joined on Sep 2009
@ Portugal, Porto
|
#58
|
It is the .desktop file itself that I pass to Qt.openUrlExternally(), not the value of the Exec key, so for Maps it would be
This ensures that the application is launched in exactly the same way as if the user clicked the desktop icon.Code:Qt.openUrlExternally("/usr/share/applications/maps.desktop")
|
2011-12-19
, 15:31
|
|
Posts: 2,448 |
Thanked: 9,523 times |
Joined on Aug 2010
@ Wigan, UK
|
#59
|
Thanks but i still need to try use it with QProcess because i need to have some control over the apps :s
|
2011-12-19
, 15:47
|
Posts: 359 |
Thanked: 162 times |
Joined on Jan 2011
@ Budapest
|
#60
|
tryin' to remove some shortcuts from the desktop ( once they are in my fav folder ) but some weird appz like the " drivin map" is hard to find ( strange name in /usr/share/applications )
Do you copy the shortucts put in folder somewhere ? would be easier to find all shortcuts alreay on created folders
Thanks
grep "<name of icon>" *.desktop
The Following User Says Thank You to noetus For This Useful Post: | ||
Can you share how you execute the aplications? I'm getting problems using the qprocess... :s can you share this little piece of code? thanks