|
2010-06-16
, 17:23
|
|
Posts: 579 |
Thanked: 471 times |
Joined on Jan 2010
@ Austria
|
#242
|
New version in Extras-devel (1.2.13) has rudimentary, hackish support for mimetypes. If your file doesn't have a recognised file extension, it will try to match the file to a recognised mimetype.
I have added a new file,
/home/user/.mimetypes/user-mimetypes.list
which you must edit by hand. Find the mimetype in the incredibly long list (taken from my desktop Ubuntu defaults.list) and change the "none" to the name of the handler (from the Handlers list in the GUI).
I have defined one mimetype as an example, application/pdf=Evince to show you how to do it (and to keep the invaluable rebhana as my betatester ).
|
2010-06-16
, 17:32
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#243
|
For this I had to extend the "incredibly long" user-mimetypes.list file even more, so in time I'll feed back my version of it!
Now to a new problem I've encountered:
I believe in the previous version of dbus-switchboard, I could use microB to view my directories and when I clicked on an .odt file, it would open OO Writer immediately. For some reason that doesn't work any longer.
dbus-switchboard.py
|
2010-06-16
, 17:37
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#244
|
|
2010-06-16
, 17:40
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#245
|
|
2010-06-16
, 17:43
|
|
Posts: 579 |
Thanked: 471 times |
Joined on Jan 2010
@ Austria
|
#246
|
[user@deb-m5v3d: ~]mimetype Anmeldung.doc Anmeldung.doc: application/msword
dbus-switchboard started -- -- dbus-switchboard: Received an RPC to mime_open. -- dbus-switchboard: RPC had arguments ['//home/user/Anmeldung.doc']. -- dbus-switchboard: Interface is org.dbus.switchsvc -- dbus-switchboard: user_data is <osso.context.Context object at 0x1e5ff0> _rpc_callback_handler: Exception occurred during callback execution. Traceback (most recent call last): File "rpc.pyx", line 16, in osso.rpc._rpc_callback_handler (osso/rpc.c:1473) File "/usr/bin/dbus-switchboard.py", line 76, in callback_func docmimetype = gnomevfs.get_mime_type(params2) RuntimeError: there was an error reading the file
|
2010-06-16
, 17:52
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#247
|
The Following User Says Thank You to qole For This Useful Post: | ||
|
2010-06-16
, 18:27
|
|
Posts: 579 |
Thanked: 471 times |
Joined on Jan 2010
@ Austria
|
#248
|
I'll package up another version ASAP.
Why do they send such a strange parameter?
['//home/user/docname.doc']
The two slashes aren't part of any convention that I'm aware of...
EDIT: Rebhana, do you want to give me your mimetype list extensions?
OpenOffice,cli,"debbie-sue ooffice ""%params%""" DEvince,cli,"debbie-sue evince ""%params%"""
|
2010-06-16
, 19:32
|
|
Posts: 579 |
Thanked: 471 times |
Joined on Jan 2010
@ Austria
|
#249
|
|
2010-06-16
, 19:58
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#250
|
rm -r /home/user/.mimetypes
cp /usr/lib/dbus-switchboard/user-mimetypes.list /home/user/.mimetypes
The Following 3 Users Say Thank You to qole For This Useful Post: | ||
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!