~ubuntu-branches/ubuntu/wily/wdm/wily-proposed

« back to all changes in this revision

Viewing changes to debian/config/Xreset

  • Committer: Package Import Robot
  • Author(s): Agustin Martin Domingo
  • Date: 2012-03-06 15:42:13 UTC
  • Revision ID: package-import@ubuntu.com-20120306154213-zjci9axgw7mcv5du
Tags: 1.28-10
* QA upload.
* debian/control:
  - Change libpng12-dev Build-Depends to libpng-dev (Closes: #662545).
  - Bump Standards Version. No changes required.
* Some changes to mimic xdm equivalent files:
  - Xreset,Xstartup,Xsetup_0:
    + Use which function instead of checking hardcoded locations.
    + Copy Xstartup nologin stuff from xdm for consistency.
    + Use grep -qs '^whatever' instead of plain grep -q ^whatever.
  - wdm.init:
    + Use lsb/init-functions.
    + Merge some of the xdm lsb/init dependencies.
    + Add status option.
    + Misc changes.
* wdm.init:
  - Use a common wdm_may_update_wmlist function for possible
    update_wdm_wmlist calls.
* Remove obsolete and unused init file and rename {dir,docs} ->
  wdm.{dir,docs} for consistency.
* debian/xdm.Debian.patches: Remove this ancient and unused file.
* 03_autoconf.patch:
  - No need to add -lXft, get-wings-flags --libs will (needlessly) do it.
  - Do not try to filter out unneeded X libs, --as-needed will do it.
* debian/rules:
  - Use dh_prep instead of obsolete dh_clean -k.
  - Use --as-needed to avoid linking to unneeded libs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
# Use common X11 Xreset framework if available
8
8
if [ -x /etc/X11/Xreset ]; then
9
 
  /etc/X11/Xreset
 
9
    /etc/X11/Xreset
10
10
fi
11
11
 
12
12
# Remove the utmp entry for the session
13
 
if grep -q ^use-sessreg /etc/X11/wdm/wdm.options; then
14
 
  sessreg -d -l $DISPLAY -u /var/run/utmp -x /etc/X11/wdm/Xservers $USER
 
13
if grep -qs '^use-sessreg' /etc/X11/wdm/wdm.options \
 
14
    && which sessreg >/dev/null 2>&1; then
 
15
    sessreg -d -l "$DISPLAY" -u /var/run/utmp -x /etc/X11/wdm/Xservers "$USER"
15
16
fi
16
17
 
17
18
# This must be done here as opposed to in the Xsetup scripts as
18
19
# they are run after wdm has initialized its session menu, so
19
20
# any changes made there won't be reflected in the current menu
20
 
if grep -q ^auto-update-wmlist /etc/X11/wdm/wdm.options; then
21
 
  update_wdm_wmlist
 
21
if grep -qs '^auto-update-wmlist' /etc/X11/wdm/wdm.options; then
 
22
    update_wdm_wmlist
22
23
fi
23
24
 
24
25
exit 0