Notices


Reply
Thread Tools
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#311
Sash, Feedingit must not be able to handle parameters passed on the command line. This thread has some tips for sending parameters via dbus. Alternately, you can ask FeedingIt's developer to make the app accept command line parameters.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following 2 Users Say Thank You to qole For This Useful Post:
Posts: 150 | Thanked: 80 times | Joined on Dec 2009
#312
Cheers anyway qole. I'll have a look through the thread for more info on sending parameters via dbus.
 

The Following User Says Thank You to Sash For This Useful Post:
Posts: 324 | Thanked: 371 times | Joined on Dec 2009 @ Vancouver, BC
#313
Like qole said, FeedingIt doesn't understand the command line parameter you are giving it. To add a feed, you can use this command line:
dbus-send --session /org/maemo/feedingit org.maemo.feedingit.AddFeed
'string:http://rss.example.com'
If that doesn't do what you want, please submit a feature request for FeedingIt.
 

The Following 2 Users Say Thank You to Slocan For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#314
Sash: You can add that dbus-send command to dbus-switchboard, in the Handlers window. Substitute %params% where Slocan has "http://rss.example.com" and it should work.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following 3 Users Say Thank You to qole For This Useful Post:
Posts: 150 | Thanked: 80 times | Joined on Dec 2009
#315
I'm afraid it didn't work for me . I'll make a feature request for it though.

This is what I get in X-Term:
Code:
dbus-switchboard.py 
dbus-switchboard started
--
-- dbus-switchboard: Received an RPC to mime_open.
-- dbus-switchboard: RPC had arguments ['http://feeds.digg.com/digg/popular.rss'].
-- dbus-switchboard: Interface is org.dbus.switchsvc 
-- dbus-switchboard: user_data is <osso.context.Context object at 0x407bf030> 
------
-- params : file://http://feeds.digg.com/digg/popular.rss
-- params2 : http://feeds.digg.com/digg/popular.rss
-- realparams : file://http://feeds.digg.com/digg/popular.rss
-- realparams2 : http://feeds.digg.com/digg/popular.rss
------
-- dbus-switchboard (runcmd) : /usr/bin/run-standalone.sh dbus-send --session /org/maemo/feedingit org.maemo.feedingit.AddFeed 'string:file://http://feeds.digg.com/digg/popular.rss' &
 

The Following User Says Thank You to Sash For This Useful Post:
Posts: 324 | Thanked: 371 times | Joined on Dec 2009 @ Vancouver, BC
#316
I apologize, it looks like the dbus-send command requires a couple more arguments (not exactly sure why though). Try with this:
dbus-send --print-reply --dest='org.maemo.feedingit' --session /org/maemo/feedingit org.maemo.feedingit.AddFeed 'string:%params%'
However, there shouldn't be the "file://" in front of the URL. Maybe with %params2% ?
 

The Following User Says Thank You to Slocan For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#317
Slocan's right, use %params2%
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following User Says Thank You to qole For This Useful Post:
Posts: 352 | Thanked: 231 times | Joined on Jul 2008 @ Vancouver
#318
m-player on my n810 (with gui) could play gsm encoded .wav files.
i have tyred kMplayer and it cant play them.

So I was wondering with the command line MPlayer will play gsm encoded .wav files?

if so (i would like to test it) how do you open a wav file from the command line?

And if i want to set MPlayer as my dealt handler for .wav files from e-mail and file manager, is the how too distilled into a Wiki or do I have to read the 317 posts to find the info ;-)

thanks
__________________
the bugs below are important to the overall success of the n900 so please vote.
https://bugs.maemo.org/show_bug.cgi?id=6892
https://bugs.maemo.org/show_bug.cgi?id=8343
 
Posts: 150 | Thanked: 80 times | Joined on Dec 2009
#319
I've tried it again with the new code but unless I'm doing something wrong that doesn't work as well:

Code:
 $ dbus-switchboard.py 
dbus-switchboard started
--
-- dbus-switchboard: Received an RPC to mime_open.
-- dbus-switchboard: RPC had arguments ['http://feeds.digg.com/digg/popular.rss'].
-- dbus-switchboard: Interface is org.dbus.switchsvc 
-- dbus-switchboard: user_data is <osso.context.Context object at 0x407bf030> 
------
-- params : file://http://feeds.digg.com/digg/popular.rss
-- params2 : http://feeds.digg.com/digg/popular.rss
-- realparams : file://http://feeds.digg.com/digg/popular.rss
-- realparams2 : http://feeds.digg.com/digg/popular.rss
------
-- dbus-switchboard (runcmd) : /usr/bin/run-standalone.sh dbus-send --print-reply --dtest='org.maemo.feedingit' --session /org/maemo/feedingit org.maemo.feedingit.AddFeed 'string:http://feeds.digg.com/digg/popular.rss' &
Usage: dbus-send [--help] [--system | --session | --address=ADDRESS] [--dest=NAME] [--type=TYPE] [--print-reply=(literal)] [--reply-timeout=MSEC] <destination object path> <message name> [contents ...]
 
Posts: 134 | Thanked: 91 times | Joined on Nov 2009 @ Imperial College London
#320
Originally Posted by Sash View Post
I've tried it again with the new code but unless I'm doing something wrong that doesn't work as well:

Code:
 $ dbus-switchboard.py 
dbus-switchboard started
--
-- dbus-switchboard: Received an RPC to mime_open.
-- dbus-switchboard: RPC had arguments ['http://feeds.digg.com/digg/popular.rss'].
-- dbus-switchboard: Interface is org.dbus.switchsvc 
-- dbus-switchboard: user_data is <osso.context.Context object at 0x407bf030> 
------
-- params : file://http://feeds.digg.com/digg/popular.rss
-- params2 : http://feeds.digg.com/digg/popular.rss
-- realparams : file://http://feeds.digg.com/digg/popular.rss
-- realparams2 : http://feeds.digg.com/digg/popular.rss
------
-- dbus-switchboard (runcmd) : /usr/bin/run-standalone.sh dbus-send --print-reply --dtest='org.maemo.feedingit' --session /org/maemo/feedingit org.maemo.feedingit.AddFeed 'string:http://feeds.digg.com/digg/popular.rss' &
Usage: dbus-send [--help] [--system | --session | --address=ADDRESS] [--dest=NAME] [--type=TYPE] [--print-reply=(literal)] [--reply-timeout=MSEC] <destination object path> <message name> [contents ...]
Typo alert - dtest should be dest.

I don't think you need to go through dbus-switchboard if feedingit has been set up to recieve params through dbus though - what happens if you just change your default rss reader to feedingit?

(EDIT) Looks like people more versed in how feedingit works have already commented so I guess that's not so easy...

Cheers,
Jan
 

The Following 3 Users Say Thank You to Big Phat Jan For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 19:10.