Browse Source

xcb/global: use autorun to start

pull/118/head
Rémi Denis-Courmont 6 years ago
parent
commit
c96462163e
  1. 3
      bin/vlc.c
  2. 9
      modules/control/globalhotkeys/xcb.c

3
bin/vlc.c

@ -235,9 +235,6 @@ int main(int argc, const char *argv[])
libvlc_set_app_id (vlc, "org.VideoLAN.VLC", PACKAGE_VERSION, PACKAGE_NAME);
libvlc_set_user_agent (vlc, "VLC media player", "VLC/"PACKAGE_VERSION);
#if !defined (__OS2__)
libvlc_add_intf (vlc, "globalhotkeys,none");
#endif
if (libvlc_add_intf (vlc, NULL))
{
fprintf(stderr, "%s: cannot start any interface. Exiting.\n", argv[0]);

9
modules/control/globalhotkeys/xcb.c

@ -43,6 +43,11 @@
static int Open( vlc_object_t *p_this );
static void Close( vlc_object_t *p_this );
static void AutoRun(libvlc_int_t *libvlc)
{
intf_Create(libvlc, MODULE_STRING);
}
/*****************************************************************************
* Module descriptor
*****************************************************************************/
@ -54,6 +59,10 @@ vlc_module_begin()
set_capability( "interface", 0 )
set_callbacks( Open, Close )
add_shortcut( "globalhotkeys" )
add_submodule()
set_capability("autorun", 10)
set_callback(AutoRun)
vlc_module_end()
typedef struct

Loading…
Cancel
Save