-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added flag for mpv as flatpak #1411
Conversation
Didn't we already have that at some point? |
We may have. But it seems like there's a need for this. I see no reason why we shouldn't have it. |
Because we already have a flatpak_mpv player for steamdeck implemented. |
This would have the additional upside of consolidating case branches with steamdeck |
Ok, can do. It makes sense not to not trust it onto our users to know which package format they use |
fix: auto-detect mpv installation similar to iina
ani-cli
Outdated
*) player_function="${ANI_CLI_PLAYER:-mpv}" ;; # Linux OS | ||
*) | ||
player_function="${ANI_CLI_PLAYER:-$(where_mpv)}" # Linux OS | ||
[ $? -eq 0 ] || exit $? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part is actually not necessary, since dep_ch
will already exit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it, it doesn't.
I've tested what I could on linux, but @ykhan21 I'd like you to test it on windows if it correctly detects installed and uninstalled mpv, and @Nannk to check it on the steamdeck if it still finds the flatpak version. |
iirc it worked fine in my testing on mac os. Where is this not the case? |
Could it be because you use a default assignment? In where iina, that is checked within the function, but I'd be surprised if that changes things |
Linux and dash. Same if the default assignment is not present, like with iina. |
And checking the shell specification's related section reveals that |
Alright, I'm taking the L |
Now then why haven't the two remaining checks ran? |
I have no idea. I added the completion files to path ignore, but you haven't changed those in this PR, so I'm surprised they aren't running. Github Actions is a bit fragile at times. Wanna patch my where_iina to be more in line with your where_mpv? Let's see if github wakes from its slumber after another commit |
Sure, let's see |
chore: indent
How odd. Could it be that I have misunderstood how the filtering works in github actions? |
Now that's a surprise. Perhaps a brown out on githubs part to bully people into migrating away from a deprecated nodejs version (used by checkout v3) |
Pull Request Template
Type of change
Description
Comply with request #1408
Checklist
-c
history and continue work-d
downloads work-s
syncplay works-q
quality works-v
vlc works-e
select episode works-S
select index works-r
range selection works--skip
ani-skip works--skip-title
ani-skip title argument works--no-detach
no detach works--dub
and regular (sub) mode both work-h
help info is up to dateAdditional Testcases