Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
beec9e78
Commit
beec9e78
authored
Dec 07, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus_screensaver: correct service name for o.fd.PowerManagement.Inhibit
parent
5fe4b004
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
modules/misc/inhibit/dbus.c
modules/misc/inhibit/dbus.c
+4
-10
No files found.
modules/misc/inhibit/dbus.c
View file @
beec9e78
...
...
@@ -45,10 +45,11 @@ enum vlc_inhibit_api
#define MAX_API (GNOME+1)
static
const
char
dbus_service
[][
32
]
=
/* Currently, all services have identical service and interface names. */
static
const
char
dbus_service
[][
40
]
=
{
[
FDO_SS
]
=
"org.freedesktop.ScreenSaver"
,
[
FDO_PM
]
=
"org.freedesktop.PowerManagement"
,
[
FDO_PM
]
=
"org.freedesktop.PowerManagement
.Inhibit
"
,
[
GNOME
]
=
"org.gnome.SessionManager"
,
};
...
...
@@ -59,13 +60,6 @@ static const char dbus_path[][33] =
[
GNOME
]
=
"/org/gnome/SessionManager"
,
};
static
const
char
dbus_interface
[][
40
]
=
{
[
FDO_SS
]
=
"org.freedesktop.ScreenSaver"
,
[
FDO_PM
]
=
"org.freedesktop.PowerManagement.Inhibit"
,
[
GNOME
]
=
"org.gnome.SessionManager"
,
};
static
const
char
dbus_method_uninhibit
[][
10
]
=
{
[
FDO_SS
]
=
"UnInhibit"
,
...
...
@@ -121,7 +115,7 @@ static void Inhibit(vlc_inhibit_t *ih, unsigned flags)
dbus_bool_t
ret
;
DBusMessage
*
msg
=
dbus_message_new_method_call
(
dbus_service
[
type
],
dbus_path
[
type
],
dbus_interfa
ce
[
type
],
method
);
dbus_path
[
type
],
dbus_servi
ce
[
type
],
method
);
if
(
unlikely
(
msg
==
NULL
))
return
;
...
...
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