|
2010-12-26
, 13:27
|
Posts: 235 |
Thanked: 339 times |
Joined on Nov 2010
|
#2
|
The Following User Says Thank You to jstokes For This Useful Post: | ||
|
2010-12-26
, 14:27
|
Posts: 2,290 |
Thanked: 4,134 times |
Joined on Apr 2010
@ UK
|
#3
|
The Following User Says Thank You to sixwheeledbeast For This Useful Post: | ||
|
2010-12-28
, 10:42
|
Posts: 5 |
Thanked: 2 times |
Joined on Dec 2010
|
#4
|
|
2010-12-28
, 10:52
|
Posts: 235 |
Thanked: 339 times |
Joined on Nov 2010
|
#5
|
The Following 2 Users Say Thank You to jstokes For This Useful Post: | ||
|
2010-12-28
, 11:24
|
Posts: 5 |
Thanked: 2 times |
Joined on Dec 2010
|
#6
|
Try:
dbus-send --print-reply --dest=com.nokia.gnumeric /com/nokia/gnumeric com.nokia.gnumeric.mime_open string:'file://myfile'
The Following User Says Thank You to Psioneer For This Useful Post: | ||
|
2011-04-07
, 20:44
|
Posts: 2,290 |
Thanked: 4,134 times |
Joined on Apr 2010
@ UK
|
#7
|
It is. If you look at its source, you will see that it calls osso_mime_set_cb to set a callback function that will be invoked if the program is started with the mime_open D-Bus method - this is how you, once you've registered a MIME type, get libhildonmime etc. to pass the filename to the program.
Try:
dbus-send --print-reply --dest=com.nokia.gnumeric /com/nokia/gnumeric com.nokia.gnumeric.mime_open string:'file://myfile'
I have unsuccessfully tried a few commands and finally got it to work using:
/usr/bin/browser_dbuscmd.sh load_url file:///myflie | echo ""
Only problem being it opens the default browser (firefox) and asks if I want to open/save/nothing this file. This uses a shed load of processing power and takes a while espically when on the phone to a customer.
The other way is to create a shortcut to gnumeric and open the file using recently used.
But is it possible to get my QBW to just open my file?
Thanks in advance.
Last edited by sixwheeledbeast; 2010-12-26 at 14:31.