File association configuration files (Ubuntu 12.04)?

Johnny Rosenberg gurus.knugum at gmail.com
Fri Mar 22 17:23:09 UTC 2013


2013/3/22 Johnny Rosenberg <gurus.knugum at gmail.com>:
> 2013/3/22 Johnny Rosenberg <gurus.knugum at gmail.com>:
>> 2013/3/21 Rashkae <ubuntu at tigershaunt.com>:
>>> On 03/21/2013 03:31 PM, Johnny Rosenberg wrote:
>>>
>>>> All I want to do is:
>>>>      – Remove all associations to my scripts for FLAC files.
>>>>      – Re-associate FLAC files with the same scripts, but with their
>>>>
>>>> current path (I believe the file name itself would be enough, since I
>>>> put the scripts in ~/bin, which is included in my PATH environment
>>>> variable. That was the whole point by moving those scripts.
>>>>      – Learn something…
>>>
>>>
>>> Note:  I'm using Gnome 2.x and XFCE, there might be some differences with
>>> Gnome 3
>>>
>>> Right click on a flac file, choose Properties.
>>
>> That's what I did so far.
>>>
>>> Click on Open With tab.
>>
>> Did that too.
>>>
>>> If your old script is in the list, find and Hightlight it, however, the
>>> 'radio button' must not be selected.  (If it is, click on the radio button
>>> of another application, it doesn't matter what it is.).  When your old
>>> script is highlighted, but *not* the chosen default app, you should be able
>>> to press the "Remove" button, and it will be zapped.
>>
>> That's what I did. Didn't work. Depending on where I do this, it just
>> ignores my request or throws up an error message telling me what I
>> already know: The file does not exist (since I moved it). Why it can't
>> ”forget” the association just because the file don't longer exist,
>> beats me. In fact, it SHOULD forget the association if the file does
>> not exist, especially when I'm asking for it…
>>
>>>
>>> (Anyone who works on gnome reading this??  I think the clever UI plan wasn't
>>> thought all the way through.)
>>>
>>> Now Click on "Add" button.  Expand the "Use a Custom Command"
>>
>> That button does not exist in Ubuntu 12.04.
>>
>>> Type in the
>>> full path to your script (or use the Browse button to find it with a file
>>> browser.) Click the Add button when your done.  Your new script should now
>>> be in the list of applications associated with Flac File type.  Click on the
>>> radio button to make it the default.
>>
>> See above.
>> So, as I originally said, I tried all this already, so now back to
>> what I really asked, now asked in a somewhat different way:
>> When I successfully add my own script as an association to a file
>> type, exactly what is happening? That is, what configuration files are
>> changed? I need to edit them directly.
>>
>> However, your reply gave me an idea that I am going to test (more on
>> that later, if it was successful). Maybe that will be successful, but
>> I still want to know what text files to edit, not necessarily because
>> I really need them, but rather because I just want to know. The reason
>> is not important. Maybe there is none, or maybe I want to make my own
>> file association script or whatever. Maybe I don't even know why I
>> want to know. Yet…
>>
>>
>> Johnny Rosenberg
>
> Actually, it seems like I can't ”un-associate” the FLAC files to ANY
> program. It just ignores my request.
>
> Well, that's not as important to me as my original question: What
> configuration files are involved when I associate a script to a file
> type?
>
>
>
> Johnny Rosenberg

Okay, I'm embarrassed… the answer was just a ”locate” away:
$ locate view-flac-tags
/home/guraknugen/.local/share/Trash/files/view-flac-tags
/home/guraknugen/.local/share/Trash/info/view-flac-tags.trashinfo
/home/guraknugen/.local/share/applications/userapp-view-flac-tags-322EUV.desktop
/home/guraknugen/.local/share/applications/userapp-view-flac-tags-RMBIXV.desktop
/home/guraknugen/bin/view-flac-tags
/home/guraknugen/bin/RosenTagg/view-flac-tags
/home/guraknugen/bin/RosenTagg/view-flac-tags~
$

A quick look in /home/guraknugen/.local/share/applications/ gave me
all my answers. So far…  :D

Johnny Rosenberg




More information about the ubuntu-users mailing list