Merge lp:~noskcaj/ubuntu/trusty/xfce4-session/light-locker into lp:ubuntu/trusty/xfce4-session

Proposed by Jackson Doak
Status: Merged
Merged at revision: 79
Proposed branch: lp:~noskcaj/ubuntu/trusty/xfce4-session/light-locker
Merge into: lp:ubuntu/trusty/xfce4-session
Diff against target: 134 lines (+83/-2)
6 files modified
.pc/applied-patches (+1/-0)
.pc/xflock4-light-locker-support.patch/scripts/xflock4 (+50/-0)
debian/changelog (+6/-0)
debian/patches/series (+1/-0)
debian/patches/xflock4-light-locker-support.patch (+22/-0)
scripts/xflock4 (+3/-2)
To merge this branch: bzr merge lp:~noskcaj/ubuntu/trusty/xfce4-session/light-locker
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+196436@code.launchpad.net

Description of the change

Add light locker support

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

The patch looks good, can it be forward to the upstream developers please?

Revision history for this message
Jackson Doak (noskcaj) wrote :

They're working on it.

On Thu, Dec 19, 2013 at 1:40 AM, Daniel Holbach
<email address hidden>wrote:

> The patch looks good, can it be forward to the upstream developers please?
> --
>
> https://code.launchpad.net/~noskcaj/ubuntu/trusty/xfce4-session/light-locker/+merge/196436
> You are the owner of lp:~noskcaj/ubuntu/trusty/xfce4-session/light-locker.
>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.pc/applied-patches'
2--- .pc/applied-patches 2013-10-23 21:13:30 +0000
3+++ .pc/applied-patches 2013-11-24 02:58:07 +0000
4@@ -2,3 +2,4 @@
5 xubuntu_ignore-gdm-lang.patch
6 xubuntu_set-xdg-current-desktop.patch
7 xubuntu_runtime-logind-support.patch
8+xflock4-light-locker-support.patch
9
10=== added directory '.pc/xflock4-light-locker-support.patch'
11=== added file '.pc/xflock4-light-locker-support.patch/.timestamp'
12=== added directory '.pc/xflock4-light-locker-support.patch/scripts'
13=== added file '.pc/xflock4-light-locker-support.patch/scripts/xflock4'
14--- .pc/xflock4-light-locker-support.patch/scripts/xflock4 1970-01-01 00:00:00 +0000
15+++ .pc/xflock4-light-locker-support.patch/scripts/xflock4 2013-11-24 02:58:07 +0000
16@@ -0,0 +1,50 @@
17+#!/bin/sh
18+#
19+# xfce4
20+#
21+# Copyright (C) 1999, 2003 Olivier Fourdan (fourdan@xfce.org)
22+# Copyright (C) 2011 Guido Berhoerster (guido+xfce.org@berhoerster.name)
23+# Copyright (C) 2011 Jarno Suni (8@iki.fi)
24+#
25+# This program is free software; you can redistribute it and/or modify
26+# it under the terms of the GNU General Public License as published by
27+# the Free Software Foundation; either version 2 of the License, or
28+# (at your option) any later version.
29+#
30+# This program is distributed in the hope that it will be useful,
31+# but WITHOUT ANY WARRANTY; without even the implied warranty of
32+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33+# GNU General Public License for more details.
34+#
35+# You should have received a copy of the GNU General Public License
36+# along with this program; if not, write to the Free Software
37+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
38+#
39+
40+PATH=/bin:/usr/bin
41+export PATH
42+
43+# Lock by xscreensaver or gnome-screensaver, if a respective daemon is running
44+for lock_cmd in \
45+ "xscreensaver-command -lock" \
46+ "gnome-screensaver-command --lock"
47+do
48+ $lock_cmd >/dev/null 2>&1 && exit
49+done
50+
51+# else run another access locking utility, if installed
52+for lock_cmd in \
53+ "xlock -mode blank" \
54+ "slock"
55+ do
56+ set -- $lock_cmd
57+ if command -v -- $1 >/dev/null 2>&1; then
58+ $lock_cmd >/dev/null 2>&1 &
59+ # turn off display backlight:
60+ xset dpms force off
61+ exit
62+ fi
63+done
64+
65+# else access locking failed
66+exit 1
67
68=== modified file 'debian/changelog'
69--- debian/changelog 2013-11-12 21:41:29 +0000
70+++ debian/changelog 2013-11-24 02:58:07 +0000
71@@ -1,3 +1,9 @@
72+xfce4-session (4.10.1-3ubuntu3) trusty; urgency=low
73+
74+ * Add xflock4-light-locker-support.patch. LP: #1254366
75+
76+ -- Jackson Doak <noskcaj@ubuntu.com> Sun, 24 Nov 2013 13:43:52 +1100
77+
78 xfce4-session (4.10.1-3ubuntu2) trusty; urgency=low
79
80 * Add mythbuntu to the list of xsessions to be potentially ran by upstart.
81
82=== modified file 'debian/patches/series'
83--- debian/patches/series 2013-10-23 21:13:30 +0000
84+++ debian/patches/series 2013-11-24 02:58:07 +0000
85@@ -2,3 +2,4 @@
86 xubuntu_ignore-gdm-lang.patch
87 xubuntu_set-xdg-current-desktop.patch
88 xubuntu_runtime-logind-support.patch
89+xflock4-light-locker-support.patch
90
91=== added file 'debian/patches/xflock4-light-locker-support.patch'
92--- debian/patches/xflock4-light-locker-support.patch 1970-01-01 00:00:00 +0000
93+++ debian/patches/xflock4-light-locker-support.patch 2013-11-24 02:58:07 +0000
94@@ -0,0 +1,22 @@
95+Add support for locking via light-locker to xflock4
96+
97+---
98+ scripts/xflock4 | 5 +++--
99+ 1 file changed, 3 insertions(+), 2 deletions(-)
100+
101+--- a/scripts/xflock4
102++++ b/scripts/xflock4
103+@@ -24,10 +24,11 @@
104+ PATH=/bin:/usr/bin
105+ export PATH
106+
107+-# Lock by xscreensaver or gnome-screensaver, if a respective daemon is running
108++# Lock by xscreensaver, gnome-screensaver, or light-locker, if a respective daemon is running
109+ for lock_cmd in \
110+ "xscreensaver-command -lock" \
111+- "gnome-screensaver-command --lock"
112++ "gnome-screensaver-command --lock" \
113++ "light-locker-command -l"
114+ do
115+ $lock_cmd >/dev/null 2>&1 && exit
116+ done
117
118=== modified file 'scripts/xflock4'
119--- scripts/xflock4 2012-04-15 16:00:33 +0000
120+++ scripts/xflock4 2013-11-24 02:58:07 +0000
121@@ -24,10 +24,11 @@
122 PATH=/bin:/usr/bin
123 export PATH
124
125-# Lock by xscreensaver or gnome-screensaver, if a respective daemon is running
126+# Lock by xscreensaver, gnome-screensaver, or light-locker, if a respective daemon is running
127 for lock_cmd in \
128 "xscreensaver-command -lock" \
129- "gnome-screensaver-command --lock"
130+ "gnome-screensaver-command --lock" \
131+ "light-locker-command -l"
132 do
133 $lock_cmd >/dev/null 2>&1 && exit
134 done

Subscribers

People subscribed via source and target branches

to all changes: