Skip to content
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

[BUG]: mpv installed with flatpak is not recognized #716

Open
lamyergeier opened this issue Jan 21, 2024 · 3 comments
Open

[BUG]: mpv installed with flatpak is not recognized #716

lamyergeier opened this issue Jan 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@lamyergeier
Copy link

Describe the bug

$ ytfzf 
Search
> ted ed rome
Scraping YouTube (with https://invidious.lunar.icu) (ted ed rome, pg: 1)
    
[ERROR]: mpv is not installed
$ type mpv
mpv is a function
mpv () 
{ 
    flatpak run "io.mpv.Mpv" "${@}"
}
$ mpv --version
mpv v0.37.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
libplacebo version: v6.338.1
FFmpeg version: n6.1.1
FFmpeg library versions:
   libavutil       58.29.100
   libavcodec      60.31.102
   libavformat     60.16.100
   libswscale      7.5.100
   libavfilter     9.12.100
   libswresample   4.12.100

To Reproduce

Expected behavior

Screenshots

Information

OS: Fedora 39
Terminal: bash
Ytfzf version: 2.6.1
Output of readlink $(which sh): bash

  • (if is a thumbnail issue) run ytfzf --thumbnail-log=log.txt and post the file:

Additional context

@lamyergeier lamyergeier added the bug Something isn't working label Jan 21, 2024
@Euro20179
Copy link
Collaborator

user functions dont work in shell scripts (shell scripts can't use user aliases either)

i'd create a file in your $PATH called mpv that just does exactly what your function does, and give it execute permissions.

@ehula
Copy link

ehula commented Feb 1, 2024

Something that might be related...
I have installed mpv in NixOS using home-manager, and have specified a couple of scripts to be installed as well. Running mpv from the commandline works fine, and the scripts are working as well. However, when mpv is called from ytfzf, it runs ok but the scripts are not running.

@eljamm
Copy link

eljamm commented May 28, 2024

Something that might be related... I have installed mpv in NixOS using home-manager, and have specified a couple of scripts to be installed as well. Running mpv from the commandline works fine, and the scripts are working as well. However, when mpv is called from ytfzf, it runs ok but the scripts are not running.

A possible solution for NixOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants