![]() |
Open desktop aplications using QProcess
I want to run an aplication using the information i got in aplication.desktop file. Per example for circus game i got the following information:
Name: "Circus" Exec: "/usr/bin/single-instance /usr/bin/incrediblecircus" Icon: "incrediblecircus" How i use the QProcess to run /usr/bin/single-instance /usr/bin/incrediblecircus ?! Thanks :) EDITED: It worked my bad :| but per example with maps it doesn't work: Code:
QProcess p; Quote:
|
Re: Open desktop aplications using QProcess
Quote:
Code:
p.start("/usr/bin/invoker --type=e /usr/bin/maps"); Code:
QStringList args; |
Re: Open desktop aplications using QProcess
Quote:
I knew that i need to pass the arguments as a argument of the function start but my problem is that i don't know what to do with "/usr/bin/invoker --type=e" thanks again :) |
Re: Open desktop aplications using QProcess
I can't run notes app per example :s
QStringList args; args << "-showWindow" << "%U"; p->start("/usr/bin/invoker --wait-term --delay=10 --type=m /usr/bin/notes", args); and still doesn't work if not include the arguments :s Can you help me? |
All times are GMT. The time now is 09:16. |
vBulletin® Version 3.8.8