Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Associating file types with different applications?

    Reply
    dblank | # 1 | 2007-11-08, 19:53 | Report

    Can anyone explain how this is properly done? I really expected there to be an option in the gui, or at the very least something like "Open with.." in the long press context menu, but as far as I can tell there's nothing like this.

    I've been trying to get .wavs to play with the sox "play" command instead of mediaplayer-ui, here's the steps I've taken so far:

    removed audio/x-wav MimeType from /usr/share/applications/hildon/mp_ui.desktop

    created /usr/share/applications/hildon/play.desktop:
    [Desktop Entry]
    Encoding=UTF-8
    Version=1.0
    Type=Application
    Name=play
    Exec=/usr/bin/play %f
    X-Osso-Type=application/x-executable
    MimeType=audio/x-wav

    ran update-desktop-database

    Tried launching .wav from File Manager, get error:
    Unable to recognise file type of:
    file.WAV
    Search for an application to open it?

    Then I tried making a service file, since all the other .desktop files have an X-Osso-Service line.

    created /usr/share/dbus-1/services/play.service:
    [D-BUS Service]
    Name=play
    Exec=/usr/bin/play

    and added X-Osso-Service=play to play.desktop

    After running /etc/init.d/af-services start, and update-desktop-database, I no longer get an error when trying to play my .wav, it simply says "play - loading" for a bit in the upper right corner, but doesn't appear to actually run the program.

    Can someone please help

    Is there an easier way to do this in OS2008 by any chance?

    Thanks!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    dormant | # 2 | 2007-11-08, 20:22 | Report

    There are quite a few threads on this already, and there seems to be no simple answer.

    I was was thinking about trying splicer.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    pipeline | # 3 | 2007-11-18, 23:42 | Report

    i was just looking for a way to do this (play wav with no ui) from a script for use playing flite text-to-speech wavs. Is sox command something you built? Can you post it so i can download?

    Also did you try editing the /usr/share/applications/defaults.list? Maybe adding a StartupWMClass setting to .desktop file as outlined here :
    http://maemo.org/development/documen...rial_bora.html (search for StartupWMClass)

    Could also try the Terminal setting in desktop file.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    dblank | # 4 | 2007-11-19, 05:35 | Report

    Originally Posted by pipeline View Post
    i was just looking for a way to do this (play wav with no ui) from a script for use playing flite text-to-speech wavs. Is sox command something you built? Can you post it so i can download?

    Also did you try editing the /usr/share/applications/defaults.list? Maybe adding a StartupWMClass setting to .desktop file as outlined here :
    http://maemo.org/development/documen...rial_bora.html (search for StartupWMClass)

    Could also try the Terminal setting in desktop file.
    I give no guarantee it'll work for you, but you can grab the version of sox I've compiled here: http://maemobox.org/dblank/sox_14.0.0-1_armel.deb

    I'm gonna try to recompile it at some point with libmad, so it can play mp3s natively.

    I tried default.list and messed with the Terminal setting, but haven't tried StartupWMClass, will give that a shot later.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by dblank; 2008-06-02 at 20:11.

     
vBulletin® Version 3.8.8
Normal Logout