setenv ("GNOME_DISABLE_CRASH_DIALOG", "1", 1);
# endif
- /* Make Xlib hide visuals with an alphachannel. Ensure that Qt4 will not
- * use the alpha channel for the embedded video window. */
- setenv ("XLIB_SKIP_ARGB_VISUALS", "1", 1);
-
/* Clear the X.Org startup notification ID. Otherwise the UI might try to
* change the environment while the process is multi-threaded. That could
* crash. Screw you X.Org. Next time write a thread-safe specification. */
pthread_sigmask (SIG_BLOCK, &set, NULL);
/* Note that FromLocale() can be used before libvlc is initialized */
- const char *argv[i_argc + 4];
+ const char *argv[i_argc + 3];
int argc = 0;
argv[argc++] = "--no-ignore-config";
- argv[argc++] = "--user-agent=\"VLC media player\"";
#ifdef TOP_BUILDDIR
argv[argc++] = FromLocale ("--plugin-path="TOP_BUILDDIR"/modules");
#endif
if (vlc == NULL)
goto out;
-#if !defined (HAVE_MAEMO)
+#if !defined (HAVE_MAEMO) && !defined __APPLE__
libvlc_add_intf (vlc, "globalhotkeys,none");
#endif
if (libvlc_add_intf (vlc, NULL))
out:
if (vlc != NULL)
libvlc_release (vlc);
- for (int i = 2; i < argc; i++)
+ for (int i = 1; i < argc; i++)
LocaleFree (argv[i]);
#ifdef RTLD_NOLOAD