mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:12:25 +00:00
Warn if on GNOME
GNOME actively fights the standard we try to rely on.
This commit is contained in:
parent
8fbc4b1737
commit
cdaa496314
@ -340,6 +340,13 @@ error:
|
||||
|
||||
struct vo *init_best_video_out(struct mpv_global *global, struct vo_extra *ex)
|
||||
{
|
||||
const char *xdg_current_desktop = getenv("XDG_CURRENT_DESKTOP");
|
||||
if (xdg_current_desktop && strstr(xdg_current_desktop, "GNOME")) {
|
||||
struct mp_log *log = mp_log_new(NULL, global->log, "vo");
|
||||
mp_fatal(log, "GNOME detected. Things will be broken.\n");
|
||||
talloc_free(log);
|
||||
}
|
||||
|
||||
struct mp_vo_opts *opts = mp_get_config_group(NULL, global, &vo_sub_opts);
|
||||
struct m_obj_settings *vo_list = opts->video_driver_list;
|
||||
struct vo *vo = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user