Re: default applications in Fedora

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

 



Quoting Petr Hracek (2013-08-13 12:28:05)
> Hi folks,
> 
> I have just a short question regarding default applications in Fedora.
> 
> Let's say the I have install Fedora 19 (w/o upgrade) and I would like to
> know what is default PDF viewer, etc.
> 
> Is there any command in Fedora which returns me default application?
> 
> Thank you in advance

Usually xdg-mime command should return correct results. For example:
For your case you first need to know mime type of file in question. Assuming you
don't know what that is:
$ xdg-mime query filetype abcd.pdf 
application/pdf

And then you can do:
$ xdg-mime query default application/pdf
evince.desktop

xdg-mime can be used to change the default as well. Then it just depends on
applications if they honor xdg or not.

-- 
Stanislav Ochotnicky <sochotnicky@xxxxxxxxxx>
Software Engineer - Developer Experience

PGP: 7B087241
Red Hat Inc.                               http://cz.redhat.com
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux