[SOLVED] Deluge mime types, opening movie files 'default' player changes
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Deluge mime types, opening movie files 'default' player changes
I got Deluge, downloaded a movie, going through Deluge, I select open, it opens the movie in a player (VLC). but not always. mp4 movie sometimes it opens dragon player which in turn just shows some graphics crap but not the movie itself. got tired of that, so I removed dragon player ( I don't ever use it anyways),to force it to hopefully open VLC, then gave it another try, and this time it opened the same movie in FireFox and started playing instead.
the MIME editor is set for VLC for both mp4 types it is showing in there on is a movie and the other one is showing that music staff.
Deluge has no where I seen an option to select the player to use for default hwne going through Deluge to open a file, if it is a movie then use same said defualt movie player.
I hope someone will explain the mime type system in Slackware in this thread. Programs often give themselves the mime default, but these are not necessarily the programs one wants as the default. I use fluxbox and I have not found a good way to manage mime types.
You just sparked a thought. The desktop file might be a place to look. I think they do mime types in there too. When I get a chance to get my laptop running I’m going to look into it. I’m on my phone right now.
Looking at the thread #post5768895, I come up with the following method:
1) identify the mime type of the file in question
Code:
xdg-mime query filetype path_to_file
where it states file type what is it talking about on exact format of this wording.
in man xdg-mime it shows,
Code:
EXAMPLES
xdg-mime query filetype /tmp/foobar.png
Prints the MIME type of the file /tmp/foobar.png, in this case
image/png
xdg-mime query default image/png
here, i get I have no idea what you're talking about errors.
mkv
Code:
$ xdg-mime --help
xdg-mime -- command line tool for querying information about
file type handling and adding descriptions for new file types
Synopsis
xdg-mime query { filetype | default } ...
xdg-mime default application mimetype(s)
xdg-mime install [--mode mode] [--novendor] mimetypes-file
xdg-mime uninstall [--mode mode] mimetypes-file
xdg-mime { --help | --manual | --version }
Use 'man xdg-mime' or 'xdg-mime --manual' for additional info.
$ xdg-mime mp4
xdg-mime: unknown command 'mp4'
Try 'xdg-mime --help' for more information.
$ xdg-mime mkv "/media/data/deluge-completed/The Man In The Iron Mask (1998)/The.Man.In.The.Iron.Mask.1998.BrRip.720p.x264.YIFY.mkv"
xdg-mime: unknown command 'mkv'
Try 'xdg-mime --help' for more information.
$ xdg-mime video "/media/data/deluge-completed/The Man In The Iron Mask (1998)/The.Man.In.The.Iron.Mask.1998.BrRip.720p.x264.YIFY.mkv"
xdg-mime: unknown command 'video'
Try 'xdg-mime --help' for more information.
userx@slackwhere101:~
mp4
Code:
$ xdg-mime query "/media/data/deluge-completed/Viral (2016) [1080p] [YTS.AG]/Viral.2016.1080p.BluRay.x264-[YTS.AG].mp4"
xdg-mime: unknown query type '/media/data/deluge-completed/Viral (2016) [1080p] [YTS.AG]/Viral.2016.1080p.BluRay.x264-[YTS.AG].mp4'
Try 'xdg-mime --help' for more information.
from man page example
Code:
xdg-mime query default image/png
so I try this,
Code:
$ xdg-mime query video/mkv
xdg-mime: unknown query type 'video/mkv'
Try 'xdg-mime --help' for more information.
$ xdg-mime query video/mp4
xdg-mime: unknown query type 'video/mp4'
Try 'xdg-mime --help' for more information.
Quote:
Originally Posted by kevmccor
2) locate the *.desktop file for the desired application
Code:
ls /usr/share/applications/ (/usr/share/applications/kde/)
3) set the mime-type default application
Code:
xdg-mime default application.desktop mime/type
4) test the result
Code:
xdg-mime query default mime/type
Note the xdg-mime man page recommends only using the command as a regular user during a desktop session.
$ xdg-mime query video/mkv
xdg-mime: unknown query type 'video/mkv'
Try 'xdg-mime --help' for more information.
$ xdg-mime query video/mp4
xdg-mime: unknown query type 'video/mp4'
Try 'xdg-mime --help' for more information.
You are missing an argument: xdg-mime query default video/mkv
I think xdg-mime query requires either "default" or "filetype" to know what to do and the last argument is the specific item.
--> xdg-mime query default mime-type or xdg-mime query filetype path_to_file
You are missing an argument: xdg-mime query default video/mkv
I think xdg-mime query requires either "default" or "filetype" to know what to do and the last argument is the specific item.
--> xdg-mime query default mime-type or xdg-mime query filetype path_to_file
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.