Reply
Thread Tools
Posts: 145 | Thanked: 32 times | Joined on Dec 2007
#1
Hi all. I've installed ogg support and can play ogg files
just fine. But media player refuses to recognize these
files as audio files. I have to use the file manager and
then select media player to play the ogg file.

Is there a way to associate the type .ogg with media
player? TIA,
 
Posts: 18 | Thanked: 2 times | Joined on Dec 2007 @ Missoula, MT
#2
This inquiring mind wants to know, too.
__________________
Ruby Personal Locator for the N810
 
Posts: 59 | Thanked: 66 times | Joined on May 2007
#3
The associations are mime type based, not file extension based. *.ogg files can be audio and/or video (and maybe something else too).

I've created but about the File Manager not being able to launch applications for files in certain cases (like this one).

The bug: http://bugs.maemo.org/show_bug.cgi?id=2521
 

The Following User Says Thank You to kulve For This Useful Post:
pipeline's Avatar
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#4
kulve your 'diagnostic' hildon-mime-summon2 is priceless! (which is good thats what i can afford)

Even though there is the 'first-load' issue with mime-open (vs mime-play?) in media player, it works perfectly if left open.

Thanks for releasing code as well... If you dont mind i would like to add this utility to next version of emelfm2 file manager, using it as a shim for opening in targets which are hildon (such as media player, image viewer, etc)

I hope bug2521 gets fixed but your workaround is useful for any shell/script user.

Any chance you could write a simple utility to do the inverse of this? For instance opening a file from hildon file manager would call your dispell (?) utility to convert into command line for non-hildonized targets such as... hmm lets say torrents? I realize the mime-registration is a lot of work but the base utility wouldnt have to know about that and wouldnt need to be rebuilt... so that could be worked out later (after of course a single test mime registration proves it works).

Thanks again- this really helps understand whats going on.

Last edited by pipeline; 2008-01-04 at 13:51.
 
Posts: 59 | Thanked: 66 times | Joined on May 2007
#5
Originally Posted by pipeline View Post
Thanks for releasing code as well... If you dont mind i would like to add this utility to next version of emelfm2 file manager, using it as a shim for opening in targets which are hildon (such as media player, image viewer, etc)
Go ahead. It's basically just one function call.

Originally Posted by pipeline View Post
Any chance you could write a simple utility to do the inverse of this? For instance opening a file from hildon file manager would call your dispell (?) utility to convert into command line for non-hildonized targets such as... hmm lets say torrents? I realize the mime-registration is a lot of work but the base utility wouldnt have to know about that and wouldnt need to be rebuilt... so that could be worked out later (after of course a single test mime registration proves it works).
If I understood you correctly you want to open e.g. torrent client by clicking .torrent file from (any) file manager? There's nothing hildon spesific in that. It should work by adding a mime type for torrent (see /usr/share/mime/packages/freedesktop.org.xml on your desktop computer) and by adding application/x-bittorrent to some application's .desktop file.
 
pipeline's Avatar
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#6
Doesn't the application need to be compiled to 'receive' those mime file/open commands.

I thought/think that in order for hildon filemanager to open a mime type , that target application would need to code a osso callback function like :
http://maemo.org/api_refs/3.0/liboss..._MIME.html#ga1

So all the apps being ported which only work via command line would have to be modified to get mime parameters/commands.

Is there some way i can have file manager launch a non-hildonized application and pass that filename over the command line?

Last edited by pipeline; 2008-01-05 at 19:45.
 
Posts: 59 | Thanked: 66 times | Joined on May 2007
#7
Originally Posted by pipeline View Post
I thought/think that in order for hildon filemanager to open a mime type , that target application would need to code a osso callback function like :
Ah, yes, you are right about that. I don't know if the situation has changed for Chinook but at least for Bora the app really needed to set up that callback.

Some sort of wrapper tool could be possible to launch apps in the normal style.
 
pipeline's Avatar
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#8
Ahh, thanks... and thanks for the utility.

I hope to see more of your 'bug test cases' in the future
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 20:56.