![]() |
ical sync via dbus - howto?
I've almost complete a new app, but i need to use the calendar import feature of the default calendar. Generating an ics file and opening it via file manager works. How can I automate this operation? I've tried of course from cli, but "of course" osso-filemanager accepts no arguments.
So the question is: what are file bindings or whatever they're called, that we can launch skipping file-manager? ie: can we use the sharing file fun. from outside? etc. |
Re: pipe thru osso-file-manager| file bindings | howto?
ok, sorry guys i didn't know i should have to use dbus & mime types. can someone be so kind and help me find the dbus-send command for opening a file in calendar?
|
Re: pipe thru osso-file-manager| file bindings | howto?
Quote:
|
Re: pipe thru osso-file-manager| file bindings | howto?
just in case someone else looks for it this is how to use it in a python function. The bold part is the dbus call.
Code:
def on_actionSync_triggered(self): |
Re: [solved] pipe thru osso-file-manager| file bindings | howto?
ok, seemed nice but there's something wrong: the calendar application crashes with an "error encountered". But opening the file via file manager works. what I'm missing? should I register the application somehow?
|
Re: pipe thru osso-file-manager| file bindings | howto?
and this is the dbus monitor out, just in case ...
Code:
method call sender=:1.301 -> dest=com.nokia.calendar serial=17 path=/com/nokia/calendar; interface=com.nokia.calendar; member=mime_open |
Re: ical sync via dbus - howto?
oh, and is working also via cepiperez filebox but only sometimes with his "openfile" script
|
Re: ical sync via dbus - howto?
I know that I'm quite boring, but I really need someone help with this.
this is the full dbus-monitor out, opening via filebox. Code:
signal sender=org.freedesktop.DBus -> dest=:1.145 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired |
Re: pipe thru osso-file-manager| file bindings | howto?
Quote:
Code:
import os There must be something other wrong with your code. I am not good in python, and don't know how $1 will be replaced, but maybe it should be outside of the single quote? os.system('dbus-send --type=method_call --dest=com.nokia.calendar /com/nokia/calendar com.nokia.calendar.mime_open string:"file:///$1"') regards Nicolai |
Re: ical sync via dbus - howto?
is working now.. thanks. Really! I owe you one...
|
All times are GMT. The time now is 04:50. |
vBulletin® Version 3.8.8