Reply
Thread Tools
Posts: 34 | Thanked: 12 times | Joined on Sep 2009 @ Portugal, Porto
#51
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
 
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#52
Originally Posted by noetus View Post
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
I'll do it for the next update.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#53
Originally Posted by metRo_ View Post
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
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.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following 2 Users Say Thank You to marxian For This Useful Post:
Posts: 586 | Thanked: 471 times | Joined on Jan 2010 @ Finland
#54
Originally Posted by noetus View Post
No, it's good
Hah. Yeah, but can i get fired or something like that. Maybe you guys must wait. PR1.2 is here soon.
 
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#55
Originally Posted by Makeclick View Post
soon
Nokia's favourite word. Will it be here before Belle?
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following 3 Users Say Thank You to marxian For This Useful Post:
Posts: 34 | Thanked: 12 times | Joined on Sep 2009 @ Portugal, Porto
#56
Originally Posted by marxian View Post
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.
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
 
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#57
Originally Posted by metRo_ View Post
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
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

Code:
Qt.openUrlExternally("/usr/share/applications/maps.desktop")
This ensures that the application is launched in exactly the same way as if the user clicked the desktop icon.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following User Says Thank You to marxian For This Useful Post:
Posts: 34 | Thanked: 12 times | Joined on Sep 2009 @ Portugal, Porto
#58
Originally Posted by marxian View Post
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

Code:
Qt.openUrlExternally("/usr/share/applications/maps.desktop")
This ensures that the application is launched in exactly the same way as if the user clicked the desktop icon.
Thanks but i still need to try use it with QProcess because i need to have some control over the apps :s
 
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#59
Originally Posted by metRo_ View Post
Thanks but i still need to try use it with QProcess because i need to have some control over the apps :s
If you start a thread in the Development section explaining what you are trying to do, I should be able to help.
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 
Posts: 359 | Thanked: 162 times | Joined on Jan 2011 @ Budapest
#60
Originally Posted by clovis86 View Post
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
In general if you need to find what .desktop file corresponds to an icon and it's not immediately obvious from the .desktop file name, try the following from within /usr/share/applications or /home/user/.local/share/applications:

Code:
grep "<name of icon>" *.desktop
 

The Following User Says Thank You to noetus For This Useful Post:
Reply

Tags
folders, organise


 
Forum Jump


All times are GMT. The time now is 22:31.