summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-07-07 21:00:37 +0200
committerwm4 <wm4@nowhere>2020-07-07 21:22:19 +0200
commitcdaa496314f90412963f2b3211e18df72910066d (patch)
tree0bdb7f848459fb2412467de41a0b628eac56f420 /video/out
parent8fbc4b1737d5817709e23b06cb83707cd6a34f76 (diff)
downloadmpv-cdaa496314f90412963f2b3211e18df72910066d.tar.bz2
mpv-cdaa496314f90412963f2b3211e18df72910066d.tar.xz
Warn if on GNOME
GNOME actively fights the standard we try to rely on.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/vo.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 27be4735ab..1535994a69 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -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;