* kde.cpp : KDE plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
- * $Id: kde.cpp,v 1.10 2003/03/30 18:14:37 gbazin Exp $
+ * $Id: kde.cpp,v 1.15 2004/01/25 18:53:07 gbazin Exp $
*
* Authors: Andres Krapf <dae@chez.com> Sun Mar 25 2001
*
* Module descriptor
*****************************************************************************/
vlc_module_begin();
- int i = getenv( "DISPLAY" ) == NULL ? 8 : 85;
- add_category_hint( "kde", NULL, VLC_TRUE );
- add_file( "kdeuirc", DATA_PATH "/ui.rc", NULL, N_( "path to ui.rc file" ), NULL, VLC_TRUE );
+ /* int i = getenv( "DISPLAY" ) == NULL ? 8 : 85; */
set_description( _("KDE interface") );
- set_capability( "interface", i );
+ add_file( "kde-uirc", DATA_PATH "/ui.rc", NULL, N_( "path to ui.rc file" ), NULL, VLC_TRUE );
+ set_capability( "interface", 0 ); /* 0 used to be i, disabled because kvlc not maintained */
set_program( "kvlc" );
set_callbacks( open, close );
vlc_module_end();
void run(intf_thread_t *p_intf)
{
p_intf->p_sys->p_about =
- new KAboutData( "VideoLAN Client", I18N_NOOP("Kvlc"), VERSION,
- _("This is the VideoLAN Client, a DVD, MPEG and DivX player. It can "
+ new KAboutData( "kvlc", I18N_NOOP("Kvlc"), VERSION,
+ _("This is the VLC media player, a DVD, MPEG and DivX player. It can "
"play MPEG and MPEG2 files from a file or from a network source."),
KAboutData::License_GPL,
- _("(c) 1996-2003 the VideoLAN team"),
+ _("(c) 1996-2004 the VideoLAN team"),
0, 0, "");
p_intf->p_sys->p_about->addAuthor( "the VideoLAN team", 0,
"<videolan@videolan.org>" );
- int argc = 1;
- char *argv[] = { p_intf->p_vlc->psz_object_name, NULL };
+ int argc = 5;
+ char *argv[] = { "vlc", "--icon", DATA_PATH "/kvlc32x32.png", "--miniicon", DATA_PATH "/kvlc16x16.png" };
KCmdLineArgs::init( argc, argv, p_intf->p_sys->p_about );
/* Subscribe to message queue */