[arch-general] Mysterious userapp .desktop files

Kyle Terrien kyleterrien at gmail.com
Thu Mar 17 17:47:36 UTC 2016


Patrick Burroughs (Celti) wrote:
> On Wed, 16 Mar 2016 22:08:46 -0700
> Kyle Terrien <kyleterrien at gmail.com> wrote:
> 
>> So, somehow my default web browser got changed from SeaMonkey back to
>> Firefox.  (Bleh!)
>>
>> [...]
>>  
>> In ~/.local/share/applications/ (where user-customized .desktop files
>> go), there were several files in the format
>> userapp-<appname>-<short_hash>.desktop.
>>
>> userapp-Firefox-FIK3WX.desktop
>> userapp-Pale Moon-1HNY8X.desktop
>> userapp-SeaMonkey-YV09AY.desktop
>> userapp-Thunderbird-PIZCZW.desktop
> 
> If I'm not mistaken, those files and their associated mimeinfo entries
> are created every time you set Firefox/SeaMonkey/PaleMoon as you
> default browser, as the mechanism of such.
> 
> ~Celti

That's correct.  I can confirm that if I go to SeaMonkey's Edit >
Preferences and click "Set default browser", then a new userapp file is
created.  This userapp .desktop file is then inserted into
~/.config/mimeapps.list.

Good catch, and thank you!

$ ls .local/share/applications/
mimeinfo.cache  userapp-SeaMonkey-45D4DY.desktop
$ cat .local/share/applications/userapp-SeaMonkey-45D4DY.desktop 
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
Exec=/usr/lib/seamonkey-2.40/seamonkey %u
Name=SeaMonkey
Comment=Custom definition for SeaMonkey
$ cat .local/share/applications/mimeinfo.cache 
[MIME Cache]
$ 

--Kyle

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20160317/556027ed/attachment.asc>


More information about the arch-general mailing list