Change default app. -

Sergio sergiocmailbox-userlist at yahoo.com.br
Thu Sep 27 19:23:44 UTC 2012


> > 
> > That survives a reboot as it's a setting for your
> user.
> > 
> > It's probably registered in
> ~/.local/share/applications/mimeapps.list
> 
>    Ok, this is what I see:
> 
>        [bobg at box9 ~]$ cat
> .local/share/applications/mimeapps.list
>        [Default Applications]
>        text/html=vlc.desktop  <<<< delete this
>        video/quicktime=vlc.desktop
> 
>        [Added Associations]  <<<< delete this
>        text/html=vlc.desktop;   <<<< delete this
> 

You can delete those lines I pointed.

>    But in the other computer [box7] there is
> no
>    .local/share/applications/  and
> xdg-mime does not work. It will not
>    run as root either.
> 
>        [bobg at box7 ~]$ ll
> .local/share
>        total 80
>        drwxr-xr-x. 3 bobg
> bobg  4096 Sep  9 12:13 font-manager
>        drwx------. 3 bobg
> bobg  4096 Aug  7 19:34 gegl-0.2
>        drwx------. 3 bobg
> bobg  4096 Aug  7 18:06 gnote
>        drwx------. 2 bobg
> bobg  4096 Sep 16 08:36 gvfs-metadata
>        -rw-------. 1 bobg bobg
> 49262 Sep 27 14:47 recently-used.xbel
>        drwx------. 4 bobg
> bobg  4096 Aug 10 11:04 Trash
>        drwx------. 2 bobg
> bobg  4096 Aug  8 13:33 vlc
>        drwx------. 3 bobg
> bobg  4096 Sep 16 01:36 zeitgeist
> 
>    No applications directory.
> 
> 
>        [bobg at box7 ~]$ xdg-mime
> default vlc.desktop video/quicktime
>        touch: cannot touch
>    
>    `/home/bobg/.local/share/applications/mimeapps.list':
> No such
>        file or directory
>        /bin/xdg-mime: line 804:
>    
>    /home/bobg/.local/share/applications/mimeapps.list.new:
> No such
>        file or directory
> 
>    Both computer should be set up the same
> but obviously they are not.
> 
>    Any idea what I have to do there?
> 
>    Bob
> 

xdg-mime isn't supposed to be run as root, IIRC.
Try manually creating the applications directory and an empty mimeapps.list


More information about the users mailing list