How to change defaulp pdf viewer for all users in command line
Posted
by
dodecaplex
on Super User
See other posts from Super User
or by dodecaplex
Published on 2012-12-19T10:39:45Z
Indexed on
2012/12/19
11:05 UTC
Read the original article
Hit count: 231
I'm using Debian squeeze with Gnome Desktop for all my users. I have a group of machines to set up so that all users should use xpdf as a default viewer (rather than evince).
I want this set up to be done by command line (even better, using puppet).
I know about xpg-mime
command, but the man page says that the default command should not be used as root.
I could manually tweek the /etc/gnome/defaults.list
files, but I'm looking for a single command I could run to perform the setting without an editor interaction.
Any idea ?
© Super User or respective owner