Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
13
Issues
13
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GSoC2018
macOS
vlc
Commits
334979d1
Commit
334979d1
authored
Jun 18, 2017
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus: add command line option to disable MPRIS
parent
9d8dcfc7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
bin/vlc.c
bin/vlc.c
+4
-4
src/libvlc-module.c
src/libvlc-module.c
+7
-0
src/posix/specific.c
src/posix/specific.c
+5
-0
No files found.
bin/vlc.c
View file @
334979d1
...
...
@@ -201,11 +201,14 @@ int main( int i_argc, const char *ppsz_argv[] )
pthread_t
self
=
pthread_self
();
pthread_sigmask
(
SIG_SETMASK
,
&
set
,
NULL
);
const
char
*
argv
[
i_argc
+
2
];
const
char
*
argv
[
i_argc
+
3
];
int
argc
=
0
;
argv
[
argc
++
]
=
"--no-ignore-config"
;
argv
[
argc
++
]
=
"--media-library"
;
#ifdef HAVE_DBUS
argv
[
argc
++
]
=
"--dbus"
;
#endif
ppsz_argv
++
;
i_argc
--
;
/* skip executable path */
#ifdef __OS2__
...
...
@@ -237,9 +240,6 @@ int main( int i_argc, const char *ppsz_argv[] )
libvlc_add_intf
(
vlc
,
"hotkeys,none"
);
#if !defined (__OS2__)
libvlc_add_intf
(
vlc
,
"globalhotkeys,none"
);
#endif
#ifdef HAVE_DBUS
libvlc_add_intf
(
vlc
,
"dbus,none"
);
#endif
if
(
libvlc_add_intf
(
vlc
,
NULL
))
goto
out
;
...
...
src/libvlc-module.c
View file @
334979d1
...
...
@@ -1086,6 +1086,10 @@ static const char *const ppsz_prefres[] = {
"When using the one instance only option, enqueue items to playlist " \
"and keep playing current item.")
#define DBUS_TEXT N_("Expose media player via D-Bus")
#define DBUS_LONGTEXT N_("Allow other applications to control " \
"the VLC media player using the D-Bus MPRIS protocol.")
/*****************************************************************************
* Playlist
****************************************************************************/
...
...
@@ -2037,6 +2041,9 @@ vlc_module_begin ()
ONEINSTANCEWHENSTARTEDFROMFILE_TEXT
,
true
)
add_bool
(
"playlist-enqueue"
,
0
,
PLAYLISTENQUEUE_TEXT
,
PLAYLISTENQUEUE_LONGTEXT
,
true
)
#endif
#ifdef HAVE_DBUS
add_bool
(
"dbus"
,
false
,
DBUS_TEXT
,
DBUS_LONGTEXT
,
true
)
#endif
add_bool
(
"media-library"
,
0
,
ML_TEXT
,
ML_LONGTEXT
,
false
)
add_bool
(
"playlist-tree"
,
0
,
PLTREE_TEXT
,
PLTREE_LONGTEXT
,
false
)
...
...
src/posix/specific.c
View file @
334979d1
...
...
@@ -24,6 +24,7 @@
#include <vlc_common.h>
#include "../libvlc.h"
#include "../lib/libvlc_internal.h"
#ifdef HAVE_DBUS
/* used for one-instance mode */
...
...
@@ -157,4 +158,8 @@ void system_Configure(libvlc_int_t *libvlc,
int
argc
,
const
char
*
const
argv
[])
{
system_ConfigureDbus
(
libvlc
,
argc
,
argv
);
#ifdef HAVE_DBUS
if
(
var_InheritBool
(
libvlc
,
"dbus"
))
libvlc_InternalAddIntf
(
libvlc
,
"dbus,none"
);
#endif
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment