Coder Social home page Coder Social logo

mpv_inhibit_gnome's People

Contributors

deminder avatar guldoman avatar k12ish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

deminder pabs3

mpv_inhibit_gnome's Issues

dbus error on kde

flatpak mpv
fedora kde 5.25
log:

dbus[2]: arguments to dbus_message_unref() were incorrect, assertion "message != NULL" failed in file ../../dbus/dbus-message.c line 1727.
This is normally a bug in some application using the D-Bus library.

  D-Bus not built with -rdynamic so unable to print a backtrace

screen blanking since last flatpak dependincy update

The update removed the gnome.SessionManager override entry. But applying the override again, didn't fix the screen go blank.
Besides that, nothing has changes in my setup.

Am using flatpak override --user --talk-name=org.gnome.SessionManager io.mpv.Mpv

strcmp with nullptr

Hi @Guldoman,
I like the album art check. But I do get the motivation why you used bitfields (does not seem necessary).
However, maybe we should avoid passing NULL to strcmp here

{NULL , MPV_FORMAT_NONE },

if(strcmp(prop->name, flag_prop_names[i].name) == 0)

See here:
https://stackoverflow.com/questions/21865041/in-c-what-exactly-happens-when-you-pass-a-null-pointer-to-strcmp

Additional confusion:
Why do we even need {NULL , MPV_FORMAT_NONE }?
Do we really need to check value = data > 0 why not leave it at value = data != 0?

bool value = *(int64_t *)prop->data > 0;

How about expanding it to cover other problems on Wayland Gnome?

I installed this using AUR and it has been working well. But sadly, sleeping was not the only problem I am having with MPV on Wayland Gnome. Since this plug-in already deals with Wayland Gnome, I wonder if you could add more fixes for other problems on Wayland Gnome, to make this plugin more like a one-stop "Wayland Gnome fix". If that does not fit the purpose of this plug-in, then maybe as separate plug-ins.

For example, "stay on top (shift +T)" does not work. I have to press alt+space and click "Always on Top" each time, and it has been a pain in the lower back.

Also, it does not work to drag-and-drop a video file on a Samba network share from Gnome Files (nautilus) to MPV. If I know it correctly, Gnome maps network Samba file (e.g., smb://server/file.mkv) into a local virtual file (e.g., /run/user/1000/gvfs/smb-share:server=server,share=file.mkv) using GVFS, but Gnome Files passes the raw Samba address when drag-and-dropping and MPV developers seem to have no intention to support GVFS. If a plug-in could convert that Samba address into its locally mapped GVFS path, and tell MPV to play that local file path, MPV will be able to play it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.