The Following 2 Users Say Thank You to Copernicus For This Useful Post: | ||
|
2013-04-19
, 23:27
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#12
|
The Following 2 Users Say Thank You to qwazix For This Useful Post: | ||
|
2013-04-20
, 06:52
|
|
Posts: 368 |
Thanked: 826 times |
Joined on May 2012
@ India
|
#13
|
The Following 2 Users Say Thank You to bibek For This Useful Post: | ||
|
2013-04-20
, 10:56
|
Posts: 22 |
Thanked: 9 times |
Joined on Jun 2012
|
#14
|
The Following User Says Thank You to nauman.altaf For This Useful Post: | ||
|
2013-04-20
, 16:07
|
|
Posts: 368 |
Thanked: 826 times |
Joined on May 2012
@ India
|
#15
|
The Following User Says Thank You to bibek For This Useful Post: | ||
|
2013-04-20
, 16:42
|
|
Moderator |
Posts: 2,622 |
Thanked: 5,447 times |
Joined on Jan 2010
|
#16
|
The Following 3 Users Say Thank You to qwazix For This Useful Post: | ||
|
2013-04-21
, 06:35
|
Posts: 22 |
Thanked: 9 times |
Joined on Jun 2012
|
#17
|
|
2013-04-22
, 17:44
|
Posts: 22 |
Thanked: 9 times |
Joined on Jun 2012
|
#18
|
(I'm not entirely sure that you need such a complex system for this task, but it should work.)
I don't think you need a daemon at all (or even listen to DBus) if you define a mime type for your app. Your app should get called automatically whenever the user attempts to use an item corresponding to the mime type, right? You should be able to avoid using C++ at all and just use a pure QML application that way...
And if I may, let me review a few points of C programming again. In C/C++, an executable program is defined by a "main()" routine. There is exactly one "main()" routine (spelled with four letters, all lower case); it really wouldn't make much sense for more than one to exist, as the compiler then wouldn't know which one would really be the "main" main function.