u8sand / Baka-MPlayer

The libmpv based media player
https://u8sand.github.io/Baka-MPlayer/
GNU General Public License v2.0
433 stars 93 forks source link

File association #152

Closed mcjoeng closed 1 year ago

mcjoeng commented 9 years ago

Why not associate baka-mplayer with multimedia files

u8sand commented 9 years ago

If you're referring to unloading file associations into your registry; I'm more interested in the portable approach where we leave your system alone as much as possible--is it not easy enough to "open as"? On Aug 22, 2015 9:58 AM, "棱镜" notifications@github.com wrote:

Why not associate baka-mplayer with multimedia files

— Reply to this email directly or view it on GitHub https://github.com/u8sand/Baka-MPlayer/issues/152.

godly-devotion commented 9 years ago

Also Windows 10 makes it really hard for programs to assign themselves.

my-life-is-confetti-zz commented 9 years ago

I agree with the current approach. FYI, I'm on Windows 10, and I found it easy enough to both "Open With..." and to associate with a SPECIFIC File Format, but not as a "Handler" for a Protocol, nor as a "Default" app.

Browse to a video file, Right-Click, select Open With, Scroll down to, then Click on "More Apps" (in the Context-Sensiive Menu), then Click on "Look for another app on this PC", and Browse to the applications *.exe file in File Explorer.

Then you will have that particular File Format associated with Baka.

You have to do this for each File Format.

A helper function to associate formats with Baka might be "nice", now that I think about it...

The problem on Windows 10 is that the Settings menus for changing File Associations do not ALL have the option of browsing to the Program Location... On Aug 22, 2015 10:29 AM, "Joshua Park" notifications@github.com wrote:

Also Windows 10 makes it really hard for programs to assign themselves.

— Reply to this email directly or view it on GitHub https://github.com/u8sand/Baka-MPlayer/issues/152#issuecomment-133729950 .

mcjoeng commented 9 years ago

on linux desktop

amazingfate commented 9 years ago

Which desktop environment do you use? As I know all popular desktop environments support file association.

ghost commented 9 years ago

For Windows - I've modified the script from https://github.com/rossy/mpv-install for Baka MPlayer.

http://pastebin.com/iPkUw6FM

Place it in the directory where Baka MPlayer.exe resides and it should do the trick.

All credits belong to the original author - I've just changed a few pathes and modified the arguments so it works with Baka MPlayer.

While I understand that you do not like to include it by default - maybe you could add it to the repo and give a hint for the windows users and that the credits go to rossy.

Cheers!

u8sand commented 9 years ago

Thank you for your contribution, we'll find a place for this and we can use it as reference in the future if we decide to make adding associations easier. On Sep 14, 2015 12:56 AM, "BlackIC" notifications@github.com wrote:

For Windows - I've modified the script from https://github.com/rossy/mpv-install for Baka MPlayer.

http://pastebin.com/iPkUw6FM

Place it in the directory where Baka MPlayer.exe resides and it should do the trick.

All credits belong to the original author - I've just changed a few pathes and modified the arguments so it works with Baka MPlayer.

While I understand that you do not like to include it by default - maybe you could add it to the repo and give a hint for the windows users and that the credits go to rossy.

Cheers!

— Reply to this email directly or view it on GitHub https://github.com/u8sand/Baka-MPlayer/issues/152#issuecomment-139961415 .

vith commented 8 years ago

baka-mplayer.desktop should also have a MimeType entry so that Baka MPlayer will appear in "Recommended Applications" when choosing "Open With Other Application" on Gnome for example.

https://github.com/mpv-player/mpv/blob/v0.16.0/etc/mpv.desktop#L30

u8sand commented 1 year ago

Fixed in #210