File associations 14.04
Johnny Rosenberg
gurus.knugum at gmail.com
Wed Jul 2 08:29:19 UTC 2014
2014-07-01 21:47 GMT+02:00 Amichai Rotman <amichai at iglu.org.il>:
> Do these scripts run in a terminal?
>
> The .desktop file you posted as an exaple reades "Terminal=false"....
>
Yes, they do, I just don't want the terminal to show up. The scripts
communicate to the user via Yad (a Zenity fork), so I find it disturbing if
the terminal would show up as well. Since I couldn't get this to work,
however, I'm forced to run them from a terminal at the moment, and they
work flawlessly.
>
> Also, make sure the UID is the same for the actual scripts (in their
> actual locations - no the ~/bin symlink). Your UID might have changed
> between upgrades...
>
When I started using Ubuntu in 2007, I could easily find things like my
UID, but now it's not even available in the account manager (or whatever
it's called in English). All I could find was that
”XDG_RUNTIME_DIR=/run/user/1000”, so I guess UID=1000, which it has always
been.
Anyway, just to make sure this isn't a bug, did anyone on this list
successfully associate a file type to one or more scripts? Maybe it just
can't be done anymore…
I got an Ubuntu Tweak update a few minutes ago. I guess I should try again
and come back here if it suddenly works…
>
> Amichai.
>
>
>
>
> 2014-06-30 22:52 GMT+03:00 Johnny Rosenberg <gurus.knugum at gmail.com>:
>
>> 2014-06-30 9:09 GMT+02:00 Toni Sissala <toni.sissala at gmail.com>:
>>
>> On 29.6.2014 14:22, Johnny Rosenberg wrote:
>>>
>>>>
>>>> And where do Ubuntu Tweak store the file associations? Maybe I should
>>>> just edit the files myself…?
>>>>
>>>
>>> I should first point out that I'm not using Ubuntu Tweak. But here are
>>> my two cents on file associations. These tweaks seem to work perfectly in
>>> Xubuntu.
>>>
>>> Some file associations are stored system-wide in
>>> /usr/share/applications/defaults.list. User-specific file associations are
>>> stored in ~/.local/share/applications/mimeapps.list.
>>>
>>> I recommend editing user-specific associations. If the file doesn't
>>> exist, you may copy the one from /usr to your home-directory.
>>>
>>> ~/.local/share/applications/mimeapps.list:
>>
>> [Added Associations]
>> application/x-trash=gedit.desktop;
>>
>> audio/flac=audacious.desktop;edit-flac-tags-manually.desktop;add-musician-info.desktop;view-flac-tags.desktop;aft.desktop;
>>
>> [Default Applications]
>> audio/flac=audacious.desktop
>>
>> But it doesn't work. Bug?
>>
>>
>>> You should also check that your scripts are executable.
>>>
>>
>>
>> They have been executable for years and still are. In ~/bin there are
>> links to them, since they are located elsewhere. That worked in 12.04 and I
>> can't see a reason why that wouldn't work now.
>>
>>
>>
>>
>>
>>
>>
>>> On file associations:
>>> http://www.libre-software.net/change-the-default-application-ubuntu-linux
>>> On file permissions: https://help.ubuntu.com/community/FilePermissions
>>>
>>>
>>>
>>> Best regards,
>>> Toni Sissala
>>>
>>>
>>>
>>> --
>>> ubuntu-users mailing list
>>> ubuntu-users at lists.ubuntu.com
>>> Modify settings or unsubscribe at:
>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>>
>>
>>
>> --
>> ubuntu-users mailing list
>> ubuntu-users at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>>
>>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20140702/ff54d64c/attachment.html>
More information about the ubuntu-users
mailing list