maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   How To : Associate MPlayer, Transmission, and other apps as default handlers (https://talk.maemo.org/showthread.php?t=17757)

pipeline 2009-03-23 23:05

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Tso, see the tear thread for reply.


Un27Pee : i already have a script to convert from Antiword to PDF to view in PDFviewer that is very fast and preserves fonts and some layout. Why would you want to use antiword -> leafpad? If there is a valid reason you would need script similar to my antiword->pdf script to associate as a handler.

TheOne 2009-03-23 23:26

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Thanks for the great app pipeline, much appreciated. This is for tso:

http://www.youtube.com/watch?v=7php1cwD-Jo&fmt=18

armtwister 2009-03-25 18:39

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
pipeline - thanks for this fantastic work!

Quote:

pipeline: If you figure out new apps that work, let me know and i'll add them to configuration files.
This may be old hat, but the Gimp (from qole's Easy Debian works:
sudo debian hilda gimp "%params%"
I've been looking at opening e-mail attachments with Debian apps, and I wonder if you'd take a look here? Thanks.

pipeline 2009-03-25 23:09

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
hey armtwister... it seems my debian hack is still in place so i am indeed still copying to /home/user/MyDocs for apps which :
- use /var/tmp directory (such as opening from web or opening attachments)
- and whose handler includes the word 'debian'.

I will remove that for next version since its no longer needed.

You could try editing (as root) the /usr/bin/dbus-switchboard.py file and removing the entire block which states 'Hack so that debian apps..." etc. its about 19 lines that would need to be removed.

Not sure if thats your problem or not... if you still encounter problems can you run dbus-switchboard.py (as user) in xterm, try opening your attachment, and then posting the output of the xterm console?

If thats too difficult, i can update the program this weekend and you can try it then.

You can also clean out the /home/user/MyDocs folder of old 'opened' attachments that are no longer needed. (since this directory isnt cleaned out on reboots like /var/tmp is)

armtwister 2009-03-25 23:29

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Quote:

You could try editing (as root) the /usr/bin/dbus-switchboard.py file and removing the entire block which states 'Hack so that debian apps..." etc. its about 19 lines that would need to be removed.
Yup, that does it - I'm so happy :D.

I had just spotted your debugging suggestion in your original post and tried it. I was about to post the output (which indeed shows it trying to move the attachment from /var/tmp to MyDocs and failing due to lack of the 9-digit directory in MyDocs), but there's now no need ;)!

I've learned quite a bit along the way...

Cheers!

qole 2009-03-25 23:38

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Also, see if replacing "sudo debian hilda" with "debbie" works. I would love to know if that works now.

armtwister 2009-03-26 09:03

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
Quote:

Also, see if replacing "sudo debian hilda" with "debbie" works. I would love to know if that works now.
Yup, this works fine for oowriter, so it should also work for oocalc and ooimpress.

Also Gimp - debbie gimp "%params%" - works.

pipeline 2009-04-11 04:47

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
I have updated to version 1.2.8 which :
- includes the fixes mentioned above (remove debian hack, and using debbie script)
- added handlers for pygtkeditor, geany, leafpad
- added mime type integration for several file types... this will show icons now for doc, xls, csv, cpp, h, cs, py, pdb, and maybe a few others.

If you have problems with cpp, c, or .h files it may be due to a mime package in /usr/share/mime/packages/cpp.xml which is installed by pygtkeditor... delete that as root then run as root :
update-mime-database /usr/share/mime (or just reinstall dbus-switchboard)

pipeline 2009-04-11 15:55

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
I had forgot to add support for .c files so i added that.

I also added icons for .vb files, .ppt files, .mid (midi) , tar.gz, .gpx, .jar, and .torrent icon.

Sorry to those that already downloaded, but i refreshed the version 1.2.8 with these additions.

wendythepooh 2009-04-13 04:21

Re: How To : Associate MPlayer, Transmission, and other apps as default handlers
 
sorry...i know nothing about Linux so I don't understand the scripts comments of above. I use Win ever since I use computer.
could anyone kindly tell me..when I get the error message of "unable to install dbus-switchboard. some application packages required for the installation are missing"..what should I do next please.

thank you


All times are GMT. The time now is 08:13.

vBulletin® Version 3.8.8