Re: Removable media in control-center (gsettings)



I'm testing with a desktop installation with local MIMEs associated at:
~/.local/share/applications/mimeapps.list
Example:
x-content/video-dvd=vlc.desktop

I can check this is effective:
$ xdg-mime query default x-content/video-dvd
vlc.desktop

I can try then to set the effect for Gnome:
$ gsettings set org.gnome.desktop.media-handling
autorun-x-content-ignore "[]"
$ gsettings set org.gnome.desktop.media-handling
autorun-x-content-open-folder "['x-content/unix-software']"
$ gsettings set org.gnome.desktop.media-handling
autorun-x-content-start-app "['x-content/video-dvd',
'x-content/audio-cdda', 'x-content/image-dcf', 'x-content/audio-player']"

But checking Gnome's GUI for those settings I see DVD-Video associated
to Totem.
* If I use to GUI settings to associate DVD-Video autoplay with VLC,
this is remembered by the tool, and has effect.
Where does it really save that final association?

Thanks.


El 25/10/15 a les 21:14, Florian Pelz ha escrit:
On 10/24/2015 02:28 PM, Narcis Garcia wrote:
Thanks to "dconf watch" I've found part of the answer:
Schema: org.gnome.desktop.media-handling
Keys: autorun-x-content-ignore autorun-x-content-ignore
autorun-x-content-open-folder

But now I'm pending to know how to specify the application to launch,
for example, for x-content/video-dvd

From reading the source code of the gnome-control-center, it looks like
the application to launch is written to the file ~/.config/mimeapps.list
using g_app_info_set_as_default_for_type () on a GDesktopAppInfo.
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-shell-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]