lightdm-1.18.1/0000775000000000000000000000000012700603563010124 5ustar lightdm-1.18.1/Makefile.am0000664000000000000000000000044512700600465012161 0ustar SUBDIRS = common liblightdm-gobject liblightdm-qt if COMPILE_TESTS SUBDIRS += tests endif SUBDIRS += data po src doc help DISTCHECK_CONFIGURE_FLAGS = --enable-introspection --enable-gtk-doc EXTRA_DIST = \ autogen.sh \ lightdm.doap \ COPYING.GPL3 \ COPYING.LGPL2 \ COPYING.LGPL3 \ NEWS lightdm-1.18.1/data/0000775000000000000000000000000012700603563011035 5ustar lightdm-1.18.1/data/Makefile.am0000664000000000000000000000206412700600465013071 0ustar initdir = ${sysconfdir}/init dist_init_DATA = init/lightdm.conf confdir = $(sysconfdir)/lightdm dist_conf_DATA = lightdm.conf users.conf keys.conf dbusconfdir = $(sysconfdir)/dbus-1/system.d dist_dbusconf_DATA = org.freedesktop.DisplayManager.conf pamdir = $(sysconfdir)/pam.d dist_pam_DATA = pam/lightdm \ pam/lightdm-autologin \ pam/lightdm-greeter completionsdir = $(datadir)/bash-completion/completions dist_completions_DATA = bash-completion/dm-tool bash-completion/lightdm lightdm-guest-session: $(srcdir)/apparmor/lightdm-guest-session.in sed -e 's|@libexecdir[@]|$(libexecdir)|g' $< >$@ apparmor_profiledir = $(sysconfdir)/apparmor.d apparmor_profile_DATA = \ lightdm-guest-session apparmor_profile_abstractionsdir = $(apparmor_profiledir)/abstractions dist_apparmor_profile_abstractions_DATA = \ apparmor/abstractions/lightdm \ apparmor/abstractions/lightdm_chromium-browser dist_man1_MANS = dm-tool.1 \ lightdm.1 EXTRA_DIST = apparmor/lightdm-guest-session.in CLEANFILES = lightdm-guest-session lightdm-1.18.1/data/users.conf0000664000000000000000000000070412700600465013044 0ustar # # User accounts configuration # # NOTE: If you have AccountsService installed on your system, then LightDM will # use this instead and these settings will be ignored # # minimum-uid = Minimum UID required to be shown in greeter # hidden-users = Users that are not shown to the user # hidden-shells = Shells that indicate a user cannot login # [UserList] minimum-uid=500 hidden-users=nobody nobody4 noaccess hidden-shells=/bin/false /usr/sbin/nologin lightdm-1.18.1/data/apparmor/0000775000000000000000000000000012700603563012656 5ustar lightdm-1.18.1/data/apparmor/lightdm-guest-session.in0000664000000000000000000000054112700600465017442 0ustar # vim:syntax=apparmor # Profile for restricting lightdm guest session #include @libexecdir@/lightdm-guest-session { # Most applications are confined via the main abstraction #include # chromium-browser needs special confinement due to its sandboxing #include } lightdm-1.18.1/data/apparmor/abstractions/0000775000000000000000000000000012700603563015352 5ustar lightdm-1.18.1/data/apparmor/abstractions/lightdm_chromium-browser0000664000000000000000000000637212700600465022317 0ustar # vim:syntax=apparmor # Profile abstraction for restricting chromium in the lightdm guest session # Author: Jamie Strandboge # The abstraction provides the additional accesses required to launch # chromium based browsers from within an lightdm session. Because AppArmor # cannot yet merge profiles and because we want to utilize the access rules # provided in abstractions/lightdm, this abstraction must be separate from # abstractions/lightdm. # Requires apparmor 2.9 /usr/lib/chromium-browser/chromium-browser Cx -> chromium, /usr/bin/webapp-container Cx -> chromium, /usr/bin/webbrowser-app Cx -> chromium, /usr/bin/ubuntu-html5-app-launcher Cx -> chromium, /opt/google/chrome-stable/google-chrome-stable Cx -> chromium, /opt/google/chrome-beta/google-chrome-beta Cx -> chromium, /opt/google/chrome-unstable/google-chrome-unstable Cx -> chromium, /opt/google/chrome/google-chrome Cx -> chromium, # Allow ptracing processes in the chromium child profile ptrace peer=/usr/lib/lightdm/lightdm-guest-session//chromium, # Allow receiving and sending signals to processes in the chromium child profile signal (receive, send) peer=/usr/lib/lightdm/lightdm-guest-session//chromium, # Allow communications with chromium child profile via unix sockets unix peer=(label=/usr/lib/lightdm/lightdm-guest-session//chromium), profile chromium { # Allow all the same accesses as other applications in the guest session #include # but also allow a few things because of chromium-browser's sandboxing that # are not appropriate to other guest session applications. owner @{PROC}/[0-9]*/oom_{,score_}adj w, @{PROC}/sys/kernel/shmmax r, capability sys_admin, # for sandbox to change namespaces capability sys_chroot, # fod sandbox to chroot to a safe directory capability setgid, # for sandbox to drop privileges capability setuid, # for sandbox to drop privileges capability sys_ptrace, # chromium needs this to keep track of itself @{PROC}/sys/kernel/yama/ptrace_scope r, # Allow ptrace reads of processes in the lightdm-guest-session ptrace (read) peer=/usr/lib/lightdm/lightdm-guest-session, # Allow other guest session processes to read and trace us ptrace (readby, tracedby) peer=/usr/lib/lightdm/lightdm-guest-session, ptrace (readby, tracedby) peer=@{profile_name}, # Allow us to receive and send signals from processes in the # lightdm-guest-session signal (receive, send) set=("exists", "term") peer=/usr/lib/lightdm/lightdm-guest-session, # Allow us to receive and send on unix sockets from processes in the # lightdm-guest-session unix (receive, send) peer=(label=/usr/lib/lightdm/lightdm-guest-session), @{PROC}/[0-9]*/ r, # sandbox wants these @{PROC}/[0-9]*/fd/ r, # sandbox wants these @{PROC}/[0-9]*/statm r, # sandbox wants these @{PROC}/[0-9]*/task/[0-9]*/stat r, # sandbox wants these owner @{PROC}/@{pid}/setgroups w, owner @{PROC}/@{pid}/uid_map w, owner @{PROC}/@{pid}/gid_map w, /selinux/ r, /usr/lib/chromium-browser/chromium-browser-sandbox ix, /usr/lib/@{multiarch}/oxide-qt/chrome-sandbox ix, /opt/google/chrome-*/chrome-sandbox ix, } lightdm-1.18.1/data/apparmor/abstractions/lightdm0000664000000000000000000000700312700600465016723 0ustar # vim:syntax=apparmor # Profile for restricting lightdm guest session # Author: Martin Pitt # This abstraction provides the majority of the confinement for guest sessions. # It is in its own abstraction so we can have a centralized place for # confinement for the various lightdm sessions (guest, freerdp, uccsconfigure, # etc). Note that this profile intentionally omits chromium-browser. # Requires apparmor 2.9 #include #include #include #include #include #include #include # bug in compiz https://launchpad.net/bugs/697678 /etc/compizconfig/config rw, /etc/compizconfig/unity.ini rw, / r, /bin/ rmix, /bin/fusermount Px, /bin/** rmix, /cdrom/ rmix, /cdrom/** rmix, /dev/ r, /dev/** rmw, # audio devices etc. owner /dev/shm/** rmw, /etc/ r, /etc/** rmk, /etc/gdm/Xsession ix, /etc/X11/xdm/** ix, # needed for openSUSE's default session-wrapper /etc/X11/xinit/** ix, # needed for openSUSE's default session-wrapper /lib/ r, /lib/** rmixk, /lib32/ r, /lib32/** rmixk, /lib64/ r, /lib64/** rmixk, owner /{,run/}media/ r, owner /{,run/}media/** rmwlixk, # we want access to USB sticks and the like /opt/ r, /opt/** rmixk, @{PROC}/ r, @{PROC}/* rm, @{PROC}/[0-9]*/net/ r, @{PROC}/[0-9]*/net/dev r, @{PROC}/asound rm, @{PROC}/asound/** rm, @{PROC}/ati rm, @{PROC}/ati/** rm, @{PROC}/sys/vm/overcommit_memory r, owner @{PROC}/** rm, # needed for gnome-keyring-daemon @{PROC}/*/status r, # needed for bamfdaemon and utilities such as ps and killall @{PROC}/*/stat r, /sbin/ r, /sbin/** rmixk, /sys/ r, /sys/** rm, # needed for confined trusted helpers, such as dbus-daemon /sys/kernel/security/apparmor/.access rw, /tmp/ rw, owner /tmp/** rwlkmix, /usr/ r, /usr/** rmixk, /var/ r, /var/** rmixk, /var/guest-data/** rw, # allow to store files permanently /var/tmp/ rw, owner /var/tmp/** rwlkm, /{,var/}run/ r, # necessary for writing to sockets, etc. /{,var/}run/** rmkix, /{,var/}run/screen/** wl, /{,var/}run/shm/** wl, /{,var/}run/uuidd/request w, # libpam-xdg-support/logind owner /{,var/}run/user/*/** rw, capability ipc_lock, # allow processes in the guest session to signal and ptrace each other signal peer=@{profile_name}, ptrace peer=@{profile_name}, # needed when logging out of the guest session signal (receive) peer=unconfined, unix peer=(label=@{profile_name}), unix (receive) peer=(label=unconfined), unix (create), unix (getattr, getopt, setopt, shutdown), unix (bind, listen) type=stream addr="@/com/ubuntu/upstart-session/**", unix (bind, listen) type=stream addr="@/tmp/dbus-*", unix (bind, listen) type=stream addr="@/tmp/.ICE-unix/[0-9]*", unix (bind, listen) type=stream addr="@/dbus-vfs-daemon/*", unix (bind, listen) type=stream addr="@guest*", unix (connect, receive, send) type=stream peer=(addr="@/tmp/dbus-*"), unix (connect, receive, send) type=stream peer=(addr="@/tmp/.X11-unix/X[0-9]*"), unix (connect, receive, send) type=stream peer=(addr="@/dbus-vfs-daemon/*"), unix (connect, receive, send) type=stream peer=(addr="@guest*"), # silence warnings for stuff that we really don't want to grant deny capability dac_override, deny capability dac_read_search, #deny /etc/** w, # re-enable once LP#697678 is fixed deny /usr/** w, deny /var/crash/ w, lightdm-1.18.1/data/lightdm.conf0000664000000000000000000001512312700600465013334 0ustar # # General configuration # # start-default-seat = True to always start one seat if none are defined in the configuration # greeter-user = User to run greeter as # minimum-display-number = Minimum display number to use for X servers # minimum-vt = First VT to run displays on # lock-memory = True to prevent memory from being paged to disk # user-authority-in-system-dir = True if session authority should be in the system location # guest-account-script = Script to be run to setup guest account # logind-check-graphical = True to on start seats that are marked as graphical by logind # log-directory = Directory to log information to # run-directory = Directory to put running state in # cache-directory = Directory to cache to # sessions-directory = Directory to find sessions # remote-sessions-directory = Directory to find remote sessions # greeters-directory = Directory to find greeters # backup-logs = True to move add a .old suffix to old log files when opening new ones # [LightDM] #start-default-seat=true #greeter-user=lightdm #minimum-display-number=0 #minimum-vt=7 #lock-memory=true #user-authority-in-system-dir=false #guest-account-script=guest-account #logind-check-graphical=false #log-directory=/var/log/lightdm #run-directory=/var/run/lightdm #cache-directory=/var/cache/lightdm #sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions #remote-sessions-directory=/usr/share/lightdm/remote-sessions #greeters-directory=/usr/share/lightdm/greeters:/usr/share/xgreeters #backup-logs=true # # Seat configuration # # Seat configuration is matched against the seat name glob in the section, for example: # [Seat:*] matches all seats and is applied first. # [Seat:seat0] matches the seat named "seat0". # [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client". # # type = Seat type (xlocal, xremote, unity) # pam-service = PAM service to use for login # pam-autologin-service = PAM service to use for autologin # pam-greeter-service = PAM service to use for greeters # xserver-command = X server command to run (can also contain arguments e.g. X -special-option) # xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option) # xserver-config = Config file to pass to X server # xserver-layout = Layout to pass to X server # xserver-allow-tcp = True if TCP/IP connections are allowed to this X server # xserver-share = True if the X server is shared for both greeter and session # xserver-hostname = Hostname of X server (only for type=xremote) # xserver-display-number = Display number of X server (only for type=xremote) # xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true) # xdmcp-port = XDMCP UDP/IP port to communicate on # xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf) # unity-compositor-command = Unity compositor command to run (can also contain arguments e.g. unity-system-compositor -special-option) # unity-compositor-timeout = Number of seconds to wait for compositor to start # greeter-session = Session to load for greeter # greeter-hide-users = True to hide the user list # greeter-allow-guest = True if the greeter should show a guest login option # greeter-show-manual-login = True if the greeter should offer a manual login option # greeter-show-remote-login = True if the greeter should offer a remote login option # user-session = Session to load for users # allow-user-switching = True if allowed to switch users # allow-guest = True if guest login is allowed # guest-session = Session to load for guests (overrides user-session) # session-wrapper = Wrapper script to run session with # greeter-wrapper = Wrapper script to run greeter with # guest-wrapper = Wrapper script to run guest sessions with # display-setup-script = Script to run when starting a greeter session (runs as root) # display-stopped-script = Script to run after stopping the display server (runs as root) # greeter-setup-script = Script to run when starting a greeter (runs as root) # session-setup-script = Script to run when starting a user session (runs as root) # session-cleanup-script = Script to run when quitting a user session (runs as root) # autologin-guest = True to log in as guest by default # autologin-user = User to log in with by default (overrides autologin-guest) # autologin-user-timeout = Number of seconds to wait before loading default user # autologin-session = Session to load for automatic login (overrides user-session) # autologin-in-background = True if autologin session should not be immediately activated # exit-on-failure = True if the daemon should exit if this seat fails # [Seat:*] #type=xlocal #pam-service=lightdm #pam-autologin-service=lightdm-autologin #pam-greeter-service=lightdm-greeter #xserver-command=X #xmir-command=Xmir #xserver-config= #xserver-layout= #xserver-allow-tcp=false #xserver-share=true #xserver-hostname= #xserver-display-number= #xdmcp-manager= #xdmcp-port=177 #xdmcp-key= #unity-compositor-command=unity-system-compositor #unity-compositor-timeout=60 #greeter-session=example-gtk-gnome #greeter-hide-users=false #greeter-allow-guest=true #greeter-show-manual-login=false #greeter-show-remote-login=true #user-session=default #allow-user-switching=true #allow-guest=true #guest-session= #session-wrapper=lightdm-session #greeter-wrapper= #guest-wrapper= #display-setup-script= #display-stopped-script= #greeter-setup-script= #session-setup-script= #session-cleanup-script= #autologin-guest=false #autologin-user= #autologin-user-timeout=0 #autologin-in-background=false #autologin-session= #exit-on-failure=false # # XDMCP Server configuration # # enabled = True if XDMCP connections should be allowed # port = UDP/IP port to listen for connections on # listen-address = Host/address to listen for XDMCP connections (use all addresses if not present) # key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf) # # The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively # it can be a word and the first 7 characters are used as the key. # [XDMCPServer] #enabled=false #port=177 #listen-address= #key= # # VNC Server configuration # # enabled = True if VNC connections should be allowed # command = Command to run Xvnc server with # port = TCP/IP port to listen for connections on # listen-address = Host/address to listen for VNC connections (use all addresses if not present) # width = Width of display to use # height = Height of display to use # depth = Color depth of display to use # [VNCServer] #enabled=false #command=Xvnc #port=5900 #listen-address= #width=1024 #height=768 #depth=8 lightdm-1.18.1/data/dm-tool.10000664000000000000000000000353512700600465012476 0ustar .TH DM-TOOL 1 "7 November 2013" .SH NAME dm-tool \- a tool to control the display manager .SH SYNOPSIS .B dm-tool [ .I OPTIONS ] .I COMMAND [ .I ARGS ] .SH DESCRIPTION .B dm-tool is a tool to communicate with the LightDM display manager. .SH OPTIONS .TP .B \-h, \-\-help Show help options .TP .B \-\-version Show release version .TP .B \-\-session-bus Attempt to connect to the display manager using the session bus. This is useful if you are running a display manager in a test mode. If this option is not present dm-tool will connect using the system bus. .TP The following commands are available: .TP .B switch-to-greeter Switch to the greeter suitable for logging into a new session. .TP .B switch-to-user USERNAME [SESSION] Switch to a user session. If this user is already logged in then the display manager will switch to that session, otherwise a new session is started. If authentication is required a greeter will start to collect this. If the session option is provided then this session type will be used, otherwise the default for this user is used. .TP .B switch-to-guest [SESSION] Switch to a guest session. If the guest session is already active the display manager will switch to that session, otherwise the guest session is started. If the session option is provided then this session type will be used, otherwise the default for the guest user is used. .TP .B lock Lock the current seat. This will switch to a greeter with a hint that the screen is locked. You can return to this session by authenticating in the greeter. .TP .B list-seats List the active seats and sessions that are running. .TP .B add-nested-seat Start an X server inside a session and connect it to a display manager. .TP .B add-local-x-seat DISPLAY_NUMBER Connect an existing X server to the display manager. .TP .B add-seat TYPE [NAME=VALUE...] Add a dynamic seat. .SH SEE ALSO .BR lightdm (1) lightdm-1.18.1/data/lightdm.10000664000000000000000000000200312700600465012540 0ustar .TH LIGHTDM 1 "7 November 2013" .SH NAME lightdm \- a display manager .SH SYNOPSIS .B lightdm [ .I OPTION ] .SH DESCRIPTION .B lightdm is a display manager. .SH OPTIONS .TP .B \-h, \-\-help Show help options .TP .B \-c, \-\-config=FILE Use configuration file .TP .B \-d, \-\-debug Print debugging messages .TP .B \-\-test\-mode Run as unprivileged user, skipping things that require root access .TP .B \-\-pid\-file=FILE File to write PID into .TP .B \-\-xsessions\-dir=DIRECTORY Directory to load X sessions from .TP .B \-\-xgreeters\-dir=DIRECTORY Directory to load X greeters from .TP .B \-\-log\-dir=DIRECTORY Directory to write logs to .TP .B \-\-run\-dir=DIRECTORY Directory to store running state .TP .B \-\-cache\-dir=DIRECTORY Directory to cached information .TP .B \-v, \-\-version Show release version .SH FILES .TP .B /etc/lightdm/lightdm.conf Configuration .TP .B /etc/lightdm/users.conf User list configuration (if not using Accounts Service) .TP .B /etc/lightdm/keys.conf XDMCP keys .SH SEE ALSO .BR dm-tool (1) lightdm-1.18.1/data/bash-completion/0000775000000000000000000000000012700603563014121 5ustar lightdm-1.18.1/data/bash-completion/dm-tool0000664000000000000000000000174412700600465015423 0ustar #-*- mode: shell-script;-*- _dm_tool() { local cur prev opts _init_completion || return opts='switch-to-greeter switch-to-user switch-to-guest lock list-seats add-nested-seat add-local-x-seat add-seat' case "$prev" in switch-to-greeter) return 0 ;; switch-to-user) COMPREPLY=($(compgen -u -- "${cur}")) return 0 ;; switch-to-guest) # FIXME: session name return 0 ;; lock) return 0 ;; list-seats) return 0 ;; add-nested-seat) # FIXME ... return 0 ;; add-local-x-seat) # FIXME ... return 0 ;; add-seat) # FIXME ... return 0 ;; *) ;; esac if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) return 0 fi COMPREPLY=($(compgen -W "${opts}" -- "${cur}")) return 0 } complete -F _dm_tool dm-tool lightdm-1.18.1/data/bash-completion/lightdm0000664000000000000000000000040112700600465015465 0ustar #-*- mode: shell-script;-*- _lightdm() { local cur prev opts _init_completion || return if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) return 0 fi } complete -F _lightdm lightdm lightdm-1.18.1/data/init/0000775000000000000000000000000012700603563012000 5ustar lightdm-1.18.1/data/init/lightdm.conf0000664000000000000000000000050212700600465014272 0ustar # lightdm - LightDM display manager # # The display manager service manages the X servers running on the # system, providing login and auto-login services description "LightDM Display Manager" author "Robert Ancell " emits login-session-start emits desktop-session-start exec /usr/bin/lightdm lightdm-1.18.1/data/pam/0000775000000000000000000000000012700603563011612 5ustar lightdm-1.18.1/data/pam/lightdm-greeter0000664000000000000000000000063112700600465014616 0ustar #%PAM-1.0 # Load environment from /etc/environment and ~/.pam_environment auth required pam_env.so # Always let the greeter start without authentication auth required pam_permit.so # No action required for account management account required pam_permit.so # Can't change password password required pam_deny.so # Setup session session required pam_unix.so session optional pam_systemd.so lightdm-1.18.1/data/pam/lightdm-autologin0000664000000000000000000000072612700600465015167 0ustar #%PAM-1.0 # Block login if they are globally disabled auth required pam_nologin.so # Load environment from /etc/environment and ~/.pam_environment auth required pam_env.so # Allow access without authentication auth required pam_permit.so # Stop autologin if account requires action account required pam_unix.so # Can't change password password required pam_deny.so # Setup session session required pam_unix.so session optional pam_systemd.so lightdm-1.18.1/data/pam/lightdm0000664000000000000000000000076012700600465013166 0ustar #%PAM-1.0 # Block login if they are globally disabled auth required pam_nologin.so # Load environment from /etc/environment and ~/.pam_environment auth required pam_env.so # Use /etc/passwd and /etc/shadow for passwords auth required pam_unix.so # Check account is active, change password if required account required pam_unix.so # Allow password to be changed password required pam_unix.so # Setup session session required pam_unix.so session optional pam_systemd.so lightdm-1.18.1/data/org.freedesktop.DisplayManager.conf0000664000000000000000000000223412700600465017703 0ustar lightdm-1.18.1/data/keys.conf0000664000000000000000000000005012700600465012650 0ustar [keyring] #a=0x0123456789ABCD #b=secret lightdm-1.18.1/COPYING.GPL30000664000000000000000000010451312700600465011665 0ustar GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . lightdm-1.18.1/liblightdm-qt/0000775000000000000000000000000012700603563012665 5ustar lightdm-1.18.1/liblightdm-qt/Makefile.am0000664000000000000000000000410712700600465014721 0ustar common_libadd = \ -L$(top_builddir)/liblightdm-gobject \ -llightdm-gobject-1 liblightdm_qt_3_la_LIBADD = \ $(LIBLIGHTDM_QT4_LIBS) \ $(common_libadd) liblightdm_qt5_3_la_LIBADD = \ $(LIBLIGHTDM_QT5_LIBS) \ $(common_libadd) common_cflags = \ $(WARN_CXXFLAGS) \ -I$(top_srcdir)/liblightdm-gobject \ $(GLIB_CFLAGS) \ -DQT_NO_KEYWORDS liblightdm_qt_3_la_CXXFLAGS = \ $(LIBLIGHTDM_QT4_CFLAGS) \ $(common_cflags) liblightdm_qt5_3_la_CXXFLAGS = \ -fPIC \ -DQT_DISABLE_DEPRECATED_BEFORE="QT_VERSION_CHECK(4, 0, 0)" \ $(LIBLIGHTDM_QT5_CFLAGS) \ $(common_cflags) common_headers = \ QLightDM/Greeter \ QLightDM/Power \ QLightDM/SessionsModel \ QLightDM/UsersModel \ QLightDM/greeter.h \ QLightDM/power.h \ QLightDM/sessionsmodel.h \ QLightDM/usersmodel.h liblightdm_qt_3includedir=$(includedir)/lightdm-qt-3/QLightDM liblightdm_qt5_3includedir=$(includedir)/lightdm-qt5-3/QLightDM common_sources = \ greeter.cpp \ power.cpp \ sessionsmodel.cpp \ usersmodel.cpp liblightdm_qt_3_la_SOURCES = \ $(common_sources) \ $(liblightdm_qt_3include_HEADERS) liblightdm_qt5_3_la_SOURCES = \ $(common_sources) \ $(liblightdm_qt5_3include_HEADERS) pkgconfigdir = $(libdir)/pkgconfig CLEANFILES = \ *_moc*.cpp DISTCLEANFILES = \ $(pkgconfig_DATA) lib_LTLIBRARIES = BUILT_SOURCES = pkgconfig_DATA = if COMPILE_LIBLIGHTDM_QT4 lib_LTLIBRARIES += liblightdm-qt-3.la liblightdm_qt_3include_HEADERS = $(common_headers) BUILT_SOURCES += $(common_sources:.cpp=_moc4.cpp) pkgconfig_DATA += liblightdm-qt-3.pc endif if COMPILE_LIBLIGHTDM_QT5 lib_LTLIBRARIES += liblightdm-qt5-3.la liblightdm_qt5_3include_HEADERS = $(common_headers) BUILT_SOURCES += $(common_sources:.cpp=_moc5.cpp) pkgconfig_DATA += liblightdm-qt5-3.pc endif # Support pretty printing MOC AM_V_MOC4 = $(am__v_MOC4_$(V)) am__v_MOC4_ = $(am__v_MOC4_$(AM_DEFAULT_VERBOSITY)) am__v_MOC4_0 = @echo " MOC4 " $@; %_moc4.cpp: QLightDM/%.h $(AM_V_MOC4) $(MOC4) $< -o $@ AM_V_MOC5 = $(am__v_MOC5_$(V)) am__v_MOC5_ = $(am__v_MOC5_$(AM_DEFAULT_VERBOSITY)) am__v_MOC5_0 = @echo " MOC5 " $@; %_moc5.cpp: QLightDM/%.h $(AM_V_MOC5) $(MOC5) $< -o $@ lightdm-1.18.1/liblightdm-qt/QLightDM/0000775000000000000000000000000012700603563014276 5ustar lightdm-1.18.1/liblightdm-qt/QLightDM/Greeter0000664000000000000000000000003512700600465015612 0ustar #include "QLightDM/greeter.h"lightdm-1.18.1/liblightdm-qt/QLightDM/SessionsModel0000664000000000000000000000004312700600465017003 0ustar #include "QLightDM/sessionsmodel.h"lightdm-1.18.1/liblightdm-qt/QLightDM/greeter.h0000664000000000000000000000604012700600465016102 0ustar /* * Copyright (C) 2010-2011 David Edmundson. * Copyright (C) 2010-2011 Robert Ancell * Author: David Edmundson * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #ifndef QLIGHTDM_GREETER_H #define QLIGHTDM_GREETER_H #include #include namespace QLightDM { class GreeterPrivate; class Q_DECL_EXPORT Greeter : public QObject { Q_OBJECT Q_PROPERTY(bool authenticated READ isAuthenticated ) //NOTFIY authenticationComplete Q_PROPERTY(QString authenticationUser READ authenticationUser ) Q_PROPERTY(QString defaultSession READ defaultSessionHint CONSTANT) Q_PROPERTY(QString selectUser READ selectUserHint CONSTANT) Q_PROPERTY(bool selectGuest READ selectGuestHint CONSTANT) Q_PROPERTY(QString hostname READ hostname CONSTANT) Q_PROPERTY(bool hasGuestAccount READ hasGuestAccountHint CONSTANT) Q_PROPERTY(bool locked READ lockHint CONSTANT) Q_PROPERTY(QString hostname READ hostname CONSTANT) Q_ENUMS(PromptType MessageType) public: enum PromptType { PromptTypeQuestion, PromptTypeSecret }; enum MessageType { MessageTypeInfo, MessageTypeError }; explicit Greeter(QObject* parent=0); virtual ~Greeter(); QString getHint(const QString &name) const; QString defaultSessionHint() const; bool hideUsersHint() const; bool showManualLoginHint() const; bool showRemoteLoginHint() const; bool lockHint () const; bool hasGuestAccountHint() const; QString selectUserHint() const; bool selectGuestHint() const; QString autologinUserHint() const; bool autologinGuestHint() const; int autologinTimeoutHint() const; bool inAuthentication() const; bool isAuthenticated() const; QString authenticationUser() const; QString hostname() const; public Q_SLOTS: bool connectToDaemonSync(); bool connectSync(); void authenticate(const QString &username=QString()); void authenticateAsGuest(); void authenticateAutologin(); void authenticateRemote(const QString &session=QString(), const QString &username=QString()); void respond(const QString &response); void cancelAuthentication(); void cancelAutologin(); void setLanguage (const QString &language); void setResettable (bool resettable); bool startSessionSync(const QString &session=QString()); QString ensureSharedDataDirSync(const QString &username); Q_SIGNALS: void showMessage(QString text, QLightDM::Greeter::MessageType type); void showPrompt(QString text, QLightDM::Greeter::PromptType type); void authenticationComplete(); void autologinTimerExpired(); void idle(); void reset(); private: GreeterPrivate *d_ptr; Q_DECLARE_PRIVATE(Greeter) }; } #endif // QLIGHTDM_GREETER_H lightdm-1.18.1/liblightdm-qt/QLightDM/sessionsmodel.h0000664000000000000000000000302412700600465017333 0ustar /* * Copyright (C) 2010-2011 David Edmundson. * Author: David Edmundson * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #ifndef QLIGHTDM_SESSIONS_MODEL_H #define QLIGHTDM_SESSIONS_MODEL_H #include class SessionsModelPrivate; namespace QLightDM { class Q_DECL_EXPORT SessionsModel : public QAbstractListModel { Q_OBJECT Q_ENUMS(SessionModelRoles SessionType) public: enum SessionModelRoles { //name is exposed as Qt::DisplayRole //comment is exposed as Qt::TooltipRole KeyRole = Qt::UserRole, IdRole = KeyRole, /** Deprecated */ TypeRole }; enum SessionType { LocalSessions, RemoteSessions }; explicit SessionsModel(QObject *parent = 0); /** Deprecated. Loads local sessions*/ explicit SessionsModel(SessionsModel::SessionType, QObject *parent = 0); virtual ~SessionsModel(); int rowCount(const QModelIndex &parent) const; QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const; protected: SessionsModelPrivate *d_ptr; private: Q_DECLARE_PRIVATE(SessionsModel) }; } #endif // QLIGHTDM_SESSION_H lightdm-1.18.1/liblightdm-qt/QLightDM/UsersModel0000664000000000000000000000004012700600465016273 0ustar #include "QLightDM/usersmodel.h"lightdm-1.18.1/liblightdm-qt/QLightDM/Power0000664000000000000000000000003312700600465015307 0ustar #include "QLightDM/power.h"lightdm-1.18.1/liblightdm-qt/QLightDM/usersmodel.h0000664000000000000000000000256612700600465016640 0ustar /* * Copyright (C) 2010-2011 David Edmundson. * Author: David Edmundson * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #ifndef QLIGHTDM_USER_H #define QLIGHTDM_USER_H #include #include #include namespace QLightDM { class UsersModelPrivate; class Q_DECL_EXPORT UsersModel : public QAbstractListModel { Q_OBJECT Q_ENUMS(UserModelRoles) public: explicit UsersModel(QObject *parent = 0); ~UsersModel(); enum UserModelRoles {NameRole = Qt::UserRole, RealNameRole, LoggedInRole, BackgroundRole, SessionRole, HasMessagesRole, ImagePathRole, BackgroundPathRole, UidRole }; int rowCount(const QModelIndex &parent) const; QVariant data(const QModelIndex &index, int role) const; protected: private: UsersModelPrivate * const d_ptr; Q_DECLARE_PRIVATE(UsersModel) }; } #endif // QLIGHTDM_USER_H lightdm-1.18.1/liblightdm-qt/QLightDM/power.h0000664000000000000000000000245312700600465015605 0ustar /* * Copyright (C) 2010-2011 David Edmundson. * Copyright (C) 2010-2011 Robert Ancell * Author: David Edmundson * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #ifndef QLIGHTDM_POWER_H #define QLIGHTDM_POWER_H #include namespace QLightDM { class PowerInterface : public QObject { Q_OBJECT public: Q_PROPERTY(bool canSuspend READ canSuspend() CONSTANT) Q_PROPERTY(bool canHibernate READ canHibernate() CONSTANT) Q_PROPERTY(bool canShutdown READ canShutdown() CONSTANT) Q_PROPERTY(bool canRestart READ canRestart() CONSTANT) PowerInterface(QObject *parent=0); virtual ~PowerInterface(); bool canSuspend(); bool canHibernate(); bool canShutdown(); bool canRestart(); public Q_SLOTS: bool suspend(); bool hibernate(); bool shutdown(); bool restart(); private: class PowerInterfacePrivate; PowerInterfacePrivate * const d; }; } #endif // QLIGHTDM_POWER_H lightdm-1.18.1/liblightdm-qt/liblightdm-qt-3.pc.in0000664000000000000000000000037712700600465016524 0ustar prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: liblightdm-qt Description: LightDM Qt4 client library Version: @VERSION@ Requires: QtCore QtGui Libs: -L${libdir} -llightdm-qt-3 Cflags: -I${includedir}/lightdm-qt-3 lightdm-1.18.1/liblightdm-qt/power.cpp0000664000000000000000000001105612700600465014526 0ustar /* * Copyright (C) 2010-2011 David Edmundson * Copyright (C) 2010-2011 Robert Ancell * Author: David Edmundson * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #include "QLightDM/power.h" #include #include #include #include #include "config.h" using namespace QLightDM; class PowerInterface::PowerInterfacePrivate { public: PowerInterfacePrivate(); QScopedPointer powerManagementInterface; QScopedPointer consoleKitInterface; QScopedPointer login1Interface; }; PowerInterface::PowerInterfacePrivate::PowerInterfacePrivate() : powerManagementInterface(new QDBusInterface("org.freedesktop.UPower","/org/freedesktop/UPower", "org.freedesktop.UPower", QDBusConnection::systemBus())), consoleKitInterface(new QDBusInterface("org.freedesktop.ConsoleKit", "/org/freedesktop/ConsoleKit/Manager", "org.freedesktop.ConsoleKit.Manager", QDBusConnection::systemBus())), login1Interface(new QDBusInterface("org.freedesktop.login1", "/org/freedesktop/login1", "org.freedesktop.login1.Manager", QDBusConnection::systemBus())) { } PowerInterface::PowerInterface(QObject *parent) : QObject(parent), d(new PowerInterfacePrivate) { } PowerInterface::~PowerInterface() { delete d; } bool PowerInterface::canSuspend() { if (d->login1Interface->isValid()) { QDBusReply reply = d->login1Interface->call("CanSuspend"); if (reply.isValid()) { return reply.value() == "yes"; } } qWarning() << d->login1Interface->lastError(); QDBusReply reply = d->powerManagementInterface->call("SuspendAllowed"); if (reply.isValid()) { return reply.value(); } else { return false; } } bool PowerInterface::suspend() { QDBusReply reply; if (d->login1Interface->isValid()) reply = d->login1Interface->call("Suspend", false); else reply = d->powerManagementInterface->call("Suspend"); return reply.isValid (); } bool PowerInterface::canHibernate() { if (d->login1Interface->isValid()) { QDBusReply reply = d->login1Interface->call("CanHibernate"); if (reply.isValid()) { return reply.value() == "yes"; } } qWarning() << d->login1Interface->lastError(); QDBusReply reply = d->powerManagementInterface->call("HibernateAllowed"); if (reply.isValid()) { return reply.value(); } else { return false; } } bool PowerInterface::hibernate() { QDBusReply reply; if (d->login1Interface->isValid()) reply = d->login1Interface->call("Hibernate", false); else reply = d->powerManagementInterface->call("Hibernate"); return reply.isValid (); } bool PowerInterface::canShutdown() { if (d->login1Interface->isValid()) { QDBusReply reply1 = d->login1Interface->call("CanPowerOff"); if (reply1.isValid()) { return reply1.value() == "yes"; } } qWarning() << d->login1Interface->lastError(); QDBusReply reply = d->consoleKitInterface->call("CanStop"); if (reply.isValid()) { return reply.value(); } return false; } bool PowerInterface::shutdown() { QDBusReply reply; if (d->login1Interface->isValid()) reply = d->login1Interface->call("PowerOff", false); else reply = d->consoleKitInterface->call("Stop"); return reply.isValid(); } bool PowerInterface::canRestart() { if (d->login1Interface->isValid()) { QDBusReply reply1 = d->login1Interface->call("CanReboot"); if (reply1.isValid()) { return reply1.value() == "yes"; } } qWarning() << d->login1Interface->lastError(); QDBusReply reply = d->consoleKitInterface->call("CanRestart"); if (reply.isValid()) { return reply.value(); } return false; } bool PowerInterface::restart() { QDBusReply reply; if (d->login1Interface->isValid()) reply = d->login1Interface->call("Reboot", false); else reply = d->consoleKitInterface->call("Restart"); return reply.isValid(); } #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) #include "power_moc5.cpp" #else #include "power_moc4.cpp" #endif lightdm-1.18.1/liblightdm-qt/usersmodel.cpp0000664000000000000000000001777512700600465015572 0ustar /* * Copyright (C) 2010-2011 David Edmundson. * Author: David Edmundson * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #include "QLightDM/usersmodel.h" #include #include #include #include using namespace QLightDM; class UserItem { public: QString name; QString realName; QString homeDirectory; QString image; QString background; QString session; bool isLoggedIn; bool hasMessages; quint64 uid; QString displayName() const; }; QString UserItem::displayName() const { if (realName.isEmpty()){ return name; } else { return realName; } } namespace QLightDM { class UsersModelPrivate { public: UsersModelPrivate(UsersModel *parent); virtual ~UsersModelPrivate(); QList users; protected: UsersModel * const q_ptr; void loadUsers(); static void cb_userAdded(LightDMUserList *user_list, LightDMUser *user, gpointer data); static void cb_userChanged(LightDMUserList *user_list, LightDMUser *user, gpointer data); static void cb_userRemoved(LightDMUserList *user_list, LightDMUser *user, gpointer data); private: Q_DECLARE_PUBLIC(UsersModel) }; } UsersModelPrivate::UsersModelPrivate(UsersModel* parent) : q_ptr(parent) { #if !defined(GLIB_VERSION_2_36) g_type_init(); #endif } UsersModelPrivate::~UsersModelPrivate() { g_signal_handlers_disconnect_by_data(lightdm_user_list_get_instance(), this); } void UsersModelPrivate::loadUsers() { Q_Q(UsersModel); int rowCount = lightdm_user_list_get_length(lightdm_user_list_get_instance()); if (rowCount == 0) { return; } else { q->beginInsertRows(QModelIndex(), 0, rowCount-1); const GList *items, *item; items = lightdm_user_list_get_users(lightdm_user_list_get_instance()); for (item = items; item; item = item->next) { LightDMUser *ldmUser = static_cast(item->data); UserItem user; user.name = QString::fromUtf8(lightdm_user_get_name(ldmUser)); user.homeDirectory = QString::fromUtf8(lightdm_user_get_home_directory(ldmUser)); user.realName = QString::fromUtf8(lightdm_user_get_real_name(ldmUser)); user.image = QString::fromUtf8(lightdm_user_get_image(ldmUser)); user.background = QString::fromUtf8(lightdm_user_get_background(ldmUser)); user.session = QString::fromUtf8(lightdm_user_get_session(ldmUser)); user.isLoggedIn = lightdm_user_get_logged_in(ldmUser); user.hasMessages = lightdm_user_get_has_messages(ldmUser); user.uid = (quint64)lightdm_user_get_uid(ldmUser); users.append(user); } q->endInsertRows(); } g_signal_connect(lightdm_user_list_get_instance(), LIGHTDM_USER_LIST_SIGNAL_USER_ADDED, G_CALLBACK (cb_userAdded), this); g_signal_connect(lightdm_user_list_get_instance(), LIGHTDM_USER_LIST_SIGNAL_USER_CHANGED, G_CALLBACK (cb_userChanged), this); g_signal_connect(lightdm_user_list_get_instance(), LIGHTDM_USER_LIST_SIGNAL_USER_REMOVED, G_CALLBACK (cb_userRemoved), this); } void UsersModelPrivate::cb_userAdded(LightDMUserList *user_list, LightDMUser *ldmUser, gpointer data) { Q_UNUSED(user_list) UsersModelPrivate *that = static_cast(data); that->q_func()->beginInsertRows(QModelIndex(), that->users.size(), that->users.size()); UserItem user; user.name = QString::fromUtf8(lightdm_user_get_name(ldmUser)); user.homeDirectory = QString::fromUtf8(lightdm_user_get_home_directory(ldmUser)); user.realName = QString::fromUtf8(lightdm_user_get_real_name(ldmUser)); user.image = QString::fromUtf8(lightdm_user_get_image(ldmUser)); user.background = QString::fromUtf8(lightdm_user_get_background(ldmUser)); user.isLoggedIn = lightdm_user_get_logged_in(ldmUser); user.hasMessages = lightdm_user_get_has_messages(ldmUser); user.uid = (quint64)lightdm_user_get_uid(ldmUser); that->users.append(user); that->q_func()->endInsertRows(); } void UsersModelPrivate::cb_userChanged(LightDMUserList *user_list, LightDMUser *ldmUser, gpointer data) { Q_UNUSED(user_list) UsersModelPrivate *that = static_cast(data); QString userToChange = QString::fromUtf8(lightdm_user_get_name(ldmUser)); for (int i=0;iusers.size();i++) { if (that->users[i].name == userToChange) { that->users[i].homeDirectory = QString::fromUtf8(lightdm_user_get_home_directory(ldmUser)); that->users[i].realName = QString::fromUtf8(lightdm_user_get_real_name(ldmUser)); that->users[i].image = QString::fromUtf8(lightdm_user_get_image(ldmUser)); that->users[i].background = QString::fromUtf8(lightdm_user_get_background(ldmUser)); that->users[i].isLoggedIn = lightdm_user_get_logged_in(ldmUser); that->users[i].hasMessages = lightdm_user_get_has_messages(ldmUser); that->users[i].uid = (quint64)lightdm_user_get_uid(ldmUser); QModelIndex index = that->q_ptr->createIndex(i, 0); that->q_ptr->dataChanged(index, index); break; } } } void UsersModelPrivate::cb_userRemoved(LightDMUserList *user_list, LightDMUser *ldmUser, gpointer data) { Q_UNUSED(user_list) UsersModelPrivate *that = static_cast(data); QString userToRemove = QString::fromUtf8(lightdm_user_get_name(ldmUser)); for (int i=0;iusers.size();i++) { if (that->users[i].name == userToRemove) { that->q_ptr->beginRemoveRows(QModelIndex(), i, i); that->users.removeAt(i); that->q_ptr->endRemoveRows(); break; } } } UsersModel::UsersModel(QObject *parent) : QAbstractListModel(parent), d_ptr(new UsersModelPrivate(this)) { Q_D(UsersModel); // Extend roleNames (we want to keep the "display" role) QHash roles = roleNames(); roles[NameRole] = "name"; roles[RealNameRole] = "realName"; roles[LoggedInRole] = "loggedIn"; roles[BackgroundRole] = "background"; roles[BackgroundPathRole] = "backgroundPath"; roles[SessionRole] = "session"; roles[HasMessagesRole] = "hasMessages"; roles[ImagePathRole] = "imagePath"; roles[UidRole] = "uid"; setRoleNames(roles); d->loadUsers(); } UsersModel::~UsersModel() { delete d_ptr; } int UsersModel::rowCount(const QModelIndex &parent) const { Q_D(const UsersModel); if (parent == QModelIndex()) { return d->users.size(); } return 0; } QVariant UsersModel::data(const QModelIndex &index, int role) const { Q_D(const UsersModel); if (!index.isValid()) { return QVariant(); } int row = index.row(); switch (role) { case Qt::DisplayRole: return d->users[row].displayName(); case Qt::DecorationRole: return QIcon(d->users[row].image); case UsersModel::NameRole: return d->users[row].name; case UsersModel::RealNameRole: return d->users[row].realName; case UsersModel::SessionRole: return d->users[row].session; case UsersModel::LoggedInRole: return d->users[row].isLoggedIn; case UsersModel::BackgroundRole: return QPixmap(d->users[row].background); case UsersModel::BackgroundPathRole: return d->users[row].background; case UsersModel::HasMessagesRole: return d->users[row].hasMessages; case UsersModel::ImagePathRole: return d->users[row].image; case UsersModel::UidRole: return d->users[row].uid; } return QVariant(); } #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) #include "usersmodel_moc5.cpp" #else #include "usersmodel_moc4.cpp" #endif lightdm-1.18.1/liblightdm-qt/greeter.cpp0000664000000000000000000002020412700600465015022 0ustar /* * Copyright (C) 2010-2011 David Edmundson * Copyright (C) 2010-2011 Robert Ancell * Author: David Edmundson * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #include "QLightDM/greeter.h" #include #include #include #include #include using namespace QLightDM; class QLightDM::GreeterPrivate { public: GreeterPrivate(Greeter *parent); LightDMGreeter *ldmGreeter; protected: Greeter* q_ptr; static void cb_showPrompt(LightDMGreeter *greeter, const gchar *text, LightDMPromptType type, gpointer data); static void cb_showMessage(LightDMGreeter *greeter, const gchar *text, LightDMMessageType type, gpointer data); static void cb_authenticationComplete(LightDMGreeter *greeter, gpointer data); static void cb_autoLoginExpired(LightDMGreeter *greeter, gpointer data); static void cb_idle(LightDMGreeter *greeter, gpointer data); static void cb_reset(LightDMGreeter *greeter, gpointer data); private: Q_DECLARE_PUBLIC(Greeter) }; GreeterPrivate::GreeterPrivate(Greeter *parent) : q_ptr(parent) { #if !defined(GLIB_VERSION_2_36) g_type_init(); #endif ldmGreeter = lightdm_greeter_new(); g_signal_connect (ldmGreeter, LIGHTDM_GREETER_SIGNAL_SHOW_PROMPT, G_CALLBACK (cb_showPrompt), this); g_signal_connect (ldmGreeter, LIGHTDM_GREETER_SIGNAL_SHOW_MESSAGE, G_CALLBACK (cb_showMessage), this); g_signal_connect (ldmGreeter, LIGHTDM_GREETER_SIGNAL_AUTHENTICATION_COMPLETE, G_CALLBACK (cb_authenticationComplete), this); g_signal_connect (ldmGreeter, LIGHTDM_GREETER_SIGNAL_AUTOLOGIN_TIMER_EXPIRED, G_CALLBACK (cb_autoLoginExpired), this); g_signal_connect (ldmGreeter, LIGHTDM_GREETER_SIGNAL_IDLE, G_CALLBACK (cb_idle), this); g_signal_connect (ldmGreeter, LIGHTDM_GREETER_SIGNAL_RESET, G_CALLBACK (cb_reset), this); } void GreeterPrivate::cb_showPrompt(LightDMGreeter *greeter, const gchar *text, LightDMPromptType type, gpointer data) { Q_UNUSED(greeter); GreeterPrivate *that = static_cast(data); QString message = QString::fromUtf8(text); Q_EMIT that->q_func()->showPrompt(message, type == LIGHTDM_PROMPT_TYPE_QUESTION ? Greeter::PromptTypeQuestion : Greeter::PromptTypeSecret); } void GreeterPrivate::cb_showMessage(LightDMGreeter *greeter, const gchar *text, LightDMMessageType type, gpointer data) { Q_UNUSED(greeter); GreeterPrivate *that = static_cast(data); QString message = QString::fromUtf8(text); Q_EMIT that->q_func()->showMessage(message, type == LIGHTDM_MESSAGE_TYPE_INFO ? Greeter::MessageTypeInfo : Greeter::MessageTypeError); } void GreeterPrivate::cb_authenticationComplete(LightDMGreeter *greeter, gpointer data) { Q_UNUSED(greeter); GreeterPrivate *that = static_cast(data); Q_EMIT that->q_func()->authenticationComplete(); } void GreeterPrivate::cb_autoLoginExpired(LightDMGreeter *greeter, gpointer data) { Q_UNUSED(greeter); GreeterPrivate *that = static_cast(data); Q_EMIT that->q_func()->autologinTimerExpired(); } void GreeterPrivate::cb_idle(LightDMGreeter *greeter, gpointer data) { Q_UNUSED(greeter); GreeterPrivate *that = static_cast(data); Q_EMIT that->q_func()->idle(); } void GreeterPrivate::cb_reset(LightDMGreeter *greeter, gpointer data) { Q_UNUSED(greeter); GreeterPrivate *that = static_cast(data); Q_EMIT that->q_func()->reset(); } Greeter::Greeter(QObject *parent) : QObject(parent), d_ptr(new GreeterPrivate(this)) { } Greeter::~Greeter() { delete d_ptr; } bool Greeter::connectToDaemonSync() { Q_D(Greeter); return lightdm_greeter_connect_to_daemon_sync(d->ldmGreeter, NULL); } bool Greeter::connectSync() { Q_D(Greeter); return lightdm_greeter_connect_to_daemon_sync(d->ldmGreeter, NULL); } void Greeter::authenticate(const QString &username) { Q_D(Greeter); lightdm_greeter_authenticate(d->ldmGreeter, username.toLocal8Bit().data()); } void Greeter::authenticateAsGuest() { Q_D(Greeter); lightdm_greeter_authenticate_as_guest(d->ldmGreeter); } void Greeter::authenticateAutologin() { Q_D(Greeter); lightdm_greeter_authenticate_autologin(d->ldmGreeter); } void Greeter::authenticateRemote(const QString &session, const QString &username) { Q_D(Greeter); lightdm_greeter_authenticate_remote(d->ldmGreeter, session.toLocal8Bit().data(), username.toLocal8Bit().data()); } void Greeter::respond(const QString &response) { Q_D(Greeter); lightdm_greeter_respond(d->ldmGreeter, response.toLocal8Bit().data()); } void Greeter::cancelAuthentication() { Q_D(Greeter); lightdm_greeter_cancel_authentication(d->ldmGreeter); } void Greeter::cancelAutologin() { Q_D(Greeter); lightdm_greeter_cancel_autologin(d->ldmGreeter); } bool Greeter::inAuthentication() const { Q_D(const Greeter); return lightdm_greeter_get_in_authentication(d->ldmGreeter); } bool Greeter::isAuthenticated() const { Q_D(const Greeter); return lightdm_greeter_get_is_authenticated(d->ldmGreeter); } QString Greeter::authenticationUser() const { Q_D(const Greeter); return QString::fromUtf8(lightdm_greeter_get_authentication_user(d->ldmGreeter)); } void Greeter::setLanguage (const QString &language) { Q_D(Greeter); lightdm_greeter_set_language(d->ldmGreeter, language.toLocal8Bit().constData()); } void Greeter::setResettable (bool resettable) { Q_D(Greeter); lightdm_greeter_set_resettable(d->ldmGreeter, resettable); } bool Greeter::startSessionSync(const QString &session) { Q_D(Greeter); return lightdm_greeter_start_session_sync(d->ldmGreeter, session.toLocal8Bit().constData(), NULL); } QString Greeter::ensureSharedDataDirSync(const QString &username) { Q_D(Greeter); return QString::fromUtf8(lightdm_greeter_ensure_shared_data_dir_sync(d->ldmGreeter, username.toLocal8Bit().constData())); } QString Greeter::getHint(const QString &name) const { Q_D(const Greeter); return lightdm_greeter_get_hint(d->ldmGreeter, name.toLocal8Bit().constData()); } QString Greeter::defaultSessionHint() const { Q_D(const Greeter); return QString::fromUtf8(lightdm_greeter_get_default_session_hint(d->ldmGreeter)); } bool Greeter::hideUsersHint() const { Q_D(const Greeter); return lightdm_greeter_get_hide_users_hint(d->ldmGreeter); } bool Greeter::showManualLoginHint() const { Q_D(const Greeter); return lightdm_greeter_get_show_manual_login_hint(d->ldmGreeter); } bool Greeter::showRemoteLoginHint() const { Q_D(const Greeter); return lightdm_greeter_get_show_remote_login_hint(d->ldmGreeter); } bool Greeter::lockHint() const { Q_D(const Greeter); return lightdm_greeter_get_lock_hint(d->ldmGreeter); } bool Greeter::hasGuestAccountHint() const { Q_D(const Greeter); return lightdm_greeter_get_has_guest_account_hint(d->ldmGreeter); } QString Greeter::selectUserHint() const { Q_D(const Greeter); return QString::fromUtf8(lightdm_greeter_get_select_user_hint(d->ldmGreeter)); } bool Greeter::selectGuestHint() const { Q_D(const Greeter); return lightdm_greeter_get_select_guest_hint(d->ldmGreeter); } QString Greeter::autologinUserHint() const { Q_D(const Greeter); return QString::fromUtf8(lightdm_greeter_get_autologin_user_hint(d->ldmGreeter)); } bool Greeter::autologinGuestHint() const { Q_D(const Greeter); return lightdm_greeter_get_autologin_guest_hint(d->ldmGreeter); } int Greeter::autologinTimeoutHint() const { Q_D(const Greeter); return lightdm_greeter_get_autologin_timeout_hint(d->ldmGreeter); } QString Greeter::hostname() const { return QString::fromUtf8(lightdm_get_hostname()); } #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) #include "greeter_moc5.cpp" #else #include "greeter_moc4.cpp" #endif lightdm-1.18.1/liblightdm-qt/liblightdm-qt5-3.pc.in0000664000000000000000000000040412700600465016600 0ustar prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: liblightdm-qt5 Description: LightDM Qt5 client library Version: @VERSION@ Requires: Qt5Core Qt5Gui Libs: -L${libdir} -llightdm-qt5-3 Cflags: -I${includedir}/lightdm-qt5-3 lightdm-1.18.1/liblightdm-qt/sessionsmodel.cpp0000664000000000000000000000720712700600465016264 0ustar /* * Copyright (C) 2010-2011 David Edmundson. * Author: David Edmundson * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #include "QLightDM/sessionsmodel.h" #include #include #include using namespace QLightDM; class SessionItem { public: QString key; QString type; QString name; QString comment; }; class SessionsModelPrivate { public: SessionsModelPrivate(SessionsModel *parent); QList items; void loadSessions(SessionsModel::SessionType sessionType); protected: SessionsModel* q_ptr; private: Q_DECLARE_PUBLIC(SessionsModel) }; SessionsModelPrivate::SessionsModelPrivate(SessionsModel *parent) : q_ptr(parent) { #if !defined(GLIB_VERSION_2_36) g_type_init(); #endif } void SessionsModelPrivate::loadSessions(SessionsModel::SessionType sessionType) { GList *ldmSessions; switch (sessionType) { case SessionsModel::RemoteSessions: ldmSessions = lightdm_get_remote_sessions(); break; case SessionsModel::LocalSessions: /* Fall through*/ default: ldmSessions = lightdm_get_sessions(); break; } for (GList* item = ldmSessions; item; item = item->next) { LightDMSession *ldmSession = static_cast(item->data); Q_ASSERT(ldmSession); SessionItem session; session.key = QString::fromUtf8(lightdm_session_get_key(ldmSession)); session.type = QString::fromUtf8(lightdm_session_get_session_type(ldmSession)); session.name = QString::fromUtf8(lightdm_session_get_name(ldmSession)); session.comment = QString::fromUtf8(lightdm_session_get_comment(ldmSession)); items.append(session); } //this happens in the constructor so we don't need beginInsertRows() etc. } //deprecated constructor for ABI compatability. SessionsModel::SessionsModel(QObject *parent) : QAbstractListModel(parent), d_ptr(new SessionsModelPrivate(this)) { Q_D(SessionsModel); QHash roles = roleNames(); roles[KeyRole] = "key"; setRoleNames(roles); d->loadSessions(SessionsModel::LocalSessions); } SessionsModel::SessionsModel(SessionsModel::SessionType sessionType, QObject *parent) : QAbstractListModel(parent), d_ptr(new SessionsModelPrivate(this)) { Q_D(SessionsModel); QHash roles = roleNames(); roles[KeyRole] = "key"; setRoleNames(roles); d->loadSessions(sessionType); } SessionsModel::~SessionsModel() { delete d_ptr; } int SessionsModel::rowCount(const QModelIndex &parent) const { Q_D(const SessionsModel); if (parent == QModelIndex()) { //if top level return d->items.size(); } else { return 0; // no child elements. } } QVariant SessionsModel::data(const QModelIndex &index, int role) const { Q_D(const SessionsModel); if (! index.isValid()) { return QVariant(); } int row = index.row(); switch (role) { case SessionsModel::KeyRole: return d->items[row].key; case SessionsModel::TypeRole: return d->items[row].type; case Qt::DisplayRole: return d->items[row].name; case Qt::ToolTipRole: return d->items[row].comment; } return QVariant(); } #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) #include "sessionsmodel_moc5.cpp" #else #include "sessionsmodel_moc4.cpp" #endif lightdm-1.18.1/po/0000775000000000000000000000000012700603563010542 5ustar lightdm-1.18.1/po/br.po0000664000000000000000000000467612700600465011520 0ustar # Breton translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-09-28 04:14+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Breton \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/ca@valencia.po0000664000000000000000000000531212700600465013267 0ustar # Catalan (Valencian) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-10-06 04:49+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Catalan (Valencian) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Esteu segur que voleu tancar tots els programes i reiniciar l'ordinador?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Cancel·la" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Reinicia" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Esteu segur que voleu tancar tots els programes i aturar l'ordinador?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Atura" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Mida de lletra gran" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Atura temporalment" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hiberna" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Reinicia..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Atura..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/tr.po0000664000000000000000000000647012700600465011534 0ustar # Turkish translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2013-03-24 01:07+0000\n" "Last-Translator: Halil Ibrahim ÇELİK \n" "Language-Team: Turkish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Tüm programları sonlandırıp bilgisayarı yeniden başlatmak istediğinize emin " "misiniz?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Vazgeç" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Yeniden Başlat" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Tüm programları sonlandırıp bilgisayarı kapatmak istediğinize emin misiniz?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Bilgisayarı Kapat" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Büyük Yazı Tipi" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Yüksek Karşıtlık" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Seçenekler" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Dil" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Klavye Düzeni" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Oturum" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Askıya Al" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hazırda Beklet" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Yeniden Başlat..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Kapat..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Kullanım:\n" " %s - Görüntü Yöneticisi" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Yardım Seçenekleri:\n" " -c, --config Yapılandırma dosyasını kullan\n" " --pid-file PID numarasının yazılacağı dosya\n" " -d, --debug Hata ayıklama mesajlarını görüntüle\n" " --test-mode Yetkisiz kullanıcı olarak çalıştır\n" " -v, --version Sürüm numarasını görüntüle\n" " -h, --help Yardım seçeneklerini görüntüle" lightdm-1.18.1/po/da.po0000664000000000000000000000616612700600465011475 0ustar # Danish translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-05-12 11:52+0000\n" "Last-Translator: Nicholas Christian Langkjær Ipsen " "\n" "Language-Team: Danish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Er du sikker på, at du vil afslutte alle programmer og genstarte computeren?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Annuller" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Genstart" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Er du sikker på, at du vil afslutte alle programmer og lukke computeren?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Luk ned" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Stor skrifttype" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Høj kontrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Indstillinger" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Sprog" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Session" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Hvile" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Dvale" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Genstart..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Luk ned..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Muligheder:\n" " -c, --config Brug konfigurationsfil\n" " --pid-file Fil som PID skal skrives ind i\n" " -d, --debug Print debugging beskeder\n" " --test-mode Kør som upriviligeret bruger\n" " -v, --version Vis udgivelsesversion\n" " -h, --help Vis hjælpemuligheder" lightdm-1.18.1/po/pt_BR.po0000664000000000000000000000631612700600465012114 0ustar # Brazilian Portuguese translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-08-05 20:50+0000\n" "Last-Translator: André Gondim \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Você tem certeza de que deseja fechar todos os programas e reiniciar o " "computador?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Cancelar" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Reiniciar" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Você tem certeza de que deseja fechar todos os programas e desligar o " "computador?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Desligar" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Fonte grande" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Alto contraste" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Opções" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Idioma" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Disposição de teclado" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sessão" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Suspender" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernar" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Reiniciar…" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Desligar…" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Uso:\n" " %s - Gerenciador de Sessões" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Opções de Ajuda:\n" " -c, --config Usar arquivo de configuração\n" " --pid-file Arquivo no qual escrever o PID\n" " -d, --debug Imprimir mensagens de depuração\n" " --test-mode Executar como um usuário sem privilégios\n" " -v, --version Exibir versão de lançamento\n" " -h, --help Exibir opções de ajuda" lightdm-1.18.1/po/sc.po0000664000000000000000000000470412700600465011512 0ustar # Sardinian translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-11-27 18:07+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Sardinian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/ja.po0000664000000000000000000000665612700600465011507 0ustar # Japanese translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-12-23 02:36+0000\n" "Last-Translator: OKANO Takayoshi \n" "Language-Team: Japanese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "本当にすべてのプログラムを終了し、コンピューターを再起動させますか?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "キャンセル" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "再起動" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "本当にすべてのプログラムを終了しコンピューターをシャットダウンしますか?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "シャットダウン" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "大きいフォント" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "ハイコントラスト" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "オプション" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "言語" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "キーボードのレイアウト" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "セッション" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "サスペンド" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "ハイバネート" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "再起動..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "シャットダウン..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "使い方:\n" " %s - ディスプレイマネージャー" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "ヘルプのオプション:\n" " -c, --config 指定した設定ファイルを使う\n" " --pid-file PID を書き込むファイル\n" " -d, --debug デバッグ用のメッセージを出力する\n" " --test-mode 非特権ユーザーとして実行する\n" " -v, --version リリースバージョンを表示する\n" " -h, --help ヘルプのオプションを表示する" lightdm-1.18.1/po/gu.po0000664000000000000000000000470212700600465011516 0ustar # Gujarati translation for lightdm # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2013-01-02 14:51+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Gujarati \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/POTFILES.in0000664000000000000000000000022512700600465012314 0ustar # List of source files containing translatable strings. # Please keep this file sorted alphabetically. [encoding: UTF-8] src/lightdm.c src/dm-tool.c lightdm-1.18.1/po/en_GB.po0000664000000000000000000000616412700600465012061 0ustar # English (United Kingdom) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-10-29 16:01+0000\n" "Last-Translator: Lazlo \n" "Language-Team: English (United Kingdom) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Are you sure you want to close all programs and restart the computer?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Cancel" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Restart" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Are you sure you want to close all programs and shutdown the computer?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Shutdown" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Large Font" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "High Constrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Options" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Language" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Keyboard Layout" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Session" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Suspend" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernate" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Restart..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Shutdown..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Usage:\n" " %s - Display Manager" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" lightdm-1.18.1/po/LINGUAS0000664000000000000000000000045612700600465011572 0ustar af an ar ast az be bg bn bo br bs ca ca@valencia ckb cs da de el en_AU en_CA en_GB eo es et eu fa fi fo fr fy gd gl gu he hi hr hu ia id is it ja kk km kn ko ku lb lt lv mhr mi ml mr ms my nb nl nn oc pa pl pt_BR pt ro ru sc sd shn si sk sl sq sr sv ta te tg th tl tr ug uk uz vi wae zh_CN zh_HK zh_TW lightdm-1.18.1/po/nn.po0000664000000000000000000000472412700600465011522 0ustar # Norwegian Nynorsk translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-10-22 12:20+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Norwegian Nynorsk \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/nl.po0000664000000000000000000000610212700600465011510 0ustar # Dutch translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-08-03 10:10+0000\n" "Last-Translator: Redmar \n" "Language-Team: Dutch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Weet u zeker dat u alle programma's wilt afsluiten en de computer wilt " "herstarten?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Annuleren" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Herstarten" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Weet u zeker dat u alle programma's wilt afsluiten en de computer wilt " "uitschakelen?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Uitschakelen" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Groot lettertype" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Hoog contrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Opties" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Taal" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Toetsenbordindeling" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sessie" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Pauzestand" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Slaapstand" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Herstarten…" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Afsluiten..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Gebruik:\n" " %s - Display Manager" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Hulp Opties:\n" " -c, --config Gebruik configuratiebestand\n" " --pid-file < file> Bestand om PID weg te schrijven\n" " --d, --debug Print debug-berichten\n" " --test-mode Voer als normale gebruiker uit\n" " -v, --version Toon versienummer\n" " -h, --help Toon hulp opties" lightdm-1.18.1/po/mi.po0000664000000000000000000000467412700600465011520 0ustar # Maori translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-07-24 01:41+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Maori \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/hu.po0000664000000000000000000000630012700600465011513 0ustar # Hungarian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-05-12 10:25+0000\n" "Last-Translator: Richard Somlói \n" "Language-Team: Hungarian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Biztos benne, hogy bezárja az összes programot, és újraindítja a " "számítógépet?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Mégse" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Újraindítás" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Biztos benne, hogy bezárja az összes programot, és leállítja a számítógépet?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Leállítás" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Nagy betűméret" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Magas kontraszt" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Beállítások" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Nyelv" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Billentyűzetkiosztás" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Munkamenet" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Felfüggesztés" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernálás" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Újraindítás…" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Leállítás…" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Használat:\n" " %s - Display Manager" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Súgó beállításokhoz:\n" " -c, --config Használjon konfigurációs fájlt\n" " --pid-file Ebbe a fájlba írja a PID-et\n" " -d, --debug Írja ki a hibakereső üzeneteket\n" " --test-mode Futtassa root jogok nélkül\n" " -v, --version Verziószám megjelenítése\n" " -h, --help Ennek a súgónak a megjelenítése" lightdm-1.18.1/po/eu.po0000664000000000000000000000624512700600465011520 0ustar # Basque translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-05-17 18:49+0000\n" "Last-Translator: Asier Sarasua Garmendia \n" "Language-Team: Basque \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Ziur programa guztiak itxi eta ordenagailua berrabiarazi nahi duzula?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Utzi" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Berrabiarazi" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Ziur programa guztiak itxi eta ordenagailua itzali nahi duzula?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Itzali" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Letra-tipo handia" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Kontraste handia" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Aukerak" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Hizkuntza" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Teklatu-diseinua" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Saioa" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Eseki" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernatu" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Berrabiarazi..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Itzali..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Erabilera:\n" " %s - Display Manager" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Laguntza-aukerak:\n" " -c, --config Erabili konfigurazio-fitxategia\n" " --pid-file PID idatziko den fitxategia\n" " -d, --debug Inprimatu arazketa-mezuak\n" " --test-mode Exekutatu pribilegiorik gabeko " "erabiltzaile gisa\n" " -v, --version Erakutsi bertsioa\n" " -h, --help Erakutsi laguntza-aukerak" lightdm-1.18.1/po/fo.po0000664000000000000000000000470012700600465011505 0ustar # Faroese translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-12-18 23:45+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Faroese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/ar.po0000664000000000000000000000637012700600465011510 0ustar # Arabic translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-05-12 22:09+0000\n" "Last-Translator: Karim Oulad Chalha \n" "Language-Team: Arabic \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "أمتأكد أنك ترغب في إغلاق كل البرامج وإعادة تشغيل الحاسوب؟" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "إلغاء" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "إعادة تشغيل" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "أمتأكد أنك ترغب في إغلاق كل البرامج وتوقيف الحاسوب؟" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "أطفئ" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "خط كبير" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "تباين عالي" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "خيارات" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "لغة" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "مخطط لوحة المفاتيح" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "جلسة" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "تعليق" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "إسبات" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "أعِد التشغيل..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "أطفئ..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "إستخدام:\n" " %s - مدير العرض" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "خبارات المساعدة:\n" " -c, --config إستخدم ملف التكوين\n" " --pid-file ملف لقراءة PID into\n" " -d, --debug طباعة رسالة التصحيح\n" " --test-mode شغل بدون إمتبازات المستخدم\n" " -v, --version أظهر إصدار النسخة\n" " -h, --help أظهر خيارات المساعدة" lightdm-1.18.1/po/es.po0000664000000000000000000000633712700600465011520 0ustar # Spanish translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2010-12-31 05:34+0000\n" "Last-Translator: Adolfo Jayme Barrientos \n" "Language-Team: Spanish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "¿Está seguro de que quiere cerrar todos los programas y reiniciar el equipo?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Cancelar" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Reiniciar" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "¿Está seguro de que quiere cerrar todos los programas y apagar el equipo?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Apagar" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Tipografía grande" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Contraste alto" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Opciones" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Idioma" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Distribución del teclado" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sesión" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Suspender" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernar" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Reiniciar..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Apagar..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Uso:\n" " %s - Gestor de pantalla" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Opciones de ayuda:\n" " -c, --config Usar un archivo de configuración\n" " --pid-file Escribir el PID en un archivo\n" " -d, --debug Mostrar mensajes de depuración\n" " --test-mode Ejecutar como un usuario sin privilegios\n" " -v, --version Mostrar la versión\n" " -h, --help Mostrar las opciones de ayuda" lightdm-1.18.1/po/it.po0000664000000000000000000000620612700600465011520 0ustar # Italian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2010-12-15 18:29+0000\n" "Last-Translator: turnick \n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "Chiudere veramente tutti i programmi e riavviare il computer?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Annulla" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Riavvia" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Chiudere veramente tutti i programmi e arrestare il computer?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Arresta" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Caratteri grandi" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Contrasto elevato" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Preferenze" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Lingua" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Mappatura tastiera" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sessione" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Sospendi" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Iberna" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Riavvia..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Arresta..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Uso:\n" " %s - Display Manager" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Opzioni d'aiuto:\n" " -c, --config Usa il file di configurazione\n" " --pid-file File in cui scrivere il PID\n" " -d, --debug Stampa messaggi di debug\n" " --test-mode Esegue come utente non privilegiato\n" " -v, --version Mostra il numero di versione\n" " -h, --help Mostra le opzioni d'aiuto" lightdm-1.18.1/po/id.po0000664000000000000000000000613412700600465011500 0ustar # Indonesian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-10-07 06:56+0000\n" "Last-Translator: Dirgita \n" "Language-Team: Indonesian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "Tutup semua program dan nyalakan ulang komputer?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Batal" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Nyalakan Ulang" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Tutup semua program dan matikan komputer?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Matikan" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Fonta Besar" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Kontras Tinggi" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Opsi" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Bahasa" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Tata Letak Papan Ketik" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sesi" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Suspensi" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernasi" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Nyalakan Ulang..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Matikan..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Penggunaan:\n" " %s - Manajer Tampilan" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Bantuan Opsi:\n" " -c, --config Menggunakan berkas konfigurasi\n" " --pid-file Berkas untuk menulis PID\n" " -d, --debug Menampilkan pesan debug\n" " --test-mode Menjalankan sebagai pengguna biasa\n" " -v, --version Menampilkan versi rilis\n" " -h, --help Menampilkan bantuan opsi" lightdm-1.18.1/po/th.po0000664000000000000000000000607112700600465011517 0ustar # Thai translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-07-19 14:52+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Thai \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "คุณแน่ใจหรือไม่ที่จะปิดโปรแกรมทั้งหมดและเริ่มเปิดเครื่องคอมพิวเตอร์ใหม่" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "ยกเลิก" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "เริ่มใหม่" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "คุณแน่ใจว่าต้องการปิดโปรแกรมทั้งหมดแล้วปิดเครื่อง" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "ปิดเครื่อง" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "แบบตัวอักษรขนาดใหญ่" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "ปิดพักเครื่อง" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "หยุดพักเครื่อง" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "เริ่มใหม่..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "ปิดเครื่อง..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/pt.po0000664000000000000000000000613112700600465011524 0ustar # Portuguese translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-06-16 23:16+0000\n" "Last-Translator: J. Andre Neto \n" "Language-Team: Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Tem a certeza que deseja fechar todos os programas e reiniciar o computador?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Cancelar" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Reiniciar" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Tem certeza que quer fechar todos os programas e desligar o computador?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Encerrar" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Fonte Grande" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Alto Contraste" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Opções" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Idioma" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Disposição do Teclado" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sessão" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Suspender" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernar" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Reiniciar..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Encerrar..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Uso:\n" " %s - Display Manager" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Opções de Ajuda:\n" " -c, --config Usar ficheiro de configuração\n" " --pid-file Ficheiro para escrever PID\n" " -d, --debug Visualizar mensagens de depuração\n" " --test-mode Executar como utilizador sem privilégios\n" " -v, --version Mostrar versão\n" " -h, --help Mostrar opções de ajuda" lightdm-1.18.1/po/sk.po0000664000000000000000000000634212700600465011522 0ustar # Slovak translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-01-18 17:14+0000\n" "Last-Translator: Pavol Klačanský \n" "Language-Team: Slovak \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Ste si istý, že chcete zavrieť všetky programy a reštartovať počítač?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Zrušiť" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Reštartovať" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Ste si istý, že chcete zavrieť všetky programy a vypnúť počítač?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Vypnúť" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Veľké písmo" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Vysoký kontrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Možnosti" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Jazyk" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Rozloženie klávesnice" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Relácia" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Uspať" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernovať" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Reštartovať..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Vypnúť..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Použitie:\n" " %s - Správca prihlásenia" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Možnosti pomocníka:\n" " -c, --config Použije konfiguračný súbor\n" " --pid-file Súbor, do ktorého sa zapíše PID\n" " -d, --debug Vypíše ladiace správy\n" " --test-mode Spustí ako neprivilegovaný používateľ\n" " -v, --version Zobrazí verziu vydania \n" " -h, --help Zobrazí možnosti pomocníka" lightdm-1.18.1/po/sl.po0000664000000000000000000000640312700600465011521 0ustar # Slovenian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-10-31 17:34+0000\n" "Last-Translator: Matej Urbančič \n" "Language-Team: Slovenian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Ali ste prepričani, da želite zapreti vse programe in ponovno zagnati " "računalnik?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Prekliči" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Ponovno zaženi" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Ali ste prepričani, da želite zapreti vse programe in izklopiti računalnik?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Izklopi" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Velika pisava" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Visok kontrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Možnosti" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Jezik" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Razpored tipkovnice" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Seja" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "V pripravljenost" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "V mirovanje" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Ponovni zagon ..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Izklopi ..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Uporaba:\n" " %s - upravljalnik zaslona" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Možnosti pomoči:\n" " -c, --config Uporabi nastavitveno datoteko\n" " --pid-file Datoteka v katero se zapišejo podatki " "PID\n" " -d, --debug Izpis sporočil razhroščevanja\n" " --test-mode Zaženi brez skrbniških dovoljenj\n" " -v, --version Pokaži različico objave\n" " -h, --help Pokaži možnosti pomoči" lightdm-1.18.1/po/si.po0000664000000000000000000000470412700600465011520 0ustar # Sinhalese translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-10-02 22:24+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Sinhalese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/nb.po0000664000000000000000000000527312700600465011506 0ustar # Norwegian Bokmal translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-07-18 17:22+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Norwegian Bokmal \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Er du sikker på at du vil lukke alle programmer og starte datamaskinen på " "nytt?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Avbryt" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Start på nytt" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Ønsker du å lukke alle programmer og starte datamaskinen på nytt?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Slå av" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Stor skrift" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Hvilemodus" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Dvalemodus" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Omstart..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Slå av..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/en_AU.po0000664000000000000000000000621312700600465012071 0ustar # English (Australia) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-12-19 13:08+0000\n" "Last-Translator: Joel Pickett \n" "Language-Team: English (Australia) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Are you sure you want to close all programs and restart the computer?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Cancel" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Restart" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Are you sure you want to close all programs and shut down the computer?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Shutdown" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Large Font" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "High Constrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Options" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Language" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Keyboard Layout" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Session" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Suspend" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernate" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Restart..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Shutdown..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Usage:\n" " %s - Display Manager" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" lightdm-1.18.1/po/km.po0000664000000000000000000000467412700600465011522 0ustar # Khmer translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-10-20 02:55+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Khmer \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/ia.po0000664000000000000000000000517612700600465011502 0ustar # Interlingua translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-05-11 04:43+0000\n" "Last-Translator: Emilio Sepulveda \n" "Language-Team: Interlingua \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Secur que tu vole clauder tote le programmas e reinitiar le computator?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Cancellar" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Re-initiar" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Optiones" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Lingua" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Disposition de claviero" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Session" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Suspender" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernar" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Reinitiar..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Clauder omne..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/shn.po0000664000000000000000000000467312700600465011702 0ustar # Shan translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-01-18 13:54+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Shan \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/ug.po0000664000000000000000000000706612700600465011524 0ustar # Uyghur translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-03-02 04:52+0000\n" "Last-Translator: Gheyret T.Kenji \n" "Language-Team: Uyghur \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "ھەممە پروگراممىنى ئېتىپ كومپيۇتېرنى قايتا قوزغامسىز؟" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "ۋاز كەچ" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "قايتا قوزغات" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "بارلىق پروگراممىنى يېپىپ، كومپيۇتېرنى تاقامسىز؟" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "تاقا" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "چوڭ خەت نۇسخىسى" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "يۇقىرى قېنىقلىق" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "تاللانمىلار" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "تىل" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "ھەرپتاختا جايلاشتۇرۇلۇشى" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "ئەڭگىمە" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "توڭلات" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "ئۈچەك" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "قايتا قوزغات…" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "تاقا…" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "ئىشلىتىش ئۇسۇلى:\n" " %s - كۆرسەتكۈچ باشقۇرغۇ" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "ياردەم تاللانمىلىرى:\n" " -c, --config سەپلىمە ھۆججەت ئىشلىتىدۇ\n" " --pid-file پروگرامما كىملىكى(PID) نى يازىدىغان " "ھۆججەت\n" " -d, --debug سازلاش ئۇچۇرلىرىنى چىقىرىدۇ\n" " --test-mode ئىمتىيازسىز ئىشلەتكۈچى سۈپىتىدە ئىجرا " "قىلىدۇ\n" " -v, --version نەشر ئۇچۇرىنى چىقىرىدۇ\n" " -h, --help ياردەم ئۇچۇرىنى چىقىرىدۇ" lightdm-1.18.1/po/sr.po0000664000000000000000000000740612700600465011533 0ustar # Serbian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # Мирослав Николић , 2011. msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-11-01 14:42+0000\n" "Last-Translator: Мирослав Николић \n" "Language-Team: Launchpad Serbian Translators\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" "Language: sr\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Да ли сте сигурни да желите да затворите све програме и да поново покренете " "рачунар?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Откажи" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Поново покрени" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Да ли сте сигурни да желите да затворите све програме и да угасите рачунар?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Угаси" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Већи словни ликови" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Велика супротност" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Опције" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Језик" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Распоред тастатуре" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Сесија" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Обустави" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Замрзни" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Поново покрени..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Угаси..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Употреба:\n" " %s — Управник приказа" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Опције помоћи:\n" " -c, --config <датотека> Користи датотеку подешавања\n" " --pid-file <датотека> Датотека за уписивање ПИД-а\n" " -d, --debug Штампа поруке уклањања грешака\n" " --test-mode Покреће као непривилеговани корисник\n" " -v, --version Приказује број издања\n" " -h, --help Приказује опције помоћи" lightdm-1.18.1/po/an.po0000664000000000000000000000470412700600465011503 0ustar # Aragonese translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-02-29 09:26+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Aragonese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/kn.po0000664000000000000000000000470012700600465011511 0ustar # Kannada translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-06-01 09:17+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Kannada \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/mr.po0000664000000000000000000000470012700600465011517 0ustar # Marathi translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-06-20 03:35+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Marathi \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/oc.po0000664000000000000000000000473012700600465011505 0ustar # Occitan (post 1500) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-08-14 13:45+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Occitan (post 1500) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/ro.po0000664000000000000000000000641412700600465011525 0ustar # Romanian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2010-10-15 10:38+0000\n" "Last-Translator: Lucian Adrian Grijincu \n" "Language-Team: Romanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Sigur doriți să închideți toate aplicațiile și să reporniți calculatorul?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Renunță" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Repornește" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Sigur doriți să închideți toate aplicațiile și să închideți calculatorul?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Închide calculatorul" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Font mare" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Contrast ridicat" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Preferințe" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Limbă" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Aranjament de tastatură" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sesiune" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Suspendare" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernare" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Repornire..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Oprire..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Utilizare:\n" " %s - Manager de afișare" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Opțiuni de ajutor:\n" " -c, --config Utilizează fișierul de configurare\n" " --pid-file Fișierul în care se va scrie PID-ul\n" " -d, --debug Afișează mesaje de depanare\n" " --test-mode Executa ca utilizator fără privilegii\n" " -v, --version Afișează versiunea\n" " -h, --help Afișează opțiunile de ajutor" lightdm-1.18.1/po/bs.po0000664000000000000000000000614412700600465011511 0ustar # Bosnian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-03-16 12:36+0000\n" "Last-Translator: Kenan Dervišević \n" "Language-Team: Bosnian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Da li ste sigurni da želite da zatvorite sve programe i da ponovo pokrenete " "računar?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Odustani" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Ponovo pokreni" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Jeste li sigurni da želite zatvoriti sve programe i isključiti računar?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Ugasi" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Veliki font" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Veliki kontrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Opcije" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Jezik" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Raspored tastature" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sesija" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Suspenduj" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernacija" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Ponovo pokreni..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Gašenje..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Korištenje:\n" " %s - Menadžer prikaza" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Opcije za pomoć:\n" " -c, --config Koristi postavke datoteke\n" " --pid-file datoteka za upisati PID\n" " -d,--debug Prikaži poruke debugiranja\n" " --test-mode Pokreni kao nepriveligirani korisnik\n" " -v, --version Prikaži verziju programa\n" " -h,--help Pokaži opcije pomoći" lightdm-1.18.1/po/en_CA.po0000664000000000000000000000472512700600465012055 0ustar # English (Canada) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-09-27 22:00+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: English (Canada) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/mhr.po0000664000000000000000000000471512700600465011675 0ustar # Mari (Meadow) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-10-16 13:52+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Mari (Meadow) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/te.po0000664000000000000000000000467612700600465011525 0ustar # Telugu translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-08-02 13:14+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Telugu \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/lightdm.pot0000664000000000000000000000421012700600465012711 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-08-10 12:37+1200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Help string for command line --config flag #: ../src/lightdm.c:1169 msgid "Use configuration file" msgstr "" #. Help string for command line --debug flag #: ../src/lightdm.c:1172 msgid "Print debugging messages" msgstr "" #. Help string for command line --test-mode flag #: ../src/lightdm.c:1175 msgid "Run as unprivileged user, skipping things that require root access" msgstr "" #. Help string for command line --pid-file flag #: ../src/lightdm.c:1178 msgid "File to write PID into" msgstr "" #. Help string for command line --log-dir flag #: ../src/lightdm.c:1181 msgid "Directory to write logs to" msgstr "" #. Help string for command line --run-dir flag #: ../src/lightdm.c:1184 msgid "Directory to store running state" msgstr "" #. Help string for command line --cache-dir flag #: ../src/lightdm.c:1187 msgid "Directory to cache information" msgstr "" #. Help string for command line --show-config flag #: ../src/lightdm.c:1190 msgid "Show combined configuration" msgstr "" #. Help string for command line --version flag #: ../src/lightdm.c:1193 msgid "Show release version" msgstr "" #. Arguments and description for --help test #: ../src/lightdm.c:1212 msgid "- Display Manager" msgstr "" #. Text printed out when an unknown command-line argument provided #: ../src/lightdm.c:1222 #, c-format msgid "Run '%s --help' to see a full list of available command line options." msgstr "" #. Text printed out when an unknown command-line argument provided #: ../src/dm-tool.c:29 #, c-format msgid "" "Run 'dm-tool --help' to see a full list of available command line options." msgstr "" lightdm-1.18.1/po/ru.po0000664000000000000000000000704012700600465011527 0ustar # Russian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-07-26 18:23+0000\n" "Last-Translator: Alexey Ivanov \n" "Language-Team: Russian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Вы действительно хотите закрыть все приложения и перезагрузить компьютер?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Отмена" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Перезагрузить" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Вы действительно хотите закрыть все приложения и выключить компьютер?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Выключить" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Крупный шрифт" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Высокий контраст" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Параметры" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Язык" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Раскладка клавиатуры" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Сеанс" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Ждущий режим" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Спящий режим" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Перезагрузить..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Выключить..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Использование:\n" " %s - Менеджер дисплея" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Справка:\n" " -c, --config <файл> Использовать файл конфигурации\n" " --pid-file <файл> Файл для записи PID\n" " -d, --debug Выводить отладочную информацию\n" " --test-mode Запустить от пользователя без привилегий\n" " -v, --version Показать версию релиза\n" " -h, --help Показать справку по опциям" lightdm-1.18.1/po/be.po0000664000000000000000000000470612700600465011475 0ustar # Belarusian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-07-27 04:54+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Belarusian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/el.po0000664000000000000000000000731612700600465011507 0ustar # Greek translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-02-19 23:40+0000\n" "Last-Translator: Simos Xenitellis \n" "Language-Team: Greek \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Είστε βέβαιοι ότι θέλετε να κλείσετε όλα τα προγράμματα και να " "επανεκκινήσετε τον υπολογιστή;" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Ακύρωση" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Επανεκκίνηση" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Είστε βέβαιοι ότι θέλετε να κλείσετε όλα τα προγράμματα και να " "απενεργοποιήσετε τον υπολογιστή;" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Τερματισμός" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Μεγάλη γραμματοσειρά" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Υψηλή αντίθεση" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Επιλογές" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Γλώσσα" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Διάταξη πληκτρολογίου" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Συνεδρία" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Αναμονή" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Αδρανοποίηση" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Επανεκκίνηση..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Τερματισμός..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Χρήση:\n" " %s - Διαχειριστής οθόνης" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Επιλογές:\n" " -c, --config <αρχείο> Χρήση αρχείου ρυθμίσεων\n" " --pid-file <αρχείο> Αρχείο όπου θα γραφτεί το PID\n" " -d, --debug Εμφάνιση μηνυμάτων εκσφαλμάτωσης\n" " --test-mode Εκτέλεση ως απλός χρήστης\n" " -v, --version Εμφάνιση του αριθμού έκδοσης\n" " -h, --help Εμφάνιση αυτής της βοήθειας" lightdm-1.18.1/po/vi.po0000664000000000000000000000544712700600465011530 0ustar # Vietnamese translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-09-07 16:33+0000\n" "Last-Translator: Lê Hoàng Phương \n" "Language-Team: Vietnamese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "Bạn có chắc muốn đóng tất cả chương trình và khởi động lại máy tính?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Hủy bỏ" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Khởi động lại" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Bạn có chắc muốn đóng tất cả chương trình và tắt máy tính?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Tắt máy" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Phông chữ lớn" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Tương phản cao" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Tuỳ chọn" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Ngôn ngữ" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Kiểu bàn phím" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Tạm ngưng" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Ngủ đông" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Khởi động lại..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Tắt máy..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/sv.po0000664000000000000000000000624112700600465011533 0ustar # Swedish translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-03-09 23:25+0000\n" "Last-Translator: Daniel Nylander \n" "Language-Team: Swedish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "Är du säker på att du vill stänga alla program och starta om datorn?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Avbryt" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Starta om" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Är du säker på att du vill stänga alla program och stänga av datorn?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Stäng av" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Stort typsnitt" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Hög kontrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Alternativ" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Språk" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Tangentbordslayout" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Session" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Vänteläge" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Viloläge" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Starta om..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Stäng av..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Användning:\n" " %s - Display Manager" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Hjälpflaggor:\n" " -c, --config Använd konfigurationsfil\n" " --pid-file Fil att skriva PID till\n" " -d, --debug Skriv ut felsökningsmeddelanden\n" " --test-mode Kör som opriviligerad användare\n" " -v, --version Visa utgåvans version\n" " -h, --help Visa hjälpflaggor" lightdm-1.18.1/po/ca.po0000664000000000000000000000640712700600465011472 0ustar # Catalan translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-10-05 21:13+0000\n" "Last-Translator: David Planella \n" "Language-Team: Catalan \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Esteu segur que voleu tancar tots els programes i reiniciar l'ordinador?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Cancel·la" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Reinicia" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Esteu segur que voleu tancar tots els programes i aturar l'ordinador?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Atura" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Mida de lletra gran" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Alt contrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Opcions" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Llengua" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Disposició del teclat" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sessió" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Atura temporalment" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hiberna" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Reinicia..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Atura..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Forma d'ús:\n" " %s - Gestor de pantalla" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Opcions d'ajuda:\n" " -c, --config Utilitza el fitxer de configuració " "especificat\n" " --pid-file Fitxer on cal escriure el PID " "(identificador de procés)\n" " -d, --debug Mostra missatges de depuració\n" " --test-mode Executa com a usuari sense privilegis\n" " -v, --version Mostra la versió del programa\n" " -h, --help Mostra les opcions d'ajuda" lightdm-1.18.1/po/sd.po0000664000000000000000000000467612700600465011523 0ustar # Sindhi translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-10-15 16:41+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Sindhi \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/zh_TW.po0000664000000000000000000000514012700600465012133 0ustar # Chinese (Traditional) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-07-24 19:45+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Chinese (Traditional) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "您確定要關閉所有程式,並重新啟動電腦?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "您確定要關閉所有程式,並關閉電腦?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "大字型" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "暫停" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "休眠" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/zh_CN.po0000664000000000000000000000575512700600465012115 0ustar # Chinese (Simplified) translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2010-12-28 10:03+0000\n" "Last-Translator: Wheat0r Hou \n" "Language-Team: Chinese (Simplified) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "您确定要关闭所有程序并重新启动计算机?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "取消" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "重启" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "您确定要关闭所有程序并关闭计算机?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "关机" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "大字体" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "高对比" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "选项" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Language/语言设定" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "键盘布局" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "会话" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "待机" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "休眠" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "重启..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "关闭..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "用法:\n" " %s - 显示管理器" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "帮助:\n" " -c, --config 使用配置文件\n" " --pid-file 写入PID 到指定文件\n" " -d, --debug 打印调试信息\n" " --test-mode 以非特权用户身份运行\n" " -v, --version 显示版本信息\n" " -h, --help 显示帮助信息" lightdm-1.18.1/po/fy.po0000664000000000000000000000470012700600465011517 0ustar # Frisian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-08-21 11:54+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Frisian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/eo.po0000664000000000000000000000617112700600465011510 0ustar # Esperanto translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-03-24 21:19+0000\n" "Last-Translator: Kristjan SCHMIDT \n" "Language-Team: Esperanto \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "Ĉu vi certe volas fermi ĉiujn programojn kaj restarti la komputilon?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Nuligi" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Restartigi" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Ĉu vi certe volas fermi ĉiujn programojn kaj elŝalti la komputilon?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Elŝalti" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Granda tiparo" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Alta kontrasto" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Agordoj" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Lingvo" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Klavararanĝo" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Seanco" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Paŭzigi" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Pasivumigi" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Restartigi..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Elŝalti..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Uzado:\n" " %s - ekranmastrumilo" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Helpaj opcioj:\n" " -c, --config Uzi agorddosieron\n" " --pid-file Dosiero kie skribi PID\n" " -d, --debug Presi sencimigajn mesaĝojn\n" " --test-mode Ruli kiel neprivilegiulo\n" " -v, --version Montri eldonan version\n" " -h, --help Montri helpajn opciojn" lightdm-1.18.1/po/uk.po0000664000000000000000000000716412700600465011527 0ustar # Ukrainian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2010-09-10 11:53+0000\n" "Last-Translator: Sergiy Gavrylov \n" "Language-Team: Ukrainian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "Ви дійсно бажаєте закрити всі програми та перезавантажити комп'ютер?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Скасувати" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Перезапустити" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Ви дійсно бажаєте закрити всі програми та вимкнути комп'ютер?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Вимкнути" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Великий шрифт" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Висока контрастність" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Параметри" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Мова" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Розкладка клавіатури" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Сеанс" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Призупинити" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Режим сну" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Перезапустити..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Вимкнути..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Використання:\n" " %s - Менеджер дисплея" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Параметри довідки:\n" " -c, --config Використовувати конфіг. файл\n" " --pid-file Файл для запису PID\n" " -d, --debug Виводити повідомлення налагодження\n" " --test-mode Виконати як непривілейований користувач\n" " -v, --version Показати версію випуску\n" " -h, --help Показати параметри довідки" lightdm-1.18.1/po/lb.po0000664000000000000000000000543612700600465011505 0ustar # Luxembourgish translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-06-16 13:20+0000\n" "Last-Translator: Edson \n" "Language-Team: Luxembourgish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Sidd Dir sécher, dass Dir all Programmer zoumaachen an de Computer nei " "starte wëllt?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Ofbriechen" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Nei starten" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Sidd Dir sécher, dass Dir all Programmer zoumaachen an de Computer ausmaache " "wëllt?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Ausmaachen" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Grouss Schrëft" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Héije Kontrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Optiounen" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Sprooch" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Tastaturbeleeung" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sëtzung" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Schlofmodus" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Wanterschlof" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Nei starten..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Ausmaachen..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/ast.po0000664000000000000000000000523112700600465011670 0ustar # Asturian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-07-19 15:39+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Asturian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "¿Daveres que quies zarrar tolos programes y reaniciar l'equipu?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Encaboxar" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Rearrancar" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "¿Tas seguru de que quies colar de tolos programes y apagar l'ordenador?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Apagar" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Fonte Grande" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Suspender" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Ivernar" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Rearrancar..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Apagar..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/hi.po0000664000000000000000000000705712700600465011511 0ustar # Hindi translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-03-27 14:57+0000\n" "Last-Translator: Abhijeet Kumar Singh \n" "Language-Team: Hindi \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "रद्द करें" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "फिर से चालू करें" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "बंद करें" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "बड़ा फ़ॉन्ट" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "विकल्प" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "भाषा" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "कुंजीपटल लेआउट" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "सत्र" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "निलम्बित करें" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "सुषुप्तावस्था मे डालें" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "पुनः आरंभ करें..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "कंप्यूटर बंद करें" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "प्रयोग:\n" " %s - डिस्पले मैनेज़र" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "सहायक विकल्प:\n" " -c, --config विन्यास फाइल का प्रोग करें\n" " --pid-file फाइल जिसमें पी आइ डी डाली जाए\n" " -d, --debug डीबग़ संदेश दिखाएँ\n" " --test-mode साधारण प्रयोक्ता की तरह चलाएँ\n" " -v, --version विमोचन आवृत्ति दिखाएँ\n" " -h, --help सहायक विकल्प दिखाएँ" lightdm-1.18.1/po/ml.po0000664000000000000000000000537512700600465011522 0ustar # Malayalam translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-10-13 09:14+0000\n" "Last-Translator: gireesh kumar k m \n" "Language-Team: Malayalam \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "വേണ്ട" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "എല്ലാ പ്രോഗ്രാമുകളും അടചിട്ട്‌ കംപ്യൂട്ടര്‍ നിര്‍ത്തട്ടെ?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "വലിയ ഫോണ്ട്" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "ശിശിര നിദ്ര" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "പുനരാരംഭിക്കുക" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "നിര്‍ത്തുക" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/fi.po0000664000000000000000000000536012700600465011502 0ustar # Finnish translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-05-13 17:21+0000\n" "Last-Translator: Jiri Grönroos \n" "Language-Team: Finnish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Haluatko todella sulkea kaikki ohjelmat ja käynnistää tietokoneen uudelleen?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Peru" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Käynnistä uudelleen" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Haluatko todella sulkea kaikki ohjelmat ja sammuttaa tietokoneen?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Sammuta" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Suuri kirjasin" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Suuri kontrasti" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Valinnat" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Kieli" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Näppäimistön asettelu" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Istunto" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Valmiustila" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Lepotila" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Käynnistä uudelleen..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Sammuta..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/lv.po0000664000000000000000000000470012700600465011522 0ustar # Latvian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-08-23 20:41+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Latvian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/fr.po0000664000000000000000000000620312700600465011510 0ustar # French translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-09-13 08:33+0000\n" "Last-Translator: Alexandre Patenaude \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "Voulez-vous fermer tous les programmes et redémarrer l'ordinateur ?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Annuler" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Redémarrer" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Voulez-vous fermer tous les programmes et éteindre l'ordinateur ?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Éteindre" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Grande police" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Contraste élevé" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Paramètres" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Langue" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Agencement du clavier" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Session" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Mettre en veille" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hiberner" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Redémarrer..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Éteindre..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Utilisation :\n" "  %s - Gestionnaire d'affichage" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Options:\n" " -c, --config Utiliser le fichier de configuration \"file\"\n" " -pid-file Fichier \"file\" dans lequel écrire le PID\n" " -d, --debug Affiche les messages de débogage\n" " --test-mode Lancement en tant qu'utilisateur sans privilèges\n" " -v, --version Affiche la version\n" " -h, --help Affiche l'aide des options" lightdm-1.18.1/po/uz.po0000664000000000000000000000547712700600465011553 0ustar # Uzbek translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-09-01 17:00+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Uzbek \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "Ҳамма дастурларни ёпишга ва компьютерни ўчириб-ёқишга розимисиз?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Бекор қилиш" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Ўчириб-ёқиш" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Барча дастурларни ёпишни ва компьютерни ўчиришни хоҳлайсизми?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Ўчириш" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Катта шрифт" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Кутиш усули" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Уйқуга кетиш" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Ўчириб-ёқиш" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Ўчириш" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/de.po0000664000000000000000000000637112700600465011477 0ustar # German translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-10-30 10:52+0000\n" "Last-Translator: Jakob Kramer \n" "Language-Team: German \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Sind Sie sicher, dass Sie alle Programme schließen und den Rechner neu " "starten möchten?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Abbrechen" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Neustart" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Sind Sie sicher, dass Sie alle Programme schließen und den Rechner " "herunterfahren möchten?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Herunterfahren" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Große Schrift" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Hoher Kontrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Optionen" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Sprache" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Tastaturbelegung" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sitzung" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Energiesparmodus" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Ruhezustand" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Neu starten …" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Herunterfahren …" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Aufruf:\n" " %s - Login-Manager" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Hilfeoptionen:\n" " -c, --config Konfigurationsdatei verwenden\n" " --pid-file Datei zum Speichern der Prozesskennungen \n" " -d, --debug Fehlerdiagnosemeldungen anzeigen\n" " --test-mode Als unprivilegierter Benutzer ausführen\n" " -v, --version Versionsinformationen anzeigen\n" " -h, --help Hilfeoptionen anzeigen" lightdm-1.18.1/po/ckb.po0000664000000000000000000000472312700600465011645 0ustar # Kurdish (Sorani) translation for lightdm # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2013-04-14 06:40+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Kurdish (Sorani) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/gd.po0000664000000000000000000000540012700600465011471 0ustar # Gaelic; Scottish translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-08-16 22:47+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Gaelic; Scottish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "A bheil thu cinnteach gu bheil thu airson gach prògram a dhùnadh is an " "coimpiutair ath-thòiseachadh?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Sguir dheth" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Ath-thòisich" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "A bheil thu cinnteach gu bheil thu airson gach prògram a dhùnadh agus an " "coimpiutair a chur dheth?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Dùin sìos" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Cuir dàil ann" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Dèan cadal-geamhraidh" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Ath-thòisich..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/bo.po0000664000000000000000000000470012700600465011501 0ustar # Tibetan translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-11-09 02:38+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Tibetan \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/hr.po0000664000000000000000000000620012700600465011507 0ustar # Croatian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # gogo , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: gogo \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-06-11 07:49+0000\n" "Last-Translator: gogo \n" "Language-Team: Croatian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Jeste li sigurni da želite zatvoriti sve programe i ponovno pokrenuti " "računalo?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Otkaži" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Ponovno pokretanje" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Jeste li sigurni da želite zatvoriti sve programe i isključiti računalo?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Isključivanje" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Velika slova" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Visoki kontrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Opcije" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Jezik" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Raspored tipkovnice" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sesija" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Suspenzija" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernacija" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Ponovno pokretanje..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Isključivanje..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Upotreba:\n" " %s - Upravitelj zaslona" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Opcije pomoći:\n" " -c, --config koristi konfiguracijsku datoteku\n" " --pid-file Datoteka u koju se zapisuje PID\n" " -d, --debug Ispiši debug poruke\n" " --test-mode Pokreni kao neprivilegirani korisnik\n" " -v, --version Prikaži inačicu softvera\n" " -h, --help Prikaži opcije pomoći" lightdm-1.18.1/po/pl.po0000664000000000000000000000626712700600465011526 0ustar # Polish translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-07-15 11:43+0000\n" "Last-Translator: Piotr Sokół \n" "Language-Team: Polish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Zakończyć działanie wszystkich programów i ponownie uruchomić komputer?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Anuluj" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Uruchom ponownie" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Zakończyć działanie wszystkich programów i wyłączyć komputer?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Wyłącz" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Duża czcionka" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Wysoki kontrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Opcje" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Język" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Układ klawiatury" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sesja" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Wstrzymaj" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Zahibernuj" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Uruchom ponownie..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Wyłącz..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Użycie:\n" " %s - menedżer logowania" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Opcje:\n" " -c, --config Określa plik konfiguracji\n" " --pid-file Określa plik z przechowywanym PID\n" " -d, --debug Wypisuje komunikaty diagnozowania błędów\n" " --test-mode Uruchamia jako zwykły użytkownik\n" " -v, --version Wypisuje informacje o wersji\n" " -h, --help Wypisuje komunikat pomocy" lightdm-1.18.1/po/is.po0000664000000000000000000000470512700600465011521 0ustar # Icelandic translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-12-26 04:32+0000\n" "Last-Translator: Andri Thorlacius \n" "Language-Team: Icelandic \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/ku.po0000664000000000000000000000524512700600465011525 0ustar # Kurdish translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-10-03 23:00+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Kurdish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Bi rastî dixwazî hemû bernameyan bigirî û komputerê dîsa bidî destpêkirin?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Betal" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Dîsdestpêkirin" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Bi rastî dixwazî hemû bernameyan û komputerê bigirî?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Girtin" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Curenivîsê mezin" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Xew" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Xewa kûr" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Dîsdestpêkirin..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Girtin..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/pa.po0000664000000000000000000000470012700600465011501 0ustar # Punjabi translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-04-06 07:15+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Punjabi \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/sq.po0000664000000000000000000000533312700600465011527 0ustar # Albanian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-04-14 13:10+0000\n" "Last-Translator: Lulzim \n" "Language-Team: Albanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Jeni i sigurtë që dëshironi t'i mbyllni të gjitha programet dhe të rindizni " "kompjuterin?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Anullo" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Rindiz" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Jeni i sigurtë që dëshironi t'i mbyllni të gjitha programet dhe të fikni " "kompjuterin?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Fike" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Gërma të Mëdha" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Opsionet" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Gjuhë" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Lloji i Tastierës" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Pezullo" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hiberno" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Rindiz..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Fike..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/wae.po0000664000000000000000000000523512700600465011661 0ustar # Walser translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-05-17 18:24+0000\n" "Last-Translator: bortis \n" "Language-Team: Walser \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "Aḷi prograṃ gšlieṣe und de kompiuter niw štarte?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Abbräče" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Niwštart" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Aḷi prograṃ gšlieṣe und de kompiuter abšteḷe?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Abšteḷe" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Groṣi šrift" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Hočä kontrašt" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Optionä" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Schprač" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Taštatürleiaut" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sizig" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Niwštart..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Abšteḷe..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/ta.po0000664000000000000000000000637312700600465011515 0ustar # Tamil translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-07-04 05:24+0000\n" "Last-Translator: Mel C \n" "Language-Team: Tamil \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "அனைத்து நிரல்களையும் மூடி கணினியை மீள்துவக்கம் செய்ய உறுதியாக உள்ளீர்களா?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "ரத்துசெய்" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "மீள்துவக்கு" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "அனைத்து நிரல்களையும் மூடி கணினியை முழுநிறுத்தம் செய்ய உறுதியாக உள்ளீர்களா?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "முழுநிறுத்தம்" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "தடிமஎழுத்துரு" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "அதிகஓளி" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "விருப்பங்கள்" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "மொழி" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "விசைப்பலகை அமைப்பு" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "அமர்வு`" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "ஒத்திப்போடு" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "இடை உறக்கம்" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "மீள்துவக்கு" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "முழுநிறுத்தம்" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/fa.po0000664000000000000000000000470012700600465011467 0ustar # Persian translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-03-24 17:32+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Persian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/tg.po0000664000000000000000000000467412700600465011525 0ustar # Tajik translation for lightdm # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2013-04-16 06:43+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Tajik \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/tl.po0000664000000000000000000000470012700600465011520 0ustar # Tagalog translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-11-06 07:32+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Tagalog \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/et.po0000664000000000000000000000534312700600465011515 0ustar # Estonian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-08-28 16:42+0000\n" "Last-Translator: Jalakas \n" "Language-Team: Estonian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Kas oled kindel, et tahad kõik programmid sulgeda ja arvuti taaskäivitada?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Loobu" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Taaskäivita" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Kas oled kindel, et tahad kõik programmid sulgeda ja arvuti välja lülitada?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Lülita välja" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Suur kiri" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Suur kontrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Valikud" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Keel" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Klaviatuuri paigutus" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sessioon" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Uinak" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Talveuni" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Taaskäivita..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Lülita välja..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/my.po0000664000000000000000000000470012700600465011526 0ustar # Burmese translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-05-18 06:50+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Burmese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/cs.po0000664000000000000000000000611612700600465011511 0ustar # Czech translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-05-13 12:11+0000\n" "Last-Translator: David Štancl \n" "Language-Team: Czech \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "Opravdu chcete ukončit všechny programy a restartovat počítač?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Storno" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Restartovat" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Opravdu chcete ukončit všechny programy a vypnout počítač?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Vypnout" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Velké písmo" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Vysoký kontrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Volby" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Jazyk" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Rozložení klávesnice" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sezení" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Uspat" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernovat" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Restartovat..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Vypnout..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Použití:\n" " %s - správce přihlášení" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "-c, --config načíst konfiguraci ze souboru \n" " --pid-file název souboru, do kterého bude zapsáno PID\n" " -d, --debug zobrazovat ladicí hlášení\n" " --test-mode spustit pod běžným uživatelem (otestovat nastavení)\n" " -v, --version zobrazit verzi\n" " -h, --help zobrazit nápovědu" lightdm-1.18.1/po/gl.po0000664000000000000000000000630012700600465011501 0ustar # Galician translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-08-24 14:34+0000\n" "Last-Translator: Fran Diéguez \n" "Language-Team: Galician \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Ten certeza de que desexa pechar todos os programas e reiniciar o computador?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Cancelar" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Reiniciar" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Ten certeza de que desexa pechar todos os programas e apagar o computador?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Apagar" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Letras grandes" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Contraste alto" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Opcións" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Idioma" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Disposición de teclado" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sesión" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Suspender" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernar" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Reiniciar..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Apagar..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Uso:\n" " %s - Xestor de pantalla" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Opcións de axuda:\n" " -c, --config Usar un ficheiro de configuración\n" " --pid-file Escribir o PID nun ficheiro\n" " -d, --debug Mostrar mensaxes de depuración\n" " --test-mode Executar como un usuario sen privilexios\n" " -v, --version Mostrar a versión\n" " -h, --help Mostrar as opcións de axuda" lightdm-1.18.1/po/ko.po0000664000000000000000000000516212700600465011515 0ustar # Korean translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-07-24 07:38+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Korean \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "모든 프로그램을 닫고 컴퓨터를 다시 시작하겠습니까?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "취소" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "다시 시작" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "컴퓨터 끄기" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "큰 글꼴" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "절전모드" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "최대 절전 모드" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "재시작..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "컴퓨터 끄기..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/zh_HK.po0000664000000000000000000000522312700600465012105 0ustar # Chinese (Hong Kong) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-10-08 09:51+0000\n" "Last-Translator: Roy Chan \n" "Language-Team: Chinese (Hong Kong) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "您確定要關閉所有程式,並重新啟動電腦?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "取消" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "重新啟動" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "您確定要關閉所有程式,並關閉電腦?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "關機" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "大字型" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "暫停" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "休眠" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "重新啟動..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "關機..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/af.po0000664000000000000000000000470412700600465011473 0ustar # Afrikaans translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-07-24 11:54+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Afrikaans \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/ms.po0000664000000000000000000000602512700600465011522 0ustar # Malay translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-07-21 02:26+0000\n" "Last-Translator: abuyop \n" "Language-Team: Malay \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "Anda pasti ingin menutup semua perisian dan mulakan semula komputer?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Batal" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Mulakan Semula" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Anda pasti ingin menutup semua program dan matikan komputer?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Matikan" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Fon Besar" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Beza Jelas Tinggi" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Pilihan" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Bahasa" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Bentangan Papan Kekunci" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sesi" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Tangguh" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernasi" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Mula Semula..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Matikan..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Penggunaa:\n" " %s - Pengurus Paparan" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Pilihan Bantuan:\n" " -c, --config Guna fail konfigurasi\n" " --pid-file Fail untuk tuliskan PID\n" " -d, --debug Papar mesej penyahpepijatan\n" " --test-mode Jalankan sebagai pengguna tanpa kendangan\n" " -v, --version Papar versi keluaran\n" " -h, --help Papar pilihan bantuan" lightdm-1.18.1/po/lt.po0000664000000000000000000000545612700600465011531 0ustar # Lithuanian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-07-26 09:50+0000\n" "Last-Translator: Aurimas Fišeras \n" "Language-Team: Lithuanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Ar tikrai norite užverti visas programas ir paleisti kompiuterį iš naujo?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Atsisakyti" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Paleisti iš naujo" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Ar tikrai norite užverti visas programas ir išjungti kompiuterį?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Išjungti" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Didelis šriftas" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Didelis kontrastas" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Nustatymai" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Kalba" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Klaviatūros išdėstymas" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Seansas" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Sustabdyti" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Hibernuoti" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Paleisti iš naujo..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Išjungti..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Naudojimas:\n" " %s - ekrano valdyklė" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/bg.po0000664000000000000000000000614712700600465011500 0ustar # Bulgarian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-04-26 10:47+0000\n" "Last-Translator: Svetoslav Stefanov \n" "Language-Team: Bulgarian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Сигурни ли сте, че искате да се затворят всички програми и компютърът да се " "рестартира?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Отказ" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Рестартиране" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Сигурни ли сте, че искате да се затворят всички програми и компютърът да се " "изключи?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Изключване" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Голям шрифт" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Висок контраст" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Настройки" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Език" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Подредба на клавиатурата" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Сесия" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Приспиване" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Дълбоко заспиване" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Рестартиране..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Изключване..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Употреба:\n" " %s - Display Manager" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/he.po0000664000000000000000000000634712700600465011506 0ustar # Hebrew translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-01-13 14:34+0000\n" "Last-Translator: Yaron \n" "Language-Team: Hebrew \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "האם אכן ברצונך לסגור את כל התכניות ולהפעיל מחדש את המחשב?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "ביטול" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "הפעלה מחדש" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "האם אכן ברצונך לסגור את כל התבניות ולכבות את המחשב?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "כיבוי" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "גופן גדול" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "ניגודיות גבוהה" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "אפשרויות" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "שפה" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "פריסת המקלדת" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "הפעלה" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "השהיה" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "מצב שינה" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "הפעלה מחדש..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "כיבוי..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Usage:\n" " %s - Display Manager" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" lightdm-1.18.1/po/kk.po0000664000000000000000000000706412700600465011514 0ustar # Kazakh translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-07-12 04:35+0000\n" "Last-Translator: Baurzhan Muftakhidinov \n" "Language-Team: Kazakh \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "Барлық бағдарламаларды жауып, компьютеріңізді қайта жүктеуді қалайсыз ба?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Бас тарту" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Қайта жүктеу" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "Барлық бағдарламаларды жауып, компьютеріңізді сөндіруді қалайсыз ба?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Сөндіру" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Үлкен қаріп" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Жоғары контраст" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Опциялар" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Тіл" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Пернетақта жаймасы" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Сессия" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Ұйықтату" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Гибернация" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Қайта жүктеу..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Сөндіру..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" "Қолданылуы:\n" " %s - Display Manager" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" "Көмек опциялары:\n" " -c, --config Баптаулар файлын қолдану\n" " --pid-file PID жазылатын файл\n" " -d, --debug Жөндеу хабарламаларын шығару\n" " --test-mode Привилегиясыз пайдаланушыдан орындау\n" " -v, --version Шығарылым нұсқасын көрсету\n" " -h, --help Көмек опцияларын көрсету" lightdm-1.18.1/po/bn.po0000664000000000000000000000606312700600465011504 0ustar # Bengali translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2011-08-31 16:20+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Bengali \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" "আপনি কি নিশ্চিত আপনি সব প্রোগ্রাম বন্ধ করে কম্পিউটার পুনরায় আরম্ভ করতে চান?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "বাতিল" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "পুনরায় আরম্ভ" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "আপনি কি নিশ্চিত আপনি সব প্রোগ্রাম বন্ধ করে কম্পিউটার বন্ধ করতে চান?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "বন্ধ করুন" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "বড় ফন্ট" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "স্থগিত করুন" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "নিদ্রিত অবস্থায় রাখুন" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "পুনরায় আরম্ভ..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "বন্ধ করুন..." #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/po/az.po0000664000000000000000000000471012700600465011514 0ustar # Azerbaijani translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2012-04-14 10:57+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Azerbaijani \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2013-08-09 05:11+0000\n" "X-Generator: Launchpad (build 16723)\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "" #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:100 #, c-format msgid "" "Usage:\n" " %s - Display Manager" msgstr "" #. Description on how to use Light Display Manager displayed on command-line #: ../src/lightdm.c:106 #, c-format msgid "" "Help Options:\n" " -c, --config Use configuration file\n" " --pid-file File to write PID into\n" " -d, --debug Print debugging messages\n" " --test-mode Run as unprivileged user\n" " -v, --version Show release version\n" " -h, --help Show help options" msgstr "" lightdm-1.18.1/COPYING.LGPL30000664000000000000000000001674312700600465012010 0ustar GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library. lightdm-1.18.1/lightdm.doap0000664000000000000000000000157112700600465012423 0ustar lightdm X Display Manager Robert Ancell rancell lightdm-1.18.1/COPYING.LGPL20000664000000000000000000006144712700600465012010 0ustar GNU LIBRARY GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the library GPL. It is numbered 2 because it goes with version 2 of the ordinary GPL.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Library General Public License, applies to some specially designated Free Software Foundation software, and to any other libraries whose authors decide to use it. You can use it for your libraries, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library, or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link a program with the library, you must provide complete object files to the recipients so that they can relink them with the library, after making changes to the library and recompiling it. And you must show them these terms so they know their rights. Our method of protecting your rights has two steps: (1) copyright the library, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the library. Also, for each distributor's protection, we want to make certain that everyone understands that there is no warranty for this free library. If the library is modified by someone else and passed on, we want its recipients to know that what they have is not the original version, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that companies distributing free software will individually obtain patent licenses, thus in effect transforming the program into proprietary software. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License, which was designed for utility programs. This license, the GNU Library General Public License, applies to certain designated libraries. This license is quite different from the ordinary one; be sure to read it in full, and don't assume that anything in it is the same as in the ordinary license. The reason we have a separate public license for some libraries is that they blur the distinction we usually make between modifying or adding to a program and simply using it. Linking a program with a library, without changing the library, is in some sense simply using the library, and is analogous to running a utility program or application program. However, in a textual and legal sense, the linked executable is a combined work, a derivative of the original library, and the ordinary General Public License treats it as such. Because of this blurred distinction, using the ordinary General Public License for libraries did not effectively promote software sharing, because most developers did not use the libraries. We concluded that weaker conditions might promote sharing better. However, unrestricted linking of non-free programs would deprive the users of those programs of all benefit from the free status of the libraries themselves. This Library General Public License is intended to permit developers of non-free programs to use free libraries, while preserving your freedom as a user of such programs to change the free libraries that are incorporated in them. (We have not seen how to achieve this as regards changes in header files, but we have achieved it as regards changes in the actual functions of the Library.) The hope is that this will lead to faster development of free libraries. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, while the latter only works together with the library. Note that it is possible for a library to be covered by the ordinary General Public License rather than by this special one. GNU LIBRARY GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Library General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also compile or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. c) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. d) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Library General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! lightdm-1.18.1/autogen.sh0000775000000000000000000000066612700600465012133 0ustar #!/bin/sh # Run this to generate all the initial makefiles, etc. libtoolize --force --copy intltoolize --force --copy gtkdocize --copy aclocal autoconf autoheader automake --add-missing --copy --foreign YELP=`which yelp-build` if test -z $YELP; then echo "*** The tools to build the documentation are not found," echo " please install the yelp-tools package ***" exit 1 fi if [ -z "$NOCONFIGURE" ]; then ./configure $@ fi lightdm-1.18.1/NEWS0000664000000000000000000013276512700600637010640 0ustar Overview of changes in lightdm 1.18.1 * Use /dev/tty0 instead of /dev/console for VT operations Overview of changes in lightdm 1.18.0 * Small documentation fixes Overview of changes in lightdm 1.17.6 * Don't write $DISPLAY into tty line in utmp/btmp. Overview of changes in lightdm 1.17.5 * Set XDG_RUNTIME_DIR for ConsoleKit sessions. This is a recent change in ConsoleKit2. Overview of changes in lightdm 1.17.4 * Add support for g_autoptr and liblightdm-gobject * Fix dm-tool add-local-seat not working because LightDM is trying to connect with TCP/IP Overview of changes in lightdm 1.17.3 * Don't enable the hardware cursor in Unity System Compositor anymore. Unity 8 now correctly provides its own cursor and other shells should too Overview of changes in lightdm 1.17.2 * Handle XDMCP Request packet with no addresses. * Don't start LightDM if the XDMCP server is configured with a key that doesn't exist. * Add IP addresses to XDMCP log messages. * Refactor XDMCP error handling. * Add more XDMCP tests. Overview of changes in lightdm 1.17.1 * Add a backup-logs option that can be used to disable existing logging files having a .old suffix added to them. * Add LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE, LC_MEASUREMENT and LC_IDENTIFICATION variables to the list of inherited locale variables. * Implement XDMCP ForwardQuery. * Fix small memory leak in XDMCP logging code. Overview of changes in lightdm 1.17.0 * Disable log backups - this interferes with logrotate. * Support using libaudit to generate audit events. * Handle trailing whitespace on boolean values in configuration. * Update example configuration to more correctly match allowed options. * Fix unnecessary X server from being launched when locking seats. * Check the version of the X server we are running so we correctly pass -listen tcp when required. * Allow reading /proc//net/dev from within a guest session. * Allow guest sessions to write in /{,var/}run/screen folder. * Update guest-session AppArmor profile to be suitable for openSUSE. * Fix apparmor profiles for running Chromium in guest sessions. * Fix configure failing without Vala installed. Overview of changes in lightdm 1.16.0 * Update default configuration better explaining the seat configuration name matching and dropping references to the obsolete [SeatDefaults] section Overview of changes in lightdm 1.15.3 * Drop Xorg option -sharevts. It's no longer required for non-seat0 X servers since xorg-server release 1.16. Overview of changes in lightdm 1.15.2 * Support Wayland sessions. * Implement autologin-session option. * Generate Vala bindings from GIR instead of manually writing them. This fixes some small bugs in both the Vala and GIR bindings. * Don't remove autotools generated files in distclean. Overview of changes in lightdm 1.15.1 * Fix default X server command set to XMir in 1.15.0. * Internally merge the [SeatDefaults] and [Seat:*] sections together. The previous method meant configuration snippets using a mix of old and new naming would not correctly override eachother. * Use IP address of XDMCP requests to contact X server if available. * Add an option for XDMCP and VNC servers to only listen on one address. * Fix configuration file warnings so they go to the log, not stderr. * Warn if deprecated options logind-load-seats or xdg-seat are in configuration. * Improve IP addresses in XDMCP log messages. * Fix typo in dm-tool man page. Overview of changes in lightdm 1.15.0 * Deprecate [SeatDefaults] in favour of [Seat:*] * Use new Xmir binary when running X under Unity System Compositor Overview of changes in lightdm 1.14.0 * Initialize file descriptor handles so we don't attempt to close stdin by accident. * Fix small errors detected by scan-build (clang). Overview of changes in lightdm 1.13.2 * Fix pipe file descriptor leak for each greeter session. * Support active session changing via logind. * Don't allow liblightdm-gobject to be disabled. It is required for liblightdm-qt and the tests so it's not worth supporting builds without it. * Add bash autocompletion support Overview of changes in lightdm 1.13.1 * Don't attempt generate D-Bus seat/session removal signals on shutdown. * Add missing method QLightDM::Greeter::cancelAutologin Overview of changes in lightdm 1.13.0 * Fix crash when having configuration keys defined in multiple places * Fix pipe file descriptor leak for each session login / authentication * Use correct syntax for DesktopNames key in session files * Match seat configuration with globbing * Allow user switching in multi-seat until bug stopping greeter showing on logout is fixed * Disable log message when AccountsService users change * Update AppArmor scripts, requires AppArmor 2.9 * Update tests to run better on servers Overview of changes in lightdm 1.12.0 * Fix assumption that the display server is X when running scripts. * Don't access .dmrc files until information from these files is required. Overview of changes in lightdm 1.11.9 * Don't check the logind CanGraphical seat property unless login-check-graphical option is set to true. There are too many cases of drivers that don't set the appropriate flags for this feature to work. * Make socket writing code used between greeter and daemon more robust to errors. * Fix small memory leaks. * Improve logging messages. * Test improvements. Overview of changes in lightdm 1.11.8 * Rework logind code that gets session ID. The previous method was racy and a change in lightdm 1.11.7 led to a lockup when this race occurred. * Handle CanGraphical property on logind seats Overview of changes in lightdm 1.11.7 * Use logind to provide the list of seats to use. Deprecate the old method of manually defining seats. * Add --show-config option that shows combined configuration. * Drop the surfaceflinger seat type. This was a temporary solution while Ubuntu Phone was migrating to Mir. Overview of changes in lightdm 1.11.6 * Add a seat option 'allow-user-switching' that can disable all user switching for that seat * Add a new session type 'mir-container' that allows the session to run inside a custom system compositor * Only seat0 takes VT from Plymouth * Removed unused GAsyncResultIface.is_tagged as this attribute was not available in earlier versions of Glib I/O. * Abort autogen if yelp-tools not installed * Return correct errors for D-Bus calls Overview of changes in lightdm 1.11.5 * Make PAM services configurable Overview of changes in lightdm 1.11.4 * Do timed autologin each time you are returned to the greeter * Fix tests failing with Qt 5.3 due to it checking getuid/geteuid which we are faking * dm-tool: Warn if trying to switch to user without username Overview of changes in lightdm 1.11.3 * Fix Mir sessions broken with unity-system-compositor 0.3. * Add back Vala bindings for LightDM.Greeter.connect_sync - just mark as deprecated. * Put unity-system-compositor's mir_socket under /run rather than /tmp. * Fix building with clang (3.5) and -Werror. * Correct section name in default users.conf file. Overview of changes in lightdm 1.11.2 * Add liblightdm method to get user UID * DBus-activate logind * Check for libgcrypt at configure time Overview of changes in lightdm 1.11.1 * Allow greeters to remain runing to reduce startup time when switching to a greeter * Add asynchronous methods to liblightdm Overview of changes in lightdm 1.11.0 * When switching to an existing session refresh PAM credentials and end session cleanly so no resources leak. * Support new standard DesktopNames field in session files * Set XDG_SESSION_TYPE and XDG_SESSION_DESKTOP as used by systemd * Emit DBus PropertiesChanged when Sessions/Seats properties change. Also add SessionAdded/SessionRemoved signals to Seat interface Overview of changes in lightdm 1.10.0 * Fix return value for Vala bindings to Greeter.start_session_sync * Fix logging when failing to find session Overview of changes in lightdm 1.9.15 * Update the lightdm AppArmor abstraction to allow the guest session to start when AppArmor is mediating signals and ptrace and fix a minor, but noisy, denial when applications attempt to read /proc//stat. Overview of changes in lightdm 1.9.14 * Pass --enable-hardware-greeter to unity-system-compositor for Mir sessions on xlocal seats Overview of changes in lightdm 1.9.13 * Handle not getting an X connection when attempting to get X layouts. * Read config data from both XDG_DATA_DIRS and XDG_CONFIG_DIRS. Overview of changes in lightdm 1.9.12 * Ensure X authority is written before X server is started * Activate after unlocking a logind session Overview of changes in lightdm 1.9.11 * Don't use g_hash_table_get_keys_as_array, it's a glib 2.40 feature Overview of changes in lightdm 1.9.10 * Honour session type requested by greeter for guest sessions * Log to wtmp and btmp. * Implement guest-session config option Overview of changes in lightdm 1.9.9 * Handle signals being received in child processes instead of treating them like they are received in the daemon. * Set utmp ut_line to the display name (i.e. :0) to match what other programs expect (e.g. 'w'). * Fix lightdm_greeter_ensure_shared_data_dir_sync returning the wrong value. * Fix shared data tests so you can run test suite without root again. * Be extra careful not to call any non thread safe function after a fork. * Fix some small memory leaks detected by valgrind. * Fix process shutdown code to stop generating confusing warnings * Fix more double removal of source IDs. * Test improvements. Overview of changes in lightdm 1.9.8 * Add support for shared user data directories between the greeter and user sessions. * Refactor LightDMUser and User classes to use the same code internally. Overview of changes in lightdm 1.9.7 * Correctly invoke PAM to change authentication token. * Make xdg-seat a core property of a seat and always pass it to X servers. * Qt bindings: properly hand over prompt and message type. * Add warning flags where they are missing and fix the resulting warnings. Overview of changes in lightdm 1.9.6 * Support Mir sessions in xlocal seats by starting a unity system compositor for each session. * Add --screen and --fullscreen options to "dm-tool add-nested-seat" * Don't try to compile liblightdm-qt if liblightdm-gobject will not be compiled. * Stop greeters warning if sessions directories not present or lightdm.conf doesn't exist - this is valid. * Fix log name for Mir display servers * Fix double removal of source IDs Overview of changes in lightdm 1.9.5 * In the unity seat, if we don't have proper VT support, fake VT 0 instead of a real VT number. This matches what logind expects. Overview of changes in lightdm 1.9.4 * Fix issue where VTs are double used when switching sessions. * Remove lightdm-set-defaults and gdmflexiserver. * Add new ability to specify a list of seat types to try, rather than just one. * Allow Mir sessions in the surfaceflinger seat. * Rename the guest session wrapper to have a simpler name. * Make sure sessions are associated with the display server before starting them. * Add a dm-tool man page. Overview of changes in lightdm 1.9.3 * Don't pass system user accounts from AccountsService to greeters. * Fix crash if switching to greeter and it isn't installed. Overview of changes in lightdm 1.9.2 * Implement missing guest-wrapper functionality and enable it for Ubuntu. * Update AppArmor scripts to work in Ubuntu 13.10. Overview of changes in lightdm 1.9.1 * Correctly set $XDG_SESSION_CLASS for greeters. This was regressed in 1.7.5 for ConsoleKit and was never passed to logind. logind/ConsoleKit treat greeter sessions without this set as user sessions. This causes greeters to show the lightdm user able to be logged in with. * Set $USER when running the session-setup-script. This is a regression from 1.7.5. * Fix notification of sessions being logged out. This is a regression from 1.7.5 and caused greeters to show sessions logged in after they had been logged out. * Refactor liblightdm user scanning to be simpler and more reliable. This fixes bugs where some properties wouldn't be updated when they changed in accounts service. * Add support for a "display-stopped-script" field in lightdm.conf. The "display-stopped-script" field allows us to run a script right after stopping the display server. * Allow dm-tool to run outside of a session if it doesn't need to be. * Set $MIR_SERVER_NAME to assign a name to launched sessions. Also use a "greeter-" prefix for greeter sessions for the benefit of unity-system-compositor. Overview of changes in lightdm 1.9.0 * Fix crash when starting with existing X servers. This was introduced in rev 1651 (lightdm 1.7.0). * Fix crash where Process objects are accessed after unref Overview of changes in lightdm 1.8.0 * Add regression test for corrupt X authority files. Overview of changes in lightdm 1.7.18 * Set session environment variables for guest sessions (1.7 regression). * Don't fail writing X authority if reading it had an error. * Update environment variables that we pass to Mir. Overview of changes in lightdm 1.7.17 * surfaceflinger: Set XDG_VTNR=0 if VTs are not available * Allow compiling of liblightdm-qt without liblightdm-gobject * Add missing documentation for xremote seat options. Overview of changes in lightdm 1.7.16 * Fix ConsoleKit support broken in 1.7.5 * Fix --test-mode * Add support for running Surfaceflinger sessions Overview of changes in lightdm 1.7.15 * Set XDG_VTNR=1 as a fallback if using SeatUnity without a functioning compositor or working VT switching, so that logind will recognize the VT as active. Overview of changes in lightdm 1.7.14 * Correctly set permissions on Xauthority file. Overview of changes in lightdm 1.7.13 * Correctly set $XDG_CURRENT_DESKTOP for non-autologin sessions * Fix overallocation of array for strings from greeter. * Fix truncation writing card32 in XDMCP server. Overview of changes in lightdm 1.7.12 * Add xdg-seat config setting * Notify Unity System Compositor of the session being authenticated Overview of changes in lightdm 1.7.11 * Fix crash when greeter quits due to read watch not being removed * Correctly setup Unity System Compositor environment * Improve log messages Overview of changes in lightdm 1.7.10 * Fix session locking broken in 1.7.5 * Load lightdm.conf after lightdm.conf.d/*.conf * Also support loading config from /usr/share * When switching sessions show a greeter if authentication required * Set $XDG_CURRENT_DESKTOP if specified in the xsession file * Change logging prefixes to make it easier to troubleshoot multiseat setups * Bring Ubuntu packaging in-tree Overview of changes in lightdm 1.7.9 * Correctly set XDG_VTNR for unity sessions that are not autologin. Overview of changes in lightdm 1.7.8 * Add support for Mir sessions and greeters. * Set XDG_VTNR for unity sessions. * Fix desktop-session-start upstart signal not being emitted since 1.7.5. * Fix greeter log broken in 1.7.5. Overview of changes in lightdm 1.7.7 * Fix uninitialized pointer introduced in 1.7.3 * Enable compile warnings and fix code generating warnings Overview of changes in lightdm 1.7.6 * Restore greeter hints that were regressed in 1.7.5. * Don't run greeters through session wrapper - regression in 1.7.5 Overview of changes in lightdm 1.7.5 * Quit Plymouth correctly when using the unity seat type * Release the VT when the system compositor fails to start * Load sessions and greeters from /usr/share/lightdm/sessions and /usr/share/lightdm/greeters. The existing directories are checked if the sessions are not in these directories. * Refactor the Display class so that it merges with the Seat class * Support running the greeter and session in different display servers instead of re-using the same one during a login. * Add more regression tests * Documentation fixes Overview of changes in lightdm 1.7.4 * Set XDG_SEAT and XDG_VTNR environment variables. * Add initial support for Unity (i.e. Mir based) seats. * Add a greeter wrapper option. Overview of changes in lightdm 1.7.3 * Load configuration from /etc/lightdm/lightdm.conf.d. * Fix compile warnings * Fix tests not running from install directory inside checkout. Overview of changes in lightdm 1.7.2 * Fix incorrectly distributed guest-session apparmor data Overview of changes in lightdm 1.7.1 * Fix .pc file for liblightdm-qt5-3 * Add a new option "autologin-in-background" which lets an autologin happen in a second display while still showing the greeter. * Stop if fail to create default seat * Add option to set seat type in lightdm-set-defaults * Stop using g_file_set_contents - it can leave intermediate files around * Make tests work without installing them * Fix distcheck Overview of changes in lightdm 1.7.0 * Use logind instead of ConsoleKit if it is available * Use Q_SLOTS and Q_SIGNALS instead of slots and signals. * Ignore stale X server locks * Pass through system locale or set locale from AccountsService/.dmrc * Fix bug where seat failure before D-Bus acquired would not stop daemon Overview of changes in lightdm 1.6.0 * Allow VNC command to be specified in lightdm.conf * Register enums with QObject meta type system. Overview of changes in lightdm 1.5.3 * Fix build with gobject-introspection 1.35.9 * Fix authentication cancel regression caused in 1.5.2 Overview of changes in lightdm 1.5.2 * Fix stale X server being left behind when using LockSession D-Bus API * Adjust AppArmor profile to also work with logind * Don't use GIO to access X authority files - it uses GVFS which is unnecessary overhead/complexity * Handle over/underflows when reading from greeter * Improve warning message when XDMCP packet has length mismatch * Only report test command line if it fails * Add more regression tests Overview of changes in lightdm 1.5.1 * QLightDM: Add Qt5 version of the library: liblightdm-qt5-2 * QLightDM: Add some missing role names in UsersModel * QLightDM: Add a backgroundPath role to UsersModel * QLightDM: Fix potential crash in QLightDM::UsersModel closedown. * Improve guest session apparmor * Run each test in its own /tmp dir so they can't interfere with eachother * Fix script hooks no longer working with latest glib * Fix display clean up code Overview of changes in lightdm 1.5.0 * Add man page for lightdm-set-defaults * Use xzip for distribution, don't distribute old metadata * Correctly check if display is active when session quits * Relicense liblightdm to LGPL-2/LGPL-3 so GPL-2 code can link against it * Selectively lock memory rather than calling mlockall for main daemon Overview of changes in lightdm 1.4.1 * Fix autologin PAM configuration Overview of changes in lightdm 1.4.0 * Correctly implement and test autologin timeouts * Add greeter-show-remote-login hint * Correctly annotate enums in vapi file * QLightDM: Add default constructor to Qt power interface * QLightDM: Expose image path in UserModel * QLightDM: Add parameter to session model to show either local or remote sessions * Fix race conditions in tests Overview of changes in lightdm 1.3.3 * Add a new remote session type. These sessions create a temporary local account and authenticate against a remote server. The session is an application that accesses that remote session (e.g. VNC, RDP etc) * Support multiple simultaneous PAM prompts * Set utmp ut_host field to the X display address * Correctly reap unused authentication sessions Overview of changes in lightdm 1.3.2 * Handle clearenv() not being defined * Fix compilation with GCC 4.7 * Expose remaining properties in QLightDM::Greeter * Fix utmp records being written before child process created Overview of changes in lightdm 1.3.1 * Fix wrapper path in AppArmor profile (broken since 1.1.1) * Add show-manual-login and allow-guest options to lightdm-set-defaults * Don't set PAM_XDISPLAY or PAM_XAUTHDATA if not supported * Add lock-memory option, enabled by default, to prevent paging memory to disk. * Write utmp records for sessions * Install PAM configuration * Run greeters inside the "lightdm-greeter" PAM service * Handle setresgid and setresuid not being available * Use xsession directory from lightdm.conf in liblightdm Overview of changes in lightdm 1.2.0 * Backup .xsession-errors on login * Handle failures in pam_setcred * Open log files in append mode * Add extra checks in liblightdm so that it doesn't send invalid messages to the daemon * Fix gdmflexiserver not being added to the path (broken since 1.1.4) * Fix PAM conversations after authentication from locking up sessions * Fix PAM informational messages locking up autologin * Change XDMCP manage timeout from 10ms to 126s (maximum specified in the XDMCP specification) Overview of changes in lightdm 1.1.9 * Add --show-users/--hide-users to lightdm-set-defaults * Call initgroups before pam_setcred - this allows pam_setcred to change group membership correctly Overview of changes in lightdm 1.1.8 * Handle PAM interactions that have more than one message in one callback Overview of changes in lightdm 1.1.7 * Add a seat option greeter-allow-guest which controls if the greeter should provide an option to access the guest account. * Add a seat option greeter-show-manual-login which hints to a greeter if it should show a manual username entry if a user list is already present. Overview of changes in lightdm 1.1.6 * Fix session wrapper working the same as it did in 1.1.3 Overview of changes in lightdm 1.1.5 * Stop file descriptors leaking into the session processes Overview of changes in lightdm 1.1.4 * Change session directory once user permissions are set so it works on NFS filesystems that don't allow root to access files. * Restructure session code so the PAM authentication is run in its own process. * Set PAM_XDISPLAY and PAM_XAUTHDATA pam items * Don't send session stdout to .xsession-errors * Fix Qt bindings crash when removing a user Overview of changes in lightdm 1.1.3 * Actually return the system default keyboard layout, not just 'us' * Add keyboard layout variants to list of keyboard layouts * Check accountsservice as well as .dmrc for users' layouts * Add lightdm_user_get_layouts() to query the configured list of layouts on a per-user basis * Add Lock D-Bus method that locks the seat and provides a hint to the greeter to be in lock mode. * Automatically lock sessions when switching away from them * Add a has-messages property to liblightdm * Add regression tests for PAM modules changing usernames * Don't use g_key_file_unref, it requires glib 2.32 Overview of changes in lightdm 1.1.2 * Add regression tests for getting the user language and layout * Stop accidentally distributing libsystem * Fix introspection bindings not containing any methods * lightdm-set-defaults can now set the autologin user * Add Python greeter regression tests (representative of all introspection based greeters) * Wait for the VT to become active when switching to avoid a suspected race condition somewhere between LightDM, X, ConsoleKit and the kernel. * Stop lightdm_greeter_start_session_sync() blocking on success. Overview of changes in lightdm 1.1.1 * Add a --disable-tests option * Add note to AUTHORS file where to find author list * Update build system to find moc/uic * Fix non-distributed tests/src/lightdm-session * Fix X sessions with arguments in Exec not working * Use previous session for automatic login or if greeter does not request one. * Set default resolution of VNC to 1024x768, add settings for width, height, depth into lightdm.conf. * AppArmor profile: Fix broken gnome-keyring and dbus/gwibber, and quiesce annoying kernel audit messages for privileges that we definitively do not want to grant. * Set LOGNAME environment variable * Don't set USERNAME environment variable - this is not specified in POSIX, please report if this causes any major problems. * Drop privileges when reading ~/.dmrc * Move the GTK+ and Qt greeters into their own projects * Fix crash when quitting with newer GLib * Fix crash calling lightdm_get_layout * Support for reading users' backgrounds from Accounts Service * Fix --debug working with new glib * Support PAM requesting a change of password * Update build system to work with automake 1.11.2 * Run tests inside their own system D-Bus, simulating ConsoleKit and AccountsService * Add regression test for users that have their home directory created after authentication. * Move lightdm-guest-session from libexec to pkglibexec directory Overview of changes in lightdm 1.1.0 * Remove GetSeatForCookie and GetSessionForCookie D-Bus methods * Switching to a user without a password bypasses the greeter * Use LD_PRELOAD to intercept system calls for testing * Removed the --passwd-file option as not required for testing anymore * Rename test-xserver to X and remove --xserver-command option * Make a test session wrapper and remove --session-wrapper option * Remove unused --user-session, --greeter-session, --minimum-vt, --minimum-display-number options * Use 'default' as the default greeter (make a symlink) * GTK greeter now initializes i18n * GTK greeter now remembers last user * Start authentication for automtically selected user in GTK greeter * Don't resize GTK greeter on each click * Start authentication when scrolling through GTK greeter entries * Link liblightdm-qt against QtGui * Fix liblightdm-qt crashing when face images are installed * Set correct permissions on session log files * Introduce a lightdm-guest-session-wrapper session command which MAC systems like AppArmor and SELinux can use for attaching a restrictive policy to guest sessions. * Provide an AppArmor profile for guest session lockdown. * Fix daemon from blocking if Accounts Service does not exist * Fix greeter log file not being written * Don't set LANG environment variable if using Accounts Service. * Fix gdmflexiserver not working due to it not being in PATH * Don't authenticate the greeter user * Allow greeters to be disabled in configure flags * Fix over allocation of read buffer in greeter protocol * Make sure objects are cleaned up on exit * Fix minor memory leaks * Fix reference counting issue in ConsoleKit code * Fix --enable-gtk-greeter=yes not working Overview of changes in lightdm 1.0.0 * Explicitly grab keyboard focus in GTK greeter * Fix removed power and a11y menu items in GTK greeter * Put system binary directory into path when running in test mode * Call pam_getenvlist after pam_setcred Overview of changes in lightdm 0.9.8 * GetSeatForCookie and GetSessionForCookie are now deprecated. They remain for now but use the XDG_SEAT_PATH and XDG_SESSION_PATH environment variables instead. * Change log filenames to be unique across different display types. * Fix up script hooks, add regression tests for them * Complete removal of X code from the core of LightDM, so it can better support various display types * Add ability to set the language of a user from the greeter * Set LANG variable based on the user language * Add language selector into GTK greeter (disabled by default) * Allow TCP/IP connections if xserver-allow-tcp is true * Allow lightdm --version to be run as non-root * Automatically respond to PAM messages without prompts * Create 'AddLocalXSeat' D-Bus method, and require root to use 'AddSeat' * Fix multi-seat configuration picking the same display number * Use correct D-Bus and power interface in liblightdm-qt * Run pam_setcred inside the session process so pam_group works * Make sure one session is always selected in the GTK greeter Overview of changes in lightdm 0.9.7 * Set PAM_TTY to the display name, not the tty device Overview of changes in lightdm 0.9.6 * Only unlock displays if switched to from greeter * Make log file not system readable * Write ~/.Xauthority inside the session process so it cannot be hijacked * Set PAM_TTY and PAM_XDISPLAY when opening PAM session * Add VNC server support * Do not write ~/.dmrc and ~/.Xauthority as root. [CVE-2011-3349] Overview of changes in lightdm 0.9.5 * Use accounts service in the daemon if it is available * Correctly load seat type in multi seat configuration * Add display-setup, session-setup and session-cleanup scripting hooks * Fix cancel button in GTK greeter * Fix line through GTK greeter menu items * Exit daemon if a seat fails which has exit-on-failure set to true * Add HasGuestAccount property to seat D-Bus interface * Fix XDMCP authorization * Update man file Overview of changes in lightdm 0.9.4 * lightdm-set-defaults enables tweaking the default session and chosen greeter for lightdm. This is useful for derivatives waiting to not ship the whole configuration file of lightdm * Fix crash in GTK+ greeter when a user is added * Move xsessions-directory and xgreeters-directory from [SeatDefaults] to [LightDM]. This is a configuration break, but making it on the assumption that these settings are not likely to have been overridden. * Fix fallback from org.freedesktop.Accounts to passwd format * Fix duplicate user entries being shown when using passwd file * Add AddSeat D-Bus method for adding dynamic seats * Added a dm-tool program that allows user switching and adding seats * Allow remote X servers, e.g. launched using dm-tool add-nested-seat * Fix bug where sessions were started when the greeter quit and the user hadn't been authorized. * Fix bug where sessions used the seat bus name * Don't allow autologin-username to be set to empty * Fix bug where PAM session was not opened before writing to home directory * Fix crash when failing to write X authority Overview of changes in lightdm 0.9.3 * Unlock ConsoleKit sessions when switching to them * Add a gdmflexiserver binary that provides backwards compatibility with existing sessions * Set XDG_SEAT_PATH and XDG_SESSION_PATH environment variables for sessions. * Always set XAUTHORITY environment variable so sudo keeps accessing the correct X authority. * Connect up lightdm_user_get_logged_in in liblightdm-gobject * Ignore sessions that fail TryExec or are hidden * Add missing home_directory User property missing in Vala bindings Overview of changes in lightdm 0.9.2 * Fix annotation and Vala bindings for getting the UserList singleton * Fix GTK+ greeter error label not being shown * Don't set SIGQUIT to ignore in child processes * Reworked the PAM code as ecryptfs users weren't able to log in. They can now but not sure what changed to fix that!? Overview of changes in lightdm 0.9.1 * Fix up translation build system * Add a --with-greeter-user configure option * Fix greeter-user configuration not being used * Abort greeter if attempted to be run as root and greeter-user set * Fix setting session in GTK+ greeter Overview of changes in lightdm 0.9.0 * Fix invalid XAUTHORITY variable being set for second X server. * Fix bug where switching users created X servers without VTs * Release a VT when the X server on it stops * Greeters are now just standard X sessions that are stored in /usr/share/xgreeters. * Binaries now installed in /usr/sbin * Drop most of the configure options, they aren't necessary * Config changes: - Major reorginisation of configuration to make it easier to configure and understand. Users should set [SeatDefaults] section with settings for all seats, and can override each setting in a per seat configuration. - Default seats are now specified using a [Seat:] section. If no seats are specified then one is started. This can be overridden by setting start-default-seat=false in [LightDM]. - Support setting autologin user to guest account - Split the user accounts configuration into /etc/lightdm/users.conf so the main config can be private. - The default user session is now "default". Distributions should put a symlink to their chosen default or set one in lightdm.conf. - XDMCP keys now stored in keys.conf * liblightdm API changes: - Both libraries are now version 1 and have API and ABI guarantees. - Face images are now local paths not URIs - liblightdm-gobject now uses lightdm_ prefix instead of ldm_ - Non-greeter functions are now moved out of the Greeter class - connect_to_server() is now called connect_sync and blocks until completion. - start_session() is now called start_session_sync and blocks until completion. The quit signal is removed, and the greeter should quit if this method returns TRUE. - login() is now called authenticate() - Greeters now have hints instead of configuration (greeters should load their own configuration from /etc/lightdm if they need it). - liblightdm-gobject uses AccountsService if it is available - Added regression tests for liblightdm-qt * D-Bus API changes: - Expose Seats and Sessions on org.freedesktop.DisplayManager - Add a CanSwitch property - Rename ShowGreeter() to SwitchToGreeter() * Greeter changes: - Drop "example" from the name of the GTK+ and Qt greeters and make them official default greeters. - Use GTK3 for GTK+ greeter. - Removed the Vala and Python GTK+ greeters, they weren't being well maintained. Overview of changes in lightdm 0.4.4 * Fix failure to accept XDMCP connections due to invalid assert. * Allow minimum-display-number to be set in lightdm.conf and on the command line. * Session X authority now written to ~/.Xauthority by default. It can be configured to run from the system location by setting user-authority-in-system-dir=true in lightdm.conf. * When using system authority the authority can be updated by the user. * Written X authority files now checks hostname and display number. * Enironment is no longer passed through to X servers and sessions, this is no longer required now PAM works correctly. * liblightdm API changes: - Drop ldm_greeter_get_is_first() - it was added for testing and doesn't work well. * Fix more errors where authentication messages from previous sessions could be confused with new sessions. * Added XDMCP regression tests. Overview of changes in lightdm 0.4.3 * Don't replace Plymouth if it isn't running on a valid VT * Allow a null username to log in with - the system will prompt for a username. * liblightdm API changes: - Rename ldm_greeter_provide_secret to ldm_greeter_respond - responses may not be secrets. - show-prompt signal now has a PromptType field - show-message signal now has a MessageType field and takes over behaviour of show-error signal * Fix error where an authentication failure from a previous session could be interpreted as a failure in the current session. * Simplify Vala bindings and add missing methods Overview of changes in lightdm 0.4.2 * Fix errors communicating with PAM * Fix interaction with Plytmouth. * Removes the vt option in lightdm.conf, this is no longer required and the active is used for the first display if Plymouth is detected. A new option minimum-vt is added to select the first VT to be used for other displays. * On login switch to an existing session if already logged in with that username. * Correctly connect up D-Bus interface for user switching Overview of changes in lightdm 0.4.1 * Fix linking issue with -z,defs * Added guest account support * Restart X server if it crashes during a session * Don't set language environment variables, use the daemon values (system default) and leave it to ~/.profile for users to set these * Change greeter library API, starting a session no longer has a language option * Fix greeter crash when user accounts change Overview of changes in lightdm 0.4.0 * Fix crash when child processes quit * Fix crash when catching signals * Fix crash when session quits after X server * Add internal checking for NULL object access * Correctly handle signals from external programs (Thanks to Jason Conti) * liblightdm API changes: - ldm_greeter_start_authentication becomes ldm_greeter_login - The existing ldm_greeter_login is now ldm_greeter_start_session and the username parameter is not required. - Drop ldm_greeter_get_default_layout (X controls the layout) * Configuration changes: - Use /etc/lightdm/lightdm.conf instead of /etc/lightdm.conf - The "displays" item is now called "seats". LightDM will fallback to "displays" if "seats" is not defined, but this is deprecated and will be removed by version 1.0. - Make X server configuration a separate section and now has new options * Automatic login users now use PAM session lightdm-autologin * Use org.freedesktop.DisplayManager instead of org.lightdm.LightDisplayManager for D-Bus name * Add regression tests * Allow many more options to be set from the command line Overview of changes in lightdm 0.3.7 * Fix autologin broken in 0.3.3 Overview of changes in lightdm 0.3.6 * Disable Plymouth when starting * Allow display vt setting to be set to "active" to start on active VT * Fix login in Qt example greeter * Fix typo for High Contrast menu item (GTK example greeter) Overview of changes in lightdm 0.3.5 * Set working directory when logging in * Massive improvements to Qt greeter * Fix XDMCP authentication/authorization errors * Have the daemon open a connection to a local X server * Tidy up some debugging messages Overview of changes in lightdm 0.3.4 * Updates to liblightdm-qt * Fix --with-cache-dir not working * Set greeterdir in .pc files to point to where greeter engines should be installed Overview of changes in lightdm 0.3.3 * Don't run in test-mode if Xephyr cannot be found * Fix daemon using 100% CPU after greeter quits * Fix crash when users don't have GECOS data * Greeters can now detect user add/remove events * Fix ConsoleKit support broken with switch to GDBus * Correctly clean up X processes on exit * Wait for greeter to quit before running user session (fixes problem with Compiz) Overview of changes in lightdm 0.3.2 * Distribute GTK greeter .ui file Overview of changes in lightdm 0.3.1 * Add greeter login_with_defaults method * Add example to the name of all the greeters * Set the configuration for the default display to use VT 7 * Fix the vt setting for displays, it was incorrectly named tty * Fix crash when load-users is false in UserManager * Fix up name of .vapi file so it can be used directly from valac * Tidy up Qt library and greeter * Move menubar in greeters to top of screen * Fix console kit get_can_*() methods * Use GtkBuilder for example GTK greeter Overview of changes in lightdm 0.3.0 * Correctly pass environment variables through to the session * Allow starting virtual terminal to be configured * Replace D-Bus greeter communication with a private pipe * Use GDBus instead of dbus-glib * Use the engine process name instead of a hardcoded value in theme files * Rename ldm_greeter_connect to ldm_greeter_connect_to_server so it doesn't clash with GObject method name * Rename ldm-gtk-greeter to lightdm-gtk-greeter * Rename gnome theme to example-gtk-gnome * Add more annotations to liblightdm-gobject * Add an example PyGObject, Vala and QT greeter * Generate metadata for QT libraries * Move Webkit greeter into separate module Overview of changes in lightdm 0.2.3 * Set correct linking library names in pkg-config files * Handle session executables that take arguments Overview of changes in lightdm 0.2.2 * Make default themedir work when --prefix is not passed to configure * Look for face images in ~/.face and ~/.face.icon * Put .vapi file in unversioned vala directory * Fix compiling without QT * Choose the VT to open the display on * Set correct group memberships for sessions (Yves-Alexis Perez) * Set permissions on xauthority file so it can only be read by the owning user (Yves-Alexis Perez) * Set correct permissions on ~/.dmrc (Yves-Alexis Perez) * Add --enable-liblightdm-gobject, --enable-liblightdm-qt configure option * Set environment variables from PAM (Yves-Alexis Perez) Overview of changes in lightdm 0.2.1 * Use "lightdm" as default PAM service and make it configurable * Rename libldmgreeter to libldmgreeter-gobject * Add libldmgreeter-qt (David Edmundson) * Fix gobject-introspection build * Renamed libldmgreeter to liblightdm * Install a .vapi file Overview of changes in lightdm 0.2.0 * Make default user configuration per-display * Only automatically login the first time * Fix WebKit theme loading and automatic login * Do cross fade for sessions that support it (set X-LightDM-Supports-Transitions=true in their xsession file) * Load user settings from ~/.dmrc * Add configuration for default language/layout * Change language/layout/session when user selected in GTK+ greeter * Set default keyboard layout on first login * Don't run all sessions throught /etc/X11/XSession - make the session wrapper optional and configurable. * Make pkgconfig file require libxklavier * Only compile greeters if have dependencies * Include ck-connector code to reduce library dependencies * Add introspection.m4 to the source tree * Support using no greeter user in lightdm.conf * Flush writes to main log file * Allow non-privilidged user to write greeter log file in /var * Fix bugs stopping running greeter as priviledged user (i.e. root) * Don't default to running greeters with the GDM user - it may not exist! Overview of changes in lightdm 0.1.2 * Write PID file * Make user switcher API work * Add a AddDisplay D-Bus method to start new displays * Feed signals to GLib main loop via a pipe * Add an upstart script * Make theme files more similar to existing themes * Change dbus namespace from org.freedesktop.LightDisplayManager to org.lightdm.LightDisplayManager * Write debug log to /var/log/lightdm/lightdm.log instead of stdout. Use --debug for the previous behaviour * Add exec_prefix into libldmgreeter.pc * Change versioned include and pkgconfig files from 1 to 0 * Add themedir variable into pkgconfig file * Connect language list in GTK greeter to login language Overview of changes in lightdm 0.1.1 * Change licence of libldmgreeter from GPL to LGPL * Write X server and session output to log files * Set PATH, DESKTOP_SESSION, GDMSESSION and USERNAME environment variables * Run sessions through Xsession * Close all X servers on exit * Send SIGHUP to X server when returning to greeter (makes all clients quit) * Change authorization after a session ends so previous session does not get access * Make shutdown buttons work in GTK+ greeter * Make user manager configurable * Make GTK+ greeter show username entry if no user list * Hide C and POSIX languages in greeter * Load language and layout from .dmrc file Overview of changes in lightdm 0.1.0 * Make --test-mode which runs as the current user * Support displays acting as XDMCP terminals * Support MIT-MAGIC-COOKIE-1 and XDM-AUTHORIZATION-1 authorization * Support XDMCP over IPv6 Overview of changes in lightdm 0.0.4 * Support XDMCP logins * Support multi-head * Clean up resources on exit * Create gettext instance in WebKit greeter Overview of changes in lightdm 0.0.3 * Wait for signal from X server before starting session * Add language API * Add keyboard layout API * Add gettext support to the WebKit greeter Overview of changes in lightdm 0.0.2 * Fix installation of D-Bus service file * Allow DISPLAY env variable to be passed to X server so can run Xephyr * Handle no automatic login in webkit theme Overview of changes in lightdm 0.0.1 * Initial release lightdm-1.18.1/configure.ac0000664000000000000000000001617112700600540012410 0ustar dnl Process this file with autoconf to produce a configure script. AC_INIT(lightdm, 1.18.1) AC_CONFIG_MACRO_DIR(m4) AC_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign]) AM_SILENT_RULES(yes) LT_INIT AM_PROG_CC_C_O AC_PROG_CXX AC_PROG_LIBTOOL AM_MAINTAINER_MODE dnl Enable compile warnings (only supporting GCC) if test "x$GCC" == xyes; then WARN_CFLAGS="-Wall \ -Wstrict-prototypes \ -Wnested-externs \ -Werror=missing-prototypes \ -Werror=implicit-function-declaration \ -Werror=pointer-arith \ -Werror=init-self \ -Werror=format-security \ -Werror=format=2 \ -Werror=missing-include-dirs" WARN_CXXFLAGS="-Wall" fi AC_SUBST(WARN_CFLAGS) AC_SUBST(WARN_CXXFLAGS) GOBJECT_INTROSPECTION_CHECK(0.9.5) VAPIGEN_CHECK([0.16]) dnl ########################################################################### dnl Dependencies dnl ########################################################################### AC_CHECK_HEADERS(security/pam_appl.h, [], AC_MSG_ERROR(PAM not found)) AC_CHECK_HEADERS(gcrypt.h, [], AC_MSG_ERROR(libgcrypt not found)) AC_CHECK_FUNCS(setresgid setresuid clearenv) PKG_CHECK_MODULES(LIGHTDM, [ glib-2.0 >= 2.30 gio-2.0 >= 2.26 gio-unix-2.0 xdmcp xcb ]) PKG_CHECK_MODULES(GLIB, [ glib-2.0 ]) PKG_CHECK_MODULES(GIO, [ gio-2.0 ]) PKG_CHECK_MODULES(GIO_UNIX, [ gio-unix-2.0 ]) PKG_CHECK_MODULES(GOBJECT, [ gobject-2.0 ]) PKG_CHECK_MODULES(XCB, [ xcb ]) PKG_CHECK_MODULES(LIBLIGHTDM_GOBJECT, [ glib-2.0 gio-2.0 >= 2.26 gio-unix-2.0 gobject-2.0 libxklavier x11 ]) AC_ARG_ENABLE(liblightdm-qt, AS_HELP_STRING([--enable-liblightdm-qt],[Enable LightDM client Qt4 libraries [[default=auto]]]), [enable_liblightdm_qt4=$enableval], [enable_liblightdm_qt4="auto"]) compile_liblightdm_qt4=no if test x"$enable_liblightdm_qt4" != "xno" ; then PKG_CHECK_MODULES(LIBLIGHTDM_QT4, [ QtCore QtDBus QtGui ], [compile_liblightdm_qt4=yes AC_CHECK_TOOLS(MOC4, [moc-qt4 moc]) if test x"$(readlink $(which $MOC4))" = xqtchooser; then MOC4="$MOC4 --qt=qt4" fi ], [if test "x$enable_liblightdm_qt4" != xauto; then AC_MSG_FAILURE( [--enable-liblightdm-qt was given, but test for Qt4 failed]) fi ]) fi AM_CONDITIONAL(COMPILE_LIBLIGHTDM_QT4, test x"$compile_liblightdm_qt4" != "xno") AC_ARG_ENABLE(liblightdm-qt5, AS_HELP_STRING([--enable-liblightdm-qt5],[Enable LightDM client Qt5 libraries [[default=auto]]]), [enable_liblightdm_qt5=$enableval], [enable_liblightdm_qt5="auto"]) compile_liblightdm_qt5=no if test x"$enable_liblightdm_qt5" != "xno"; then PKG_CHECK_MODULES(LIBLIGHTDM_QT5, [ Qt5Core Qt5DBus Qt5Gui ], [compile_liblightdm_qt5=yes AC_CHECK_TOOLS(MOC5, [moc]) if test x"$(readlink $(which $MOC5))" = xqtchooser; then MOC5="$MOC5 --qt=qt5" fi ], [if test "x$enable_liblightdm_qt5" != xauto; then AC_MSG_FAILURE( [--enable-liblightdm-qt5 was given, but test for Qt5 failed]) fi ]) fi AM_CONDITIONAL(COMPILE_LIBLIGHTDM_QT5, test x"$compile_liblightdm_qt5" != "xno") AC_ARG_ENABLE([libaudit], AS_HELP_STRING([--enable-libaudit], [Enable libaudit logging of login and logout events [[default=auto]]]), [enable_libaudit=$enableval], [enable_libaudit=auto]) use_libaudit=no if test x"$enable_libaudit" != "xno"; then AC_CHECK_LIB([audit], [audit_log_user_message], [use_libaudit=yes AC_DEFINE(HAVE_LIBAUDIT, 1, [libaudit support]) LIGHTDM_LIBS="${LIGHTDM_LIBS} -laudit" ], [if test "x$enable_libaudit" != xauto; then AC_MSG_FAILURE( [--enable-libaudit was given, but test for libaudit failed]) fi ]) fi AC_MSG_CHECKING(whether to build tests) AC_ARG_ENABLE(tests, AS_HELP_STRING([--disable-tests], [Disable tests building]), [], [enable_tests="yes"]) AM_CONDITIONAL(COMPILE_TESTS, test x"$enable_tests" != "xno") dnl ########################################################################### dnl Configurable values dnl ########################################################################### USER_SESSION=default AC_ARG_WITH(user-session, AS_HELP_STRING(--with-user-session=, Session to use for user accounts), if test x$withval != x; then USER_SESSION="$withval" fi ) AC_SUBST(USER_SESSION) AC_DEFINE_UNQUOTED(USER_SESSION, "$USER_SESSION", User session) GREETER_SESSION=default AC_ARG_WITH(greeter-session, AS_HELP_STRING(--with-greeter-session=, Greeter session), if test x$withval != x; then GREETER_SESSION="$withval" fi ) AC_SUBST(GREETER_SESSION) AC_DEFINE_UNQUOTED(GREETER_SESSION, "$GREETER_SESSION", Greeter session) GREETER_USER=lightdm AC_ARG_WITH(greeter-user, AS_HELP_STRING(--with-greeter-user=, User to run greeter as), if test x$withval != x; then GREETER_USER="$withval" fi ) AC_SUBST(GREETER_USER) AC_DEFINE_UNQUOTED(GREETER_USER, "$GREETER_USER", User to run greeter as) dnl ########################################################################### dnl Documentation dnl ########################################################################### GTK_DOC_CHECK YELP_HELP_INIT dnl ########################################################################### dnl Internationalization dnl ########################################################################### IT_PROG_INTLTOOL(0.35.0) AC_SUBST(GETTEXT_PACKAGE, lightdm) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", Gettext package) dnl ########################################################################### dnl Files to generate dnl ########################################################################### AC_CONFIG_FILES([ Makefile common/Makefile data/Makefile doc/Makefile help/Makefile liblightdm-gobject/liblightdm-gobject-1.pc liblightdm-gobject/Makefile liblightdm-qt/Makefile liblightdm-qt/liblightdm-qt-3.pc liblightdm-qt/liblightdm-qt5-3.pc po/Makefile.in src/Makefile tests/Makefile tests/src/Makefile ]) AC_OUTPUT dnl ########################################################################### dnl Summary dnl ########################################################################### echo " Light Display Manager $VERSION =========================== prefix: $prefix Greeter session: $GREETER_SESSION Greeter user: $GREETER_USER User session: $USER_SESSION GObject introspection: $found_introspection Vala bindings: $enable_vala liblightdm-qt: $compile_liblightdm_qt4 liblightdm-qt5: $compile_liblightdm_qt5 libaudit support: $use_libaudit Enable tests: $enable_tests " lightdm-1.18.1/common/0000775000000000000000000000000012700603563011414 5ustar lightdm-1.18.1/common/Makefile.am0000664000000000000000000000057612700600465013456 0ustar # -*- Mode: Automake; indent-tabs-mode: t; tab-width: 4 -*- noinst_LTLIBRARIES = libcommon.la libcommon_la_SOURCES = \ configuration.c \ configuration.h \ dmrc.c \ dmrc.h \ privileges.c \ privileges.h \ user-list.c \ user-list.h libcommon_la_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ -DCONFIG_DIR=\"$(sysconfdir)/lightdm\" libcommon_la_LIBADD = \ $(GLIB_LDFLAGS) lightdm-1.18.1/common/configuration.c0000664000000000000000000002515112700600465014431 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include "configuration.h" struct ConfigurationPrivate { gchar *dir; GKeyFile *key_file; GList *sources; GHashTable *key_sources; }; G_DEFINE_TYPE (Configuration, config, G_TYPE_OBJECT); static Configuration *configuration_instance = NULL; Configuration * config_get_instance (void) { if (!configuration_instance) configuration_instance = g_object_new (CONFIGURATION_TYPE, NULL); return configuration_instance; } gboolean config_load_from_file (Configuration *config, const gchar *path, GList **messages, GError **error) { GKeyFile *key_file; gchar *source_path, **groups; int i; key_file = g_key_file_new (); if (!g_key_file_load_from_file (key_file, path, G_KEY_FILE_NONE, error)) { g_key_file_free (key_file); return FALSE; } source_path = g_strdup (path); config->priv->sources = g_list_append (config->priv->sources, source_path); groups = g_key_file_get_groups (key_file, NULL); for (i = 0; groups[i]; i++) { gchar **keys, *group; int j; /* Move keys from deprecated [SeatDefaults] into [Seat:*] */ group = groups[i]; if (strcmp (group, "SeatDefaults") == 0) { if (messages) *messages = g_list_append (*messages, g_strdup (" [SeatDefaults] is now called [Seat:*], please update this configuration")); group = "Seat:*"; } keys = g_key_file_get_keys (key_file, groups[i], NULL, error); if (!keys) break; for (j = 0; keys[j]; j++) { gchar *value, *k; if (messages && g_str_has_prefix (group, "Seat:") && strcmp (keys[j], "xdg-seat") == 0) *messages = g_list_append (*messages, g_strdup_printf (" [%s] contains deprecated option xdg-seat, this can be safely removed", group)); if (messages && strcmp (group, "LightDM") == 0 && strcmp (keys[j], "logind-load-seats") == 0) *messages = g_list_append (*messages, g_strdup (" [LightDM] contains deprecated option logind-load-seats, this can be safely removed")); value = g_key_file_get_value (key_file, groups[i], keys[j], NULL); g_key_file_set_value (config->priv->key_file, group, keys[j], value); g_free (value); k = g_strdup_printf ("%s]%s", group, keys[j]); g_hash_table_insert (config->priv->key_sources, k, source_path); } g_strfreev (keys); } g_strfreev (groups); g_key_file_free (key_file); return TRUE; } static gchar * path_make_absolute (gchar *path) { gchar *cwd, *abs_path; if (!path) return NULL; if (g_path_is_absolute (path)) return path; cwd = g_get_current_dir (); abs_path = g_build_filename (cwd, path, NULL); g_free (path); return abs_path; } static int compare_strings (gconstpointer a, gconstpointer b) { return strcmp (a, b); } static void load_config_directory (const gchar *path, GList **messages) { GDir *dir; GList *files = NULL, *link; GError *error = NULL; /* Find configuration files */ dir = g_dir_open (path, 0, &error); if (error && !g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT)) g_printerr ("Failed to open configuration directory %s: %s\n", path, error->message); g_clear_error (&error); if (dir) { const gchar *name; while ((name = g_dir_read_name (dir))) files = g_list_append (files, g_strdup (name)); g_dir_close (dir); } /* Sort alphabetically and load onto existing configuration */ files = g_list_sort (files, compare_strings); for (link = files; link; link = link->next) { gchar *filename = link->data; gchar *conf_path; conf_path = g_build_filename (path, filename, NULL); if (g_str_has_suffix (filename, ".conf")) { if (messages) *messages = g_list_append (*messages, g_strdup_printf ("Loading configuration from %s", conf_path)); config_load_from_file (config_get_instance (), conf_path, messages, &error); if (error && !g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT)) g_printerr ("Failed to load configuration from %s: %s\n", filename, error->message); g_clear_error (&error); } else g_debug ("Ignoring configuration file %s, it does not have .conf suffix", conf_path); g_free (conf_path); } g_list_free_full (files, g_free); } static void load_config_directories (const gchar * const *dirs, GList **messages) { gint i; /* Load in reverse order, because XDG_* fields are preference-ordered and the directories in front should override directories in back. */ for (i = g_strv_length ((gchar **)dirs) - 1; i >= 0; i--) { gchar *full_dir = g_build_filename (dirs[i], "lightdm", "lightdm.conf.d", NULL); if (messages) *messages = g_list_append (*messages, g_strdup_printf ("Loading configuration dirs from %s", full_dir)); load_config_directory (full_dir, messages); g_free (full_dir); } } gboolean config_load_from_standard_locations (Configuration *config, const gchar *config_path, GList **messages) { gchar *config_d_dir = NULL, *path; gboolean success = TRUE; GError *error = NULL; g_return_val_if_fail (config->priv->dir == NULL, FALSE); load_config_directories (g_get_system_data_dirs (), messages); load_config_directories (g_get_system_config_dirs (), messages); if (config_path) { path = g_strdup (config_path); config->priv->dir = path_make_absolute (g_path_get_basename (config_path)); } else { config->priv->dir = g_strdup (CONFIG_DIR); config_d_dir = g_build_filename (config->priv->dir, "lightdm.conf.d", NULL); path = g_build_filename (config->priv->dir, "lightdm.conf", NULL); } if (config_d_dir) load_config_directory (config_d_dir, messages); if (messages) *messages = g_list_append (*messages, g_strdup_printf ("Loading configuration from %s", path)); if (!config_load_from_file (config, path, messages, &error)) { gboolean is_empty; is_empty = error && g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT); if (config_path || !is_empty) { if (error) g_printerr ("Failed to load configuration from %s: %s\n", path, error->message); success = FALSE; } } g_clear_error (&error); g_free (config_d_dir); g_free (path); return success; } const gchar * config_get_directory (Configuration *config) { return config->priv->dir; } gchar ** config_get_groups (Configuration *config) { return g_key_file_get_groups (config->priv->key_file, NULL); } gchar ** config_get_keys (Configuration *config, const gchar *group_name) { return g_key_file_get_keys (config->priv->key_file, group_name, NULL, NULL); } gboolean config_has_key (Configuration *config, const gchar *section, const gchar *key) { return g_key_file_has_key (config->priv->key_file, section, key, NULL); } GList * config_get_sources (Configuration *config) { return config->priv->sources; } const gchar * config_get_source (Configuration *config, const gchar *section, const gchar *key) { gchar *k; const gchar *source; k = g_strdup_printf ("%s]%s", section, key); source = g_hash_table_lookup (config->priv->key_sources, k); g_free (k); return source; } void config_set_string (Configuration *config, const gchar *section, const gchar *key, const gchar *value) { g_key_file_set_string (config->priv->key_file, section, key, value); } gchar * config_get_string (Configuration *config, const gchar *section, const gchar *key) { return g_key_file_get_string (config->priv->key_file, section, key, NULL); } void config_set_string_list (Configuration *config, const gchar *section, const gchar *key, const gchar **value, gsize length) { g_key_file_set_string_list (config->priv->key_file, section, key, value, length); } gchar ** config_get_string_list (Configuration *config, const gchar *section, const gchar *key) { return g_key_file_get_string_list (config->priv->key_file, section, key, NULL, NULL); } void config_set_integer (Configuration *config, const gchar *section, const gchar *key, gint value) { g_key_file_set_integer (config->priv->key_file, section, key, value); } gint config_get_integer (Configuration *config, const gchar *section, const gchar *key) { return g_key_file_get_integer (config->priv->key_file, section, key, NULL); } void config_set_boolean (Configuration *config, const gchar *section, const gchar *key, gboolean value) { g_key_file_set_boolean (config->priv->key_file, section, key, value); } gboolean config_get_boolean (Configuration *config, const gchar *section, const gchar *key) { /* We don't use the standard function because it doesn't work with trailing whitespace: * https://bugzilla.gnome.org/show_bug.cgi?id=664740 */ /*return g_key_file_get_boolean (config->priv->key_file, section, key, NULL);*/ gchar *value; gboolean v; value = g_key_file_get_value (config->priv->key_file, section, key, NULL); if (!value) return FALSE; g_strchomp (value); v = strcmp (value, "true") == 0; g_free (value); return v; } static void config_init (Configuration *config) { config->priv = G_TYPE_INSTANCE_GET_PRIVATE (config, CONFIGURATION_TYPE, ConfigurationPrivate); config->priv->key_file = g_key_file_new (); config->priv->key_sources = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL); } static void config_finalize (GObject *object) { Configuration *self = CONFIGURATION (object); g_free (self->priv->dir); g_key_file_free (self->priv->key_file); g_list_free_full (self->priv->sources, g_free); g_hash_table_destroy (self->priv->key_sources); G_OBJECT_CLASS (config_parent_class)->finalize (object); } static void config_class_init (ConfigurationClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = config_finalize; g_type_class_add_private (klass, sizeof (ConfigurationPrivate)); } lightdm-1.18.1/common/privileges.h0000664000000000000000000000114212700600465013732 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef PRIVILEGES_H_ #define PRIVILEGES_H_ #include void privileges_drop (uid_t uid, gid_t gid); void privileges_reclaim (void); #endif /* PRIVILEGES_H_ */ lightdm-1.18.1/common/user-list.c0000664000000000000000000016733712700600465013526 0ustar /* -*- Mode: C; indent-tabs-mode:nil; tab-width:4 -*- * * Copyright (C) 2010 Robert Ancell. * Copyright (C) 2014 Canonical, Ltd. * Authors: Robert Ancell * Michael Terry * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #include #include #include #include #include #include #include "dmrc.h" #include "user-list.h" enum { LIST_PROP_0, LIST_PROP_NUM_USERS, LIST_PROP_USERS, }; enum { USER_PROP_0, USER_PROP_NAME, USER_PROP_REAL_NAME, USER_PROP_DISPLAY_NAME, USER_PROP_HOME_DIRECTORY, USER_PROP_SHELL, USER_PROP_IMAGE, USER_PROP_BACKGROUND, USER_PROP_LANGUAGE, USER_PROP_LAYOUT, USER_PROP_LAYOUTS, USER_PROP_SESSION, USER_PROP_LOGGED_IN, USER_PROP_HAS_MESSAGES, USER_PROP_UID, USER_PROP_GID, }; enum { USER_ADDED, USER_CHANGED, USER_REMOVED, LAST_LIST_SIGNAL }; static guint list_signals[LAST_LIST_SIGNAL] = { 0 }; enum { CHANGED, LAST_USER_SIGNAL }; static guint user_signals[LAST_USER_SIGNAL] = { 0 }; typedef struct { /* Bus connection being communicated on */ GDBusConnection *bus; /* D-Bus signals for accounts service events */ guint user_added_signal; guint user_removed_signal; /* D-Bus signals for display manager events */ guint session_added_signal; guint session_removed_signal; /* File monitor for password file */ GFileMonitor *passwd_monitor; /* TRUE if have scanned users */ gboolean have_users; /* List of users */ GList *users; /* List of sessions */ GList *sessions; } CommonUserListPrivate; typedef struct { /* User list this user is part of */ CommonUserList *user_list; /* TRUE if have loaded the DMRC file */ gboolean loaded_dmrc; /* Accounts service path */ gchar *path; /* Update signal from accounts service */ guint changed_signal; /* Username */ gchar *name; /* Descriptive name for user */ gchar *real_name; /* Home directory of user */ gchar *home_directory; /* Shell for user */ gchar *shell; /* Image for user */ gchar *image; /* Background image for users */ gchar *background; /* TRUE if this user has messages available */ gboolean has_messages; /* UID of user */ guint64 uid; /* GID of user */ guint64 gid; /* User chosen language */ gchar *language; /* User layout preferences */ gchar **layouts; /* User default session */ gchar *session; } CommonUserPrivate; typedef struct { GObject parent_instance; gchar *path; gchar *username; } CommonSession; typedef struct { GObjectClass parent_class; } CommonSessionClass; G_DEFINE_TYPE (CommonUserList, common_user_list, G_TYPE_OBJECT); G_DEFINE_TYPE (CommonUser, common_user, G_TYPE_OBJECT); #define COMMON_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), common_session_get_type (), CommonSession)) GType common_session_get_type (void); G_DEFINE_TYPE (CommonSession, common_session, G_TYPE_OBJECT); #define GET_LIST_PRIVATE(obj) G_TYPE_INSTANCE_GET_PRIVATE ((obj), COMMON_TYPE_USER_LIST, CommonUserListPrivate) #define GET_USER_PRIVATE(obj) G_TYPE_INSTANCE_GET_PRIVATE ((obj), COMMON_TYPE_USER, CommonUserPrivate) #define PASSWD_FILE "/etc/passwd" #define USER_CONFIG_FILE "/etc/lightdm/users.conf" static CommonUserList *singleton = NULL; /** * common_user_list_get_instance: * * Get the user list. * * Return value: (transfer none): the #CommonUserList **/ CommonUserList * common_user_list_get_instance (void) { if (!singleton) singleton = g_object_new (COMMON_TYPE_USER_LIST, NULL); return singleton; } void common_user_list_cleanup (void) { g_clear_object (&singleton); } static CommonUser * get_user_by_name (CommonUserList *user_list, const gchar *username) { CommonUserListPrivate *priv = GET_LIST_PRIVATE (user_list); GList *link; for (link = priv->users; link; link = link->next) { CommonUser *user = link->data; if (g_strcmp0 (common_user_get_name (user), username) == 0) return user; } return NULL; } static CommonUser * get_user_by_path (CommonUserList *user_list, const gchar *path) { CommonUserListPrivate *priv = GET_LIST_PRIVATE (user_list); GList *link; for (link = priv->users; link; link = link->next) { CommonUser *user = link->data; if (g_strcmp0 (GET_USER_PRIVATE (user)->path, path) == 0) return user; } return NULL; } static gint compare_user (gconstpointer a, gconstpointer b) { CommonUser *user_a = (CommonUser *) a, *user_b = (CommonUser *) b; return g_strcmp0 (common_user_get_display_name (user_a), common_user_get_display_name (user_b)); } static gboolean update_passwd_user (CommonUser *user, const gchar *real_name, const gchar *home_directory, const gchar *shell, const gchar *image) { CommonUserPrivate *priv = GET_USER_PRIVATE (user); /* Skip if already set to this */ if (g_strcmp0 (common_user_get_real_name (user), real_name) == 0 && g_strcmp0 (common_user_get_home_directory (user), home_directory) == 0 && g_strcmp0 (common_user_get_shell (user), shell) == 0 && g_strcmp0 (common_user_get_image (user), image) == 0) return FALSE; g_free (priv->real_name); priv->real_name = g_strdup (real_name); g_free (priv->home_directory); priv->home_directory = g_strdup (home_directory); g_free (priv->shell); priv->shell = g_strdup (shell); g_free (priv->image); priv->image = g_strdup (image); return TRUE; } static void user_changed_cb (CommonUser *user) { g_signal_emit (GET_USER_PRIVATE (user)->user_list, list_signals[USER_CHANGED], 0, user); } static CommonUser * make_passwd_user (CommonUserList *user_list, struct passwd *entry) { CommonUser *user = g_object_new (COMMON_TYPE_USER, NULL); CommonUserPrivate *priv = GET_USER_PRIVATE (user); char **tokens; gchar *real_name, *image; tokens = g_strsplit (entry->pw_gecos, ",", -1); if (tokens[0] != NULL && tokens[0][0] != '\0') real_name = g_strdup (tokens[0]); else real_name = g_strdup (""); g_strfreev (tokens); image = g_build_filename (entry->pw_dir, ".face", NULL); if (!g_file_test (image, G_FILE_TEST_EXISTS)) { g_free (image); image = g_build_filename (entry->pw_dir, ".face.icon", NULL); if (!g_file_test (image, G_FILE_TEST_EXISTS)) { g_free (image); image = NULL; } } priv->user_list = user_list; priv->name = g_strdup (entry->pw_name); priv->real_name = real_name; priv->home_directory = g_strdup (entry->pw_dir); priv->shell = g_strdup (entry->pw_shell); priv->image = image; priv->uid = entry->pw_uid; priv->gid = entry->pw_gid; return user; } static void load_passwd_file (CommonUserList *user_list, gboolean emit_add_signal) { CommonUserListPrivate *priv = GET_LIST_PRIVATE (user_list); GKeyFile *config; gchar *value; gint minimum_uid; gchar **hidden_users, **hidden_shells; GList *users = NULL, *old_users, *new_users = NULL, *changed_users = NULL, *link; GError *error = NULL; g_debug ("Loading user config from %s", USER_CONFIG_FILE); config = g_key_file_new (); g_key_file_load_from_file (config, USER_CONFIG_FILE, G_KEY_FILE_NONE, &error); if (error && !g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT)) g_warning ("Failed to load configuration from %s: %s", USER_CONFIG_FILE, error->message); g_clear_error (&error); if (g_key_file_has_key (config, "UserList", "minimum-uid", NULL)) minimum_uid = g_key_file_get_integer (config, "UserList", "minimum-uid", NULL); else minimum_uid = 500; value = g_key_file_get_string (config, "UserList", "hidden-users", NULL); if (!value) value = g_strdup ("nobody nobody4 noaccess"); hidden_users = g_strsplit (value, " ", -1); g_free (value); value = g_key_file_get_string (config, "UserList", "hidden-shells", NULL); if (!value) value = g_strdup ("/bin/false /usr/sbin/nologin"); hidden_shells = g_strsplit (value, " ", -1); g_free (value); g_key_file_free (config); setpwent (); while (TRUE) { struct passwd *entry; CommonUser *user; int i; errno = 0; entry = getpwent (); if (!entry) break; /* Ignore system users */ if (entry->pw_uid < minimum_uid) continue; /* Ignore users disabled by shell */ if (entry->pw_shell) { for (i = 0; hidden_shells[i] && strcmp (entry->pw_shell, hidden_shells[i]) != 0; i++); if (hidden_shells[i]) continue; } /* Ignore certain users */ for (i = 0; hidden_users[i] && strcmp (entry->pw_name, hidden_users[i]) != 0; i++); if (hidden_users[i]) continue; user = make_passwd_user (user_list, entry); /* Update existing users if have them */ for (link = priv->users; link; link = link->next) { CommonUser *info = link->data; if (strcmp (common_user_get_name (info), common_user_get_name (user)) == 0) { if (update_passwd_user (info, common_user_get_real_name (user), common_user_get_home_directory (user), common_user_get_shell (user), common_user_get_image (user))) changed_users = g_list_insert_sorted (changed_users, info, compare_user); g_object_unref (user); user = info; break; } } if (!link) { /* Only notify once we have loaded the user list */ if (priv->have_users) new_users = g_list_insert_sorted (new_users, user, compare_user); } users = g_list_insert_sorted (users, user, compare_user); } g_strfreev (hidden_users); g_strfreev (hidden_shells); if (errno != 0) g_warning ("Failed to read password database: %s", strerror (errno)); endpwent (); /* Use new user list */ old_users = priv->users; priv->users = users; /* Notify of changes */ for (link = new_users; link; link = link->next) { CommonUser *info = link->data; g_debug ("User %s added", common_user_get_name (info)); g_signal_connect (info, USER_SIGNAL_CHANGED, G_CALLBACK (user_changed_cb), NULL); if (emit_add_signal) g_signal_emit (user_list, list_signals[USER_ADDED], 0, info); } g_list_free (new_users); for (link = changed_users; link; link = link->next) { CommonUser *info = link->data; g_debug ("User %s changed", common_user_get_name (info)); g_signal_emit (info, user_signals[CHANGED], 0); } g_list_free (changed_users); for (link = old_users; link; link = link->next) { GList *new_link; /* See if this user is in the current list */ for (new_link = priv->users; new_link; new_link = new_link->next) { if (new_link->data == link->data) break; } if (!new_link) { CommonUser *info = link->data; g_debug ("User %s removed", common_user_get_name (info)); g_signal_emit (user_list, list_signals[USER_REMOVED], 0, info); g_object_unref (info); } } g_list_free (old_users); } static void passwd_changed_cb (GFileMonitor *monitor, GFile *file, GFile *other_file, GFileMonitorEvent event_type, CommonUserList *user_list) { if (event_type == G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT) { g_debug ("%s changed, reloading user list", g_file_get_path (file)); load_passwd_file (user_list, TRUE); } } static gboolean load_accounts_user (CommonUser *user); static void accounts_user_changed_cb (GDBusConnection *connection, const gchar *sender_name, const gchar *object_path, const gchar *interface_name, const gchar *signal_name, GVariant *parameters, gpointer data) { CommonUser *user = data; /*CommonUserPrivate *priv = GET_USER_PRIVATE (user);*/ /* Log message disabled as AccountsService can have arbitrary plugins that * might cause us to log when properties change we don't use. LP: #1376357 */ /*g_debug ("User %s changed", priv->path);*/ if (load_accounts_user (user)) g_signal_emit (user, user_signals[CHANGED], 0); } static gboolean load_accounts_user (CommonUser *user) { CommonUserPrivate *priv = GET_USER_PRIVATE (user); GVariant *result, *value; GVariantIter *iter; gchar *name; gboolean system_account = FALSE; GError *error = NULL; /* Get the properties for this user */ if (!priv->changed_signal) priv->changed_signal = g_dbus_connection_signal_subscribe (GET_LIST_PRIVATE (priv->user_list)->bus, "org.freedesktop.Accounts", "org.freedesktop.Accounts.User", "Changed", priv->path, NULL, G_DBUS_SIGNAL_FLAGS_NONE, accounts_user_changed_cb, user, NULL); result = g_dbus_connection_call_sync (GET_LIST_PRIVATE (priv->user_list)->bus, "org.freedesktop.Accounts", priv->path, "org.freedesktop.DBus.Properties", "GetAll", g_variant_new ("(s)", "org.freedesktop.Accounts.User"), G_VARIANT_TYPE ("(a{sv})"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Error updating user %s: %s", priv->path, error->message); g_clear_error (&error); if (!result) return FALSE; /* Store the properties we need */ g_variant_get (result, "(a{sv})", &iter); while (g_variant_iter_loop (iter, "{&sv}", &name, &value)) { if (strcmp (name, "UserName") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING)) { g_free (priv->name); priv->name = g_variant_dup_string (value, NULL); } else if (strcmp (name, "RealName") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING)) { g_free (priv->real_name); priv->real_name = g_variant_dup_string (value, NULL); } else if (strcmp (name, "HomeDirectory") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING)) { g_free (priv->home_directory); priv->home_directory = g_variant_dup_string (value, NULL); } else if (strcmp (name, "Shell") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING)) { g_free (priv->shell); priv->shell = g_variant_dup_string (value, NULL); } else if (strcmp (name, "SystemAccount") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)) system_account = g_variant_get_boolean (value); else if (strcmp (name, "Language") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING)) { if (priv->language) g_free (priv->language); priv->language = g_variant_dup_string (value, NULL); } else if (strcmp (name, "IconFile") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING)) { g_free (priv->image); priv->image = g_variant_dup_string (value, NULL); if (strcmp (priv->image, "") == 0) { g_free (priv->image); priv->image = NULL; } } else if (strcmp (name, "XSession") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING)) { g_free (priv->session); priv->session = g_variant_dup_string (value, NULL); } else if (strcmp (name, "BackgroundFile") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING)) { g_free (priv->background); priv->background = g_variant_dup_string (value, NULL); if (strcmp (priv->background, "") == 0) { g_free (priv->background); priv->background = NULL; } } else if (strcmp (name, "XKeyboardLayouts") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_STRING_ARRAY)) { g_strfreev (priv->layouts); priv->layouts = g_variant_dup_strv (value, NULL); if (!priv->layouts) { priv->layouts = g_malloc (sizeof (gchar *) * 1); priv->layouts[0] = NULL; } } else if (strcmp (name, "XHasMessages") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)) priv->has_messages = g_variant_get_boolean (value); else if (strcmp (name, "Uid") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_UINT64)) priv->uid = g_variant_get_uint64 (value); } g_variant_iter_free (iter); g_variant_unref (result); return !system_account; } static void add_accounts_user (CommonUserList *user_list, const gchar *path, gboolean emit_signal) { CommonUserListPrivate *list_priv = GET_LIST_PRIVATE (user_list); CommonUser *user; CommonUserPrivate *priv; user = g_object_new (COMMON_TYPE_USER, NULL); priv = GET_USER_PRIVATE (user); g_debug ("User %s added", path); priv->user_list = user_list; priv->path = g_strdup (path); g_signal_connect (user, USER_SIGNAL_CHANGED, G_CALLBACK (user_changed_cb), NULL); if (load_accounts_user (user)) { list_priv->users = g_list_insert_sorted (list_priv->users, user, compare_user); if (emit_signal) g_signal_emit (user_list, list_signals[USER_ADDED], 0, user); } else g_object_unref (user); } static void accounts_user_added_cb (GDBusConnection *connection, const gchar *sender_name, const gchar *object_path, const gchar *interface_name, const gchar *signal_name, GVariant *parameters, gpointer data) { CommonUserList *user_list = data; gchar *path; CommonUser *user; if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(o)"))) { g_warning ("Got UserAccounts signal UserAdded with unknown parameters %s", g_variant_get_type_string (parameters)); return; } g_variant_get (parameters, "(&o)", &path); /* Add user if we haven't got them */ user = get_user_by_path (user_list, path); if (!user) add_accounts_user (user_list, path, TRUE); } static void accounts_user_deleted_cb (GDBusConnection *connection, const gchar *sender_name, const gchar *object_path, const gchar *interface_name, const gchar *signal_name, GVariant *parameters, gpointer data) { CommonUserList *user_list = data; CommonUserListPrivate *priv = GET_LIST_PRIVATE (user_list); gchar *path; CommonUser *user; if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(o)"))) { g_warning ("Got UserAccounts signal UserDeleted with unknown parameters %s", g_variant_get_type_string (parameters)); return; } g_variant_get (parameters, "(&o)", &path); /* Delete user if we know of them */ user = get_user_by_path (user_list, path); if (user) { g_debug ("User %s deleted", path); priv->users = g_list_remove (priv->users, user); g_signal_emit (user_list, list_signals[USER_REMOVED], 0, user); g_object_unref (user); } } static CommonSession * load_session (CommonUserList *user_list, const gchar *path) { CommonUserListPrivate *priv = GET_LIST_PRIVATE (user_list); CommonSession *session = NULL; GVariant *result, *username; GError *error = NULL; result = g_dbus_connection_call_sync (priv->bus, "org.freedesktop.DisplayManager", path, "org.freedesktop.DBus.Properties", "Get", g_variant_new ("(ss)", "org.freedesktop.DisplayManager.Session", "UserName"), G_VARIANT_TYPE ("(v)"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Error getting UserName from org.freedesktop.DisplayManager.Session: %s", error->message); g_clear_error (&error); if (!result) return NULL; g_variant_get (result, "(v)", &username); if (g_variant_is_of_type (username, G_VARIANT_TYPE_STRING)) { gchar *name; g_variant_get (username, "&s", &name); g_debug ("Loaded session %s (%s)", path, name); session = g_object_new (common_session_get_type (), NULL); session->username = g_strdup (name); session->path = g_strdup (path); priv->sessions = g_list_append (priv->sessions, session); } g_variant_unref (username); g_variant_unref (result); return session; } static void session_added_cb (GDBusConnection *connection, const gchar *sender_name, const gchar *object_path, const gchar *interface_name, const gchar *signal_name, GVariant *parameters, gpointer data) { CommonUserList *user_list = data; gchar *path; CommonSession *session; CommonUser *user = NULL; if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(o)"))) { g_warning ("Got DisplayManager signal SessionAdded with unknown parameters %s", g_variant_get_type_string (parameters)); return; } g_variant_get (parameters, "(&o)", &path); session = load_session (user_list, path); if (session) user = get_user_by_name (user_list, session->username); if (user) g_signal_emit (user, user_signals[CHANGED], 0); } static void session_removed_cb (GDBusConnection *connection, const gchar *sender_name, const gchar *object_path, const gchar *interface_name, const gchar *signal_name, GVariant *parameters, gpointer data) { CommonUserList *user_list = data; CommonUserListPrivate *priv = GET_LIST_PRIVATE (user_list); gchar *path; GList *link; if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(o)"))) { g_warning ("Got DisplayManager signal SessionRemoved with unknown parameters %s", g_variant_get_type_string (parameters)); return; } g_variant_get (parameters, "(&o)", &path); for (link = priv->sessions; link; link = link->next) { CommonSession *session = link->data; if (strcmp (session->path, path) == 0) { CommonUser *user; g_debug ("Session %s removed", path); priv->sessions = g_list_delete_link (priv->sessions, link); user = get_user_by_name (user_list, session->username); if (user) g_signal_emit (user, user_signals[CHANGED], 0); g_object_unref (session); break; } } } static void load_sessions (CommonUserList *user_list) { CommonUserListPrivate *priv = GET_LIST_PRIVATE (user_list); GVariant *result; GError *error = NULL; priv->session_added_signal = g_dbus_connection_signal_subscribe (priv->bus, "org.freedesktop.DisplayManager", "org.freedesktop.DisplayManager", "SessionAdded", "/org/freedesktop/DisplayManager", NULL, G_DBUS_SIGNAL_FLAGS_NONE, session_added_cb, user_list, NULL); priv->session_removed_signal = g_dbus_connection_signal_subscribe (priv->bus, "org.freedesktop.DisplayManager", "org.freedesktop.DisplayManager", "SessionRemoved", "/org/freedesktop/DisplayManager", NULL, G_DBUS_SIGNAL_FLAGS_NONE, session_removed_cb, user_list, NULL); result = g_dbus_connection_call_sync (priv->bus, "org.freedesktop.DisplayManager", "/org/freedesktop/DisplayManager", "org.freedesktop.DBus.Properties", "Get", g_variant_new ("(ss)", "org.freedesktop.DisplayManager", "Sessions"), G_VARIANT_TYPE ("(v)"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Error getting session list from org.freedesktop.DisplayManager: %s", error->message); g_clear_error (&error); if (result) { if (g_variant_is_of_type (result, G_VARIANT_TYPE ("(v)"))) { GVariant *value; GVariantIter *iter; const gchar *path; g_variant_get (result, "(v)", &value); g_debug ("Loading sessions from org.freedesktop.DisplayManager"); g_variant_get (value, "ao", &iter); while (g_variant_iter_loop (iter, "&o", &path)) load_session (user_list, path); g_variant_iter_free (iter); g_variant_unref (value); } else g_warning ("Unexpected type from org.freedesktop.DisplayManager.Sessions: %s", g_variant_get_type_string (result)); g_variant_unref (result); } } static void load_users (CommonUserList *user_list) { CommonUserListPrivate *priv = GET_LIST_PRIVATE (user_list); GVariant *result; GError *error = NULL; if (priv->have_users) return; priv->have_users = TRUE; /* Get user list from accounts service and fall back to /etc/passwd if that fails */ priv->user_added_signal = g_dbus_connection_signal_subscribe (priv->bus, "org.freedesktop.Accounts", "org.freedesktop.Accounts", "UserAdded", "/org/freedesktop/Accounts", NULL, G_DBUS_SIGNAL_FLAGS_NONE, accounts_user_added_cb, user_list, NULL); priv->user_removed_signal = g_dbus_connection_signal_subscribe (priv->bus, "org.freedesktop.Accounts", "org.freedesktop.Accounts", "UserDeleted", "/org/freedesktop/Accounts", NULL, G_DBUS_SIGNAL_FLAGS_NONE, accounts_user_deleted_cb, user_list, NULL); result = g_dbus_connection_call_sync (priv->bus, "org.freedesktop.Accounts", "/org/freedesktop/Accounts", "org.freedesktop.Accounts", "ListCachedUsers", g_variant_new ("()"), G_VARIANT_TYPE ("(ao)"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Error getting user list from org.freedesktop.Accounts: %s", error->message); g_clear_error (&error); if (result) { GVariantIter *iter; const gchar *path; g_debug ("Loading users from org.freedesktop.Accounts"); g_variant_get (result, "(ao)", &iter); while (g_variant_iter_loop (iter, "&o", &path)) add_accounts_user (user_list, path, FALSE); g_variant_iter_free (iter); g_variant_unref (result); } else { GFile *passwd_file; g_dbus_connection_signal_unsubscribe (priv->bus, priv->user_added_signal); priv->user_added_signal = 0; g_dbus_connection_signal_unsubscribe (priv->bus, priv->user_removed_signal); priv->user_removed_signal = 0; load_passwd_file (user_list, FALSE); /* Watch for changes to user list */ passwd_file = g_file_new_for_path (PASSWD_FILE); priv->passwd_monitor = g_file_monitor (passwd_file, G_FILE_MONITOR_NONE, NULL, &error); g_object_unref (passwd_file); if (error) g_warning ("Error monitoring %s: %s", PASSWD_FILE, error->message); else g_signal_connect (priv->passwd_monitor, "changed", G_CALLBACK (passwd_changed_cb), user_list); g_clear_error (&error); } } /** * common_user_list_get_length: * @user_list: a #CommonUserList * * Return value: The number of users able to log in **/ gint common_user_list_get_length (CommonUserList *user_list) { g_return_val_if_fail (COMMON_IS_USER_LIST (user_list), 0); load_users (user_list); return g_list_length (GET_LIST_PRIVATE (user_list)->users); } /** * common_user_list_get_users: * @user_list: A #CommonUserList * * Get a list of users to present to the user. This list may be a subset of the * available users and may be empty depending on the server configuration. * * Return value: (element-type CommonUser) (transfer none): A list of #CommonUser that should be presented to the user. **/ GList * common_user_list_get_users (CommonUserList *user_list) { g_return_val_if_fail (COMMON_IS_USER_LIST (user_list), NULL); load_users (user_list); return GET_LIST_PRIVATE (user_list)->users; } /** * common_user_list_get_user_by_name: * @user_list: A #CommonUserList * @username: Name of user to get. * * Get infomation about a given user or #NULL if this user doesn't exist. * Includes hidden and system users, unlike the list from * common_user_list_get_users. * * Return value: (transfer full): A #CommonUser entry for the given user. **/ CommonUser * common_user_list_get_user_by_name (CommonUserList *user_list, const gchar *username) { g_return_val_if_fail (COMMON_IS_USER_LIST (user_list), NULL); g_return_val_if_fail (username != NULL, NULL); load_users (user_list); CommonUser *user = get_user_by_name (user_list, username); if (user) return g_object_ref (user); /* Sometimes we need to look up users that aren't in AccountsService. Notably we need to look up the user that the greeter runs as, which is usually 'lightdm'. For such cases, we manually create a one-off CommonUser object and pre-seed with passwd info. */ struct passwd *entry = getpwnam (username); if (entry != NULL) return make_passwd_user (user_list, entry); return NULL; } static void common_user_list_init (CommonUserList *user_list) { CommonUserListPrivate *priv = GET_LIST_PRIVATE (user_list); priv->bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL); } static void common_user_list_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); } static void common_user_list_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { CommonUserList *self; self = COMMON_USER_LIST (object); switch (prop_id) { case LIST_PROP_NUM_USERS: g_value_set_int (value, common_user_list_get_length (self)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void common_user_list_finalize (GObject *object) { CommonUserList *self = COMMON_USER_LIST (object); CommonUserListPrivate *priv = GET_LIST_PRIVATE (self); /* Remove children first, they might access us */ g_list_free_full (priv->users, g_object_unref); g_list_free_full (priv->sessions, g_object_unref); if (priv->user_added_signal) g_dbus_connection_signal_unsubscribe (priv->bus, priv->user_added_signal); if (priv->user_removed_signal) g_dbus_connection_signal_unsubscribe (priv->bus, priv->user_removed_signal); if (priv->session_added_signal) g_dbus_connection_signal_unsubscribe (priv->bus, priv->session_added_signal); if (priv->session_removed_signal) g_dbus_connection_signal_unsubscribe (priv->bus, priv->session_removed_signal); g_object_unref (priv->bus); g_clear_object (&priv->passwd_monitor); G_OBJECT_CLASS (common_user_list_parent_class)->finalize (object); } static void common_user_list_class_init (CommonUserListClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (CommonUserListPrivate)); object_class->set_property = common_user_list_set_property; object_class->get_property = common_user_list_get_property; object_class->finalize = common_user_list_finalize; g_object_class_install_property (object_class, LIST_PROP_NUM_USERS, g_param_spec_int ("num-users", "num-users", "Number of login users", 0, G_MAXINT, 0, G_PARAM_READABLE)); /** * CommonUserList::user-added: * @user_list: A #CommonUserList * @user: The #CommonUser that has been added. * * The ::user-added signal gets emitted when a user account is created. **/ list_signals[USER_ADDED] = g_signal_new (USER_LIST_SIGNAL_USER_ADDED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (CommonUserListClass, user_added), NULL, NULL, NULL, G_TYPE_NONE, 1, COMMON_TYPE_USER); /** * CommonUserList::user-changed: * @user_list: A #CommonUserList * @user: The #CommonUser that has been changed. * * The ::user-changed signal gets emitted when a user account is modified. **/ list_signals[USER_CHANGED] = g_signal_new (USER_LIST_SIGNAL_USER_CHANGED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (CommonUserListClass, user_changed), NULL, NULL, NULL, G_TYPE_NONE, 1, COMMON_TYPE_USER); /** * CommonUserList::user-removed: * @user_list: A #CommonUserList * @user: The #CommonUser that has been removed. * * The ::user-removed signal gets emitted when a user account is removed. **/ list_signals[USER_REMOVED] = g_signal_new (USER_LIST_SIGNAL_USER_REMOVED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (CommonUserListClass, user_removed), NULL, NULL, NULL, G_TYPE_NONE, 1, COMMON_TYPE_USER); } static gboolean call_method (CommonUser *user, const gchar *method, GVariant *args, const gchar *expected, GVariant **result) { GVariant *answer; GError *error = NULL; CommonUserPrivate *user_priv = GET_USER_PRIVATE (user); CommonUserListPrivate *list_priv = GET_LIST_PRIVATE (user_priv->user_list); answer = g_dbus_connection_call_sync (list_priv->bus, "org.freedesktop.Accounts", user_priv->path, "org.freedesktop.Accounts.User", method, args, G_VARIANT_TYPE (expected), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Could not call %s: %s", method, error->message); g_clear_error (&error); if (!answer) return FALSE; if (result) *result = answer; else g_variant_unref (answer); return TRUE; } static void save_string_to_dmrc (CommonUser *user, const gchar *group, const gchar *key, const gchar *value) { GKeyFile *dmrc; dmrc = dmrc_load (user); g_key_file_set_string (dmrc, group, key, value); dmrc_save (dmrc, user); g_key_file_free (dmrc); } /* Loads language/layout/session info for user */ static void load_dmrc (CommonUser *user) { CommonUserPrivate *priv = GET_USER_PRIVATE (user); GKeyFile *dmrc; /* We're using Accounts service instead */ if (priv->path) return; if (priv->loaded_dmrc) return; priv->loaded_dmrc = TRUE; dmrc = dmrc_load (user); // FIXME: Watch for changes /* The Language field contains the locale */ g_free (priv->language); priv->language = g_key_file_get_string (dmrc, "Desktop", "Language", NULL); if (g_key_file_has_key (dmrc, "Desktop", "Layout", NULL)) { g_strfreev (priv->layouts); priv->layouts = g_malloc (sizeof (gchar *) * 2); priv->layouts[0] = g_key_file_get_string (dmrc, "Desktop", "Layout", NULL); priv->layouts[1] = NULL; } g_free (priv->session); priv->session = g_key_file_get_string (dmrc, "Desktop", "Session", NULL); g_key_file_free (dmrc); } /** * common_user_get_name: * @user: A #CommonUser * * Get the name of a user. * * Return value: The name of the given user **/ const gchar * common_user_get_name (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), NULL); return GET_USER_PRIVATE (user)->name; } /** * common_user_get_real_name: * @user: A #CommonUser * * Get the real name of a user. * * Return value: The real name of the given user **/ const gchar * common_user_get_real_name (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), NULL); return GET_USER_PRIVATE (user)->real_name; } /** * common_user_get_display_name: * @user: A #CommonUser * * Get the display name of a user. * * Return value: The display name of the given user **/ const gchar * common_user_get_display_name (CommonUser *user) { CommonUserPrivate *priv; g_return_val_if_fail (COMMON_IS_USER (user), NULL); priv = GET_USER_PRIVATE (user); if (!priv->real_name || strcmp (priv->real_name, "") == 0) return priv->name; else return priv->real_name; } /** * common_user_get_home_directory: * @user: A #CommonUser * * Get the home directory for a user. * * Return value: The users home directory */ const gchar * common_user_get_home_directory (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), NULL); return GET_USER_PRIVATE (user)->home_directory; } /** * common_user_get_shell: * @user: A #CommonUser * * Get the shell for a user. * * Return value: The user's shell */ const gchar * common_user_get_shell (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), NULL); return GET_USER_PRIVATE (user)->shell; } /** * common_user_get_image: * @user: A #CommonUser * * Get the image URI for a user. * * Return value: The image URI for the given user or #NULL if no URI **/ const gchar * common_user_get_image (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), NULL); return GET_USER_PRIVATE (user)->image; } /** * common_user_get_background: * @user: A #CommonUser * * Get the background file path for a user. * * Return value: The background file path for the given user or #NULL if no path **/ const gchar * common_user_get_background (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), NULL); return GET_USER_PRIVATE (user)->background; } /** * common_user_get_language: * @user: A #CommonUser * * Get the language for a user. * * Return value: The language in the form of a local specification (e.g. "de_DE.UTF-8") for the given user or #NULL if using the system default locale. **/ const gchar * common_user_get_language (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), NULL); load_dmrc (user); const gchar *language = GET_USER_PRIVATE (user)->language; return (language && language[0] == 0) ? NULL : language; /* Treat "" as NULL */ } /** * common_user_set_language: * @user: A #CommonUser * @language: The user's new language * * Set the language for a user. **/ void common_user_set_language (CommonUser *user, const gchar *language) { g_return_if_fail (COMMON_IS_USER (user)); if (g_strcmp0 (common_user_get_language (user), language) != 0) { call_method (user, "SetLanguage", g_variant_new ("(s)", language), "()", NULL); save_string_to_dmrc (user, "Desktop", "Language", language); } } /** * common_user_get_layout: * @user: A #CommonUser * * Get the keyboard layout for a user. * * Return value: The keyboard layout for the given user or #NULL if using system defaults. Copy the value if you want to use it long term. **/ const gchar * common_user_get_layout (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), NULL); load_dmrc (user); return GET_USER_PRIVATE (user)->layouts[0]; } /** * common_user_get_layouts: * @user: A #CommonUser * * Get the configured keyboard layouts for a user. * * Return value: (transfer none): A NULL-terminated array of keyboard layouts for the given user. Copy the values if you want to use them long term. **/ const gchar * const * common_user_get_layouts (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), NULL); load_dmrc (user); return (const gchar * const *) GET_USER_PRIVATE (user)->layouts; } /** * common_user_get_session: * @user: A #CommonUser * * Get the session for a user. * * Return value: The session for the given user or #NULL if using system defaults. **/ const gchar * common_user_get_session (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), NULL); load_dmrc (user); const gchar *session = GET_USER_PRIVATE (user)->session; return (session && session[0] == 0) ? NULL : session; /* Treat "" as NULL */ } /** * common_user_set_session: * @user: A #CommonUser * @language: The user's new session * * Set the session for a user. **/ void common_user_set_session (CommonUser *user, const gchar *session) { g_return_if_fail (COMMON_IS_USER (user)); if (g_strcmp0 (common_user_get_session (user), session) != 0) { call_method (user, "SetXSession", g_variant_new ("(s)", session), "()", NULL); save_string_to_dmrc (user, "Desktop", "Session", session); } } /** * common_user_get_logged_in: * @user: A #CommonUser * * Check if a user is logged in. * * Return value: #TRUE if the user is currently logged in. **/ gboolean common_user_get_logged_in (CommonUser *user) { CommonUserPrivate *priv; CommonUserListPrivate *list_priv; GList *link; g_return_val_if_fail (COMMON_IS_USER (user), FALSE); priv = GET_USER_PRIVATE (user); list_priv = GET_LIST_PRIVATE (priv->user_list); // Lazily decide to load/listen to sessions if (list_priv->session_added_signal == 0) load_sessions (priv->user_list); for (link = list_priv->sessions; link; link = link->next) { CommonSession *session = link->data; if (strcmp (session->username, priv->name) == 0) return TRUE; } return FALSE; } /** * common_user_get_has_messages: * @user: A #CommonUser * * Check if a user has waiting messages. * * Return value: #TRUE if the user has waiting messages. **/ gboolean common_user_get_has_messages (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), FALSE); return GET_USER_PRIVATE (user)->has_messages; } /** * common_user_get_uid: * @user: A #CommonUser * * Get the uid of a user * * Return value: The user's uid **/ uid_t common_user_get_uid (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), 0); return GET_USER_PRIVATE (user)->uid; } /** * common_user_get_gid: * @user: A #CommonUser * * Get the gid of a user * * Return value: The user's gid **/ gid_t common_user_get_gid (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), 0); /* gid is not actually stored in AccountsService, so if our user is from AccountsService, we have to look up manually in passwd. gid won't change, so just look up the first time we're asked and never again. */ CommonUserPrivate *priv = GET_USER_PRIVATE (user); if (priv->uid != 0 && priv->gid == 0) { struct passwd *entry = getpwuid (priv->uid); if (entry != NULL) priv->gid = entry->pw_gid; } return priv->gid; } static void common_user_init (CommonUser *user) { CommonUserPrivate *priv = GET_USER_PRIVATE (user); priv->layouts = g_malloc (sizeof (gchar *) * 1); priv->layouts[0] = NULL; } static void common_user_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); } static void common_user_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { CommonUser *self; self = COMMON_USER (object); switch (prop_id) { case USER_PROP_NAME: g_value_set_string (value, common_user_get_name (self)); break; case USER_PROP_REAL_NAME: g_value_set_string (value, common_user_get_real_name (self)); break; case USER_PROP_DISPLAY_NAME: g_value_set_string (value, common_user_get_display_name (self)); break; case USER_PROP_HOME_DIRECTORY: g_value_set_string (value, common_user_get_home_directory (self)); break; case USER_PROP_SHELL: g_value_set_string (value, common_user_get_shell (self)); break; case USER_PROP_IMAGE: g_value_set_string (value, common_user_get_image (self)); break; case USER_PROP_BACKGROUND: g_value_set_string (value, common_user_get_background (self)); break; case USER_PROP_LANGUAGE: g_value_set_string (value, common_user_get_language (self)); break; case USER_PROP_LAYOUT: g_value_set_string (value, common_user_get_layout (self)); break; case USER_PROP_LAYOUTS: g_value_set_boxed (value, g_strdupv ((gchar **) common_user_get_layouts (self))); break; case USER_PROP_SESSION: g_value_set_string (value, common_user_get_session (self)); break; case USER_PROP_LOGGED_IN: g_value_set_boolean (value, common_user_get_logged_in (self)); break; case USER_PROP_HAS_MESSAGES: g_value_set_boolean (value, common_user_get_has_messages (self)); break; case USER_PROP_UID: g_value_set_uint64 (value, common_user_get_uid (self)); break; case USER_PROP_GID: g_value_set_uint64 (value, common_user_get_gid (self)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void common_user_finalize (GObject *object) { CommonUser *self = COMMON_USER (object); CommonUserPrivate *priv = GET_USER_PRIVATE (self); g_free (priv->path); if (priv->changed_signal) g_dbus_connection_signal_unsubscribe (GET_LIST_PRIVATE (priv->user_list)->bus, priv->changed_signal); g_free (priv->name); g_free (priv->real_name); g_free (priv->home_directory); g_free (priv->shell); g_free (priv->image); g_free (priv->background); g_free (priv->language); g_strfreev (priv->layouts); g_free (priv->session); } static void common_user_class_init (CommonUserClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (CommonUserPrivate)); object_class->set_property = common_user_set_property; object_class->get_property = common_user_get_property; object_class->finalize = common_user_finalize; g_object_class_install_property (object_class, USER_PROP_NAME, g_param_spec_string ("name", "name", "Username", NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, USER_PROP_REAL_NAME, g_param_spec_string ("real-name", "real-name", "Users real name", NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, USER_PROP_DISPLAY_NAME, g_param_spec_string ("display-name", "display-name", "Users display name", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_HOME_DIRECTORY, g_param_spec_string ("home-directory", "home-directory", "Home directory", NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, USER_PROP_SHELL, g_param_spec_string ("shell", "shell", "Shell", NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, USER_PROP_IMAGE, g_param_spec_string ("image", "image", "Avatar image", NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, USER_PROP_BACKGROUND, g_param_spec_string ("background", "background", "User background", NULL, G_PARAM_READWRITE)); g_object_class_install_property (object_class, USER_PROP_LANGUAGE, g_param_spec_string ("language", "language", "Language used by this user", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_LAYOUT, g_param_spec_string ("layout", "layout", "Keyboard layout used by this user", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_LAYOUTS, g_param_spec_boxed ("layouts", "layouts", "Keyboard layouts used by this user", G_TYPE_STRV, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_SESSION, g_param_spec_string ("session", "session", "Session used by this user", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_LOGGED_IN, g_param_spec_boolean ("logged-in", "logged-in", "TRUE if the user is currently in a session", FALSE, G_PARAM_READWRITE)); g_object_class_install_property (object_class, USER_PROP_LOGGED_IN, g_param_spec_boolean ("has-messages", "has-messages", "TRUE if the user is has waiting messages", FALSE, G_PARAM_READWRITE)); g_object_class_install_property (object_class, USER_PROP_UID, g_param_spec_uint64 ("uid", "uid", "Uid", 0, G_MAXUINT64, 0, G_PARAM_READWRITE)); g_object_class_install_property (object_class, USER_PROP_GID, g_param_spec_uint64 ("gd", "gid", "Gid", 0, G_MAXUINT64, 0, G_PARAM_READWRITE)); /** * CommonUser::changed: * @user: A #CommonUser * * The ::changed signal gets emitted this user account is modified. **/ user_signals[CHANGED] = g_signal_new (USER_SIGNAL_CHANGED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (CommonUserClass, changed), NULL, NULL, NULL, G_TYPE_NONE, 0); } static void common_session_init (CommonSession *common_session) { } static void common_session_finalize (GObject *object) { CommonSession *self = COMMON_SESSION (object); g_free (self->path); g_free (self->username); } static void common_session_class_init (CommonSessionClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = common_session_finalize; } lightdm-1.18.1/common/configuration.h0000664000000000000000000000470412700600465014437 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef CONFIGURATION_H_ #define CONFIGURATION_H_ #include G_BEGIN_DECLS #define CONFIGURATION_TYPE (config_get_type()) #define CONFIGURATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CONFIGURATION_TYPE, Configuration)); typedef struct ConfigurationPrivate ConfigurationPrivate; typedef struct { GObject parent_instance; ConfigurationPrivate *priv; } Configuration; typedef struct { GObjectClass parent_class; } ConfigurationClass; GType config_get_type (void); Configuration *config_get_instance (void); gboolean config_load_from_file (Configuration *config, const gchar *path, GList **messages, GError **error); gboolean config_load_from_standard_locations (Configuration *config, const gchar *config_path, GList **messages); const gchar *config_get_directory (Configuration *config); gchar **config_get_groups (Configuration *config); gchar **config_get_keys (Configuration *config, const gchar *group_name); gboolean config_has_key (Configuration *config, const gchar *section, const gchar *key); GList *config_get_sources (Configuration *config); const gchar *config_get_source (Configuration *config, const gchar *section, const gchar *key); void config_set_string (Configuration *config, const gchar *section, const gchar *key, const gchar *value); gchar *config_get_string (Configuration *config, const gchar *section, const gchar *key); void config_set_string_list (Configuration *config, const gchar *section, const gchar *key, const gchar **value, gsize length); gchar **config_get_string_list (Configuration *config, const gchar *section, const gchar *key); void config_set_integer (Configuration *config, const gchar *section, const gchar *key, gint value); gint config_get_integer (Configuration *config, const gchar *section, const gchar *key); void config_set_boolean (Configuration *config, const gchar *section, const gchar *key, gboolean value); gboolean config_get_boolean (Configuration *config, const gchar *section, const gchar *key); G_END_DECLS #endif /* CONFIGURATION_H_ */ lightdm-1.18.1/common/privileges.c0000664000000000000000000000231512700600465013730 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ /* for setres*id() */ #define _GNU_SOURCE #include #include #include #include "privileges.h" void privileges_drop (uid_t uid, gid_t gid) { #ifdef HAVE_SETRESGID g_assert (setresgid (gid, gid, -1) == 0); #else g_assert (setgid (gid) == 0); g_assert (setegid (gid) == 0); #endif #ifdef HAVE_SETRESUID g_assert (setresuid (uid, uid, -1) == 0); #else g_assert (setuid (uid) == 0); g_assert (seteuid (uid) == 0); #endif } void privileges_reclaim (void) { #ifdef HAVE_SETRESUID g_assert (setresuid (0, 0, -1) == 0); #else g_assert (setuid (0) == 0); g_assert (seteuid (0) == 0); #endif #ifdef HAVE_SETRESGID g_assert (setresgid (0, 0, -1) == 0); #else g_assert (setgid (0) == 0); g_assert (setegid (0) == 0); #endif } lightdm-1.18.1/common/dmrc.c0000664000000000000000000000632512700600465012511 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include "dmrc.h" #include "configuration.h" #include "privileges.h" #include "user-list.h" GKeyFile * dmrc_load (CommonUser *user) { GKeyFile *dmrc_file; gchar *path; gboolean have_dmrc, drop_privileges; dmrc_file = g_key_file_new (); /* Load from the user directory, if this fails (e.g. the user directory * is not yet mounted) then load from the cache */ path = g_build_filename (common_user_get_home_directory (user), ".dmrc", NULL); /* Guard against privilege escalation through symlinks, etc. */ drop_privileges = geteuid () == 0; if (drop_privileges) privileges_drop (common_user_get_uid (user), common_user_get_gid (user)); have_dmrc = g_key_file_load_from_file (dmrc_file, path, G_KEY_FILE_KEEP_COMMENTS, NULL); if (drop_privileges) privileges_reclaim (); g_free (path); /* If no ~/.dmrc, then load from the cache */ if (!have_dmrc) { gchar *filename, *cache_dir; filename = g_strdup_printf ("%s.dmrc", common_user_get_name (user)); cache_dir = config_get_string (config_get_instance (), "LightDM", "cache-directory"); path = g_build_filename (cache_dir, "dmrc", filename, NULL); g_free (filename); g_free (cache_dir); g_key_file_load_from_file (dmrc_file, path, G_KEY_FILE_KEEP_COMMENTS, NULL); g_free (path); } return dmrc_file; } void dmrc_save (GKeyFile *dmrc_file, CommonUser *user) { gchar *path, *filename, *cache_dir, *dmrc_cache_dir; gchar *data; gsize length; gboolean drop_privileges; data = g_key_file_to_data (dmrc_file, &length, NULL); /* Update the users .dmrc */ path = g_build_filename (common_user_get_home_directory (user), ".dmrc", NULL); /* Guard against privilege escalation through symlinks, etc. */ drop_privileges = geteuid () == 0; if (drop_privileges) privileges_drop (common_user_get_uid (user), common_user_get_gid (user)); g_debug ("Writing %s", path); g_file_set_contents (path, data, length, NULL); if (drop_privileges) privileges_reclaim (); g_free (path); /* Update the .dmrc cache */ cache_dir = config_get_string (config_get_instance (), "LightDM", "cache-directory"); dmrc_cache_dir = g_build_filename (cache_dir, "dmrc", NULL); g_free (cache_dir); if (g_mkdir_with_parents (dmrc_cache_dir, 0700) < 0) g_warning ("Failed to make DMRC cache directory %s: %s", dmrc_cache_dir, strerror (errno)); filename = g_strdup_printf ("%s.dmrc", common_user_get_name (user)); path = g_build_filename (dmrc_cache_dir, filename, NULL); g_file_set_contents (path, data, length, NULL); g_free (data); g_free (path); g_free (filename); g_free (dmrc_cache_dir); } lightdm-1.18.1/common/dmrc.h0000664000000000000000000000122112700600465012504 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef DMRC_H_ #define DMRC_H_ #include #include "user-list.h" G_BEGIN_DECLS GKeyFile *dmrc_load (CommonUser *user); void dmrc_save (GKeyFile *dmrc_file, CommonUser *user); G_END_DECLS #endif /* DMRC_H_ */ lightdm-1.18.1/common/user-list.h0000664000000000000000000000762312700600465013522 0ustar /* * Copyright (C) 2010 Robert Ancell. * Copyright (C) 2014 Canonical, Ltd. * Authors: Robert Ancell * Michael Terry * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #ifndef COMMON_USER_LIST_H_ #define COMMON_USER_LIST_H_ #include #include G_BEGIN_DECLS #define COMMON_TYPE_USER_LIST (common_user_list_get_type()) #define COMMON_USER_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), COMMON_TYPE_USER_LIST, CommonUserList)); #define COMMON_USER_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), COMMON_TYPE_USER_LIST, CommonUserListClass)) #define COMMON_IS_USER_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), COMMON_TYPE_USER_LIST)) #define COMMON_IS_USER_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), COMMON_TYPE_USER_LIST)) #define COMMON_USER_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), COMMON_TYPE_USER_LIST, CommonUserListClass)) #define COMMON_TYPE_USER (common_user_get_type()) #define COMMON_USER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), COMMON_TYPE_USER, CommonUser)); #define COMMON_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), COMMON_TYPE_USER, CommonUserClass)) #define COMMON_IS_USER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), COMMON_TYPE_USER)) #define COMMON_IS_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), COMMON_TYPE_USER)) #define COMMON_USER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), COMMON_TYPE_USER, CommonUserClass)) #define USER_LIST_SIGNAL_USER_ADDED "user-added" #define USER_LIST_SIGNAL_USER_CHANGED "user-changed" #define USER_LIST_SIGNAL_USER_REMOVED "user-removed" #define USER_SIGNAL_CHANGED "changed" typedef struct { GObject parent_instance; } CommonUser; typedef struct { GObjectClass parent_class; void (*changed)(CommonUser *user); } CommonUserClass; typedef struct { GObject parent_instance; } CommonUserList; typedef struct { GObjectClass parent_class; void (*user_added)(CommonUserList *user_list, CommonUser *user); void (*user_changed)(CommonUserList *user_list, CommonUser *user); void (*user_removed)(CommonUserList *user_list, CommonUser *user); } CommonUserListClass; GType common_user_list_get_type (void); GType common_user_get_type (void); CommonUserList *common_user_list_get_instance (void); void common_user_list_cleanup (void); gint common_user_list_get_length (CommonUserList *user_list); CommonUser *common_user_list_get_user_by_name (CommonUserList *user_list, const gchar *username); GList *common_user_list_get_users (CommonUserList *user_list); const gchar *common_user_get_name (CommonUser *user); const gchar *common_user_get_real_name (CommonUser *user); const gchar *common_user_get_display_name (CommonUser *user); const gchar *common_user_get_home_directory (CommonUser *user); const gchar *common_user_get_shell (CommonUser *user); const gchar *common_user_get_image (CommonUser *user); const gchar *common_user_get_background (CommonUser *user); const gchar *common_user_get_language (CommonUser *user); void common_user_set_language (CommonUser *user, const gchar *language); const gchar *common_user_get_layout (CommonUser *user); const gchar * const *common_user_get_layouts (CommonUser *user); const gchar *common_user_get_session (CommonUser *user); void common_user_set_session (CommonUser *user, const gchar *session); gboolean common_user_get_logged_in (CommonUser *user); gboolean common_user_get_has_messages (CommonUser *user); uid_t common_user_get_uid (CommonUser *user); gid_t common_user_get_gid (CommonUser *user); G_END_DECLS #endif /* COMMON_USER_LIST_H_ */ lightdm-1.18.1/help/0000775000000000000000000000000012700603563011054 5ustar lightdm-1.18.1/help/Makefile.am0000664000000000000000000000113612700600465013107 0ustar @YELP_HELP_RULES@ HELP_ID = lightdm HELP_POT = lightdm-help.pot HELP_FILES = autologin.page \ config.page \ default-greeter.page \ default-session.page \ diagnostics.page \ guest.page \ index.page \ legal.xml \ local-sessions.page \ remote-sessions.page \ seat.page \ standard-authentication.page \ user-list.page \ user-switching.page \ vnc.page \ write-greeter.page \ xdmcp.page HELP_LINGUAS = lightdm-1.18.1/help/C/0000775000000000000000000000000012700603563011236 5ustar lightdm-1.18.1/help/C/remote-sessions.page0000664000000000000000000000202312700600465015226 0ustar Remote Sessions

A remote session allows a user to authenticate from a greeter and access a remote system.

Remote sessions are registered with a desktop file in /usr/share/lightdm/remote-sessions/name.desktop. The following keys are used:

Name, Comment - May be used in the greeter to describe this session

Exec - Command to run for this session

X-LightDM-PAM-Service - PAM service to authenticate with

Instead of using standard authentication each remote session defines its own PAM service. This service should contact the server providing the session, perform authentication and then the command specified in Exec should run a program that displays the remote session.

lightdm-1.18.1/help/C/autologin.page0000664000000000000000000000237612700600465014103 0ustar Automatic/Timed Login

Automatic and timed login allows a user session to be started without any authentication. This is useful for systems where security is not required (for example personal laptops) and kiosk type systems where the user session is considered secure.

Automatic login is configured for a seat by setting the autologin-user setting to the name of the user account to automatically log into or setting autologin-guest to true to automatically log into a guest account. You can set autologin-session to set the session to override the default.

Timed login is configured by setting autologin-user-timeout to the number of seconds to wait until performing the automatic login. During this time a greeter will be displayed allowing the user to pick another account before the timer expires.

When performing an automatic login LightDM uses the lightdm-autologin PAM service.

lightdm-1.18.1/help/C/user-list.page0000664000000000000000000000074712700600465014031 0ustar User List

A greeter may choose to display a list of available users to choose from. This list can be accessed using liblightdm and the information is taken from AccountsService. If accounts service is not available, then the user list is obtained using the getpwent system call.

lightdm-1.18.1/help/C/legal.xml0000664000000000000000000000075612700600465013052 0ustar

This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.

As a special exception, the copyright holders give you permission to copy, modify, and distribute the example code contained in this document under the terms of your choosing, without restriction.

lightdm-1.18.1/help/C/seat.page0000664000000000000000000000047612700600465013035 0ustar Seats

Some systems allow more than one display device to be connected to them to allow multiple users to use the system at once.

lightdm-1.18.1/help/C/config.page0000664000000000000000000000170412700600465013341 0ustar Configuration

Configuration is in /etc/lightdm. The main configuration file is a keyfile called lightdm.conf containing the following sections:

[LightDM] - Settings that applies to everything in LightDM.

[SeatDefaults] - Settings that apply to all seats.

[Seat:name] - Settings for the named seat that overrides settings from [SeatDefaults].

[XDMCPServer] - Settings for remote access using XDMCP.

[VNCServer] - Settings for remote access using VNC.

lightdm-1.18.1/help/C/user-switching.page0000664000000000000000000000224112700600465015044 0ustar User Switching

User switching is a method of running more than one session at a time on a seat and switching between them. Only one session can be used at a time. The session is switched by contacting the display manager using D-Bus and calling the one of the following method on the Seat object:

SwitchToGreeter - A greeter session is started. This allows the user to authenticate for a new session or authenticate to return to their current session.

SwitchToUser - If there is a session for the given user then it is switched to, otherwise a greeter is started.

SwitchToGuest - If a guest session is active it is switched to, otherwise a guest session is started.

Switching is performed using virtual terminals in the kernel. Each session has a separate display server and the selected session is activated by changing the active virtual terminal.

lightdm-1.18.1/help/C/write-greeter.page0000664000000000000000000000031412700600465014655 0ustar Writing a greeter

lightdm-1.18.1/help/C/local-sessions.page0000664000000000000000000000114412700600465015030 0ustar Local Sessions

A local session allows a user to authenticate from a greeter and access their local system.

Local sessions are registered with a desktop file in /usr/share/xsessions/name.desktop. The following keys are used:

Name, Comment - May be used in the greeter to describe this session

Exec - Command to run for this session

lightdm-1.18.1/help/C/standard-authentication.page0000664000000000000000000000136012700600465016707 0ustar Standard Authentication

Authentication is performed using the lightdm PAM service. This service is configured by default to use the unix PAM modules and performs traditional password authentication. Authentication is initiated by the greeter and may involve informational messages and prompts to the user. Once authentication is complete the greeter is allowed to start a user session.

If required this service can be modified to support any authentication scheme that is compatible with PAM.

lightdm-1.18.1/help/C/diagnostics.page0000664000000000000000000000042512700600465014402 0ustar Diagnostics

LightDM logs all activity into files in /var/log/lightdm.

lightdm-1.18.1/help/C/default-session.page0000664000000000000000000000033012700600465015173 0ustar Setting the default session

lightdm-1.18.1/help/C/index.page0000664000000000000000000000357312700600465013211 0ustar Robert Ancell robert.ancell@gmail.com LightDM Help

LightDM is a Display Manager. It is a long running process (daemon) that ensures that your graphical display is set up correctly.

The LightDM daemon spawns and manages two types of processes:

Display Servers - a process that combines graphical output from one or more process together to display on graphics hardware. Also provides input from mice / keyboards etc to the process. For example X is a display server.

Sessions - a session is a process that has access to the display server and allows the user to perform tasks. Often a session will be made up of a core component, the shell, that allows the user to run applications. Both the shell and the applications communicate with the display server.

LightDM for Display Management
Authentication

Authentication is performed using PAM.

Greeters

A greeter is a session that provides a mechanism for choosing and authentication users.

User Sessions

A user session allows a user to interact with their computer and run applications.

Remote Access

You can allow remote computers to connect to LightDM and start sessions.

lightdm-1.18.1/help/C/vnc.page0000664000000000000000000000027112700600465012660 0ustar VNC

lightdm-1.18.1/help/C/xdmcp.page0000664000000000000000000000027512700600465013211 0ustar XDMCP

lightdm-1.18.1/help/C/guest.page0000664000000000000000000000106412700600465013222 0ustar Guest Sessions

A guest session is a user session that doesn't require authentication. When selected a temporary user account is created with a default setup. When the guest session is exited the temporary account and its user data is removed.

Guest sessions are enabled by default, though depending on what greeter is used they may not be made available to the user.

lightdm-1.18.1/help/C/default-greeter.page0000664000000000000000000000031512700600465015150 0ustar Default Greeter

lightdm-1.18.1/doc/0000775000000000000000000000000012700603563010671 5ustar lightdm-1.18.1/doc/Makefile.am0000664000000000000000000000122212700600465012720 0ustar DOC_MODULE=lightdm-gobject-1 DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml DOC_SOURCE_DIR=$(top_srcdir)/liblightdm-gobject HFILE_GLOB=$(top_srcdir)/liblightdm-gobject/lightdm.h CFILE_GLOB=$(top_srcdir)/liblightdm-gobject/*.c AM_CPPFLAGS = \ $(LIBLIGHTDM_GOBJECT_CFLAGS) \ -I$(top_srcdir)/liblightdm-gobject GTKDOC_LIBS = \ $(LIBLIGHTDM_GOBJECT_LIBS) \ $(top_builddir)/liblightdm-gobject/liblightdm-gobject-1.la SCAN_OPTIONS=--deprecated-guards="LIGHTDM_DISABLE_DEPRECATED" MKDB_OPTIONS=--sgml-mode --output-format=xml --name-space=LightDM DISTCLEANFILES = \ $(DOC_MODULE)-docs.xml \ $(DOC_MODULE)-overrides.txt include $(top_srcdir)/gtk-doc.make lightdm-1.18.1/doc/tmpl/0000775000000000000000000000000012700603563011645 5ustar lightdm-1.18.1/doc/tmpl/user.sgml0000664000000000000000000000546012700600465013512 0ustar User Accounts Get information on user accounts on this system Object containing information about a user present on this system. #LightDMUser objects are not created by the user, but provided by the #LightDMGreeter object. A user has the following properties: The user name is used to refer to this user. The real name is the name of the person that owns this user account. The display name provides text to use for the user label. The image URI provides an image to use for the user. @user: @user: @Returns: @user: @Returns: @user: @Returns: @user: @Returns: @user: @Returns: @user: @Returns: @user: @Returns: @user: @Returns: @user: @Returns: @user: @Returns: @user: @Returns: @user: @Returns: @user_list: @user: @user_list: @user: @user_list: @user: @void: @Returns: @user_list: @Returns: @user_list: @username: @Returns: @user_list: @Returns: lightdm-1.18.1/doc/tmpl/language.sgml0000664000000000000000000000175612700600465014323 0ustar Languages Get information on available languages #LightDMLanguage is an object that describes a language that is available on the system. @void: @Returns: @void: @Returns: @language: @Returns: @language: @Returns: @language: @Returns: @language: @code: @Returns: lightdm-1.18.1/doc/tmpl/layout.sgml0000664000000000000000000000171412700600465014047 0ustar Keyboard Layouts Control the keyboard layout #LightDMLayout is an object that describes a keyboard that is available on the system. @void: @Returns: @void: @Returns: @layout: @layout: @Returns: @layout: @Returns: @layout: @Returns: lightdm-1.18.1/doc/tmpl/session.sgml0000664000000000000000000000203512700600465014212 0ustar User Sessions Choose the session to use Object containing information about a session type. #LightDMSession objects are not created by the user, but provided by the #LightDMGreeter object. @void: @Returns: @void: @Returns: @session: @Returns: @session: @Returns: @session: @Returns: @session: @Returns: lightdm-1.18.1/doc/tmpl/system.sgml0000664000000000000000000000064012700600465014053 0ustar System Information Get system infomation @void: @Returns: lightdm-1.18.1/doc/tmpl/power.sgml0000664000000000000000000000203512700600465013663 0ustar Power Management Shutdown, restart, sleep the system @void: @Returns: @error: @Returns: @void: @Returns: @error: @Returns: @void: @Returns: @error: @Returns: @void: @Returns: @error: @Returns: lightdm-1.18.1/doc/tmpl/greeter.sgml0000664000000000000000000001440212700600465014165 0ustar Greeter Interface Make a connection to the LightDM daemon and authenticate users #LightDMGreeter is an object that manages the connection to the LightDM server and provides common greeter functionality. Example Greeter @greeter: @text: @type: @greeter: @text: @type: @greeter: @greeter: @greeter: @greeter: @LIGHTDM_MESSAGE_TYPE_INFO: @LIGHTDM_MESSAGE_TYPE_ERROR: @LIGHTDM_PROMPT_TYPE_QUESTION: @LIGHTDM_PROMPT_TYPE_SECRET: @void: @Returns: @greeter: @resettable: @greeter: @cancellable: @callback: @user_data: @greeter: @result: @error: @Returns: @greeter: @error: @Returns: @greeter: @username: @cancellable: @callback: @user_data: @greeter: @result: @Returns: @greeter: @username: @Returns: @greeter: @Returns: @greeter: @name: @Returns: @greeter: @Returns: @greeter: @Returns: @greeter: @Returns: @greeter: @Returns: @greeter: @Returns: @greeter: @Returns: @greeter: @Returns: @greeter: @Returns: @greeter: @Returns: @greeter: @Returns: @greeter: @language: @greeter: @greeter: @username: @greeter: @greeter: @greeter: @session: @username: @greeter: @response: @greeter: @greeter: @Returns: @greeter: @Returns: @greeter: @Returns: @greeter: @session: @cancellable: @callback: @user_data: @greeter: @result: @error: @Returns: @greeter: @session: @error: @Returns: lightdm-1.18.1/doc/lightdm-gobject-1-docs.sgml0000664000000000000000000000143712700600465015707 0ustar LightDM Reference Manual liblightdm-gobject lightdm-1.18.1/doc/lightdm-gobject-1.types0000664000000000000000000000017212700600465015156 0ustar lightdm_greeter_get_type lightdm_language_get_type lightdm_layout_get_type lightdm_session_get_type lightdm_user_get_type lightdm-1.18.1/doc/lightdm-gobject-1-sections.txt0000664000000000000000000001012112700600465016451 0ustar lightdm.h
system System Information lightdm_get_hostname
power Power Management lightdm_get_can_suspend lightdm_suspend lightdm_get_can_hibernate lightdm_hibernate lightdm_get_can_restart lightdm_restart lightdm_get_can_shutdown lightdm_shutdown
language Languages lightdm_get_languages lightdm_get_language lightdm_language_get_code lightdm_language_get_name lightdm_language_get_territory lightdm_language_matches LIGHTDM_IS_LANGUAGE LIGHTDM_IS_LANGUAGE_CLASS LIGHTDM_LANGUAGE LIGHTDM_LANGUAGE_CLASS LIGHTDM_LANGUAGE_GET_CLASS LIGHTDM_TYPE_LANGUAGE lightdm_language_get_type
layout Keyboard Layout lightdm_get_layouts lightdm_get_layout lightdm_set_layout lightdm_layout_get_name lightdm_layout_get_short_description lightdm_layout_get_description LIGHTDM_IS_LAYOUT LIGHTDM_IS_LAYOUT_CLASS LIGHTDM_LAYOUT LIGHTDM_LAYOUT_CLASS LIGHTDM_LAYOUT_GET_CLASS LIGHTDM_TYPE_LAYOUT lightdm_layout_get_type
session Sessions lightdm_get_remote_sessions lightdm_get_sessions lightdm_session_get_key lightdm_session_get_session_type lightdm_session_get_name lightdm_session_get_comment LIGHTDM_SESSION LIGHTDM_IS_SESSION LIGHTDM_TYPE_SESSION lightdm_session_get_type LIGHTDM_SESSION_CLASS LIGHTDM_IS_SESSION_CLASS LIGHTDM_SESSION_GET_CLASS
user User Accounts changed lightdm_user_get_background lightdm_user_get_display_name lightdm_user_get_has_messages lightdm_user_get_home_directory lightdm_user_get_image lightdm_user_get_language lightdm_user_get_layout lightdm_user_get_layouts lightdm_user_get_logged_in lightdm_user_get_name lightdm_user_get_real_name lightdm_user_get_session lightdm_user_get_uid user_added user_changed user_removed lightdm_user_list_get_instance lightdm_user_list_get_length lightdm_user_list_get_user_by_name lightdm_user_list_get_users LIGHTDM_IS_USER LIGHTDM_IS_USER_CLASS LIGHTDM_TYPE_USER lightdm_user_get_type LIGHTDM_USER LIGHTDM_USER_CLASS LIGHTDM_USER_GET_CLASS LIGHTDM_USER_LIST LIGHTDM_IS_USER_LIST LIGHTDM_TYPE_USER_LIST lightdm_user_list_get_type LIGHTDM_USER_LIST_CLASS LIGHTDM_IS_USER_LIST_CLASS LIGHTDM_USER_LIST_GET_CLASS
greeter Greeter Interface show_message show_prompt authentication_complete autologin_timer_expired idle reset LightDMMessageType LightDMPromptType lightdm_greeter_new lightdm_greeter_set_resettable lightdm_greeter_connect_to_daemon lightdm_greeter_connect_to_daemon_finish lightdm_greeter_connect_to_daemon_sync lightdm_greeter_ensure_shared_data_dir lightdm_greeter_ensure_shared_data_dir_finish lightdm_greeter_ensure_shared_data_dir_sync lightdm_greeter_get_default_session_hint lightdm_greeter_get_hint lightdm_greeter_get_lock_hint lightdm_greeter_get_has_guest_account_hint lightdm_greeter_get_hide_users_hint lightdm_greeter_get_show_manual_login_hint lightdm_greeter_get_show_remote_login_hint lightdm_greeter_get_select_user_hint lightdm_greeter_get_select_guest_hint lightdm_greeter_get_autologin_user_hint lightdm_greeter_get_autologin_guest_hint lightdm_greeter_get_autologin_timeout_hint lightdm_greeter_set_language lightdm_greeter_cancel_autologin lightdm_greeter_authenticate lightdm_greeter_authenticate_as_guest lightdm_greeter_authenticate_autologin lightdm_greeter_authenticate_remote lightdm_greeter_respond lightdm_greeter_cancel_authentication lightdm_greeter_get_in_authentication lightdm_greeter_get_is_authenticated lightdm_greeter_get_authentication_user lightdm_greeter_start_session lightdm_greeter_start_session_finish lightdm_greeter_start_session_sync LIGHTDM_GREETER LIGHTDM_IS_GREETER LIGHTDM_TYPE_GREETER lightdm_greeter_get_type LIGHTDM_GREETER_CLASS LIGHTDM_IS_GREETER_CLASS LIGHTDM_GREETER_GET_CLASS
lightdm-1.18.1/m4/0000775000000000000000000000000012700603563010444 5ustar lightdm-1.18.1/m4/introspection.m40000664000000000000000000000661412700600465013613 0ustar dnl -*- mode: autoconf -*- dnl Copyright 2009 Johan Dahlin dnl dnl This file is free software; the author(s) gives unlimited dnl permission to copy and/or distribute it, with or without dnl modifications, as long as this notice is preserved. dnl # serial 1 m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL], [ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first AC_BEFORE([LT_INIT],[$0])dnl setup libtool first dnl enable/disable introspection m4_if([$2], [require], [dnl enable_introspection=yes ],[dnl AC_ARG_ENABLE(introspection, AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]], [Enable introspection for this build]),, [enable_introspection=auto]) ])dnl AC_MSG_CHECKING([for gobject-introspection]) dnl presence/version checking AS_CASE([$enable_introspection], [no], [dnl found_introspection="no (disabled, use --enable-introspection to enable)" ],dnl [yes],[dnl PKG_CHECK_EXISTS([gobject-introspection-1.0],, AC_MSG_ERROR([gobject-introspection-1.0 is not installed])) PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME])) ],dnl [auto],[dnl PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no) ],dnl [dnl AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@]) ])dnl AC_MSG_RESULT([$found_introspection]) INTROSPECTION_SCANNER= INTROSPECTION_COMPILER= INTROSPECTION_GENERATE= INTROSPECTION_GIRDIR= INTROSPECTION_TYPELIBDIR= if test "x$found_introspection" = "xyes"; then INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection fi AC_SUBST(INTROSPECTION_SCANNER) AC_SUBST(INTROSPECTION_COMPILER) AC_SUBST(INTROSPECTION_GENERATE) AC_SUBST(INTROSPECTION_GIRDIR) AC_SUBST(INTROSPECTION_TYPELIBDIR) AC_SUBST(INTROSPECTION_CFLAGS) AC_SUBST(INTROSPECTION_LIBS) AC_SUBST(INTROSPECTION_MAKEFILE) AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes") ]) dnl Usage: dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version]) AC_DEFUN([GOBJECT_INTROSPECTION_CHECK], [ _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1]) ]) dnl Usage: dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version]) AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE], [ _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require]) ]) lightdm-1.18.1/m4/vapigen.m40000664000000000000000000000647712700600465012353 0ustar dnl vapigen.m4 dnl dnl Copyright 2012 Evan Nemerson dnl dnl This library is free software; you can redistribute it and/or dnl modify it under the terms of the GNU Lesser General Public dnl License as published by the Free Software Foundation; either dnl version 2.1 of the License, or (at your option) any later version. dnl dnl This library is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl Lesser General Public License for more details. dnl dnl You should have received a copy of the GNU Lesser General Public dnl License along with this library; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # VAPIGEN_CHECK([VERSION], [API_VERSION], [FOUND_INTROSPECTION], [DEFAULT]) # -------------------------------------- # Check vapigen existence and version # # See http://live.gnome.org/Vala/UpstreamGuide for detailed documentation AC_DEFUN([VAPIGEN_CHECK], [ AS_IF([test "x$3" != "xyes"], [ m4_provide_if([GOBJECT_INTROSPECTION_CHECK], [], [ m4_provide_if([GOBJECT_INTROSPECTION_REQUIRE], [], [ AC_MSG_ERROR([[You must call GOBJECT_INTROSPECTION_CHECK or GOBJECT_INTROSPECTION_REQUIRE before using VAPIGEN_CHECK unless using the FOUND_INTROSPECTION argument is "yes"]]) ]) ]) ]) AC_ARG_ENABLE([vala], [AS_HELP_STRING([--enable-vala[=@<:@no/auto/yes@:>@]],[build Vala bindings @<:@default=]ifelse($4,,auto,$4)[@:>@])],,[ AS_IF([test "x$4" = "x"], [ enable_vala=auto ], [ enable_vala=$4 ]) ]) AS_CASE([$enable_vala], [no], [enable_vala=no], [yes], [ AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [ AC_MSG_ERROR([Vala bindings require GObject Introspection]) ]) ], [auto], [ AS_IF([test "x$3" != "xyes" -a "x$found_introspection" != "xyes"], [ enable_vala=no ]) ], [ AC_MSG_ERROR([Invalid argument passed to --enable-vala, should be one of @<:@no/auto/yes@:>@]) ]) AS_IF([test "x$2" = "x"], [ vapigen_pkg_name=vapigen ], [ vapigen_pkg_name=vapigen-$2 ]) AS_IF([test "x$1" = "x"], [ vapigen_pkg="$vapigen_pkg_name" ], [ vapigen_pkg="$vapigen_pkg_name >= $1" ]) PKG_PROG_PKG_CONFIG PKG_CHECK_EXISTS([$vapigen_pkg], [ AS_IF([test "$enable_vala" = "auto"], [ enable_vala=yes ]) ], [ AS_CASE([$enable_vala], [yes], [ AC_MSG_ERROR([$vapigen_pkg not found]) ], [auto], [ enable_vala=no ]) ]) AC_MSG_CHECKING([for vapigen]) AS_CASE([$enable_vala], [yes], [ VAPIGEN=`$PKG_CONFIG --variable=vapigen $vapigen_pkg_name` VAPIGEN_MAKEFILE=`$PKG_CONFIG --variable=datadir $vapigen_pkg_name`/vala/Makefile.vapigen AS_IF([test "x$2" = "x"], [ VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir $vapigen_pkg_name` ], [ VAPIGEN_VAPIDIR=`$PKG_CONFIG --variable=vapidir_versioned $vapigen_pkg_name` ]) ]) AC_MSG_RESULT([$enable_vala]) AC_SUBST([VAPIGEN]) AC_SUBST([VAPIGEN_VAPIDIR]) AC_SUBST([VAPIGEN_MAKEFILE]) AM_CONDITIONAL(ENABLE_VAPIGEN, test "x$enable_vala" = "xyes") ]) lightdm-1.18.1/tests/0000775000000000000000000000000012700603563011266 5ustar lightdm-1.18.1/tests/test-session-stderr-multi-write0000775000000000000000000000013312700600465017430 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner session-stderr-multi-write test-gobject-greeter lightdm-1.18.1/tests/test-login-remember-session-qt50000775000000000000000000000012312700600465017257 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-remember-session test-qt5-greeter lightdm-1.18.1/tests/test-login-multi-info-prompt-qt50000775000000000000000000000012412700600465017403 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-multi-info-prompt test-qt5-greeter lightdm-1.18.1/tests/test-cancel-authentication-qt50000775000000000000000000000012212700600465017133 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner cancel-authentication test-qt5-greeter lightdm-1.18.1/tests/Makefile.am0000664000000000000000000005222112700600465013322 0ustar SUBDIRS = src TESTS = \ test-xserver-fail-start \ test-greeter-fail-start \ test-greeter-not-installed \ test-greeter-xserver-crash \ test-greeter-crash \ test-greeter-wrapper \ test-greeter-default-session \ test-greeter-allow-guest \ test-greeter-hide-users \ test-greeter-show-manual-login \ test-greeter-show-remote-login \ test-no-config \ test-additional-config \ test-additional-config-priority \ test-additional-system-config \ test-additional-system-config-priority \ test-headless \ test-autologin \ test-autologin-pam \ test-autologin-pam-config \ test-autologin-in-background \ test-autologin-guest-in-background \ test-autologin-timeout-in-background \ test-autologin-invalid-user \ test-autologin-invalid-greeter \ test-autologin-invalid-session \ test-crash-authenticate \ test-autologin-xserver-crash \ test-autologin-session-crash \ test-autologin-password \ test-autologin-new-authtok \ test-autologin-timeout-gobject \ test-autologin-guest-timeout-gobject \ test-xserver-config \ test-allow-tcp \ test-allow-tcp-xorg-1.16 \ test-change-authentication \ test-restart-authentication \ test-cancel-authentication-gobject \ test-login-pam \ test-login-pam-config \ test-denied \ test-expired \ test-cred-error \ test-cred-expired \ test-cred-unavail \ test-autologin-session-error \ test-autologin-logout \ test-autologin-session \ test-autologin-timeout-logout \ test-autologin-previous-session \ test-autologin-guest \ test-autologin-guest-session-config \ test-autologin-guest-fail-setup-script \ test-autologin-guest-logout \ test-guest-wrapper \ test-login-guest-session-config \ test-group-membership \ test-xdg-current-desktop \ test-xdg-current-desktop-legacy \ test-language-env \ test-session-stdout \ test-session-stderr \ test-session-stderr-multi-write \ test-session-stderr-backup \ test-xauthority \ test-corrupt-xauthority \ test-system-xauthority \ test-user-renamed \ test-user-renamed-invalid \ test-user-name \ test-user-uid \ test-user-image \ test-user-background \ test-user-layout \ test-user-has-messages \ test-user-session \ test-user-logged-in \ test-users-gobject \ test-language \ test-language-no-accounts-service \ test-login-crash-authenticate \ test-login-invalid-greeter \ test-login-gobject \ test-login-manual-gobject \ test-login-manual-previous-session-gobject \ test-login-no-password-gobject \ test-login-long-username-gobject \ test-login-long-password-gobject \ test-login-two-factor-gobject \ test-login-new-authtok-gobject \ test-login-info-prompt-gobject \ test-login-multi-info-prompt-gobject \ test-login-multi-prompt-gobject \ test-login-pick-session-gobject \ test-login-remember-session-gobject \ test-login-manual-remember-session-gobject \ test-login-previous-session-gobject \ test-login-wrong-password-gobject \ test-login-invalid-user-gobject \ test-login-invalid-session-gobject \ test-login-logout-gobject \ test-login-guest-gobject \ test-login-guest-pick-session-gobject \ test-login-guest-disabled-gobject \ test-login-guest-no-setup-script-gobject \ test-login-guest-fail-setup-script-gobject \ test-login-guest-logout-gobject \ test-login-remote-session-gobject \ test-login-session-crash \ test-login-xserver-crash \ test-xserver-no-share \ test-home-dir-on-authenticate \ test-home-dir-on-session \ test-plymouth-active-vt \ test-plymouth-inactive-vt \ test-plymouth-no-seat \ test-script-hooks \ test-script-hook-display-setup-fail \ test-script-hook-display-setup-missing \ test-script-hook-greeter-setup-fail \ test-script-hook-greeter-setup-missing \ test-script-hook-session-setup-fail \ test-script-hook-session-setup-missing \ test-shared-data-greeter-to-session \ test-shared-data-session-to-greeter \ test-shared-data-session-to-greeter-autologin \ test-shared-data-invalid-user \ test-upstart-autologin \ test-upstart-login \ test-dbus \ test-lock-seat \ test-lock-seat-after-vt-switch \ test-lock-seat-twice \ test-lock-seat-resettable \ test-lock-seat-return-session \ test-lock-session \ test-lock-session-twice \ test-lock-session-no-password \ test-lock-session-resettable \ test-lock-session-return-session \ test-lock-seat-console-kit \ test-lock-seat-return-session-console-kit \ test-switch-to-greeter \ test-switch-to-greeter-disabled \ test-switch-to-greeter-new-session \ test-switch-to-greeter-resettable \ test-switch-to-greeter-return-session \ test-switch-to-greeter-return-session-pam \ test-switch-to-greeter-return-session-logout \ test-switch-to-guest \ test-switch-to-guest-disabled \ test-switch-to-guest-fail-resettable \ test-switch-to-user \ test-switch-to-user-disabled \ test-switch-to-user-no-password \ test-switch-to-user-active \ test-switch-to-user-existing \ test-switch-to-user-existing-no-password \ test-switch-to-user-existing-resettable \ test-switch-to-user-logout-active \ test-switch-to-user-logout-active-resettable \ test-switch-to-user-logout-inactive \ test-switch-to-user-resettable \ test-switch-to-users \ test-vnc-login \ test-vnc-command \ test-vnc-dimensions \ test-vnc-open-file-descriptors \ test-vnc-guest \ test-xremote-autologin \ test-xremote-login \ test-xdmcp-client \ test-xdmcp-client-xorg-1.16 \ test-xdmcp-server-autologin \ test-xdmcp-server-login \ test-xdmcp-server-double-login \ test-xdmcp-server-guest \ test-xdmcp-server-keep-alive \ test-xdmcp-server-xdm-authentication \ test-xdmcp-server-xdm-authentication-missing-data \ test-xdmcp-server-xdm-authentication-short-data \ test-xdmcp-server-xdm-authentication-long-data \ test-xdmcp-server-xdm-authentication-required \ test-xdmcp-server-xdm-authentication-missing-key \ test-xdmcp-server-xdm-authentication-no-key \ test-xdmcp-server-xdm-authentication-invalid-authorization \ test-xdmcp-server-invalid-authentication \ test-xdmcp-server-request-without-addresses \ test-xdmcp-server-request-without-authorization \ test-xdmcp-server-request-invalid-authentication \ test-xdmcp-server-request-invalid-authorization \ test-utmp-login \ test-utmp-autologin \ test-utmp-wrong-password \ test-audit-autologin \ test-no-accounts-service \ test-console-kit \ test-console-kit-no-xdg-runtime \ test-no-console-kit \ test-no-login1 \ test-no-console-kit-or-login1 \ test-power-gobject \ test-power-no-console-kit-gobject \ test-power-no-login1-gobject \ test-power-no-services-gobject \ test-open-file-descriptors \ test-xdmcp-server-open-file-descriptors \ test-add-local-x-seat \ test-multi-seat \ test-multi-seat-seat0-non-graphical \ test-multi-seat-seat0-non-graphical-disabled \ test-multi-seat-non-graphical \ test-multi-seat-non-graphical-disabled \ test-multi-seat-change-graphical \ test-multi-seat-change-graphical-disabled \ test-multi-seat-globbing-config-sections \ test-mir-autologin \ test-mir-greeter \ test-mir-session \ test-mir-session-crash \ test-mir-session-compositor-crash \ test-mir-container-session \ test-wayland-autologin \ test-wayland-greeter \ test-wayland-session \ test-unity-compositor-command \ test-unity-compositor-not-found \ test-unity-compositor-fail-start \ test-unity-compositor-fail-ready \ test-unity-compositor-crash \ test-unity-compositor-fallback \ test-unity-compositor-next-session \ test-unity-compositor-mir-next-session \ test-unity-autologin \ test-unity-autologin-legacy \ test-unity-login \ test-unity-switch \ test-unity-plymouth \ test-unity-script-hooks \ test-unity-mir-autologin \ test-unity-mir-greeter-x-session \ test-unity-mir-greeter-mir-session \ test-unity-mir-lock-seat \ test-unity-mir-session-x-greeter \ test-unity-mir-switch \ test-unity-mir-switch-to-user-resettable \ test-unity-mir-script-hooks \ test-seatdefaults-still-supported # test-mir-script-hooks \ # test-session-exit-error # test-greeter-no-exit # test-change-password-gobject # test-change-password-qt # test-autologin-create-directory TESTS += \ test-cancel-authentication-python \ test-users-python \ test-login-python \ test-login-manual-python \ test-login-manual-previous-session-python \ test-login-no-password-python \ test-login-long-username-python \ test-login-long-password-python \ test-login-two-factor-python \ test-login-new-authtok-python \ test-login-info-prompt-python \ test-login-multi-info-prompt-python \ test-login-previous-session-python \ test-login-wrong-password-python \ test-login-invalid-user-python \ test-login-invalid-session-python \ test-login-logout-python \ test-login-pick-session-python \ test-login-remember-session-python \ test-login-manual-remember-session-python \ test-login-guest-python \ test-login-guest-pick-session-python \ test-login-guest-disabled-python \ test-login-guest-no-setup-script-python \ test-login-guest-fail-setup-script-python \ test-login-guest-logout-python \ test-login-remote-session-python \ test-autologin-timeout-python \ test-autologin-guest-timeout-python \ test-power-python \ test-power-no-console-kit-python \ test-power-no-login1-python \ test-power-no-services-python if COMPILE_LIBLIGHTDM_QT4 TESTS += \ test-autologin-timeout-qt4 \ test-autologin-guest-timeout-qt4 \ test-cancel-authentication-qt4 \ test-login-qt4 \ test-login-manual-qt4 \ test-login-manual-previous-session-qt4 \ test-login-no-password-qt4 \ test-login-long-username-qt4 \ test-login-long-password-qt4 \ test-login-two-factor-qt4 \ test-login-new-authtok-qt4 \ test-login-info-prompt-qt4 \ test-login-multi-info-prompt-qt4 \ test-login-previous-session-qt4 \ test-login-wrong-password-qt4 \ test-login-invalid-user-qt4 \ test-login-invalid-session-qt4 \ test-login-logout-qt4 \ test-login-pick-session-qt4 \ test-login-remember-session-qt4 \ test-login-manual-remember-session-qt4 \ test-login-guest-qt4 \ test-login-guest-pick-session-qt4 \ test-login-guest-disabled-qt4 \ test-login-guest-no-setup-script-qt4 \ test-login-guest-fail-setup-script-qt4 \ test-login-guest-logout-qt4 \ test-login-remote-session-qt4 \ test-users-qt4 \ test-power-qt4 \ test-power-no-console-kit-qt4 \ test-power-no-login1-qt4 \ test-power-no-services-qt4 endif if COMPILE_LIBLIGHTDM_QT5 TESTS += \ test-autologin-timeout-qt5 \ test-autologin-guest-timeout-qt5 \ test-cancel-authentication-qt5 \ test-login-qt5 \ test-login-manual-qt5 \ test-login-manual-previous-session-qt5 \ test-login-no-password-qt5 \ test-login-long-username-qt5 \ test-login-long-password-qt5 \ test-login-two-factor-qt5 \ test-login-new-authtok-qt5 \ test-login-info-prompt-qt5 \ test-login-multi-info-prompt-qt5 \ test-login-previous-session-qt5 \ test-login-wrong-password-qt5 \ test-login-invalid-user-qt5 \ test-login-invalid-session-qt5 \ test-login-logout-qt5 \ test-login-pick-session-qt5 \ test-login-remember-session-qt5 \ test-login-manual-remember-session-qt5 \ test-login-guest-qt5 \ test-login-guest-pick-session-qt5 \ test-login-guest-disabled-qt5 \ test-login-guest-no-setup-script-qt5 \ test-login-guest-fail-setup-script-qt5 \ test-login-guest-logout-qt5 \ test-login-remote-session-qt5 \ test-users-qt5 \ test-power-qt5 \ test-power-no-console-kit-qt5 \ test-power-no-login1-qt5 \ test-power-no-services-qt5 endif EXTRA_DIST = \ $(TESTS) \ data/remote-sessions/test-remote.desktop \ data/system.conf \ data/session.conf \ data/greeters/test-gobject-greeter.desktop \ data/greeters/test-mir-greeter.desktop \ data/greeters/test-python-greeter.desktop \ data/greeters/test-qt4-greeter.desktop \ data/greeters/test-qt5-greeter.desktop \ data/greeters/test-wayland-greeter.desktop \ data/keys.conf \ data/sessions/alternative.desktop \ data/sessions/default.desktop \ data/sessions/mir.desktop \ data/sessions/mir-container.desktop \ data/sessions/named.desktop \ data/sessions/named-legacy.desktop \ data/sessions/wayland.desktop \ scripts/0-additional.conf \ scripts/1-additional.conf \ scripts/add-local-x-seat.conf \ scripts/additional-config.conf \ scripts/additional-config-priority.conf \ scripts/additional-system-config.conf \ scripts/additional-system-config-priority.conf \ scripts/allow-tcp.conf \ scripts/allow-tcp-xorg-1.16.conf \ scripts/audit-autologin.conf \ scripts/autologin.conf \ scripts/autologin-guest.conf \ scripts/autologin-guest-fail-setup-script.conf \ scripts/autologin-guest-in-background.conf \ scripts/autologin-guest-logout.conf \ scripts/autologin-guest-session-config.conf \ scripts/autologin-guest-timeout.conf \ scripts/autologin-in-background.conf \ scripts/autologin-invalid-greeter.conf \ scripts/autologin-pam.conf \ scripts/autologin-pam-config.conf \ scripts/autologin-invalid-session.conf \ scripts/autologin-invalid-user.conf \ scripts/autologin-logout.conf \ scripts/autologin-new-authtok.conf \ scripts/autologin-password.conf \ scripts/autologin-previous-session.conf \ scripts/autologin-session.conf \ scripts/autologin-session-crash.conf \ scripts/autologin-session-error.conf \ scripts/autologin-timeout.conf \ scripts/autologin-timeout-in-background.conf \ scripts/autologin-timeout-logout.conf \ scripts/autologin-xserver-crash.conf \ scripts/change-authentication.conf \ scripts/cancel-authentication.conf \ scripts/console-kit.conf \ scripts/console-kit-no-xdg-runtime.conf \ scripts/corrupt-xauthority.conf \ scripts/crash-authenticate.conf \ scripts/cred-error.conf \ scripts/cred-expired.conf \ scripts/cred-unavail.conf \ scripts/dbus.conf \ scripts/denied.conf \ scripts/expired.conf \ scripts/greeter-allow-guest.conf \ scripts/greeter-crash.conf \ scripts/greeter-default-session.conf \ scripts/greeter-fail-start.conf \ scripts/greeter-hide-users.conf \ scripts/greeter-not-installed.conf \ scripts/greeter-show-manual-login.conf \ scripts/greeter-show-remote-login.conf \ scripts/greeter-wrapper.conf \ scripts/greeter-xserver-crash.conf \ scripts/group-membership.conf \ scripts/guest-wrapper.conf \ scripts/headless.conf \ scripts/home-dir-on-authenticate.conf \ scripts/home-dir-on-session.conf \ scripts/language.conf \ scripts/language-env.conf \ scripts/language-no-accounts-service.conf \ scripts/lock-seat.conf \ scripts/lock-seat-after-vt-switch.conf \ scripts/lock-seat-console-kit.conf \ scripts/lock-seat-resettable.conf \ scripts/lock-seat-return-session.conf \ scripts/lock-seat-return-session-console-kit.conf \ scripts/lock-seat-twice.conf \ scripts/lock-session.conf \ scripts/lock-session-no-password.conf \ scripts/lock-session-resettable.conf \ scripts/lock-session-return-session.conf \ scripts/lock-session-twice.conf \ scripts/login.conf \ scripts/login-crash-authenticate.conf \ scripts/login-guest.conf \ scripts/login-guest-disabled.conf \ scripts/login-guest-fail-setup-script.conf \ scripts/login-guest-logout.conf \ scripts/login-guest-pick-session.conf \ scripts/login-guest-no-setup-script.conf \ scripts/login-guest-session-config.conf \ scripts/login-info-prompt.conf \ scripts/login-invalid-greeter.conf \ scripts/login-invalid-session.conf \ scripts/login-invalid-user.conf \ scripts/login-logout.conf \ scripts/login-long-username.conf \ scripts/login-long-password.conf \ scripts/login-manual.conf \ scripts/login-manual-previous-session.conf \ scripts/login-manual-remember-session.conf \ scripts/login-multi-info-prompt.conf \ scripts/login-multi-prompt.conf \ scripts/login-new-authtok.conf \ scripts/login-no-password.conf \ scripts/login-pam.conf \ scripts/login-pam-config.conf \ scripts/login-pick-session.conf \ scripts/login-previous-session.conf \ scripts/login-remember-session.conf \ scripts/login-remote-session.conf \ scripts/login-session-crash.conf \ scripts/login-two-factor.conf \ scripts/login-wrong-password.conf \ scripts/login-xserver-crash.conf \ scripts/mir-autologin.conf \ scripts/mir-container-session.conf \ scripts/mir-greeter.conf \ scripts/mir-script-hooks.conf \ scripts/mir-session.conf \ scripts/mir-session-compositor-crash.conf \ scripts/mir-session-crash.conf \ scripts/multi-seat.conf \ scripts/multi-seat-change-graphical.conf \ scripts/multi-seat-change-graphical-disabled.conf \ scripts/multi-seat-non-graphical.conf \ scripts/multi-seat-non-graphical-disabled.conf \ scripts/multi-seat-seat0-non-graphical.conf \ scripts/multi-seat-seat0-non-graphical-disabled.conf \ scripts/multi-seat-globbing-config-sections.conf \ scripts/no-accounts-service.conf \ scripts/no-config.conf \ scripts/no-console-kit.conf \ scripts/no-console-kit-or-login1.conf \ scripts/no-login1.conf \ scripts/open-file-descriptors.conf \ scripts/power.conf \ scripts/power-no-console-kit.conf \ scripts/power-no-services.conf \ scripts/power-no-login1.conf \ scripts/plymouth-active-vt.conf \ scripts/plymouth-inactive-vt.conf \ scripts/plymouth-no-seat.conf \ scripts/restart-authentication.conf \ scripts/shared-data-greeter-to-session.conf \ scripts/shared-data-invalid-user.conf \ scripts/shared-data-session-to-greeter.conf \ scripts/shared-data-session-to-greeter-autologin.conf \ scripts/script-hooks.conf \ scripts/script-hook-display-setup-fail.conf \ scripts/script-hook-display-setup-missing.conf \ scripts/script-hook-greeter-setup-fail.conf \ scripts/script-hook-greeter-setup-missing.conf \ scripts/script-hook-session-setup-fail.conf \ scripts/script-hook-session-setup-missing.conf \ scripts/session-stdout.conf \ scripts/session-stderr.conf \ scripts/session-stderr-multi-write.conf \ scripts/session-stderr-backup.conf \ scripts/switch-to-greeter.conf \ scripts/switch-to-greeter-disabled.conf \ scripts/switch-to-greeter-new-session.conf \ scripts/switch-to-greeter-resettable.conf \ scripts/switch-to-greeter-return-session.conf \ scripts/switch-to-greeter-return-session-logout.conf \ scripts/switch-to-greeter-return-session-pam.conf \ scripts/switch-to-guest.conf \ scripts/switch-to-guest-disabled.conf \ scripts/switch-to-guest-fail-resettable.conf \ scripts/switch-to-user.conf \ scripts/switch-to-users.conf \ scripts/switch-to-user-active.conf \ scripts/switch-to-user-disabled.conf \ scripts/switch-to-user-existing.conf \ scripts/switch-to-user-existing-no-password.conf \ scripts/switch-to-user-existing-resettable.conf \ scripts/switch-to-user-logout-active.conf \ scripts/switch-to-user-logout-active-resettable.conf \ scripts/switch-to-user-logout-inactive.conf \ scripts/switch-to-user-no-password.conf \ scripts/switch-to-user-resettable.conf \ scripts/system-xauthority.conf \ scripts/unity-autologin.conf \ scripts/unity-autologin-legacy.conf \ scripts/unity-compositor-command.conf \ scripts/unity-compositor-crash.conf \ scripts/unity-compositor-fail-ready.conf \ scripts/unity-compositor-fail-start.conf \ scripts/unity-compositor-fallback.conf \ scripts/unity-compositor-mir-next-session.conf \ scripts/unity-compositor-next-session.conf \ scripts/unity-compositor-not-found.conf \ scripts/unity-login.conf \ scripts/unity-mir-autologin.conf \ scripts/unity-mir-greeter-mir-session.conf \ scripts/unity-mir-lock-seat.conf \ scripts/unity-mir-greeter-x-session.conf \ scripts/unity-mir-script-hooks.conf \ scripts/unity-mir-session-x-greeter.conf \ scripts/unity-mir-switch.conf \ scripts/unity-mir-switch-to-user-resettable.conf \ scripts/unity-plymouth.conf \ scripts/unity-script-hooks.conf \ scripts/unity-switch.conf \ scripts/upstart-autologin.conf \ scripts/upstart-login.conf \ scripts/users.conf \ scripts/user-background.conf \ scripts/user-has-messages.conf \ scripts/user-image.conf \ scripts/user-layout.conf \ scripts/user-logged-in.conf \ scripts/user-name.conf \ scripts/user-renamed.conf \ scripts/user-renamed-invalid.conf \ scripts/user-session.conf \ scripts/user-uid.conf \ scripts/utmp-autologin.conf \ scripts/utmp-login.conf \ scripts/utmp-wrong-password.conf \ scripts/vnc-command.conf \ scripts/vnc-dimensions.conf \ scripts/vnc-guest.conf \ scripts/vnc-login.conf \ scripts/vnc-open-file-descriptors.conf \ scripts/wayland-autologin.conf \ scripts/wayland-greeter.conf \ scripts/wayland-session.conf \ scripts/xauthority.conf \ scripts/xdg-current-desktop.conf \ scripts/xdg-current-desktop-legacy.conf \ scripts/xdmcp-client.conf \ scripts/xdmcp-client-xorg-1.16.conf \ scripts/xdmcp-server-autologin.conf \ scripts/xdmcp-server-double-login.conf \ scripts/xdmcp-server-guest.conf \ scripts/xdmcp-server-invalid-authentication.conf \ scripts/xdmcp-server-keep-alive.conf \ scripts/xdmcp-server-login.conf \ scripts/xdmcp-server-open-file-descriptors.conf \ scripts/xdmcp-server-request-invalid-authentication.conf \ scripts/xdmcp-server-request-invalid-authorization.conf \ scripts/xdmcp-server-request-without-addresses.conf \ scripts/xdmcp-server-request-without-authorization.conf \ scripts/xdmcp-server-xdm-authentication.conf \ scripts/xdmcp-server-xdm-authentication-invalid-authorization.conf \ scripts/xdmcp-server-xdm-authentication-long-data.conf \ scripts/xdmcp-server-xdm-authentication-missing-key.conf \ scripts/xdmcp-server-xdm-authentication-missing-data.conf \ scripts/xdmcp-server-xdm-authentication-no-key.conf \ scripts/xdmcp-server-xdm-authentication-required.conf \ scripts/xdmcp-server-xdm-authentication-short-data.conf \ scripts/xremote-autologin.conf \ scripts/xremote-login.conf \ scripts/xserver-config.conf \ scripts/xserver-fail-start.conf \ scripts/xserver-no-share.conf \ scripts/seatdefaults-still-supported.conf lightdm-1.18.1/tests/test-power-no-console-kit-qt40000775000000000000000000000012112700600465016662 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power-no-console-kit test-qt4-greeter lightdm-1.18.1/tests/test-login-qt40000775000000000000000000000010212700600465013776 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login test-qt4-greeter lightdm-1.18.1/tests/test-vnc-guest0000775000000000000000000000011212700600465014074 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner vnc-guest test-gobject-greeter lightdm-1.18.1/tests/test-login-guest-pick-session-python0000775000000000000000000000013012700600465020342 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-pick-session test-python-greeter lightdm-1.18.1/tests/test-language-env0000775000000000000000000000011512700600465014535 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner language-env test-gobject-greeter lightdm-1.18.1/tests/test-user-renamed-invalid0000775000000000000000000000012512700600465016200 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner user-renamed-invalid test-gobject-greeter lightdm-1.18.1/tests/test-power-no-login1-gobject0000775000000000000000000000012012700600465016530 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power-no-login1 test-gobject-greeter lightdm-1.18.1/tests/test-unity-plymouth0000775000000000000000000000011712700600465015215 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-plymouth test-gobject-greeter lightdm-1.18.1/tests/test-shared-data-session-to-greeter-autologin0000775000000000000000000000015112700600465022074 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner shared-data-session-to-greeter-autologin test-gobject-greeter lightdm-1.18.1/tests/test-session-stderr0000775000000000000000000000011712700600465015152 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner session-stderr test-gobject-greeter lightdm-1.18.1/tests/test-group-membership0000775000000000000000000000012112700600465015446 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner group-membership test-gobject-greeter lightdm-1.18.1/tests/test-login-remote-session-qt50000775000000000000000000000012112700600465016752 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-remote-session test-qt5-greeter lightdm-1.18.1/tests/test-power-no-login1-python0000775000000000000000000000011712700600465016442 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power-no-login1 test-python-greeter lightdm-1.18.1/tests/test-xdmcp-client0000775000000000000000000000011512700600465014553 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-client test-gobject-greeter lightdm-1.18.1/tests/test-autologin-invalid-user0000775000000000000000000000012712700600465016570 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-invalid-user test-gobject-greeter lightdm-1.18.1/tests/test-login-qt50000775000000000000000000000010212700600465013777 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login test-qt5-greeter lightdm-1.18.1/tests/test-login-xserver-crash0000775000000000000000000000012412700600465016066 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-xserver-crash test-gobject-greeter lightdm-1.18.1/tests/test-xdmcp-server-open-file-descriptors0000775000000000000000000000014312700600465021017 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-open-file-descriptors test-gobject-greeter lightdm-1.18.1/tests/test-autologin-guest0000775000000000000000000000012012700600465015306 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest test-gobject-greeter lightdm-1.18.1/tests/test-greeter-not-installed0000775000000000000000000000012112700600465016371 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner greeter-not-installed invalid-greeter lightdm-1.18.1/tests/test-login-new-authtok-python0000775000000000000000000000012112700600465017054 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-new-authtok test-python-greeter lightdm-1.18.1/tests/test-switch-to-greeter-return-session-pam0000775000000000000000000000014512700600465021314 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter-return-session-pam test-gobject-greeter lightdm-1.18.1/tests/test-shared-data-invalid-user0000775000000000000000000000013112700600465016737 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner shared-data-invalid-user test-gobject-greeter lightdm-1.18.1/tests/test-login-manual-qt50000775000000000000000000000011112700600465015252 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-manual test-qt5-greeter lightdm-1.18.1/tests/test-corrupt-xauthority0000775000000000000000000000012312700600465016077 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner corrupt-xauthority test-gobject-greeter lightdm-1.18.1/tests/test-autologin-timeout-gobject0000775000000000000000000000012212700600465017262 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-timeout test-gobject-greeter lightdm-1.18.1/tests/test-login-no-password-qt40000775000000000000000000000011612700600465016255 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-no-password test-qt4-greeter lightdm-1.18.1/tests/test-expired0000775000000000000000000000011012700600465013617 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner expired test-gobject-greeter lightdm-1.18.1/tests/test-xdg-current-desktop-legacy0000775000000000000000000000013312700600465017337 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdg-current-desktop-legacy test-gobject-greeter lightdm-1.18.1/tests/data/0000775000000000000000000000000012700603563012177 5ustar lightdm-1.18.1/tests/data/remote-sessions/0000775000000000000000000000000012700603563015336 5ustar lightdm-1.18.1/tests/data/remote-sessions/test-remote.desktop0000664000000000000000000000020112700600465021170 0ustar [Desktop Entry] Name=Test Remote Session Comment=LightDM remote test session Exec=test-session X-LightDM-PAM-Service=test-remote lightdm-1.18.1/tests/data/session.conf0000664000000000000000000000034312700600465014527 0ustar session unix:tmpdir=/tmp lightdm-1.18.1/tests/data/sessions/0000775000000000000000000000000012700603563014045 5ustar lightdm-1.18.1/tests/data/sessions/alternative.desktop0000664000000000000000000000016512700600465017756 0ustar [Desktop Entry] Name=Alternative Test Session Comment=LightDM alternative test session Exec=test-session alternative lightdm-1.18.1/tests/data/sessions/mir-container.desktop0000664000000000000000000000030212700600465020200 0ustar [Desktop Entry] Name=Test Session Comment=LightDM test Mir session Exec=test-session X-LightDM-Session-Type=mir-container X-LightDM-System-Compositor-Command=unity-system-compositor --container lightdm-1.18.1/tests/data/sessions/wayland.desktop0000664000000000000000000000017012700600465017073 0ustar [Desktop Entry] Name=Test Session Comment=LightDM test Wayland session Exec=test-session X-LightDM-Session-Type=wayland lightdm-1.18.1/tests/data/sessions/named.desktop0000664000000000000000000000017112700600465016521 0ustar [Desktop Entry] Name=Test Session Comment=LightDM test session Exec=test-session DesktopNames=TestDesktop1;TestDesktop2; lightdm-1.18.1/tests/data/sessions/named-legacy.desktop0000664000000000000000000000016312700600465017764 0ustar [Desktop Entry] Name=Test Session Comment=LightDM test session Exec=test-session X-LightDM-DesktopName=TestDesktop lightdm-1.18.1/tests/data/sessions/mir.desktop0000664000000000000000000000016012700600465016222 0ustar [Desktop Entry] Name=Test Session Comment=LightDM test Mir session Exec=test-session X-LightDM-Session-Type=mir lightdm-1.18.1/tests/data/sessions/default.desktop0000664000000000000000000000012112700600465017054 0ustar [Desktop Entry] Name=Test Session Comment=LightDM test session Exec=test-session lightdm-1.18.1/tests/data/greeters/0000775000000000000000000000000012700603563014017 5ustar lightdm-1.18.1/tests/data/greeters/test-gobject-greeter.desktop0000664000000000000000000000015112700600465021432 0ustar [Desktop Entry] Name=Test GObject Greeter Comment=LightDM test GObject greeter Exec=test-gobject-greeter lightdm-1.18.1/tests/data/greeters/test-mir-greeter.desktop0000664000000000000000000000017412700600465020611 0ustar [Desktop Entry] Name=Test Mir Greeter Comment=LightDM test Mir greeter Exec=test-gobject-greeter X-LightDM-Session-Type=mir lightdm-1.18.1/tests/data/greeters/test-wayland-greeter.desktop0000664000000000000000000000021012700600465021450 0ustar [Desktop Entry] Name=Test Wayland Greeter Comment=LightDM test Wayland greeter Exec=test-gobject-greeter X-LightDM-Session-Type=wayland lightdm-1.18.1/tests/data/greeters/test-qt5-greeter.desktop0000664000000000000000000000013512700600465020530 0ustar [Desktop Entry] Name=Test Qt5 Greeter Comment=LightDM test Qt5 greeter Exec=test-qt5-greeter lightdm-1.18.1/tests/data/greeters/test-qt4-greeter.desktop0000664000000000000000000000013512700600465020527 0ustar [Desktop Entry] Name=Test Qt4 Greeter Comment=LightDM test Qt4 greeter Exec=test-qt4-greeter lightdm-1.18.1/tests/data/greeters/test-python-greeter.desktop0000664000000000000000000000014612700600465021342 0ustar [Desktop Entry] Name=Test Python Greeter Comment=LightDM test Python greeter Exec=test-python-greeter lightdm-1.18.1/tests/data/system.conf0000664000000000000000000000034212700600465014367 0ustar system unix:tmpdir=/tmp lightdm-1.18.1/tests/data/keys.conf0000664000000000000000000000004412700600465014015 0ustar [keyring] test-key=0123456789ABCDEF lightdm-1.18.1/tests/test-unity-compositor-fallback0000775000000000000000000000013212700600465017264 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-compositor-fallback test-gobject-greeter lightdm-1.18.1/tests/test-login-wrong-password-gobject0000775000000000000000000000012512700600465017702 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-wrong-password test-gobject-greeter lightdm-1.18.1/tests/test-login-crash-authenticate0000775000000000000000000000013112700600465017044 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-crash-authenticate test-gobject-greeter lightdm-1.18.1/tests/test-lock-seat0000775000000000000000000000011212700600465014043 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner lock-seat test-gobject-greeter lightdm-1.18.1/tests/test-xdmcp-server-double-login0000775000000000000000000000013212700600465017160 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-double-login test-gobject-greeter lightdm-1.18.1/tests/test-unity-compositor-mir-next-session0000775000000000000000000000013612700600465020755 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-compositor-mir-next-session test-mir-greeter lightdm-1.18.1/tests/test-login-manual-remember-session-gobject0000775000000000000000000000013612700600465021442 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-manual-remember-session test-gobject-greeter lightdm-1.18.1/tests/test-login-logout-python0000775000000000000000000000011412700600465016121 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-logout test-python-greeter lightdm-1.18.1/tests/test-plymouth-inactive-vt0000775000000000000000000000012512700600465016275 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner plymouth-inactive-vt test-gobject-greeter lightdm-1.18.1/tests/test-login-previous-session-qt40000775000000000000000000000012312700600465017334 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-previous-session test-qt4-greeter lightdm-1.18.1/tests/test-login-new-authtok-qt40000775000000000000000000000011612700600465016247 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-new-authtok test-qt4-greeter lightdm-1.18.1/tests/test-unity-mir-greeter-x-session0000775000000000000000000000013012700600465017477 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-mir-greeter-x-session test-mir-greeter lightdm-1.18.1/tests/test-xdmcp-server-xdm-authentication-missing-key0000775000000000000000000000015412700600465022646 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-missing-key test-gobject-greeter lightdm-1.18.1/tests/test-multi-seat-change-graphical0000775000000000000000000000013412700600465017424 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-change-graphical test-gobject-greeter lightdm-1.18.1/tests/test-login-pam0000775000000000000000000000011212700600465014044 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-pam test-gobject-greeter lightdm-1.18.1/tests/test-login-logout-qt40000775000000000000000000000011112700600465015305 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-logout test-qt4-greeter lightdm-1.18.1/tests/test-login-wrong-password-qt50000775000000000000000000000012112700600465016772 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-wrong-password test-qt5-greeter lightdm-1.18.1/tests/test-switch-to-greeter-return-session-logout0000775000000000000000000000015012700600465022044 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter-return-session-logout test-gobject-greeter lightdm-1.18.1/tests/test-unity-script-hooks0000775000000000000000000000012312700600465015756 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-script-hooks test-gobject-greeter lightdm-1.18.1/tests/test-power-no-services-qt50000775000000000000000000000011612700600465016263 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power-no-services test-qt5-greeter lightdm-1.18.1/tests/test-unity-login0000775000000000000000000000011412700600465014441 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-login test-gobject-greeter lightdm-1.18.1/tests/test-console-kit-no-xdg-runtime0000775000000000000000000000013312700600465017266 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner console-kit-no-xdg-runtime test-gobject-greeter lightdm-1.18.1/tests/test-xdmcp-server-xdm-authentication-required0000775000000000000000000000015112700600465022224 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-required test-gobject-greeter lightdm-1.18.1/tests/test-upstart-login0000775000000000000000000000011612700600465014775 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner upstart-login test-gobject-greeter lightdm-1.18.1/tests/test-power-no-console-kit-python0000775000000000000000000000012412700600465017476 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power-no-console-kit test-python-greeter lightdm-1.18.1/tests/test-xdmcp-server-xdm-authentication0000775000000000000000000000014012700600465020404 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication test-gobject-greeter lightdm-1.18.1/tests/test-script-hook-display-setup-missing0000775000000000000000000000014212700600465020676 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner script-hook-display-setup-missing test-gobject-greeter lightdm-1.18.1/tests/scripts/0000775000000000000000000000000012700603563012755 5ustar lightdm-1.18.1/tests/scripts/login-logout.conf0000664000000000000000000000331112700600465016237 0ustar # # Check logging out returns to the greeter # [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log in #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout session #?*SESSION-X-0 LOGOUT # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-long-password.conf0000664000000000000000000000173512700600465017535 0ustar # # Check can handle very long password being provided # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log in with a very long username #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=FALSE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-mir-session-x-greeter.conf0000664000000000000000000000274412700600465021147 0ustar # # Check can log into a Mir session from an X greeter # [Seat:*] type=unity user-session=mir #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # X server starts #?XMIR-0 START SEAT=seat0 MIR-ID=x-0 # Daemon connects when X server is ready #?*XMIR-0 INDICATE-READY #?XMIR-0 INDICATE-READY #?XMIR-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XMIR-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # System compositor switches to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0 # Log into account #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION # Session starts #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 # System compositor switches to session #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0 # Greeter quits once session ready #?GREETER-X-0 TERMINATE SIGNAL=15 #?XMIR-0 TERMINATE SIGNAL=15 # Cleanup #?*STOP-DAEMON #?SESSION-MIR-session-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/crash-authenticate.conf0000664000000000000000000000143512700600465017401 0ustar # # Check authentication crash on autologin is handled # [Seat:*] autologin-user=crash-authenticate user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # (authentication crashes) # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?GREETER-X-0 SELECT-USER-HINT USERNAME=crash-authenticate # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/script-hook-session-setup-fail.conf0000664000000000000000000000163612700600465021622 0ustar # # Check LightDM returns to the greeter if the session setup script fails # [Seat:*] session-setup-script=test-script-hook SESSION-SETUP 1 autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # One X server should start by default #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Setup script fails #?SCRIPT-HOOK SESSION-SETUP USER=have-password1 # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?GREETER-X-0 SELECT-USER-HINT USERNAME=have-password1 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/greeter-wrapper.conf0000664000000000000000000000132312700600465016734 0ustar # # Check greeter wrapper works # [Seat:*] greeter-wrapper=test-greeter-wrapper #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter wrapper starts #?GREETER-WRAPPER-X-0 START # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-pick-session.conf0000664000000000000000000000221512700600465017337 0ustar # # Check can login and pick an alternative session # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Login and pick a session #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION SESSION=alternative #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=alternative NAME=alternative USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/greeter-crash.conf0000664000000000000000000000121712700600465016356 0ustar # # Check crashing greeter stops daemon # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Crash greeter #?*GREETER-X-0 CRASH # X server stopped #?XSERVER-0 TERMINATE SIGNAL=15 # Daemon stops with error #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/user-name.conf0000664000000000000000000000321512700600465015517 0ustar # # Check returns correct real/display name for a user # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Watch a user for properties changes #?*GREETER-X-0 WATCH-USER USERNAME=prop-user #?GREETER-X-0 WATCH-USER USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=REAL-NAME,DISPLAY-NAME #?GREETER-X-0 LOG-USER USERNAME=prop-user REAL-NAME=TEST DISPLAY-NAME=TEST # Change real name #?*UPDATE-USER USERNAME=prop-user REAL-NAME=RENAMED #?RUNNER UPDATE-USER USERNAME=prop-user REAL-NAME=RENAMED #?GREETER-X-0 USER-CHANGED USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=REAL-NAME #?GREETER-X-0 LOG-USER USERNAME=prop-user REAL-NAME=RENAMED # Check display name reverts to username if real name is blank #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=DISPLAY-NAME #?GREETER-X-0 LOG-USER USERNAME=prop-user DISPLAY-NAME=RENAMED #?*UPDATE-USER USERNAME=prop-user REAL-NAME= #?RUNNER UPDATE-USER USERNAME=prop-user REAL-NAME= #?GREETER-X-0 USER-CHANGED USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=DISPLAY-NAME #?GREETER-X-0 LOG-USER USERNAME=prop-user DISPLAY-NAME=prop-user # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/multi-seat-change-graphical-disabled.conf0000664000000000000000000000231112700600465022623 0ustar # # Check seat graphical status is ignored # #?*START-DAEMON #?RUNNER DAEMON-START # seat0 starts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Add seat1 #?*ADD-SEAT ID=seat1 # seat1 starts #?XSERVER-1 START SEAT=seat1 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 START XDG_SEAT=seat1 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Remove graphical status from seat #?*UPDATE-SEAT ID=seat1 CAN-GRAPHICAL=FALSE # Nothing happens #?*WAIT # Add graphical status back #?*UPDATE-SEAT ID=seat1 CAN-GRAPHICAL=TRUE # Nothing happens #?*WAIT # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/vnc-command.conf0000664000000000000000000000171012700600465016023 0ustar # # Check that LightDM can override the Xvnc command # [LightDM] start-default-seat=false [VNCServer] enabled=true command=Xvnc -option #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a VNC client #?*START-VNC-CLIENT #?VNC-CLIENT START #?VNC-CLIENT CONNECT # Xvnc server starts #?XVNC-0 START GEOMETRY=1024x768 DEPTH=8 OPTION=TRUE # Daemon connects when X server is ready #?*XVNC-0 INDICATE-READY #?XVNC-0 INDICATE-READY #?XVNC-0 ACCEPT-CONNECT # Negotiate with Xvnc #?*XVNC-0 START-VNC #?VNC-CLIENT CONNECTED VERSION="RFB 003.007" #?XVNC-0 VNC-CLIENT-CONNECT VERSION="RFB 003.003" # Greeter starts and connects to remote X server #?GREETER-X-0 START XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XVNC-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Clean up #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XVNC-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/power.conf0000664000000000000000000000244612700600465014764 0ustar # # Check can do power operations from the greeter # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # See if can suspend #?*GREETER-X-0 GET-CAN-SUSPEND #?LOGIN1 CAN-SUSPEND #?GREETER-X-0 CAN-SUSPEND ALLOWED=TRUE # Suspend #?*GREETER-X-0 SUSPEND #?LOGIN1 SUSPEND # See if can hibernate #?*GREETER-X-0 GET-CAN-HIBERNATE #?LOGIN1 CAN-HIBERNATE #?GREETER-X-0 CAN-HIBERNATE ALLOWED=TRUE # Hibernate #?*GREETER-X-0 HIBERNATE #?LOGIN1 HIBERNATE # See if can restart #?*GREETER-X-0 GET-CAN-RESTART #?LOGIN1 CAN-REBOOT #?GREETER-X-0 CAN-RESTART ALLOWED=TRUE # Restart #?*GREETER-X-0 RESTART #?LOGIN1 REBOOT # See if can shutdown #?*GREETER-X-0 GET-CAN-SHUTDOWN #?LOGIN1 CAN-POWER-OFF #?GREETER-X-0 CAN-SHUTDOWN ALLOWED=TRUE # Shutdown #?*GREETER-X-0 SHUTDOWN #?LOGIN1 POWER-OFF # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin.conf0000664000000000000000000000131012700600465015616 0ustar # # Check automatically logs in default user # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/users.conf0000664000000000000000000000323312700600465014764 0ustar # # Check can use greeter user API # [test-runner-config] accounts-service-user-filter=have-password1 have-password2 [test-greeter-config] log-user-changes=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Check user list is as expected #?*GREETER-X-0 LOG-USER-LIST-LENGTH #?GREETER-X-0 LOG-USER-LIST-LENGTH N=2 #?*GREETER-X-0 LOG-USER-LIST #?GREETER-X-0 LOG-USER USERNAME=have-password1 #?GREETER-X-0 LOG-USER USERNAME=have-password2 # Add a user #?*ADD-USER USERNAME=have-password3 #?RUNNER ADD-USER USERNAME=have-password3 #?GREETER-X-0 USER-ADDED USERNAME=have-password3 #?*GREETER-X-0 LOG-USER-LIST-LENGTH #?GREETER-X-0 LOG-USER-LIST-LENGTH N=3 #?*GREETER-X-0 LOG-USER-LIST #?GREETER-X-0 LOG-USER USERNAME=have-password1 #?GREETER-X-0 LOG-USER USERNAME=have-password2 #?GREETER-X-0 LOG-USER USERNAME=have-password3 # Add a system user (ignored) #?*ADD-USER USERNAME=lightdm #?RUNNER ADD-USER USERNAME=lightdm # Remove a user #?*DELETE-USER USERNAME=have-password3 #?RUNNER DELETE-USER USERNAME=have-password3 #?GREETER-X-0 USER-REMOVED USERNAME=have-password3 #?*GREETER-X-0 LOG-USER-LIST-LENGTH #?GREETER-X-0 LOG-USER-LIST-LENGTH N=2 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-wrong-password.conf0000664000000000000000000000156412700600465017732 0ustar # # Check can't login with an invalid password # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Login with invalid password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="rubbish" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=FALSE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-compositor-crash.conf0000664000000000000000000000164612700600465020273 0ustar # # Check LightDM ? if the compositor crashes # [Seat:*] type=unity #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # X server starts #?XMIR-0 START SEAT=seat0 MIR-ID=x-0 # Daemon connects when X server is ready #?*XMIR-0 INDICATE-READY #?XMIR-0 INDICATE-READY #?XMIR-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XMIR-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # System compositor switches to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0 # Crash system compositor #?*UNITY-SYSTEM-COMPOSITOR CRASH # Daemon exits with error code #?GREETER-X-0 TERMINATE SIGNAL=15 #?XMIR-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/session-stderr-backup.conf0000664000000000000000000000640112700600465020052 0ustar # # Check session log is backed up and restart on second login # [Seat:*] autologin-user=no-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Write to stderr and check it shows up in the log #?*SESSION-X-0 WRITE-STDERR TEXT=FIRST-SESSION #?*SESSION-X-0 READ FILE=.xsession-errors #?SESSION-X-0 READ FILE=.xsession-errors TEXT=FIRST-SESSION # Restart session #?*SESSION-X-0 LOGOUT #?XSERVER-0 TERMINATE SIGNAL=15 #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Write to stderr and check it shows up in the log #?*SESSION-X-0 WRITE-STDERR TEXT=SECOND-SESSION #?*SESSION-X-0 READ FILE=.xsession-errors #?SESSION-X-0 READ FILE=.xsession-errors TEXT=SECOND-SESSION # Check first log is backed up #?*SESSION-X-0 READ FILE=.xsession-errors.old #?SESSION-X-0 READ FILE=.xsession-errors.old TEXT=FIRST-SESSION # Restart session #?*SESSION-X-0 LOGOUT #?XSERVER-0 TERMINATE SIGNAL=15 #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c3 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c4 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Write to stderr and check it shows up in the log #?*SESSION-X-0 WRITE-STDERR TEXT=THIRD-SESSION #?*SESSION-X-0 READ FILE=.xsession-errors #?SESSION-X-0 READ FILE=.xsession-errors TEXT=THIRD-SESSION # Check second log is backed up #?*SESSION-X-0 READ FILE=.xsession-errors.old #?SESSION-X-0 READ FILE=.xsession-errors.old TEXT=SECOND-SESSION # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-compositor-fail-ready.conf0000664000000000000000000000066312700600465021206 0ustar # # Check clean stop when the compositor fails to indicate it is ready # [Seat:*] type=unity unity-compositor-timeout=1 #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts but doesn't indicate it is ready #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 # Timeout and compositor is stopped #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 # Daemon exits with error code #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/vnc-login.conf0000664000000000000000000000305312700600465015517 0ustar # # Check that LightDM correctly negotiates VNC and starts the session to the remote server. # [LightDM] start-default-seat=false [VNCServer] enabled=true [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a VNC client #?*START-VNC-CLIENT #?VNC-CLIENT START #?VNC-CLIENT CONNECT # Xvnc server starts #?XVNC-0 START GEOMETRY=1024x768 DEPTH=8 OPTION=FALSE # Daemon connects when X server is ready #?*XVNC-0 INDICATE-READY #?XVNC-0 INDICATE-READY #?XVNC-0 ACCEPT-CONNECT # Negotiate with Xvnc #?*XVNC-0 START-VNC #?VNC-CLIENT CONNECTED VERSION="RFB 003.007" # VNC client connects to X server #?XVNC-0 VNC-CLIENT-CONNECT VERSION="RFB 003.003" # Greeter starts and connects to remote X server #?GREETER-X-0 START XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XVNC-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log in #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XVNC-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Clean up #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XVNC-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-pam.conf0000664000000000000000000000205012700600465016373 0ustar # # Check we correctly use PAM for automatic login # [Seat:*] autologin-user=no-password1 user-session=default [test-pam] log-events=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session authenticates #?PAM-no-password1 START SERVICE=lightdm-autologin USER=no-password1 #?PAM-no-password1 AUTHENTICATE #?PAM-no-password1 ACCT-MGMT #?PAM-no-password1 SETCRED ESTABLISH_CRED #?PAM-no-password1 OPEN-SESSION # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?PAM-no-password1 CLOSE-SESSION #?PAM-no-password1 SETCRED DELETE_CRED #?PAM-no-password1 END #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/upstart-autologin.conf0000664000000000000000000000155212700600465017326 0ustar # # Check emits upstart events on autologin # [Seat:*] autologin-user=have-password1 user-session=default [test-initctl-config] report-events=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?INIT -q emit login-session-start DISPLAY_MANAGER=lightdm #?INIT -q emit desktop-session-start DISPLAY_MANAGER=lightdm # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-multi-info-prompt.conf0000664000000000000000000000223512700600465020334 0ustar # # Check multiple PAM informational messages on login are passed to a greeter # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account and see an informational prompt #?*GREETER-X-0 AUTHENTICATE USERNAME=multi-info-prompt #?GREETER-X-0 SHOW-MESSAGE TEXT="Welcome to LightDM" #?GREETER-X-0 SHOW-MESSAGE TEXT="This is an error" #?GREETER-X-0 SHOW-MESSAGE TEXT="You should have seen three messages" #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" # Respond with password and check response is correctly handled #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=multi-info-prompt AUTHENTICATED=TRUE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-user-existing.conf0000664000000000000000000000520512700600465020351 0ustar # # Check that switching to an existing account with a password shows the greeter # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Switch to another user #?*SWITCH-TO-USER USERNAME=no-password1 #?RUNNER SWITCH-TO-USER USERNAME=no-password1 # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Old session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # New session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to new session #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Switch back to first user #?*SWITCH-TO-USER USERNAME=have-password1 #?RUNNER SWITCH-TO-USER USERNAME=have-password1 # X server starts #?XSERVER-2 START VT=9 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-2 INDICATE-READY #?XSERVER-2 INDICATE-READY #?XSERVER-2 ACCEPT-CONNECT # New session is locked #?LOGIN1 LOCK-SESSION SESSION=c1 # Greeter starts #?GREETER-X-2 START XDG_SEAT=seat0 XDG_VTNR=9 XDG_SESSION_CLASS=greeter #?XSERVER-2 ACCEPT-CONNECT #?GREETER-X-2 CONNECT-XSERVER #?GREETER-X-2 CONNECT-TO-DAEMON #?GREETER-X-2 CONNECTED-TO-DAEMON #?GREETER-X-2 SELECT-USER-HINT USERNAME=have-password1 # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?VT ACTIVATE VT=9 # Log into new account #?*GREETER-X-2 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-2 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-2 RESPOND TEXT="password" #?GREETER-X-2 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-2 START-SESSION #?GREETER-X-2 TERMINATE SIGNAL=15 # Greeter X server terminates #?XSERVER-2 TERMINATE SIGNAL=15 # Old session is unlocked #?LOGIN1 UNLOCK-SESSION SESSION=c0 # Switch to first session #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?VT ACTIVATE VT=7 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/upstart-login.conf0000664000000000000000000000257512700600465016443 0ustar # # Check emits upstart events on login # [Seat:*] user-session=default [test-initctl-config] report-events=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?INIT -q emit login-session-start DISPLAY_MANAGER=lightdm # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 #?INIT -q emit desktop-session-start DISPLAY_MANAGER=lightdm # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-xdm-authentication-missing-key.conf0000664000000000000000000000043612700600465024304 0ustar # # Check that a remote X server can't login if requires XDM authentication and we're not configured for it # [LightDM] start-default-seat=false [XDMCPServer] enabled=true key=no-such-key #?*START-DAEMON #?RUNNER DAEMON-START # Daemon stops with error #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/multi-seat-non-graphical.conf0000664000000000000000000000127012700600465020426 0ustar # # Check non graphical seats are ignored # [LightDM] logind-check-graphical=true #?*START-DAEMON #?RUNNER DAEMON-START # seat0 starts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Add seat1 #?*ADD-SEAT ID=seat1 CAN-GRAPHICAL=FALSE # Check no seat is added #?*WAIT # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-timeout.conf0000664000000000000000000000241212700600465017306 0ustar # # Check automatically logs in default user # [Seat:*] autologin-user=have-password1 autologin-user-timeout=99 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Greeter is requested to timeout #?GREETER-X-0 AUTOLOGIN-USER USERNAME=have-password1 TIMEOUT=99 # Trigger autologin #?*GREETER-X-0 AUTHENTICATE-AUTOLOGIN #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/lock-seat-console-kit.conf0000664000000000000000000000300012700600465017722 0ustar # # Check can lock a seat from D-Bus using ConsoleKit # [test-runner-config] disable-login1=true [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_COOKIE=ck-cookie-x:0 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?CONSOLE-KIT ACTIVATE-SESSION SESSION=ck-cookie-x:0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Lock the seat #?*SESSION-X-0 LOCK-SEAT #?SESSION-X-0 LOCK-SEAT # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?CONSOLE-KIT LOCK-SESSION # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_COOKIE=ck-cookie-x:1 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON #?GREETER-X-1 LOCK-HINT # Switch to greeter #?CONSOLE-KIT ACTIVATE-SESSION SESSION=ck-cookie-x:1 #?VT ACTIVATE VT=8 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-invalid-session.conf0000664000000000000000000000173012700600465020040 0ustar # # Check can login # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into an account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE # Attempt to start the session, it will fail #?*GREETER-X-0 START-SESSION SESSION=invalid #?GREETER-X-0 SESSION-FAILED # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/no-login1.conf0000664000000000000000000000145112700600465015426 0ustar # # Check still works when login1 is not available # [test-runner-config] disable-login1=true [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_COOKIE=ck-cookie-x:0 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?CONSOLE-KIT ACTIVATE-SESSION SESSION=ck-cookie-x:0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-greeter-disabled.conf0000664000000000000000000000163612700600465020751 0ustar # # Check can't switch to greeter when disabled # [Seat:*] autologin-user=have-password1 user-session=default allow-user-switching=false #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check daemon says we can't switch #?*SEAT-CAN-SWITCH #?RUNNER SEAT-CAN-SWITCH CAN-SWITCH=FALSE # Attempt to show the greeter #?*SWITCH-TO-GREETER #?RUNNER SWITCH-TO-GREETER FAILED # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/greeter-not-installed.conf0000664000000000000000000000036212700600465020033 0ustar # # Check that LightDM quits when the greeter does not exist # [test-greeter-config] return-value=1 #?*START-DAEMON #?RUNNER DAEMON-START # Invalid greeter attempted, fails to start # Daemon stops with error #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/xdmcp-server-login.conf0000664000000000000000000000344312700600465017353 0ustar # # Check that a remote X server can login via XDMCP # [LightDM] start-default-seat=false [XDMCPServer] enabled=true [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect - daemon says OK #?*XSERVER-98 SEND-QUERY #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="" STATUS="" # Connect - daemon says OK #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHORIZATION-NAMES="MIT-MAGIC-COOKIE-1" #?XSERVER-98 GOT-ACCEPT SESSION-ID=[0-9]+ AUTHENTICATION-NAME="" AUTHENTICATION-DATA= AUTHORIZATION-NAME="MIT-MAGIC-COOKIE-1" AUTHORIZATION-DATA=[0-9A-F]{32} #?*XSERVER-98 SEND-MANAGE # LightDM connects to X server #?XSERVER-98 ACCEPT-CONNECT # Greeter starts and connects to remote X server #?GREETER-X-127.0.0.1:98 START XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-98 ACCEPT-CONNECT #?GREETER-X-127.0.0.1:98 CONNECT-XSERVER #?GREETER-X-127.0.0.1:98 CONNECT-TO-DAEMON #?GREETER-X-127.0.0.1:98 CONNECTED-TO-DAEMON # Log in #?*GREETER-X-127.0.0.1:98 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-127.0.0.1:98 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-127.0.0.1:98 RESPOND TEXT="password" #?GREETER-X-127.0.0.1:98 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-127.0.0.1:98 START-SESSION #?GREETER-X-127.0.0.1:98 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-127.0.0.1:98 START XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-98 ACCEPT-CONNECT #?SESSION-X-127.0.0.1:98 CONNECT-XSERVER # Clean up #?*STOP-DAEMON #?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/cancel-authentication.conf0000664000000000000000000000164212700600465020067 0ustar # # Check can cancel authentication # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Start authentication #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" # Cancel authentication #?*GREETER-X-0 CANCEL-AUTHENTICATION # Start new authentication #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password2 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/allow-tcp.conf0000664000000000000000000000134012700600465015522 0ustar # # Check can enable TCP listening # [Seat:*] autologin-user=have-password1 user-session=default xserver-allow-tcp=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 LISTEN-TCP SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/script-hook-greeter-setup-missing.conf0000664000000000000000000000070612700600465022327 0ustar # # Check LightDM stops if the greeter setup script is missing # [Seat:*] greeter-setup-script=test-script-hook-INVALID #?*START-DAEMON #?RUNNER DAEMON-START # One X server should start by default #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Setup script fails #?XSERVER-0 TERMINATE SIGNAL=15 # Cleanup #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/login-guest-no-setup-script.conf0000664000000000000000000000150412700600465021131 0ustar # # Check guest account fails gracefully if no setup script # [LightDM] guest-account-script= #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?GREETER-X-0 HAS-GUEST-ACCOUNT-HINT=FALSE # Login as guest #?*GREETER-X-0 AUTHENTICATE-GUEST #?GREETER-X-0 AUTHENTICATION-COMPLETE AUTHENTICATED=FALSE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-user-existing-resettable.conf0000664000000000000000000000507112700600465022502 0ustar # # Check that switching to an existing account with a password shows the greeter # Uses a resettable greeter # [Seat:*] user-session=default [test-greeter-config] resettable=true #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION # Start new X server for session #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?VT ACTIVATE VT=8 #?GREETER-X-0 IDLE # Session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to another user #?*SWITCH-TO-USER USERNAME=no-password1 #?RUNNER SWITCH-TO-USER USERNAME=no-password1 # New X server starts #?XSERVER-2 START VT=9 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-2 INDICATE-READY #?XSERVER-2 INDICATE-READY #?XSERVER-2 ACCEPT-CONNECT # Old session is locked #?LOGIN1 LOCK-SESSION SESSION=c1 # New session starts #?SESSION-X-2 START XDG_SEAT=seat0 XDG_VTNR=9 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?XSERVER-2 ACCEPT-CONNECT #?SESSION-X-2 CONNECT-XSERVER # Switch to new session #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?VT ACTIVATE VT=9 # Switch back to first user #?*SWITCH-TO-USER USERNAME=have-password1 #?RUNNER SWITCH-TO-USER USERNAME=have-password1 # Which switches to greeter #?LOGIN1 LOCK-SESSION SESSION=c2 #?GREETER-X-0 RESET #?GREETER-X-0 SELECT-USER-HINT USERNAME=have-password1 #?VT ACTIVATE VT=7 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?SESSION-X-2 TERMINATE SIGNAL=15 #?XSERVER-2 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-manual-previous-session.conf0000664000000000000000000000237512700600465021547 0ustar # # Check when logging in manually the previous session is restored # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Login as account with a previous session, but let lightdm prompt for a username #?*GREETER-X-0 AUTHENTICATE #?GREETER-X-0 SHOW-PROMPT TEXT="login:" #?*GREETER-X-0 RESPOND TEXT="have-session" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-session AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-session XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=alternative NAME=alternative USER=have-session #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/cred-error.conf0000664000000000000000000000170712700600465015673 0ustar # # Check automatic login stops if an account can't establish credentials # [Seat:*] autologin-user=cred-error user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # (Session fails) # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/user-renamed-invalid.conf0000664000000000000000000000150312700600465017634 0ustar # # Check if PAM renames the user to one that doesn't exist lightdm handles this # [Seat:*] autologin-user=change-user-invalid user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # (fails to start session for invalid user) # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?GREETER-X-0 SELECT-USER-HINT USERNAME=invalid-user # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/home-dir-on-authenticate.conf0000664000000000000000000000136012700600465020414 0ustar # # Check works for users who have their home directory created after authentication # [Seat:*] autologin-user=mount-home-dir user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/mount-home-dir XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=mount-home-dir #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/additional-config.conf0000664000000000000000000000144512700600465017201 0ustar # # Check LightDM runs with config.d configuration and the value from the last file is used # [test-runner-config] additional-config=0-additional.conf 1-additional.conf [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password2 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/greeter-fail-start.conf0000664000000000000000000000111312700600465017317 0ustar # # Check that LightDM quits when the greeter fails to start # [test-greeter-config] return-value=1 #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter fails to start #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?GREETER-X-0 EXIT CODE=1 # X server stopped #?XSERVER-0 TERMINATE SIGNAL=15 # Daemon stops with error #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/unity-mir-switch-to-user-resettable.conf0000664000000000000000000000347712700600465022615 0ustar # # Check can run a Mir greeter from a VT based seat # Uses a resettable greeter # [Seat:*] type=unity user-session=mir [test-greeter-config] resettable=true #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Greeter starts #?GREETER-MIR-greeter-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?GREETER-MIR-greeter-0 CONNECT-TO-DAEMON #?GREETER-MIR-greeter-0 CONNECTED-TO-DAEMON #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=greeter-0 # Log into account with a password #?*GREETER-MIR-greeter-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-MIR-greeter-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-MIR-greeter-0 START-SESSION # Session starts #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?GREETER-MIR-greeter-0 IDLE #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0 # Switch to an account with a password #?*SWITCH-TO-USER USERNAME=have-password2 #?RUNNER SWITCH-TO-USER USERNAME=have-password2 # Switch to greeter #?LOGIN1 LOCK-SESSION SESSION=c1 #?GREETER-MIR-greeter-0 RESET #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=greeter-0 # Requested user is automatically selected #?GREETER-MIR-greeter-0 SELECT-USER-HINT USERNAME=have-password2 #?*GREETER-MIR-greeter-0 AUTHENTICATE USERNAME=have-password2 #?GREETER-MIR-greeter-0 SHOW-PROMPT TEXT="Password:" # Cleanup #?*STOP-DAEMON #?GREETER-MIR-greeter-0 TERMINATE SIGNAL=15 #?SESSION-MIR-session-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-xserver-crash.conf0000664000000000000000000000231212700600465020413 0ustar # # Check LightDM returns to the greeter if the X server crashes inside a session # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # XServer starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Crash X server #?*XSERVER-0 CRASH # User session is terminated #?SESSION-X-0 TERMINATE SIGNAL=15 # X server restarts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/no-accounts-service.conf0000664000000000000000000000141312700600465017510 0ustar # # Check still works when AccountsService is not available # [test-runner-config] disable-accounts-service=true [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/multi-seat-seat0-non-graphical-disabled.conf0000664000000000000000000000120012700600465023176 0ustar # # Check seat0 is started even if it is marked as non-graphical # [test-runner-config] seat0-can-graphical=false #?*START-DAEMON #?RUNNER DAEMON-START # seat0 starts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/user-session.conf0000664000000000000000000000555012700600465016266 0ustar # # Check get correct user session # [Seat:*] user-session=default [test-greeter-config] log-user-changes=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Check no session set #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=SESSION #?GREETER-X-0 LOG-USER USERNAME=prop-user SESSION= # Log into account #?*GREETER-X-0 AUTHENTICATE USERNAME=prop-user #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=prop-user AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts, check it uses the default session #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/prop-user XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=prop-user #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout session #?*SESSION-X-0 LOGOUT #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Check session stored #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=SESSION #?GREETER-X-0 LOG-USER USERNAME=prop-user SESSION=default # Watch user for properties changes #?*GREETER-X-0 WATCH-USER USERNAME=prop-user #?GREETER-X-0 WATCH-USER USERNAME=prop-user # Change default session #?*UPDATE-USER USERNAME=prop-user SESSION=alternative #?RUNNER UPDATE-USER USERNAME=prop-user SESSION=alternative #?GREETER-X-0 USER-CHANGED USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=SESSION #?GREETER-X-0 LOG-USER USERNAME=prop-user SESSION=alternative # Log into account #?*GREETER-X-0 AUTHENTICATE USERNAME=prop-user #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=prop-user AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts, check it uses the updated session #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/prop-user XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=alternative NAME=alternative USER=prop-user #?LOGIN1 ACTIVATE-SESSION SESSION=c3 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/dbus.conf0000664000000000000000000000632012700600465014560 0ustar # # Check D-Bus interface exports appropriate information # [test-runner-config] log-dbus=true [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?*LIST-SEATS #?RUNNER LIST-SEATS SEATS=/org/freedesktop/DisplayManager/Seat0 #?*LIST-SESSIONS #?RUNNER LIST-SESSIONS SESSIONS= # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Session is reported via D-Bus #?RUNNER DBUS-PROPERTIES-CHANGED PATH=/org/freedesktop/DisplayManager INTERFACE=org.freedesktop.DisplayManager CHANGED=Sessions:/org/freedesktop/DisplayManager/Session0 #?RUNNER DBUS-SIGNAL PATH=/org/freedesktop/DisplayManager INTERFACE=org.freedesktop.DisplayManager NAME=SessionAdded #?RUNNER DBUS-PROPERTIES-CHANGED PATH=/org/freedesktop/DisplayManager/Seat0 INTERFACE=org.freedesktop.DisplayManager.Seat CHANGED=Sessions:/org/freedesktop/DisplayManager/Session0 #?RUNNER DBUS-SIGNAL PATH=/org/freedesktop/DisplayManager/Seat0 INTERFACE=org.freedesktop.DisplayManager NAME=SessionAdded #?*LIST-SEATS #?RUNNER LIST-SEATS SEATS=/org/freedesktop/DisplayManager/Seat0 #?*LIST-SESSIONS #?RUNNER LIST-SESSIONS SESSIONS=/org/freedesktop/DisplayManager/Session0 # Log out of session #?*SESSION-X-0 LOGOUT # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # Removal is reported via D-Bus #?RUNNER DBUS-SIGNAL PATH=/org/freedesktop/DisplayManager INTERFACE=org.freedesktop.DisplayManager NAME=SessionRemoved #?RUNNER DBUS-SIGNAL PATH=/org/freedesktop/DisplayManager/Seat0 INTERFACE=org.freedesktop.DisplayManager NAME=SessionRemoved #?RUNNER DBUS-PROPERTIES-CHANGED PATH=/org/freedesktop/DisplayManager INTERFACE=org.freedesktop.DisplayManager CHANGED=Sessions #?RUNNER DBUS-PROPERTIES-CHANGED PATH=/org/freedesktop/DisplayManager/Seat0 INTERFACE=org.freedesktop.DisplayManager.Seat CHANGED=Sessions # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-greeter-return-session-logout.conf0000664000000000000000000000440312700600465023504 0ustar # # Use D-Bus interface to show the greeter, then return to the same session, then logout # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Show the greeter #?*SWITCH-TO-GREETER #?RUNNER SWITCH-TO-GREETER # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Login as existing user #?*GREETER-X-1 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-1 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-1 RESPOND TEXT="password" #?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-1 START-SESSION # Session is unlocked #?LOGIN1 UNLOCK-SESSION SESSION=c0 # Switch to session #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?VT ACTIVATE VT=7 # Greeter and X server stop #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 # Logout session #?*SESSION-X-0 LOGOUT #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-user.conf0000664000000000000000000000330412700600465016517 0ustar # # Check that switching to a user shows the greeter # [Seat:*] autologin-user=no-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check daemon says we can switch #?*SEAT-CAN-SWITCH #?RUNNER SEAT-CAN-SWITCH CAN-SWITCH=TRUE # Switch to an account with a password #?*SWITCH-TO-USER USERNAME=have-password1 #?RUNNER SWITCH-TO-USER USERNAME=have-password1 # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Requested user is automatically selected #?GREETER-X-1 SELECT-USER-HINT USERNAME=have-password1 #?*GREETER-X-1 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-1 SHOW-PROMPT TEXT="Password:" # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-user-logout-active.conf0000664000000000000000000000366012700600465021304 0ustar # # Check that switching to a user and logging out the active session starts a greeter # [Seat:*] autologin-user=no-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Switch user #?*SWITCH-TO-USER USERNAME=no-password2 #?RUNNER SWITCH-TO-USER USERNAME=no-password2 # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/no-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password2 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to new session #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Log out new session #?*SESSION-X-1 LOGOUT #?XSERVER-1 TERMINATE SIGNAL=15 # X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-crash-authenticate.conf0000664000000000000000000000150712700600465020507 0ustar # # Check returned to greeter when authentication crashes # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Attempt to login, but authentication crashes #?*GREETER-X-0 AUTHENTICATE USERNAME=crash-authenticate #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=crash-authenticate AUTHENTICATED=FALSE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-request-invalid-authentication.conf0000664000000000000000000000157612700600465024401 0ustar # # Check remote X server sending a request with an invalid authentication is declined # [LightDM] start-default-seat=false [XDMCPServer] enabled=true #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect - daemon says OK #?*XSERVER-98 SEND-QUERY #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="" STATUS="" # Connect with an invalid authentication - daemon declines #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHENTICATION-NAME="NO-SUCH-AUTHENTICATION" AUTHORIZATION-NAMES="MIT-MAGIC-COOKIE-1" #?XSERVER-98 GOT-DECLINE STATUS="No matching authentication, server only supports unauthenticated connections" AUTHENTICATION-NAME="" AUTHENTICATION-DATA= # Clean up #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/lock-seat-after-vt-switch.conf0000664000000000000000000000422612700600465020535 0ustar # # Check that a seat is locked properly when it has been unlocked by switching # back to the user session and using the screensaver to unlock it. # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Lock the seat #?*SESSION-X-0 LOCK-SEAT #?SESSION-X-0 LOCK-SEAT # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON #?GREETER-X-1 LOCK-HINT # Session is switched to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # External program switches back to the first session #?*UPDATE-SEAT ID=seat0 ACTIVE-SESSION=c0 # Session is unlocked using the screensaver #?*UNLOCK-SESSION SESSION=c0 #?RUNNER UNLOCK-SESSION SESSION=c0 # Lock the seat again #?*SESSION-X-0 LOCK-SEAT #?SESSION-X-0 LOCK-SEAT #?LOGIN1 LOCK-SESSION SESSION=c0 # Old greeter is stopped #?GREETER-X-1 TERMINATE SIGNAL=15 # A new greeter is started and activated on the same X server #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON #?GREETER-X-1 LOCK-HINT # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xserver-no-share.conf0000664000000000000000000000303712700600465017035 0ustar # # Check can configure a new X server to start for the session # [Seat:*] user-session=default xserver-share=false #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION # New X server starts for session #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to session #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Greeter stops #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 # Cleanup #?*STOP-DAEMON #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/audit-autologin.conf0000664000000000000000000000306412700600465016732 0ustar # # Check libaudit record written on autologin # [test-audit-config] check-events=true [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # libaudit record written #?AUDIT OPEN #?AUDIT LOG-ACCT TYPE=USER_LOGIN PGNAME= OP=login NAME=have-password1 ID=1000 HOST= ADDR= TTY=/dev/tty7 RESULT=1 # Autologin session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout session #?*SESSION-X-0 LOGOUT # libaudit record written #?AUDIT OPEN #?AUDIT LOG-ACCT TYPE=USER_LOGOUT PGNAME= OP=logout NAME=have-password1 ID=1000 HOST= ADDR= TTY=/dev/tty7 RESULT=1 # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-greeter-resettable.conf0000664000000000000000000000340012700600465021323 0ustar # # Use D-Bus interface to show the greeter # Uses a resettable greeter # [Seat:*] allow-guest=false user-session=default [test-greeter-config] resettable=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?GREETER-X-0 HAS-GUEST-ACCOUNT-HINT=FALSE # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION # Start new X server for session #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?VT ACTIVATE VT=8 #?GREETER-X-0 IDLE # Session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Show the greeter #?*SWITCH-TO-GREETER #?RUNNER SWITCH-TO-GREETER # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c1 # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?VT ACTIVATE VT=7 # Cleanup #?*STOP-DAEMON #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/script-hook-display-setup-missing.conf0000664000000000000000000000070612700600465022337 0ustar # # Check LightDM stops if the display setup script is missing # [Seat:*] display-setup-script=test-script-hook-INVALID #?*START-DAEMON #?RUNNER DAEMON-START # One X server should start by default #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Setup script fails #?XSERVER-0 TERMINATE SIGNAL=15 # Cleanup #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/switch-to-user-no-password.conf0000664000000000000000000000271512700600465020776 0ustar # # Check that switching to a user without a password doesn't show a greeter # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Switch to account without a password #?*SWITCH-TO-USER USERNAME=no-password1 #?RUNNER SWITCH-TO-USER USERNAME=no-password1 # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # New session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to session #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/group-membership.conf0000664000000000000000000000154612700600465017115 0ustar # # Check group membership is correctly set up # [Seat:*] autologin-user=group-member user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/group-member XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=group-member #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check we belong to the group for our user and the special group set by PAM #?*SESSION-X-0 LIST-GROUPS #?SESSION-X-0 LIST-GROUPS GROUPS=group-member,test-group # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-two-factor.conf0000664000000000000000000000165512700600465017024 0ustar # # Check can login with two factor # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=two-factor #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 SHOW-PROMPT TEXT="OTP:" #?*GREETER-X-0 RESPOND TEXT="otp" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=two-factor AUTHENTICATED=TRUE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-mir-switch.conf0000664000000000000000000000335112700600465017060 0ustar # # Check system compositor correctly switches Mir sessions # [Seat:*] type=unity autologin-user=have-password1 user-session=mir #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Session starts #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # System compositor switches to session #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0 # Show the greeter #?*SWITCH-TO-GREETER #?RUNNER SWITCH-TO-GREETER # Greeter starts #?LOGIN1 LOCK-SESSION SESSION=c0 #?GREETER-MIR-greeter-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?GREETER-MIR-greeter-0 CONNECT-TO-DAEMON #?GREETER-MIR-greeter-0 CONNECTED-TO-DAEMON #?LOGIN1 ACTIVATE-SESSION SESSION=c1 # System compositor switches to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=greeter-0 # Login #?*GREETER-MIR-greeter-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-MIR-greeter-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-MIR-greeter-0 START-SESSION #?GREETER-MIR-greeter-0 TERMINATE SIGNAL=15 # New session starts #?SESSION-MIR-session-1 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=no-password1 # Switch to session #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-1 # Cleanup #?*STOP-DAEMON #?SESSION-MIR-session-0 TERMINATE SIGNAL=15 #?SESSION-MIR-session-1 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-remember-session.conf0000664000000000000000000000431212700600465020207 0ustar # # Check when logging in the session logged in as is remembered the second time a login occurs # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Login and pick a session #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION SESSION=alternative #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=alternative NAME=alternative USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout session #?*SESSION-X-0 LOGOUT # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account without specifying a session #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=alternative NAME=alternative USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c3 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-client.conf0000664000000000000000000000067512700600465016221 0ustar # # Check can run a local XDMCP client # [Seat:*] xdmcp-manager=127.0.0.1 #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 LISTEN-TCP SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Send an XDMCP query #?*XSERVER-0 SEND-QUERY # Wait to check a greeter is not started #?*WAIT # Cleanup #?*STOP-DAEMON #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/lock-seat-return-session.conf0000664000000000000000000000346412700600465020511 0ustar # # Check can lock a seat from D-Bus and can return to it # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Lock the seat #?*SESSION-X-0 LOCK-SEAT #?SESSION-X-0 LOCK-SEAT # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON #?GREETER-X-1 LOCK-HINT # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Login as existing user #?*GREETER-X-1 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-1 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-1 RESPOND TEXT="password" #?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-1 START-SESSION # Old session is unlocked #?LOGIN1 UNLOCK-SESSION SESSION=c0 # Return to session #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?VT ACTIVATE VT=7 # Greeter and X server stop #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xauthority.conf0000664000000000000000000000173012700600465016043 0ustar # # Check X authority written into home directory # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check where the X authority is #?*SESSION-X-0 READ-ENV NAME=XAUTHORITY #?SESSION-X-0 READ-ENV NAME=XAUTHORITY VALUE=.*/home/have-password1/.Xauthority # Check has correct permissions #?*SESSION-X-0 CHECK-X-AUTHORITY #?SESSION-X-0 CHECK-X-AUTHORITY MODE=rw------- # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/mir-session-compositor-crash.conf0000664000000000000000000000240612700600465021366 0ustar # # Check LightDM returns to the greeter if the unity compositor crashes inside a session # [Seat:*] autologin-user=have-password1 user-session=mir #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/lightdm-mir-0 VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Session starts #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Session shown #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0 # Crash system compositor #?*UNITY-SYSTEM-COMPOSITOR CRASH # Session is stopped #?SESSION-MIR-session-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/greeter-show-remote-login.conf0000664000000000000000000000144712700600465020642 0ustar # # Check greeter is informed if remote login should be showed (it defaults to show) # [Seat:*] greeter-show-remote-login=false #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Check has correct hint to show remote login #?GREETER-X-0 SHOW-REMOTE-LOGIN-HINT=FALSE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/session-stdout.conf0000664000000000000000000000175612700600465016636 0ustar # # Check session stdout is not written anywhere # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Write to stdout and check it doesn't end up in the session error log (you should also manually check when running the test if it is printed) #?*SESSION-X-0 WRITE-STDOUT TEXT=YOU-SHOULD-NOT-SEE-THIS #?*SESSION-X-0 READ FILE=.xsession-errors #?SESSION-X-0 READ FILE=.xsession-errors TEXT= # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-guest-fail-resettable.conf0000664000000000000000000000376612700600465021745 0ustar # # Check D-Bus interface can trigger/switch to guest session # Uses a resettable greeter # [LightDM] guest-account-script=false [Seat:*] user-session=default [test-greeter-config] resettable=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION # Start new X server for session #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?VT ACTIVATE VT=8 #?GREETER-X-0 IDLE # Session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to guest #?*SWITCH-TO-GUEST #?RUNNER SWITCH-TO-GUEST # Start new X server for guest #?XSERVER-2 START VT=9 SEAT=seat0 #?*XSERVER-2 INDICATE-READY #?XSERVER-2 INDICATE-READY #?XSERVER-2 ACCEPT-CONNECT # (guest account attempts to start and fails) # Back to greeter #?LOGIN1 LOCK-SESSION SESSION=c1 #?GREETER-X-0 RESET #?GREETER-X-0 SELECT-GUEST-HINT #?VT ACTIVATE VT=7 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?XSERVER-2 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/multi-seat-seat0-non-graphical.conf0000664000000000000000000000137512700600465021446 0ustar # # Check seat0 is started only once it becomes graphical # [LightDM] logind-check-graphical=true [test-runner-config] seat0-can-graphical=false #?*START-DAEMON #?RUNNER DAEMON-START # Check no seat is added #?*WAIT # Go graphical #?*UPDATE-SEAT ID=seat0 CAN-GRAPHICAL=TRUE # seat0 starts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xserver-config.conf0000664000000000000000000000142612700600465016566 0ustar # # Check can set X server configuration # [Seat:*] autologin-user=have-password1 user-session=default xserver-config=custom.conf xserver-layout=custom #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START CONFIG=custom.conf LAYOUT=custom VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xserver-fail-start.conf0000664000000000000000000000043512700600465017366 0ustar # # Check that LightDM handles an X server that fails to start. # [test-xserver-config] return-value=1 #?*START-DAEMON #?RUNNER DAEMON-START # X server fails to start #?XSERVER-0 START VT=7 SEAT=seat0 #?XSERVER-0 EXIT CODE=1 # Daemon stops with error #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/unity-compositor-next-session.conf0000664000000000000000000000326012700600465021624 0ustar # # Check that we correctly set next session when switching selected greeter user # [Seat:*] type=unity user-session=default autologin-user=have-password2 autologin-in-background=true #?*START-DAEMON #?RUNNER DAEMON-START # System compositor #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Greeter session #?XMIR-0 START SEAT=seat0 MIR-ID=x-0 #?*XMIR-0 INDICATE-READY #?XMIR-0 INDICATE-READY #?XMIR-0 ACCEPT-CONNECT #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XMIR-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Background session #?XMIR-1 START SEAT=seat0 MIR-ID=x-1 #?*XMIR-1 INDICATE-READY #?XMIR-1 INDICATE-READY #?XMIR-1 ACCEPT-CONNECT #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password2 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XMIR-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # System compositor switches to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0 # Switch to user without a session #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" # Switch to user with a session #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password2 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?UNITY-SYSTEM-COMPOSITOR SET-NEXT-SESSION ID=x-1 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XMIR-0 TERMINATE SIGNAL=15 #?XMIR-1 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-timeout-logout.conf0000664000000000000000000000363112700600465020621 0ustar # # Check logging out after autologin returns to greeter and does timed login again # [Seat:*] autologin-user=have-password1 autologin-user-timeout=99 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Greeter is requested to timeout #?GREETER-X-0 AUTOLOGIN-USER USERNAME=have-password1 TIMEOUT=99 # Trigger autologin #?*GREETER-X-0 AUTHENTICATE-AUTOLOGIN #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout session #?*SESSION-X-0 LOGOUT # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Greeter is requested to timeout #?GREETER-X-0 AUTOLOGIN-USER USERNAME=have-password1 TIMEOUT=99 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-password.conf0000664000000000000000000000143412700600465017465 0ustar # # Check automatic login stops if an account prompts for a password # [Seat:*] autologin-user=always-password user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # (Session fails) # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?GREETER-X-0 SELECT-USER-HINT USERNAME=always-password # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-invalid-greeter.conf0000664000000000000000000000016412700600465020012 0ustar # # Check fails to start if invalid greeter # #?*START-DAEMON #?RUNNER DAEMON-START #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/utmp-autologin.conf0000664000000000000000000000314212700600465016606 0ustar # # Check UTMP records written on autologin # [test-utmp-config] check-events=true [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # UTMP/WTMP record written #?UTMP TYPE=USER_PROCESS LINE=tty7 ID=:0 USER=have-password1 HOST=:0 #?WTMP FILE=.*/wtmp TYPE=USER_PROCESS LINE=tty7 ID=:0 USER=have-password1 HOST=:0 # Autologin session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout session #?*SESSION-X-0 LOGOUT # UTMP/WTMP record written #?UTMP TYPE=DEAD_PROCESS LINE=tty7 ID=:0 USER=have-password1 HOST=:0 #?WTMP FILE=.*/wtmp TYPE=DEAD_PROCESS LINE=tty7 ID=:0 USER=have-password1 HOST=:0 # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/no-console-kit.conf0000664000000000000000000000140112700600465016457 0ustar # # Check still works when ConsoleKit is not available # [test-runner-config] disable-console-kit=true [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/additional-system-config-priority.conf0000664000000000000000000000147412700600465022404 0ustar # # Check LightDM runs with system config.d configuration and the value from /etc is used # [test-runner-config] additional-system-config=0-additional.conf additional-config=1-additional.conf [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password2 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-new-authtok.conf0000664000000000000000000000142012700600465020064 0ustar # # Check automatic login stops if a password change is required # [Seat:*] autologin-user=new-authtok user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # (Session fails) # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?GREETER-X-0 SELECT-USER-HINT USERNAME=new-authtok # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/guest-wrapper.conf0000664000000000000000000000154712700600465016436 0ustar # # Check guest wrapper works # [Seat:*] autologin-guest=true user-session=default guest-wrapper=test-guest-wrapper #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Guest account created #?GUEST-ACCOUNT ADD USERNAME=guest-.* # Greeter wrapper starts #?GUEST-WRAPPER-X-0 START # Guest session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/guest-.* XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=guest-.* #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GUEST-ACCOUNT REMOVE USERNAME=guest.* #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/multi-seat.conf0000664000000000000000000000207612700600465015713 0ustar # # Check can run two seats at once (added from logind) # #?*START-DAEMON #?RUNNER DAEMON-START # seat0 starts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Add seat1 #?*ADD-SEAT ID=seat1 # seat1 starts #?XSERVER-1 START SEAT=seat1 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 START XDG_SEAT=seat1 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Remove seat1 #?*REMOVE-SEAT ID=seat1 # seat1 stops #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/session-stderr.conf0000664000000000000000000000170612700600465016612 0ustar # # Check session stderr is written to ~/.xsession-errors # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Write to stderr and check it shows up in the log #?*SESSION-X-0 WRITE-STDERR TEXT=THIS-SHOULD-BE-IN-XSESSION-ERRORS #?*SESSION-X-0 READ FILE=.xsession-errors #?SESSION-X-0 READ FILE=.xsession-errors TEXT=THIS-SHOULD-BE-IN-XSESSION-ERRORS # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-autologin-legacy.conf0000664000000000000000000000200312700600465020226 0ustar # # Check use legacy X command if Xmir not present # [test-xmir] hide=true [Seat:*] type=unity autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # X server starts #?XSERVER-0 START SEAT=seat0 MIR-ID=x-0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # System compositor switches to session #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/greeter-show-manual-login.conf0000664000000000000000000000141212700600465020614 0ustar # # Check greeter is informed if manual login should be showed # [Seat:*] greeter-show-manual-login=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Check has correct hint to show manual login #?GREETER-X-0 SHOW-MANUAL-LOGIN-HINT # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/add-local-x-seat.conf0000664000000000000000000000215512700600465016644 0ustar # # Check can run a local X server on demand # # Start a remote X server to use #?*START-XSERVER ARGS=":98" #?XSERVER-98 START #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Register the local X server with LightDM #?*ADD-LOCAL-X-SEAT DISPLAY=98 # LightDM connects to X server #?XSERVER-98 ACCEPT-CONNECT # Greeter starts #?GREETER-X-98 START XDG_SEAT=xremote0 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-98 ACCEPT-CONNECT #?GREETER-X-98 CONNECT-XSERVER #?GREETER-X-98 CONNECT-TO-DAEMON #?GREETER-X-98 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?GREETER-X-98 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-mir-lock-seat.conf0000664000000000000000000000236112700600465017441 0ustar # # Check can lock a seat from D-Bus with Mir # [Seat:*] autologin-user=have-password1 type=unity user-session=mir #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Session starts #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # System compositor switches to session #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0 # Lock the seat #?*SESSION-MIR-session-0 LOCK-SEAT #?SESSION-MIR-session-0 LOCK-SEAT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts #?GREETER-MIR-greeter-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?GREETER-MIR-greeter-0 CONNECT-TO-DAEMON #?GREETER-MIR-greeter-0 CONNECTED-TO-DAEMON #?GREETER-MIR-greeter-0 LOCK-HINT # Switch to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=greeter-0 # Cleanup #?*STOP-DAEMON #?GREETER-MIR-greeter-0 TERMINATE SIGNAL=15 #?SESSION-MIR-session-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-keep-alive.conf0000664000000000000000000000246212700600465020265 0ustar # # Check that LightDM correctly responds to KeepAlive messages # [LightDM] start-default-seat=false [XDMCPServer] enabled=true [Seat:*] user-session=default autologin-user=have-password1 #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect - daemon says OK #?*XSERVER-98 SEND-QUERY #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="" STATUS="" # Connect - daemon says OK #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHORIZATION-NAMES="MIT-MAGIC-COOKIE-1" #?XSERVER-98 GOT-ACCEPT SESSION-ID=[0-9]+ AUTHENTICATION-NAME="" AUTHENTICATION-DATA= AUTHORIZATION-NAME="MIT-MAGIC-COOKIE-1" AUTHORIZATION-DATA=[0-9A-F]{32} #?*XSERVER-98 SEND-MANAGE # LightDM connects to X server #?XSERVER-98 ACCEPT-CONNECT # Session starts #?SESSION-X-127.0.0.1:98 START XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-98 ACCEPT-CONNECT #?SESSION-X-127.0.0.1:98 CONNECT-XSERVER # Check daemon is alive #?*XSERVER-98 SEND-KEEP-ALIVE #?XSERVER-98 GOT-ALIVE SESSION-RUNNING=TRUE SESSION-ID=[0-9]+ # Clean up #?*STOP-DAEMON #?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdg-current-desktop-legacy.conf0000664000000000000000000000144112700600465020775 0ustar # # Check XDG_CURRENT_DESKTOP is set for sessions that support it using the legacy key name # [Seat:*] autologin-user=have-password1 user-session=named-legacy #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_CURRENT_DESKTOP=TestDesktop XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=named-legacy USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/denied.conf0000664000000000000000000000141012700600465015046 0ustar # # Check automatic login stops if an account is denied access # [Seat:*] autologin-user=denied user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # (Session fails) # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?GREETER-X-0 SELECT-USER-HINT USERNAME=denied # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-invalid-session.conf0000664000000000000000000000136612700600465020736 0ustar # # Check autologin fails if invalid session configured and returns to greeter # [Seat:*] autologin-user=have-password1 user-session=invalid #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # (session fails to start) # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/utmp-wrong-password.conf0000664000000000000000000000176012700600465017605 0ustar # # Check BTMP records written on failed login # [test-utmp-config] check-events=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Login with invalid password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="rubbish" #?WTMP FILE=.*/btmp TYPE=USER_PROCESS LINE=tty7 ID=:0 USER=have-password1 HOST=:0 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=FALSE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdg-current-desktop.conf0000664000000000000000000000140712700600465017535 0ustar # # Check XDG_CURRENT_DESKTOP is set for sessions that support it # [Seat:*] autologin-user=have-password1 user-session=named #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_CURRENT_DESKTOP=TestDesktop1:TestDesktop2 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=named USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-mir-greeter-mir-session.conf0000664000000000000000000000246012700600465021462 0ustar # # Check can log into a Mir session from a Mir greeter # [Seat:*] type=unity user-session=mir #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Greeter starts #?GREETER-MIR-greeter-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?GREETER-MIR-greeter-0 CONNECT-TO-DAEMON #?GREETER-MIR-greeter-0 CONNECTED-TO-DAEMON # System compositor switches to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=greeter-0 # Log into account with a password #?*GREETER-MIR-greeter-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-MIR-greeter-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-MIR-greeter-0 START-SESSION # Session starts #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 # System compositor switches to session #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0 # Greeter stops #?GREETER-MIR-greeter-0 TERMINATE SIGNAL=15 # Cleanup #?*STOP-DAEMON #?SESSION-MIR-session-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/1-additional.conf0000664000000000000000000000004712700600465016071 0ustar [Seat:*] autologin-user=have-password2 lightdm-1.18.1/tests/scripts/switch-to-users.conf0000664000000000000000000000422612700600465016706 0ustar # # Check that switching to multiple users works # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Switch to account without a password #?*SWITCH-TO-USER USERNAME=no-password1 #?RUNNER SWITCH-TO-USER USERNAME=no-password1 # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # New session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to session #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Switch to another account without a password #?*SWITCH-TO-USER USERNAME=no-password2 #?RUNNER SWITCH-TO-USER USERNAME=no-password2 # New X server starts #?XSERVER-2 START VT=9 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-2 INDICATE-READY #?XSERVER-2 INDICATE-READY #?XSERVER-2 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c1 # New session starts #?SESSION-X-2 START XDG_SEAT=seat0 XDG_VTNR=9 XDG_GREETER_DATA_DIR=.*/no-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password2 #?XSERVER-2 ACCEPT-CONNECT #?SESSION-X-2 CONNECT-XSERVER # Switch to session #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?VT ACTIVATE VT=9 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?SESSION-X-2 TERMINATE SIGNAL=15 #?XSERVER-2 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/mir-session.conf0000664000000000000000000000264512700600465016101 0ustar # # Check can login into a Mir session on a VT based seat # [Seat:*] user-session=mir #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Attempt to log into account #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/lightdm-mir-0 VT=8 XDG_VTNR=8 #?*UNITY-SYSTEM-COMPOSITOR READY # Switch to system compositor #?VT ACTIVATE VT=8 # Greeter terminates #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 # Session shown #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0 # Cleanup #?*STOP-DAEMON #?SESSION-MIR-session-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-invalid-authentication.conf0000664000000000000000000000165112700600465022705 0ustar # # Check that a remote X server can't login if not using required authentication # [LightDM] start-default-seat=false [XDMCPServer] enabled=true #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Connect with an invalid authentication name - daemon says no #?*XSERVER-98 SEND-QUERY AUTHENTICATION-NAMES="NO-SUCH-AUTHENTICATION" #?XSERVER-98 GOT-UNWILLING HOSTNAME="" STATUS="No matching authentication" # Try anyway - daemon declines #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHENTICATION-NAME="NO-SUCH-AUTHENTICATION" AUTHORIZATION-NAMES="MIT-MAGIC-COOKIE-1" #?XSERVER-98 GOT-DECLINE STATUS="No matching authentication, server only supports unauthenticated connections" AUTHENTICATION-NAME="" AUTHENTICATION-DATA= # Clean up #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-greeter-return-session-pam.conf0000664000000000000000000000514612700600465022755 0ustar # # Check we correctly use PAM for returning to an existing session # [Seat:*] autologin-user=have-password1 user-session=default [test-pam] log-events=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session authenticates #?PAM-have-password1 START SERVICE=lightdm-autologin USER=have-password1 #?PAM-have-password1 AUTHENTICATE #?PAM-have-password1 ACCT-MGMT #?PAM-have-password1 SETCRED ESTABLISH_CRED #?PAM-have-password1 OPEN-SESSION # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Show the greeter #?*SWITCH-TO-GREETER #?RUNNER SWITCH-TO-GREETER # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Create PAM session for greeter #?PAM-lightdm START SERVICE=lightdm-greeter USER=lightdm #?PAM-lightdm SETCRED ESTABLISH_CRED #?PAM-lightdm OPEN-SESSION # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Login as existing user #?*GREETER-X-1 AUTHENTICATE USERNAME=have-password1 #?PAM-have-password1 START SERVICE=lightdm USER=have-password1 #?PAM-have-password1 AUTHENTICATE #?GREETER-X-1 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-1 RESPOND TEXT="password" #?PAM-have-password1 ACCT-MGMT #?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-1 START-SESSION # Credentials are refreshed #?PAM-have-password1 SETCRED REINITIALIZE_CRED #?PAM-have-password1 END # Session is unlocked #?LOGIN1 UNLOCK-SESSION SESSION=c0 # Switch to session #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?VT ACTIVATE VT=7 # Greeter and X server stop #?GREETER-X-1 TERMINATE SIGNAL=15 #?PAM-lightdm CLOSE-SESSION #?PAM-lightdm SETCRED DELETE_CRED #?PAM-lightdm END #?XSERVER-1 TERMINATE SIGNAL=15 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?PAM-have-password1 CLOSE-SESSION #?PAM-have-password1 SETCRED DELETE_CRED #?PAM-have-password1 END #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-guest-pick-session.conf0000664000000000000000000000237612700600465020474 0ustar # # Check can login as guest and pick an alternative session # [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Login as guest and pick a session #?*GREETER-X-0 AUTHENTICATE-GUEST #?GREETER-X-0 AUTHENTICATION-COMPLETE AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION SESSION=alternative #?GREETER-X-0 TERMINATE SIGNAL=15 # Guest account created #?GUEST-ACCOUNT ADD USERNAME=guest-.* # Guest session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/guest-.* XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=alternative NAME=alternative USER=guest-.* #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GUEST-ACCOUNT REMOVE USERNAME=guest-.* #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/plymouth-inactive-vt.conf0000664000000000000000000000155312700600465017736 0ustar # # Check Plymouth quits when X server is started. Plymouth is on an inactive VT so it quits immediately. # [test-plymouth-config] enabled=true active=true #?*START-DAEMON #?RUNNER DAEMON-START # Check if Plymouth is running, then start X server #?PLYMOUTH PING ACTIVE=TRUE #?PLYMOUTH HAS-ACTIVE-VT=FALSE #?PLYMOUTH QUIT RETAIN-SPLASH=FALSE #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-guest.conf0000664000000000000000000000144112700600465016750 0ustar # # Check automatically logs in default user # [Seat:*] autologin-guest=true user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Guest account created #?GUEST-ACCOUNT ADD USERNAME=guest-.* # Guest session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/guest-.* XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=guest-.* #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GUEST-ACCOUNT REMOVE USERNAME=guest.* #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-autologin.conf0000664000000000000000000000226612700600465020246 0ustar # # Check that a remote X server can autologin via XDMCP # [LightDM] start-default-seat=false [XDMCPServer] enabled=true [Seat:*] user-session=default autologin-user=have-password1 #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect - daemon says OK #?*XSERVER-98 SEND-QUERY #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="" STATUS="" # Connect - daemon says OK #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHORIZATION-NAMES="MIT-MAGIC-COOKIE-1" #?XSERVER-98 GOT-ACCEPT SESSION-ID=[0-9]+ AUTHENTICATION-NAME="" AUTHENTICATION-DATA= AUTHORIZATION-NAME="MIT-MAGIC-COOKIE-1" AUTHORIZATION-DATA=[0-9A-F]{32} #?*XSERVER-98 SEND-MANAGE # LightDM connects to X server #?XSERVER-98 ACCEPT-CONNECT # Session starts #?SESSION-X-127.0.0.1:98 START XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-98 ACCEPT-CONNECT #?SESSION-X-127.0.0.1:98 CONNECT-XSERVER # Clean up #?*STOP-DAEMON #?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/console-kit.conf0000664000000000000000000000166612700600465016062 0ustar # # Check ConsoleKit variable is set in session # [test-runner-config] disable-login1=true [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_COOKIE=ck-cookie-x:0 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?CONSOLE-KIT ACTIVATE-SESSION SESSION=ck-cookie-x:0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check XDG_RUNTIME_DIR is set #?*SESSION-X-0 READ-ENV NAME=XDG_RUNTIME_DIR #?SESSION-X-0 READ-ENV NAME=XDG_RUNTIME_DIR VALUE=/run/console-kit # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-xdm-authentication.conf0000664000000000000000000000265412700600465022053 0ustar # # Check that a remote X server can autologin via XDMCP using XDM authentication # [LightDM] start-default-seat=false [XDMCPServer] enabled=true key=test-key [Seat:*] user-session=default autologin-user=have-password1 #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect with XDM authentication - daemon says OK #?*XSERVER-98 SEND-QUERY AUTHENTICATION-NAMES="XDM-AUTHENTICATION-1" #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" HOSTNAME="" STATUS="" # Connect - daemon says OK #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" AUTHENTICATION-DATA="0123456789ABCDEF" AUTHORIZATION-NAMES="XDM-AUTHORIZATION-1" #?XSERVER-98 GOT-ACCEPT SESSION-ID=[0-9]+ AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" AUTHENTICATION-DATA=E9D2BDD16E64C251 AUTHORIZATION-NAME="XDM-AUTHORIZATION-1" AUTHORIZATION-DATA=[0-9A-F]{16} #?*XSERVER-98 SEND-MANAGE # LightDM connects to X server #?XSERVER-98 ACCEPT-CONNECT # Session starts #?SESSION-X-127.0.0.1:98 START XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-98 ACCEPT-CONNECT #?SESSION-X-127.0.0.1:98 CONNECT-XSERVER # Clean up #?*STOP-DAEMON #?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-xserver-crash.conf0000664000000000000000000000334012700600465017524 0ustar # # Check LightDM returns to the greeter if the X server crashes inside a session # [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # XServer starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Crash X server #?*XSERVER-0 CRASH # User session is terminated #?SESSION-X-0 TERMINATE SIGNAL=15 # X server restarts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/system-xauthority.conf0000664000000000000000000000202112700600465017357 0ustar # # Check X authority written into system directory # [LightDM] user-authority-in-system-dir=true [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check where the X authority is #?*SESSION-X-0 READ-ENV NAME=XAUTHORITY #?SESSION-X-0 READ-ENV NAME=XAUTHORITY VALUE=.*/var/run/lightdm/have-password1/xauthority # Check has correct permissions #?*SESSION-X-0 CHECK-X-AUTHORITY #?SESSION-X-0 CHECK-X-AUTHORITY MODE=rw------- # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-invalid-user.conf0000664000000000000000000000157512700600465017342 0ustar # # Check can't login with invalid user (but still prompted for password) # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Login as invalid user #?*GREETER-X-0 AUTHENTICATE USERNAME=notauser #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=notauser AUTHENTICATED=FALSE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-pam-config.conf0000664000000000000000000000216412700600465017644 0ustar # # Check we can configure the PAM service for automatic login # [Seat:*] autologin-user=no-password1 user-session=default pam-autologin-service=lightdm-autologin-alternative [test-pam] log-events=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session authenticates #?PAM-no-password1 START SERVICE=lightdm-autologin-alternative USER=no-password1 #?PAM-no-password1 AUTHENTICATE #?PAM-no-password1 ACCT-MGMT #?PAM-no-password1 SETCRED ESTABLISH_CRED #?PAM-no-password1 OPEN-SESSION # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?PAM-no-password1 CLOSE-SESSION #?PAM-no-password1 SETCRED DELETE_CRED #?PAM-no-password1 END #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-mir-autologin.conf0000664000000000000000000000135612700600465017563 0ustar # # Check can automatically log into a Mir session # [Seat:*] type=unity autologin-user=have-password1 user-session=mir #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Session starts #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # System compositor switches to session #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0 # Cleanup #?*STOP-DAEMON #?SESSION-MIR-session-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/mir-session-crash.conf0000664000000000000000000000235112700600465017171 0ustar # # Check LightDM returns to the greeter if the Mir session crashes # [Seat:*] autologin-user=have-password1 user-session=mir #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/lightdm-mir-0 VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Session starts #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Session shown #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0 # Crash session #?*SESSION-MIR-session-0 CRASH # Compositor is stopped #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-guest-session-config.conf0000664000000000000000000000153512700600465021700 0ustar # # Check automatic guest sessions use configured session # [Seat:*] autologin-guest=true user-session=default guest-session=alternative #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Guest account created #?GUEST-ACCOUNT ADD USERNAME=guest-.* # Guest session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/guest-.* XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=alternative NAME=alternative USER=guest-.* #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GUEST-ACCOUNT REMOVE USERNAME=guest.* #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/wayland-greeter.conf0000664000000000000000000000061512700600465016716 0ustar # # Check can run a Wayland greeter from a VT based seat # #?*START-DAEMON #?RUNNER DAEMON-START # Greeter starts #?GREETER-WAYLAND START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?GREETER-WAYLAND CONNECT-TO-DAEMON #?GREETER-WAYLAND CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-WAYLAND TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-xdm-authentication-short-data.conf0000664000000000000000000000175112700600465024114 0ustar # # Check that a remote X server needs both XDM authentication and correct length authentication data # [LightDM] start-default-seat=false [XDMCPServer] enabled=true key=test-key #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect with XDM authentication - daemon says OK #?*XSERVER-98 SEND-QUERY AUTHENTICATION-NAMES="XDM-AUTHENTICATION-1" #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" HOSTNAME="" STATUS="" # Connect without any authentication data - daemon declines #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" AUTHENTICATION-DATA="00" AUTHORIZATION-NAMES="XDM-AUTHORIZATION-1" #?XSERVER-98 GOT-DECLINE STATUS="Invalid XDM-AUTHENTICATION-1 data provided" AUTHENTICATION-NAME="" AUTHENTICATION-DATA= # Clean up #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/home-dir-on-session.conf0000664000000000000000000000136312700600465017424 0ustar # # Check works for users who have their home directory created when the session is opened # [Seat:*] autologin-user=make-home-dir user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/make-home-dir XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=make-home-dir #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/shared-data-session-to-greeter-autologin.conf0000664000000000000000000000303312700600465023531 0ustar # # Make sure a shared data directory is created on autologin and can be written back to the greeter # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check session can write to data directory #?*SESSION-X-0 WRITE-SHARED-DATA DATA=HELLO #?SESSION-X-0 WRITE-SHARED-DATA RESULT=TRUE # Logout session #?*SESSION-X-0 LOGOUT # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Check greeter can read from user #?*GREETER-X-0 READ-SHARED-DATA USERNAME=have-password1 DATA=HELLO #?GREETER-X-0 READ-SHARED-DATA DATA=HELLO # Cleanup #?*STOP-DAEMON #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-invalid-user.conf0000664000000000000000000000131112700600465020217 0ustar # # Check automatically logs in default user # [Seat:*] autologin-user=invalid #?*START-DAEMON #?RUNNER DAEMON-START # (fails to start session for invalid user) # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-pam.conf0000664000000000000000000000350712700600465015512 0ustar # # Check we correctly use PAM for login # [Seat:*] user-session=default [test-pam] log-events=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Create PAM session for greeter #?PAM-lightdm START SERVICE=lightdm-greeter USER=lightdm #?PAM-lightdm SETCRED ESTABLISH_CRED #?PAM-lightdm OPEN-SESSION # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Greeter does authentication via PAM #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?PAM-have-password1 START SERVICE=lightdm USER=have-password1 #?PAM-have-password1 AUTHENTICATE #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?PAM-have-password1 ACCT-MGMT #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE # User session starts #?*GREETER-X-0 START-SESSION #?PAM-have-password1 SETCRED ESTABLISH_CRED #?PAM-have-password1 OPEN-SESSION # Greeter session stops #?GREETER-X-0 TERMINATE SIGNAL=15 #?PAM-lightdm CLOSE-SESSION #?PAM-lightdm SETCRED DELETE_CRED #?PAM-lightdm END # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?PAM-have-password1 CLOSE-SESSION #?PAM-have-password1 SETCRED DELETE_CRED #?PAM-have-password1 END #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/no-console-kit-or-login1.conf0000664000000000000000000000137612700600465020277 0ustar # # Check still works when neither ConsoleKit or login1 is available # [test-runner-config] disable-console-kit=true disable-login1=true [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-compositor-command.conf0000664000000000000000000000175212700600465020607 0ustar # # Check can set the unity compositor command # [Seat:*] type=unity user-session=default unity-compositor-command=unity-system-compositor --test #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 TEST=TRUE #?*UNITY-SYSTEM-COMPOSITOR READY # X server starts #?XMIR-0 START SEAT=seat0 MIR-ID=x-0 # Daemon connects when X server is ready #?*XMIR-0 INDICATE-READY #?XMIR-0 INDICATE-READY #?XMIR-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XMIR-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # System compositor switches to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XMIR-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/lock-session-no-password.conf0000664000000000000000000000301612700600465020505 0ustar # # Check can lock a session from D-Bus. The session has no password so check it doesn't automatically log back in # [Seat:*] autologin-user=no-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Lock the session #?*SESSION-X-0 LOCK-SESSION #?SESSION-X-0 LOCK-SESSION # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts with session user selected #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON #?GREETER-X-1 SELECT-USER-HINT USERNAME=no-password1 #?GREETER-X-1 LOCK-HINT # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/vnc-guest.conf0000664000000000000000000000274312700600465015543 0ustar # # Check can log into a guest account via VNC # [LightDM] start-default-seat=false [VNCServer] enabled=true [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a VNC client #?*START-VNC-CLIENT #?VNC-CLIENT START #?VNC-CLIENT CONNECT # Xvnc server starts #?XVNC-0 START GEOMETRY=1024x768 DEPTH=8 OPTION=FALSE # Daemon connects when X server is ready #?*XVNC-0 INDICATE-READY #?XVNC-0 INDICATE-READY #?XVNC-0 ACCEPT-CONNECT # Negotiate with Xvnc #?*XVNC-0 START-VNC #?VNC-CLIENT CONNECTED VERSION="RFB 003.007" # VNC client connects to X server #?XVNC-0 VNC-CLIENT-CONNECT VERSION="RFB 003.003" # Greeter starts and connects to remote X server #?GREETER-X-0 START XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XVNC-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log in #?*GREETER-X-0 AUTHENTICATE-GUEST #?GREETER-X-0 AUTHENTICATION-COMPLETE AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Guest account created #?GUEST-ACCOUNT ADD USERNAME=guest-.* # Guest session starts #?SESSION-X-0 START XDG_GREETER_DATA_DIR=.*/guest-.* XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=guest-.* #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XVNC-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Clean up #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XVNC-0 TERMINATE SIGNAL=15 #?GUEST-ACCOUNT REMOVE USERNAME=guest-.* #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/additional-config-priority.conf0000664000000000000000000000146412700600465021061 0ustar # # Check LightDM runs with config.d configuration and the value from the lightdm.conf is used # [test-runner-config] additional-config=0-additional.conf [Seat:*] autologin-user=have-password2 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password2 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-guest-timeout.conf0000664000000000000000000000246412700600465020442 0ustar # # Check automatically logs in default user # [Seat:*] autologin-guest=true autologin-user-timeout=99 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Greeter is requested to timeout #?GREETER-X-0 AUTOLOGIN-GUEST TIMEOUT=99 # Trigger autologin #?*GREETER-X-0 AUTHENTICATE-AUTOLOGIN #?GREETER-X-0 AUTHENTICATION-COMPLETE AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Guest account created #?GUEST-ACCOUNT ADD USERNAME=guest-.* # Guest session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/guest-.* XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=guest-.* #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GUEST-ACCOUNT REMOVE USERNAME=guest-.* #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-login.conf0000664000000000000000000000274312700600465016106 0ustar # # Check can login with Unity seat type # [Seat:*] type=unity user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # X server starts #?XMIR-0 START SEAT=seat0 MIR-ID=x-0 # Daemon connects when X server is ready #?*XMIR-0 INDICATE-READY #?XMIR-0 INDICATE-READY #?XMIR-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XMIR-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # System compositor switches to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0 # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XMIR-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XMIR-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-session.conf0000664000000000000000000000344512700600465017312 0ustar # # Check can pick a particular session for automatic logins # [Seat:*] autologin-user=have-password1 user-session=default autologin-session=alternative #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Autologin session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=alternative NAME=alternative USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout session #?*SESSION-X-0 LOGOUT # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into user session, check it doesn't use the autologin session #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-guest.conf0000664000000000000000000000336512700600465017375 0ustar # # Check can log into a guest account via XDMCP # [LightDM] start-default-seat=false [XDMCPServer] enabled=true [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect - daemon says OK #?*XSERVER-98 SEND-QUERY #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="" STATUS="" # Connect - daemon says OK #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHORIZATION-NAMES="MIT-MAGIC-COOKIE-1" #?XSERVER-98 GOT-ACCEPT SESSION-ID=[0-9]+ AUTHENTICATION-NAME="" AUTHENTICATION-DATA= AUTHORIZATION-NAME="MIT-MAGIC-COOKIE-1" AUTHORIZATION-DATA=[0-9A-F]{32} #?*XSERVER-98 SEND-MANAGE # LightDM connects to X server #?XSERVER-98 ACCEPT-CONNECT # Greeter starts and connects to remote X server #?GREETER-X-127.0.0.1:98 START XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-98 ACCEPT-CONNECT #?GREETER-X-127.0.0.1:98 CONNECT-XSERVER #?GREETER-X-127.0.0.1:98 CONNECT-TO-DAEMON #?GREETER-X-127.0.0.1:98 CONNECTED-TO-DAEMON # Log in #?*GREETER-X-127.0.0.1:98 AUTHENTICATE-GUEST #?GREETER-X-127.0.0.1:98 AUTHENTICATION-COMPLETE AUTHENTICATED=TRUE #?*GREETER-X-127.0.0.1:98 START-SESSION #?GREETER-X-127.0.0.1:98 TERMINATE SIGNAL=15 # Guest account created #?GUEST-ACCOUNT ADD USERNAME=guest-.* # Guest session starts #?SESSION-X-127.0.0.1:98 START XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=guest-.* #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-98 ACCEPT-CONNECT #?SESSION-X-127.0.0.1:98 CONNECT-XSERVER # Clean up #?*STOP-DAEMON #?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15 #?GUEST-ACCOUNT REMOVE USERNAME=guest-.* #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/shared-data-greeter-to-session.conf0000664000000000000000000000271712700600465021542 0ustar # # Make sure we can make a shared data directory to write from the greeter to the session # [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Check greeter can write to data directory #?*GREETER-X-0 WRITE-SHARED-DATA USERNAME=no-password1 DATA=HELLO #?GREETER-X-0 WRITE-SHARED-DATA RESULT=TRUE # Log into account without a password #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check session can read from shared data directory #?*SESSION-X-0 READ-SHARED-DATA #?SESSION-X-0 READ-SHARED-DATA DATA=HELLO # Cleanup #?*STOP-DAEMON #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/user-background.conf0000664000000000000000000000223012700600465016712 0ustar # # Check returns correct background for a user # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Watch a user for properties changes #?*GREETER-X-0 WATCH-USER USERNAME=prop-user #?GREETER-X-0 WATCH-USER USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=BACKGROUND #?GREETER-X-0 LOG-USER USERNAME=prop-user BACKGROUND= # Change background #?*UPDATE-USER USERNAME=prop-user BACKGROUND=field #?RUNNER UPDATE-USER USERNAME=prop-user BACKGROUND=field #?GREETER-X-0 USER-CHANGED USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=BACKGROUND #?GREETER-X-0 LOG-USER USERNAME=prop-user BACKGROUND=field # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/language-env.conf0000664000000000000000000000161512700600465016176 0ustar # # Check language variables are set in session # [Seat:*] autologin-user=have-language user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-language XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-language #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check environment variables #?*SESSION-X-0 READ-ENV NAME=LANG #?SESSION-X-0 READ-ENV NAME=LANG VALUE=en_AU #?*SESSION-X-0 READ-ENV NAME=GDM_LANG #?SESSION-X-0 READ-ENV NAME=GDM_LANG VALUE=en_AU # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-guest-session-config.conf0000664000000000000000000000234212700600465021004 0ustar # # Check guest logins use configured session # [Seat:*] user-session=default guest-session=alternative #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Login as guest #?*GREETER-X-0 AUTHENTICATE-GUEST #?GREETER-X-0 AUTHENTICATION-COMPLETE AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Guest account created #?GUEST-ACCOUNT ADD USERNAME=guest-.* # Guest session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/guest-.* XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=alternative NAME=alternative USER=guest-.* #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GUEST-ACCOUNT REMOVE USERNAME=guest-.* #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/language-no-accounts-service.conf0000664000000000000000000000156312700600465021277 0ustar # # Check returns correct language for a user when Accounts Service is not running # [test-runner-config] disable-accounts-service=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Correct language is found #?*GREETER-X-0 LOG-USER USERNAME=have-language FIELDS=LANGUAGE #?GREETER-X-0 LOG-USER USERNAME=have-language LANGUAGE=en_AU.utf8 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/plymouth-active-vt.conf0000664000000000000000000000171212700600465017404 0ustar # # Check Plymouth quits when X server is started. Plymouth is on an active VT so it handshakes with the X server. # [test-plymouth-config] enabled=true has-active-vt=true active=true #?*START-DAEMON #?RUNNER DAEMON-START # Check if Plymouth is running #?PLYMOUTH PING ACTIVE=TRUE #?PLYMOUTH HAS-ACTIVE-VT=TRUE #?PLYMOUTH DEACTIVATE # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Plymouth quits but keeps image in framebuffer #?PLYMOUTH QUIT RETAIN-SPLASH=TRUE # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/wayland-autologin.conf0000664000000000000000000000075112700600465017263 0ustar # # Check can automatically log into a Wayland session from a VT based seat # [Seat:*] autologin-user=have-password1 user-session=wayland #?*START-DAEMON #?RUNNER DAEMON-START # Session starts #?SESSION-WAYLAND START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=wayland XDG_SESSION_DESKTOP=wayland USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Cleanup #?*STOP-DAEMON #?SESSION-WAYLAND TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-guest-in-background.conf0000664000000000000000000000225412700600465021474 0ustar # # Check automatically logs in guest while keeping a greeter up # [Seat:*] autologin-guest=true autologin-in-background=true user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # Greeter starts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Guest session starts #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?GUEST-ACCOUNT ADD USERNAME=guest-.* #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/guest-.* XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=guest-.* #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?GUEST-ACCOUNT REMOVE USERNAME=guest-.* #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-xdm-authentication-missing-data.conf0000664000000000000000000000173012700600465024423 0ustar # # Check that a remote X server needs both XDM authentication and authentication data # [LightDM] start-default-seat=false [XDMCPServer] enabled=true key=test-key #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect with XDM authentication - daemon says OK #?*XSERVER-98 SEND-QUERY AUTHENTICATION-NAMES="XDM-AUTHENTICATION-1" #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" HOSTNAME="" STATUS="" # Connect without any authentication data - daemon declines #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" AUTHENTICATION-DATA="" AUTHORIZATION-NAMES="XDM-AUTHORIZATION-1" #?XSERVER-98 GOT-DECLINE STATUS="Invalid XDM-AUTHENTICATION-1 data provided" AUTHENTICATION-NAME="" AUTHENTICATION-DATA= # Clean up #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/lock-seat.conf0000664000000000000000000000255112700600465015507 0ustar # # Check can lock a seat from D-Bus # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Lock the seat #?*SESSION-X-0 LOCK-SEAT #?SESSION-X-0 LOCK-SEAT # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON #?GREETER-X-1 LOCK-HINT # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-remote-session.conf0000664000000000000000000000260112700600465017703 0ustar # # Check can remotely authenticate for a session # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Start remote authentication #?*GREETER-X-0 AUTHENTICATE-REMOTE SESSION=test-remote # Guest account created #?GUEST-ACCOUNT ADD USERNAME=guest-.* # Get remote credentials #?GREETER-X-0 SHOW-PROMPT TEXT="remote-login:" #?*GREETER-X-0 RESPOND TEXT="remote-user" #?GREETER-X-0 SHOW-PROMPT TEXT="remote-password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=guest-.* AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/guest-.* XDG_SESSION_DESKTOP=test-remote USER=guest-.* #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GUEST-ACCOUNT REMOVE USERNAME=guest-.* #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-xdm-authentication-required.conf0000664000000000000000000000166312700600465023670 0ustar # # Check that a remote X server can't login if not using required authentication # [LightDM] start-default-seat=false [XDMCPServer] enabled=true key=test-key #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connection without authentication - daemon says we don't do that #?*XSERVER-98 SEND-QUERY AUTHENTICATION-NAMES="" #?XSERVER-98 GOT-UNWILLING HOSTNAME="" STATUS="No matching authentication, server requires XDM-AUTHENTICATION-1" # Try anyway - daemon rejects #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHENTICATION-NAME="" AUTHORIZATION-NAMES="XDM-AUTHORIZATION-1" #?XSERVER-98 GOT-DECLINE STATUS="No matching authentication, server requires XDM-AUTHENTICATION-1" AUTHENTICATION-NAME="" AUTHENTICATION-DATA= # Clean up #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/power-no-login1.conf0000664000000000000000000000270712700600465016565 0ustar # # Check can do power operations from the greeter when no login1 service (falls back to ConsoleKit) # [test-runner-config] disable-login1=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_COOKIE=ck-cookie-x:0 XDG_SESSION_CLASS=greeter #?CONSOLE-KIT ACTIVATE-SESSION SESSION=ck-cookie-x:0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # See if can suspend #?*GREETER-X-0 GET-CAN-SUSPEND #?UPOWER SUSPEND-ALLOWED #?GREETER-X-0 CAN-SUSPEND ALLOWED=TRUE # Suspend #?*GREETER-X-0 SUSPEND #?UPOWER SUSPEND # See if can hibernate #?*GREETER-X-0 GET-CAN-HIBERNATE #?UPOWER HIBERNATE-ALLOWED #?GREETER-X-0 CAN-HIBERNATE ALLOWED=TRUE # Hibernate #?*GREETER-X-0 HIBERNATE #?UPOWER HIBERNATE # See if can restart #?*GREETER-X-0 GET-CAN-RESTART #?CONSOLE-KIT CAN-RESTART #?GREETER-X-0 CAN-RESTART ALLOWED=TRUE # Restart #?*GREETER-X-0 RESTART #?CONSOLE-KIT RESTART # See if can shutdown #?*GREETER-X-0 GET-CAN-SHUTDOWN #?CONSOLE-KIT CAN-STOP #?GREETER-X-0 CAN-SHUTDOWN ALLOWED=TRUE # Shutdown #?*GREETER-X-0 SHUTDOWN #?CONSOLE-KIT STOP # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-plymouth.conf0000664000000000000000000000235312700600465016654 0ustar # # Check Plymouth quits when Unity System compositor server is started. Plymouth is on an active VT so it handshakes with u-s-c. # [Seat:*] type=unity autologin-user=have-password1 user-session=default [test-plymouth-config] enabled=true has-active-vt=true active=true #?*START-DAEMON #?RUNNER DAEMON-START # Check if Plymouth is running #?PLYMOUTH PING ACTIVE=TRUE #?PLYMOUTH HAS-ACTIVE-VT=TRUE #?PLYMOUTH QUIT RETAIN-SPLASH=TRUE # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # X server starts #?XMIR-0 START SEAT=seat0 MIR-ID=x-0 # Daemon connects when X server is ready #?*XMIR-0 INDICATE-READY #?XMIR-0 INDICATE-READY #?XMIR-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XMIR-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # System compositor switches to session #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XMIR-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-session-crash.conf0000664000000000000000000000232412700600465020403 0ustar # # Check if session crashes then returned to greeter # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Crash session #?*SESSION-X-0 CRASH # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/lock-seat-twice.conf0000664000000000000000000000350712700600465016622 0ustar # # Check locking a seat twice doesn't spawn two greeters # [SeatDefaults] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Lock the seat #?*SESSION-X-0 LOCK-SEAT #?SESSION-X-0 LOCK-SEAT # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON #?GREETER-X-1 LOCK-HINT # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Lock the seat again #?*SESSION-X-0 LOCK-SEAT #?SESSION-X-0 LOCK-SEAT # Old greeter is stopped #?GREETER-X-1 TERMINATE SIGNAL=15 # A new greeter is started and activated on the same X server #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON #?GREETER-X-1 LOCK-HINT # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/user-renamed.conf0000664000000000000000000000135712700600465016217 0ustar # # Check if PAM renames the user then lightdm detects this and uses the new user account # [Seat:*] autologin-user=change-user1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/change-user2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=change-user2 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-previous-session.conf0000664000000000000000000000222712700600465020270 0ustar # # Check when logging in the previous session is loaded # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account with a previously chosen session #?*GREETER-X-0 AUTHENTICATE USERNAME=have-session #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-session AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-session XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=alternative NAME=alternative USER=have-session #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-greeter.conf0000664000000000000000000000267112700600465017204 0ustar # # Use D-Bus interface to show the greeter # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check daemon says we can switch #?*SEAT-CAN-SWITCH #?RUNNER SEAT-CAN-SWITCH CAN-SWITCH=TRUE # Show the greeter #?*SWITCH-TO-GREETER #?RUNNER SWITCH-TO-GREETER # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/seatdefaults-still-supported.conf0000664000000000000000000000146312700600465021462 0ustar # # Check LightDM still supports (now deprecated) config section [SeatDefaults] and merges these with [Seat:*] # [SeatDefaults] autologin-user=have-password1 user-session=alternative [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-double-login.conf0000664000000000000000000000654612700600465020632 0ustar # # Check that two remote X servers can login via XDMCP # [LightDM] start-default-seat=false [XDMCPServer] enabled=true [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect - daemon says OK #?*XSERVER-98 SEND-QUERY #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="" STATUS="" # Connect - daemon says OK #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHORIZATION-NAMES="MIT-MAGIC-COOKIE-1" #?XSERVER-98 GOT-ACCEPT SESSION-ID=[0-9]+ AUTHENTICATION-NAME="" AUTHENTICATION-DATA= AUTHORIZATION-NAME="MIT-MAGIC-COOKIE-1" AUTHORIZATION-DATA=[0-9A-F]{32} #?*XSERVER-98 SEND-MANAGE # LightDM connects to X server #?XSERVER-98 ACCEPT-CONNECT # Greeter starts and connects to remote X server #?GREETER-X-127.0.0.1:98 START XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-98 ACCEPT-CONNECT #?GREETER-X-127.0.0.1:98 CONNECT-XSERVER #?GREETER-X-127.0.0.1:98 CONNECT-TO-DAEMON #?GREETER-X-127.0.0.1:98 CONNECTED-TO-DAEMON # Log in #?*GREETER-X-127.0.0.1:98 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-127.0.0.1:98 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-127.0.0.1:98 RESPOND TEXT="password" #?GREETER-X-127.0.0.1:98 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-127.0.0.1:98 START-SESSION #?GREETER-X-127.0.0.1:98 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-127.0.0.1:98 START XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-98 ACCEPT-CONNECT #?SESSION-X-127.0.0.1:98 CONNECT-XSERVER # Start a second remote X server to log in with XDMCP #?*START-XSERVER ARGS=":99 -query 127.0.0.1 -nolisten unix" #?XSERVER-99 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect - daemon says OK #?*XSERVER-99 SEND-QUERY #?XSERVER-99 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="" STATUS="" # Connect - daemon says OK #?*XSERVER-99 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHORIZATION-NAMES="MIT-MAGIC-COOKIE-1" MFID="TEST XSERVER" #?XSERVER-99 GOT-ACCEPT SESSION-ID=[0-9]+ AUTHENTICATION-NAME="" AUTHENTICATION-DATA= AUTHORIZATION-NAME="MIT-MAGIC-COOKIE-1" AUTHORIZATION-DATA=[0-9A-F]{32} #?*XSERVER-99 SEND-MANAGE # LightDM connects to X server #?XSERVER-99 ACCEPT-CONNECT # Greeter starts and connects to remote X server #?GREETER-X-127.0.0.1:99 START XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-99 ACCEPT-CONNECT #?GREETER-X-127.0.0.1:99 CONNECT-XSERVER #?GREETER-X-127.0.0.1:99 CONNECT-TO-DAEMON #?GREETER-X-127.0.0.1:99 CONNECTED-TO-DAEMON # Log in #?*GREETER-X-127.0.0.1:99 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-127.0.0.1:99 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-127.0.0.1:99 RESPOND TEXT="password" #?GREETER-X-127.0.0.1:99 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-127.0.0.1:99 START-SESSION #?GREETER-X-127.0.0.1:99 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-127.0.0.1:99 START XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c3 #?XSERVER-99 ACCEPT-CONNECT #?SESSION-X-127.0.0.1:99 CONNECT-XSERVER # Clean up #?*STOP-DAEMON #?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15 #?SESSION-X-127.0.0.1:99 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/expired.conf0000664000000000000000000000140012700600465015255 0ustar # # Check automatic login stops if an account is expired # [Seat:*] autologin-user=expired user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # (Session fails) # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?GREETER-X-0 SELECT-USER-HINT USERNAME=expired # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/headless.conf0000664000000000000000000000033712700600465015415 0ustar # # Check can run in headless mode # [LightDM] start-default-seat=false #?*START-DAEMON #?RUNNER DAEMON-START # No indication that anything is happening... #?*WAIT # Cleanup #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-user-existing-no-password.conf0000664000000000000000000000341212700600465022621 0ustar # # Check that switching to an existing account with no password switches straight back # [Seat:*] autologin-user=no-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Switch to another user #?*SWITCH-TO-USER USERNAME=no-password2 #?RUNNER SWITCH-TO-USER USERNAME=no-password2 # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Old session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # New session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/no-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password2 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to new session #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Switch back to first user #?*SWITCH-TO-USER USERNAME=no-password1 #?RUNNER SWITCH-TO-USER USERNAME=no-password1 # Old session is unlocked #?LOGIN1 UNLOCK-SESSION SESSION=c0 # New session is locked #?LOGIN1 LOCK-SESSION SESSION=c1 # Switch to first session #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?VT ACTIVATE VT=7 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/additional-system-config.conf0000664000000000000000000000146312700600465020523 0ustar # # Check LightDM runs with system-config.d configuration and the value from the last file is used # [test-runner-config] additional-system-config=0-additional.conf 1-additional.conf [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password2 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/script-hook-session-setup-missing.conf0000664000000000000000000000155312700600465022356 0ustar # # Check LightDM returns to the greeter if the session setup script is missing # [Seat:*] session-setup-script=test-script-hook-INVALID autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # One X server should start by default #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Setup script fails # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?GREETER-X-0 SELECT-USER-HINT USERNAME=have-password1 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/multi-seat-non-graphical-disabled.conf0000664000000000000000000000202412700600465022171 0ustar # # Check non graphical seats are started anyway # #?*START-DAEMON #?RUNNER DAEMON-START # seat0 starts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Add seat1 #?*ADD-SEAT ID=seat1 CAN-GRAPHICAL=FALSE # seat1 starts #?XSERVER-1 START SEAT=seat1 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 START XDG_SEAT=seat1 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/mir-container-session.conf0000664000000000000000000000272612700600465020061 0ustar # # Check can login into a containerised Mir session on a VT based seat # [Seat:*] user-session=mir-container #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Attempt to log into account #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/lightdm-mir-0 VT=8 XDG_VTNR=8 CONTAINER=TRUE #?*UNITY-SYSTEM-COMPOSITOR READY # Switch to system compositor #?VT ACTIVATE VT=8 # Greeter terminates #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir-container USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 # Session shown #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0 # Cleanup #?*STOP-DAEMON #?SESSION-MIR-session-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-info-prompt.conf0000664000000000000000000000201712700600465017202 0ustar # # Check a PAM informational message on login is passed to a greeter # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account and see an informational prompt #?*GREETER-X-0 AUTHENTICATE USERNAME=info-prompt #?GREETER-X-0 SHOW-MESSAGE TEXT="Welcome to LightDM" #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" # Respond with password and check response is correctly handled #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=info-prompt AUTHENTICATED=TRUE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-request-invalid-authorization.conf0000664000000000000000000000150312700600465024250 0ustar # # Check remote X server sending a request with an invalid authorization is declined # [LightDM] start-default-seat=false [XDMCPServer] enabled=true #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect - daemon says OK #?*XSERVER-98 SEND-QUERY #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="" STATUS="" # Connect with an invalid authorization - daemon declines #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHORIZATION-NAMES="NO-SUCH-AUTHORIZATION" #?XSERVER-98 GOT-DECLINE STATUS="No matching authorization, server requires MIT-MAGIC-COOKIE-1" AUTHENTICATION-NAME="" AUTHENTICATION-DATA= # Clean up #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xremote-autologin.conf0000664000000000000000000000132712700600465017307 0ustar # # Check can automatically log into a remote X server # [Seat:*] type=xremote autologin-user=have-password1 user-session=default xserver-hostname=127.0.0.1 xserver-display-number=98 # Start a remote X server to use #?*START-XSERVER ARGS=":98 -listen tcp" #?XSERVER-98 START LISTEN-TCP #?*START-DAEMON #?RUNNER DAEMON-START # LightDM connects to X server #?XSERVER-98 ACCEPT-CONNECT # Session starts #?SESSION-X-127.0.0.1:98 START XDG_SEAT=seat0 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-98 ACCEPT-CONNECT #?SESSION-X-127.0.0.1:98 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-compositor-mir-next-session.conf0000664000000000000000000000263512700600465022416 0ustar # # Check that we correctly set next session when switching selected greeter user in Mir # [Seat:*] type=unity user-session=mir autologin-user=have-password2 autologin-in-background=true #?*START-DAEMON #?RUNNER DAEMON-START # System compositor #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Greeter session #?GREETER-MIR-greeter-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?GREETER-MIR-greeter-0 CONNECT-TO-DAEMON #?GREETER-MIR-greeter-0 CONNECTED-TO-DAEMON # Background session #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password2 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=have-password2 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # System compositor switches to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=greeter-0 # Switch to user without a session #?*GREETER-MIR-greeter-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-MIR-greeter-0 SHOW-PROMPT TEXT="Password:" # Switch to user with a session #?*GREETER-MIR-greeter-0 AUTHENTICATE USERNAME=have-password2 #?GREETER-MIR-greeter-0 SHOW-PROMPT TEXT="Password:" #?UNITY-SYSTEM-COMPOSITOR SET-NEXT-SESSION ID=session-0 # Cleanup #?*STOP-DAEMON #?GREETER-MIR-greeter-0 TERMINATE SIGNAL=15 #?SESSION-MIR-session-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/vnc-open-file-descriptors.conf0000664000000000000000000000315312700600465020625 0ustar # # Check that a VNC session doesn't have any unknown file descriptors # [LightDM] start-default-seat=false [VNCServer] enabled=true [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a VNC client #?*START-VNC-CLIENT #?VNC-CLIENT START #?VNC-CLIENT CONNECT # Xvnc server starts #?XVNC-0 START GEOMETRY=1024x768 DEPTH=8 OPTION=FALSE # Daemon connects when X server is ready #?*XVNC-0 INDICATE-READY #?XVNC-0 INDICATE-READY #?XVNC-0 ACCEPT-CONNECT # Negotiate with Xvnc #?*XVNC-0 START-VNC #?VNC-CLIENT CONNECTED VERSION="RFB 003.007" #?XVNC-0 VNC-CLIENT-CONNECT VERSION="RFB 003.003" # Greeter starts and connects to remote X server #?GREETER-X-0 START XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XVNC-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log in #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XVNC-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check file descriptors #?*SESSION-X-0 LIST-UNKNOWN-FILE-DESCRIPTORS #?SESSION-X-0 LIST-UNKNOWN-FILE-DESCRIPTORS FDS= # Clean up #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XVNC-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-no-password.conf0000664000000000000000000000225012700600465017203 0ustar # # Check can login without password for accounts that do not have a password # [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account without a password #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/script-hooks.conf0000664000000000000000000000360112700600465016247 0ustar # # Check LightDM runs the script hooks correctly for autologin and the greeter # [Seat:*] display-setup-script=test-script-hook DISPLAY-SETUP display-stopped-script=test-script-hook DISPLAY-STOPPED greeter-setup-script=test-script-hook GREETER-SETUP session-setup-script=test-script-hook SESSION-SETUP session-cleanup-script=test-script-hook SESSION-CLEANUP autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # One X server should start by default #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Script hooks run #?SCRIPT-HOOK DISPLAY-SETUP #?SCRIPT-HOOK SESSION-SETUP USER=have-password1 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout session #?*SESSION-X-0 LOGOUT # Script hook runs #?SCRIPT-HOOK SESSION-CLEANUP USER=have-password1 # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # Script hooks run #?SCRIPT-HOOK DISPLAY-STOPPED # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Script hooks run #?SCRIPT-HOOK DISPLAY-SETUP #?SCRIPT-HOOK GREETER-SETUP USER=.* # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 # Script hooks run #?SCRIPT-HOOK DISPLAY-STOPPED # Finish cleanup #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-compositor-fallback.conf0000664000000000000000000000204312700600465020722 0ustar # # Check seat type falls back when the compositor fails to start # [unity-system-compositor-config] return-value=1 [Seat:*] type=unity;INVALID;unity;xlocal; #?*START-DAEMON #?RUNNER DAEMON-START # System compositor fails to start #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?UNITY-SYSTEM-COMPOSITOR EXIT CODE=1 # System compositor fails to start a second time #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?UNITY-SYSTEM-COMPOSITOR EXIT CODE=1 # X server starts in VT mode #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-autologin.conf0000664000000000000000000000173612700600465017000 0ustar # # Check can automatically login with Unity seat type # [Seat:*] type=unity autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # X server starts #?XMIR-0 START SEAT=seat0 MIR-ID=x-0 # Daemon connects when X server is ready #?*XMIR-0 INDICATE-READY #?XMIR-0 INDICATE-READY #?XMIR-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XMIR-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # System compositor switches to session #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XMIR-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-compositor-fail-start.conf0000664000000000000000000000056412700600465021237 0ustar # # Check clean stop when the compositor fails to start # [unity-system-compositor-config] return-value=1 [Seat:*] type=unity #?*START-DAEMON #?RUNNER DAEMON-START # System compositor fails to start #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?UNITY-SYSTEM-COMPOSITOR EXIT CODE=1 # Daemon exits with error code #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/console-kit-no-xdg-runtime.conf0000664000000000000000000000172012700600465020724 0ustar # # Check ConsoleKit works when GetXDGRuntime is not supported # [test-runner-config] disable-login1=true ck-no-xdg-runtime=true [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_COOKIE=ck-cookie-x:0 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?CONSOLE-KIT ACTIVATE-SESSION SESSION=ck-cookie-x:0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check XDG_RUNTIME_DIR is NOT set #?*SESSION-X-0 READ-ENV NAME=XDG_RUNTIME_DIR #?SESSION-X-0 READ-ENV NAME=XDG_RUNTIME_DIR VALUE= # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/utmp-login.conf0000664000000000000000000000415212700600465015717 0ustar # # Check UTMP records written on login # [test-utmp-config] check-events=true [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # UTMP/WTMP record written #?UTMP TYPE=USER_PROCESS LINE=tty7 ID=:0 USER=have-password1 HOST=:0 #?WTMP FILE=.*/wtmp TYPE=USER_PROCESS LINE=tty7 ID=:0 USER=have-password1 HOST=:0 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout session #?*SESSION-X-0 LOGOUT # UTMP/WTMP record written #?UTMP TYPE=DEAD_PROCESS LINE=tty7 ID=:0 USER=have-password1 HOST=:0 #?WTMP FILE=.*/wtmp TYPE=DEAD_PROCESS LINE=tty7 ID=:0 USER=have-password1 HOST=:0 # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/allow-tcp-xorg-1.16.conf0000664000000000000000000000146512700600465017072 0ustar # # Check can enable TCP listening in X.Org < 1.17 (default is listening enabled) # [test-xserver-config] version=1.16.0 [Seat:*] autologin-user=have-password1 user-session=default xserver-allow-tcp=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 LISTEN-TCP SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/power-no-services.conf0000664000000000000000000000250612700600465017214 0ustar # # Check can do power operations from the greeter when no services running # [test-runner-config] disable-upower=true disable-console-kit=true disable-login1=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # See if can suspend #?*GREETER-X-0 GET-CAN-SUSPEND #?GREETER-X-0 CAN-SUSPEND ALLOWED=FALSE # Suspend #?*GREETER-X-0 SUSPEND #?GREETER-X-0 FAIL-SUSPEND # See if can hibernate #?*GREETER-X-0 GET-CAN-HIBERNATE #?GREETER-X-0 CAN-HIBERNATE ALLOWED=FALSE # Hibernate #?*GREETER-X-0 HIBERNATE #?GREETER-X-0 FAIL-HIBERNATE # See if can restart #?*GREETER-X-0 GET-CAN-RESTART #?GREETER-X-0 CAN-RESTART ALLOWED=FALSE # Restart #?*GREETER-X-0 RESTART #?GREETER-X-0 FAIL-RESTART # See if can shutdown #?*GREETER-X-0 GET-CAN-SHUTDOWN #?GREETER-X-0 CAN-SHUTDOWN ALLOWED=FALSE # Shutdown #?*GREETER-X-0 SHUTDOWN #?GREETER-X-0 FAIL-SHUTDOWN # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-greeter-new-session.conf0000664000000000000000000000364112700600465021452 0ustar # # Use D-Bus interface to show the greeter, then start a new session # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Show the greeter #?*SWITCH-TO-GREETER #?RUNNER SWITCH-TO-GREETER # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Login #?*GREETER-X-1 AUTHENTICATE USERNAME=have-password2 #?GREETER-X-1 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-1 RESPOND TEXT="password" #?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=have-password2 AUTHENTICATED=TRUE #?*GREETER-X-1 START-SESSION #?GREETER-X-1 TERMINATE SIGNAL=15 # New session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/have-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password2 #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/lock-seat-return-session-console-kit.conf0000664000000000000000000000373212700600465022734 0ustar # # Check can lock a seat from D-Bus and can return to it when using ConsoleKit # [test-runner-config] disable-login1=true [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_COOKIE=ck-cookie-x:0 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?CONSOLE-KIT ACTIVATE-SESSION SESSION=ck-cookie-x:0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Lock the seat #?*SESSION-X-0 LOCK-SEAT #?SESSION-X-0 LOCK-SEAT # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?CONSOLE-KIT LOCK-SESSION # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_COOKIE=ck-cookie-x:1 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON #?GREETER-X-1 LOCK-HINT # Switch to greeter #?CONSOLE-KIT ACTIVATE-SESSION SESSION=ck-cookie-x:1 #?VT ACTIVATE VT=8 # Login as existing user #?*GREETER-X-1 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-1 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-1 RESPOND TEXT="password" #?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-1 START-SESSION # Old session is unlocked #?CONSOLE-KIT UNLOCK-SESSION # Return to session #?CONSOLE-KIT ACTIVATE-SESSION SESSION=ck-cookie-x:0 #?VT ACTIVATE VT=7 # Greeter and X server stop #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/shared-data-invalid-user.conf0000664000000000000000000000145612700600465020405 0ustar # # Make sure we handle requesting an invalid user to share data with # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Try and write data to an invalid user #?*GREETER-X-0 WRITE-SHARED-DATA USERNAME=invalid DATA=HELLO #?GREETER-X-0 WRITE-SHARED-DATA ERROR=NO_SHARED_DIR # Cleanup #?*STOP-DAEMON #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-logout.conf0000664000000000000000000000247712700600465017144 0ustar # # Check logging out after autologin returns to greeter and doesn't autologin again # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Autologin session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout session #?*SESSION-X-0 LOGOUT # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Wait in case the greeter tries to log in immediately #?*WAIT # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/script-hook-display-setup-fail.conf0000664000000000000000000000076012700600465021601 0ustar # # Check LightDM stops if the display setup script returns an error # [Seat:*] display-setup-script=test-script-hook DISPLAY-SETUP 1 #?*START-DAEMON #?RUNNER DAEMON-START # One X server should start by default #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Setup script fails #?SCRIPT-HOOK DISPLAY-SETUP #?XSERVER-0 TERMINATE SIGNAL=15 # Cleanup #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/switch-to-user-resettable.conf0000664000000000000000000000372312700600465020654 0ustar # # Check that switching to a user shows the greeter # Uses a resettable greeter # [Seat:*] user-session=default [test-greeter-config] resettable=true #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION # Start new X server for session #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?VT ACTIVATE VT=8 #?GREETER-X-0 IDLE # Session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to an account with a password #?*SWITCH-TO-USER USERNAME=have-password2 #?RUNNER SWITCH-TO-USER USERNAME=have-password2 # Switch to greeter #?LOGIN1 LOCK-SESSION SESSION=c1 #?GREETER-X-0 RESET #?VT ACTIVATE VT=7 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Requested user is automatically selected #?GREETER-X-0 SELECT-USER-HINT USERNAME=have-password2 #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password2 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-guest.conf0000664000000000000000000000227612700600465016066 0ustar # # Check can login as guest (not prompted for password) # [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Login as guest #?*GREETER-X-0 AUTHENTICATE-GUEST #?GREETER-X-0 AUTHENTICATION-COMPLETE AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Guest account created #?GUEST-ACCOUNT ADD USERNAME=guest-.* # Guest session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/guest-.* XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=guest-.* #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GUEST-ACCOUNT REMOVE USERNAME=guest-.* #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-compositor-not-found.conf0000664000000000000000000000042112700600465021072 0ustar # # Check can set the unity compositor command # [Seat:*] type=unity user-session=default unity-compositor-command=unity-system-compositor-INVALID #?*START-DAEMON #?RUNNER DAEMON-START # Command is not found # Daemon exits with error code #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/user-layout.conf0000664000000000000000000000276312700600465016123 0ustar # # Check returns correct layout for a user # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Correct layout is found #?*GREETER-X-0 LOG-USER USERNAME=have-layout FIELDS=LAYOUT #?GREETER-X-0 LOG-USER USERNAME=have-layout LAYOUT=us #?*GREETER-X-0 LOG-USER USERNAME=have-layouts FIELDS=LAYOUT,LAYOUTS #?GREETER-X-0 LOG-USER USERNAME=have-layouts LAYOUT=fr oss LAYOUTS=fr oss;ru # Watch a user for properties changes #?*GREETER-X-0 WATCH-USER USERNAME=prop-user #?GREETER-X-0 WATCH-USER USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=LAYOUT,LAYOUTS #?GREETER-X-0 LOG-USER USERNAME=prop-user LAYOUT= LAYOUTS= # Update layout #?*UPDATE-USER USERNAME=prop-user LAYOUTS=en_NZ.utf8;en_AU.utf8 #?RUNNER UPDATE-USER USERNAME=prop-user LAYOUTS=en_NZ.utf8;en_AU.utf8 #?GREETER-X-0 USER-CHANGED USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=LAYOUT,LAYOUTS #?GREETER-X-0 LOG-USER USERNAME=prop-user LAYOUT=en_NZ.utf8 LAYOUTS=en_NZ.utf8;en_AU.utf8 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-greeter-return-session.conf0000664000000000000000000000345512700600465022203 0ustar # # Use D-Bus interface to show the greeter, then return to the same session # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Show the greeter #?*SWITCH-TO-GREETER #?RUNNER SWITCH-TO-GREETER # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Login as existing user #?*GREETER-X-1 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-1 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-1 RESPOND TEXT="password" #?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-1 START-SESSION # Session is unlocked #?LOGIN1 UNLOCK-SESSION SESSION=c0 # Switch to session #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?VT ACTIVATE VT=7 # Greeter and X server stop #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/greeter-hide-users.conf0000664000000000000000000000136212700600465017327 0ustar # # Check greeter is informed if user list should be hidden # [Seat:*] greeter-hide-users=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Check has correct hint to hide users #?GREETER-X-0 HIDE-USERS-HINT # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/corrupt-xauthority.conf0000664000000000000000000000173412700600465017543 0ustar # # Check can login if existing corrupt authority present # [Seat:*] autologin-user=corrupt-xauth user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/corrupt-xauth XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=corrupt-xauth #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check where the X authority is #?*SESSION-X-0 READ-ENV NAME=XAUTHORITY #?SESSION-X-0 READ-ENV NAME=XAUTHORITY VALUE=.*/home/corrupt-xauth/.Xauthority # Check has correct permissions #?*SESSION-X-0 CHECK-X-AUTHORITY #?SESSION-X-0 CHECK-X-AUTHORITY MODE=rw------- # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/script-hook-greeter-setup-fail.conf0000664000000000000000000000077012700600465021572 0ustar # # Check LightDM stops if the greeter setup script returns an error # [Seat:*] greeter-setup-script=test-script-hook GREETER-SETUP 1 #?*START-DAEMON #?RUNNER DAEMON-START # One X server should start by default #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Setup script fails #?SCRIPT-HOOK GREETER-SETUP USER=.* #?XSERVER-0 TERMINATE SIGNAL=15 # Cleanup #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/login-guest-disabled.conf0000664000000000000000000000147212700600465017630 0ustar # # Check can't login to guest if account disabled # [Seat:*] allow-guest=false #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?GREETER-X-0 HAS-GUEST-ACCOUNT-HINT=FALSE # Login as guest #?*GREETER-X-0 AUTHENTICATE-GUEST #?GREETER-X-0 AUTHENTICATION-COMPLETE AUTHENTICATED=FALSE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-mir-greeter-x-session.conf0000664000000000000000000000303312700600465021137 0ustar # # Check can log into an X session from a Mir greeter # [Seat:*] type=unity user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Greeter starts #?GREETER-MIR-greeter-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?GREETER-MIR-greeter-0 CONNECT-TO-DAEMON #?GREETER-MIR-greeter-0 CONNECTED-TO-DAEMON # System compositor switches to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=greeter-0 # Log into account with a password #?*GREETER-MIR-greeter-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-MIR-greeter-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-MIR-greeter-0 START-SESSION # X server starts #?XMIR-0 START SEAT=seat0 MIR-ID=x-0 # Daemon connects when X server is ready #?*XMIR-0 INDICATE-READY #?XMIR-0 INDICATE-READY #?XMIR-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XMIR-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # System compositor switches to session #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0 # Greeter stops #?GREETER-MIR-greeter-0 TERMINATE SIGNAL=15 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XMIR-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-guest-disabled.conf0000664000000000000000000000204512700600465020436 0ustar # # Check can't switch to guest when disabled # [Seat:*] autologin-user=have-password1 user-session=default allow-user-switching=false #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Default session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check daemon says we can't switch #?*SEAT-CAN-SWITCH #?RUNNER SEAT-CAN-SWITCH CAN-SWITCH=FALSE # Check daemon says we have a guest account #?*SEAT-HAS-GUEST-ACCOUNT #?RUNNER SEAT-HAS-GUEST-ACCOUNT HAS-GUEST-ACCOUNT=TRUE # Attempt to switch to guest #?*SWITCH-TO-GUEST #?RUNNER SWITCH-TO-GUEST FAILED # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-xdm-authentication-invalid-authorization.conf0000664000000000000000000000202212700600465026362 0ustar # # Check that a remote X server needs both XDM authentication and authorization # [LightDM] start-default-seat=false [XDMCPServer] enabled=true key=test-key #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect with XDM authentication - daemon says OK #?*XSERVER-98 SEND-QUERY AUTHENTICATION-NAMES="XDM-AUTHENTICATION-1" #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" HOSTNAME="" STATUS="" # Connect with wrong authorization - daemon declines #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" AUTHENTICATION-DATA="0123456789ABCDEF" AUTHORIZATION-NAMES="MIT-MAGIC-COOKIE-1" #?XSERVER-98 GOT-DECLINE STATUS="No matching authorization, server requires XDM-AUTHORIZATION-1" AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" AUTHENTICATION-DATA=E9D2BDD16E64C251 # Clean up #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-session-crash.conf0000664000000000000000000000335512700600465017517 0ustar # # Check if session crashes then returned to greeter # [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into an account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Crash session #?*SESSION-X-0 CRASH # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/power-no-console-kit.conf0000664000000000000000000000256012700600465017620 0ustar # # Check can do power operations from the greeter when no ConsoleKit service # [test-runner-config] disable-console-kit=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # See if can suspend #?*GREETER-X-0 GET-CAN-SUSPEND #?LOGIN1 CAN-SUSPEND #?GREETER-X-0 CAN-SUSPEND ALLOWED=TRUE # Suspend #?*GREETER-X-0 SUSPEND #?LOGIN1 SUSPEND # See if can hibernate #?*GREETER-X-0 GET-CAN-HIBERNATE #?LOGIN1 CAN-HIBERNATE #?GREETER-X-0 CAN-HIBERNATE ALLOWED=TRUE # Hibernate #?*GREETER-X-0 HIBERNATE #?LOGIN1 HIBERNATE # See if can restart #?*GREETER-X-0 GET-CAN-RESTART #?LOGIN1 CAN-REBOOT #?GREETER-X-0 CAN-RESTART ALLOWED=TRUE # Restart #?*GREETER-X-0 RESTART #?LOGIN1 REBOOT # See if can shutdown #?*GREETER-X-0 GET-CAN-SHUTDOWN #?LOGIN1 CAN-POWER-OFF #?GREETER-X-0 CAN-SHUTDOWN ALLOWED=TRUE # Shutdown #?*GREETER-X-0 SHUTDOWN #?LOGIN1 POWER-OFF # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-timeout-in-background.conf0000664000000000000000000000302112700600465022024 0ustar # # Check automatically logs in default user with timeout and in-background set # [Seat:*] autologin-user=have-password1 autologin-user-timeout=99 autologin-in-background=true user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # Greeter starts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Autologin session starts #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Greeter is requested to timeout #?GREETER-X-0 AUTOLOGIN-USER USERNAME=have-password1 TIMEOUT=99 # Trigger autologin #?*GREETER-X-0 AUTHENTICATE-AUTOLOGIN #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION # Switch to existing session #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Quit greeter #?GREETER-X-0 TERMINATE SIGNAL=15 # Cleanup #?*STOP-DAEMON #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-guest.conf0000664000000000000000000000354012700600465016672 0ustar # # Check D-Bus interface can trigger/switch to guest session # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Default session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check daemon says we can switch #?*SEAT-CAN-SWITCH #?RUNNER SEAT-CAN-SWITCH CAN-SWITCH=TRUE # Check daemon says we have a guest account #?*SEAT-HAS-GUEST-ACCOUNT #?RUNNER SEAT-HAS-GUEST-ACCOUNT HAS-GUEST-ACCOUNT=TRUE # Switch to guest #?*SWITCH-TO-GUEST #?RUNNER SWITCH-TO-GUEST # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Guest account created #?GUEST-ACCOUNT ADD USERNAME=guest-.* # Guest session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/guest-.* XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=guest-.* #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to session #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Switch again, should not do anything as guest already running #?*SWITCH-TO-GUEST #?RUNNER SWITCH-TO-GUEST #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?*WAIT # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?GUEST-ACCOUNT REMOVE USERNAME=guest-.* #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-in-background.conf0000664000000000000000000000217512700600465020351 0ustar # # Check automatically logs in default user while keeping a greeter up # [Seat:*] autologin-user=have-password1 autologin-in-background=true user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # Greeter starts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Autologin session starts #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/user-has-messages.conf0000664000000000000000000000226212700600465017160 0ustar # # Check user indicates if they have messages # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Watch a user for properties changes #?*GREETER-X-0 WATCH-USER USERNAME=prop-user #?GREETER-X-0 WATCH-USER USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=HAS-MESSAGES #?GREETER-X-0 LOG-USER USERNAME=prop-user HAS-MESSAGES=FALSE # Flag a user as having messages #?*UPDATE-USER USERNAME=prop-user HAS-MESSAGES=TRUE #?RUNNER UPDATE-USER USERNAME=prop-user HAS-MESSAGES=TRUE #?GREETER-X-0 USER-CHANGED USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=HAS-MESSAGES #?GREETER-X-0 LOG-USER USERNAME=prop-user HAS-MESSAGES=TRUE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-long-username.conf0000664000000000000000000000205512700600465017506 0ustar # # Check can handle very long username being provided # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log in with a very long username #?*GREETER-X-0 AUTHENTICATE USERNAME=0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 AUTHENTICATED=FALSE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-user-logout-inactive.conf0000664000000000000000000000270112700600465021626 0ustar # # Check that switching to a user and logging out the inactive session does nothing # [Seat:*] autologin-user=no-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Switch user #?*SWITCH-TO-USER USERNAME=no-password2 #?RUNNER SWITCH-TO-USER USERNAME=no-password2 # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/no-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password2 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to new session #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Log out old session #?*SESSION-X-0 LOGOUT #?XSERVER-0 TERMINATE SIGNAL=15 # Cleanup #?*STOP-DAEMON #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/multi-seat-change-graphical.conf0000664000000000000000000000314712700600465021066 0ustar # # Check seat can change graphical status # [LightDM] logind-check-graphical=true #?*START-DAEMON #?RUNNER DAEMON-START # seat0 starts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Add seat1 #?*ADD-SEAT ID=seat1 # seat1 starts #?XSERVER-1 START SEAT=seat1 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 START XDG_SEAT=seat1 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Remove graphical status from seat #?*UPDATE-SEAT ID=seat1 CAN-GRAPHICAL=FALSE # seat1 stops #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 # Add graphical status back #?*UPDATE-SEAT ID=seat1 CAN-GRAPHICAL=TRUE # seat1 starts #?XSERVER-1 START SEAT=seat1 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 START XDG_SEAT=seat1 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login.conf0000664000000000000000000000230512700600465014732 0ustar # # Check can login # [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/open-file-descriptors.conf0000664000000000000000000000265212700600465020044 0ustar # # Check session doesn't have any file descriptors to the daemon open. # Use a greeter so its file descriptors are around at the time the session starts. # [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log in #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check file descriptors #?*SESSION-X-0 LIST-UNKNOWN-FILE-DESCRIPTORS #?SESSION-X-0 LIST-UNKNOWN-FILE-DESCRIPTORS FDS= # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-user-active.conf0000664000000000000000000000156012700600465017772 0ustar # # Check that switching to a user who is the active session does nothing # [Seat:*] autologin-user=no-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Switch to this user #?*SWITCH-TO-USER USERNAME=no-password1 #?RUNNER SWITCH-TO-USER USERNAME=no-password1 # Nothing happends #?*WAIT # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/lock-seat-resettable.conf0000664000000000000000000000317512700600465017642 0ustar # # Check can lock a seat from D-Bus # Uses a resettable greeter # [Seat:*] user-session=default [test-greeter-config] resettable=true #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION # Start new X server for session #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?VT ACTIVATE VT=8 #?GREETER-X-0 IDLE # Session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Lock the seat #?*SESSION-X-1 LOCK-SEAT #?SESSION-X-1 LOCK-SEAT # Back to greeter #?LOGIN1 LOCK-SESSION SESSION=c1 #?GREETER-X-0 RESET #?GREETER-X-0 LOCK-HINT #?VT ACTIVATE VT=7 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/vnc-dimensions.conf0000664000000000000000000000172712700600465016565 0ustar # # Check you can set the dimensions for the VNC server # [LightDM] start-default-seat=false [VNCServer] enabled=true width=1440 height=900 depth=16 #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a VNC client #?*START-VNC-CLIENT #?VNC-CLIENT START #?VNC-CLIENT CONNECT # Xvnc server starts #?XVNC-0 START GEOMETRY=1440x900 DEPTH=16 OPTION=FALSE # Daemon connects when X server is ready #?*XVNC-0 INDICATE-READY #?XVNC-0 INDICATE-READY #?XVNC-0 ACCEPT-CONNECT # Negotiate with Xvnc #?*XVNC-0 START-VNC #?VNC-CLIENT CONNECTED VERSION="RFB 003.007" #?XVNC-0 VNC-CLIENT-CONNECT VERSION="RFB 003.003" # Greeter starts and connects to remote X server #?GREETER-X-0 START XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XVNC-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Clean up #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XVNC-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-manual-remember-session.conf0000664000000000000000000000451512700600465021467 0ustar # # Check when logging in manually the session logged in as is remembered the second time a login occurs # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Login and pick a session #?*GREETER-X-0 AUTHENTICATE #?GREETER-X-0 SHOW-PROMPT TEXT="login:" #?*GREETER-X-0 RESPOND TEXT="no-password1" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION SESSION=alternative #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=alternative NAME=alternative USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout session #?*SESSION-X-0 LOGOUT # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account without specifying a session #?*GREETER-X-0 AUTHENTICATE #?GREETER-X-0 SHOW-PROMPT TEXT="login:" #?*GREETER-X-0 RESPOND TEXT="no-password1" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=alternative NAME=alternative USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c3 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/session-stderr-multi-write.conf0000664000000000000000000000173612700600465021075 0ustar # # Check session stderr is written to ~/.xsession-errors and multiple writes are appended # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Write to stderr and check all text ends up in log #?*SESSION-X-0 WRITE-STDERR TEXT=MULTI- #?*SESSION-X-0 WRITE-STDERR TEXT=WRITE #?*SESSION-X-0 READ FILE=.xsession-errors #?SESSION-X-0 READ FILE=.xsession-errors TEXT=MULTI-WRITE # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/lock-session.conf0000664000000000000000000000271312700600465016236 0ustar # # Check can lock a session from D-Bus # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Lock the session #?*SESSION-X-0 LOCK-SESSION #?SESSION-X-0 LOCK-SESSION # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts with session user selected #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON #?GREETER-X-1 SELECT-USER-HINT USERNAME=have-password1 #?GREETER-X-1 LOCK-HINT # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/lock-session-twice.conf0000664000000000000000000000375512700600465017356 0ustar # # Check locking a session twice doesn't spawn two greeters # [SeatDefaults] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Lock the session #?*SESSION-X-0 LOCK-SESSION #?SESSION-X-0 LOCK-SESSION # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts with session user selected #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON #?GREETER-X-1 SELECT-USER-HINT USERNAME=have-password1 #?GREETER-X-1 LOCK-HINT # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Lock the session again #?*SESSION-X-0 LOCK-SESSION #?SESSION-X-0 LOCK-SESSION # Old greeter is stopped #?GREETER-X-1 TERMINATE SIGNAL=15 #?LOGIN1 ACTIVATE-SESSION SESSION=c2 # A new greeter is started and activated on the same X server #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON #?GREETER-X-1 SELECT-USER-HINT USERNAME=have-password1 #?GREETER-X-1 LOCK-HINT # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-script-hooks.conf0000664000000000000000000000426612700600465017425 0ustar # # Check LightDM runs the script hooks correctly for autologin and the greeter # [Seat:*] type=unity display-setup-script=test-script-hook DISPLAY-SETUP display-stopped-script=test-script-hook DISPLAY-STOPPED greeter-setup-script=test-script-hook GREETER-SETUP session-setup-script=test-script-hook SESSION-SETUP session-cleanup-script=test-script-hook SESSION-CLEANUP autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # X server starts #?XMIR-0 START SEAT=seat0 MIR-ID=x-0 # Daemon connects when X server is ready #?*XMIR-0 INDICATE-READY #?XMIR-0 INDICATE-READY #?XMIR-0 ACCEPT-CONNECT #?SCRIPT-HOOK DISPLAY-SETUP #?SCRIPT-HOOK SESSION-SETUP USER=have-password1 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XMIR-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # System compositor switches to session #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0 # Logout session #?*SESSION-X-0 LOGOUT # Script hook runs #?SCRIPT-HOOK SESSION-CLEANUP USER=have-password1 # X server stops #?XMIR-0 TERMINATE SIGNAL=15 # Script hooks run #?SCRIPT-HOOK DISPLAY-STOPPED # X server starts #?XMIR-1 START SEAT=seat0 MIR-ID=x-1 # Daemon connects when X server is ready #?*XMIR-1 INDICATE-READY #?XMIR-1 INDICATE-READY #?XMIR-1 ACCEPT-CONNECT # Script hooks run #?SCRIPT-HOOK DISPLAY-SETUP #?SCRIPT-HOOK GREETER-SETUP USER=.* # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XMIR-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # System compositor switches to session #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-1 # Cleanup #?*STOP-DAEMON #?GREETER-X-1 TERMINATE SIGNAL=15 #?XMIR-1 TERMINATE SIGNAL=15 # Script hooks run #?SCRIPT-HOOK DISPLAY-STOPPED # Finish cleanup #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-guest-logout.conf0000664000000000000000000000331312700600465017366 0ustar # # Check automatically logs in default user # [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log in #?*GREETER-X-0 AUTHENTICATE-GUEST #?GREETER-X-0 AUTHENTICATION-COMPLETE AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Guest account created #?GUEST-ACCOUNT ADD USERNAME=guest-.* # Guest session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/guest-.* XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=guest-.* #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout of session #?*SESSION-X-0 LOGOUT # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # Guest account removed #?GUEST-ACCOUNT REMOVE USERNAME=guest-.* # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/greeter-xserver-crash.conf0000664000000000000000000000223412700600465020052 0ustar # # Check X server crashing while running greeter returns to the greeter # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Crash X server #?*XSERVER-0 CRASH # Greeter quits #?GREETER-X-0 TERMINATE SIGNAL=15 # X server restarts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/multi-seat-globbing-config-sections.conf0000664000000000000000000000566312700600465022571 0ustar # # Check can set globbing config sections matching different seats # [Seat:*] autologin-user=have-password1 user-session=default [Seat:seat*Foo] autologin-user-timeout=99 [Seat:seatAAAFoo] autologin-user=have-password2 [Seat:seatBBB*] autologin-user=have-password3 #?*START-DAEMON #?RUNNER DAEMON-START # seat0 starts #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts for configured user #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Add seatAAAFoo #?*ADD-SEAT ID=seatAAAFoo # seatAAAFoo starts #?XSERVER-1 START SEAT=seatAAAFoo #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Greeter starts #?GREETER-X-1 START XDG_SEAT=seatAAAFoo XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Greeter is requested to timeout #?GREETER-X-1 AUTOLOGIN-USER USERNAME=have-password2 TIMEOUT=99 # Trigger autologin #?*GREETER-X-1 AUTHENTICATE-AUTOLOGIN #?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=have-password2 AUTHENTICATED=TRUE #?*GREETER-X-1 START-SESSION #?GREETER-X-1 TERMINATE SIGNAL=15 # Session starts for configured user #?SESSION-X-1 START XDG_SEAT=seatAAAFoo XDG_GREETER_DATA_DIR=.*/have-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password2 #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Add seatBBBFoo #?*ADD-SEAT ID=seatBBBFoo # seatBBBFoo starts #?XSERVER-2 START SEAT=seatBBBFoo #?*XSERVER-2 INDICATE-READY #?XSERVER-2 INDICATE-READY #?XSERVER-2 ACCEPT-CONNECT # Greeter starts #?GREETER-X-2 START XDG_SEAT=seatBBBFoo XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c3 #?XSERVER-2 ACCEPT-CONNECT #?GREETER-X-2 CONNECT-XSERVER #?GREETER-X-2 CONNECT-TO-DAEMON #?GREETER-X-2 CONNECTED-TO-DAEMON # Greeter is requested to timeout #?GREETER-X-2 AUTOLOGIN-USER USERNAME=have-password3 TIMEOUT=99 # Trigger autologin #?*GREETER-X-2 AUTHENTICATE-AUTOLOGIN #?GREETER-X-2 AUTHENTICATION-COMPLETE USERNAME=have-password3 AUTHENTICATED=TRUE #?*GREETER-X-2 START-SESSION #?GREETER-X-2 TERMINATE SIGNAL=15 # Session starts for configured user #?SESSION-X-2 START XDG_SEAT=seatBBBFoo XDG_GREETER_DATA_DIR=.*/have-password3 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password3 #?LOGIN1 ACTIVATE-SESSION SESSION=c4 #?XSERVER-2 ACCEPT-CONNECT #?SESSION-X-2 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-2 TERMINATE SIGNAL=15 #?SESSION-X-2 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/no-config.conf0000664000000000000000000000127012700600465015501 0ustar # # Check LightDM runs without configuration # [test-runner-config] have-config=false #?*START-DAEMON #?RUNNER DAEMON-START # One X server should start by default #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/restart-authentication.conf0000664000000000000000000000154412700600465020327 0ustar # # Check can restart authentication # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Start authentication #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" # Restart authentication #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/wayland-session.conf0000664000000000000000000000224112700600465016741 0ustar # # Check can login into a Wayland session on a VT based seat # [Seat:*] user-session=wayland #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Attempt to log into account #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION # Greeter terminates #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-WAYLAND START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=wayland XDG_SESSION_DESKTOP=wayland USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 # Switch to session #?VT ACTIVATE VT=8 # Cleanup #?*STOP-DAEMON #?SESSION-WAYLAND TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-multi-prompt.conf0000664000000000000000000000207112700600465017401 0ustar # # Check multiple PAM informational messages on login are passed to a greeter # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account and see an informational prompt #?*GREETER-X-0 AUTHENTICATE USERNAME=multi-prompt #?GREETER-X-0 SHOW-PROMPT TEXT="Favorite Color:" #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" # Respond with password and check response is correctly handled #?*GREETER-X-0 RESPOND TEXT="blue" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=multi-prompt AUTHENTICATED=TRUE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-manual.conf0000664000000000000000000000251412700600465016207 0ustar # # Check can login without a username, and is prompted for one # [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Login as have-password1, but let lightdm prompt for a username #?*GREETER-X-0 AUTHENTICATE #?GREETER-X-0 SHOW-PROMPT TEXT="login:" #?*GREETER-X-0 RESPOND TEXT="have-password1" #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-xdm-authentication-no-key.conf0000664000000000000000000000171312700600465023246 0ustar # # Check that a remote X server can't login if requires XDM authentication and we're not configured for it # [LightDM] start-default-seat=false [XDMCPServer] enabled=true #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect with XDM authentication - daemon says we don't do that #?*XSERVER-98 SEND-QUERY AUTHENTICATION-NAMES="XDM-AUTHENTICATION-1" #?XSERVER-98 GOT-UNWILLING HOSTNAME="" STATUS="No matching authentication" # Try anyway - daemon rejects #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" AUTHORIZATION-NAME="XDM-AUTHORIZATION-1" #?XSERVER-98 GOT-DECLINE STATUS="No matching authentication, server only supports unauthenticated connections" AUTHENTICATION-NAME="" AUTHENTICATION-DATA= # Clean up #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-guest-fail-setup-script.conf0000664000000000000000000000146612700600465022330 0ustar # # Check guest account fails gracefully if setup script fails # [LightDM] guest-account-script=false [Seat:*] autologin-guest=true user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # (guest account attempts to start and fails) # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?GREETER-X-0 SELECT-GUEST-HINT # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-switch.conf0000664000000000000000000000521112700600465016270 0ustar # # Check system compositor correctly switches X sessions # [Seat:*] type=unity autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # X server starts #?XMIR-0 START SEAT=seat0 MIR-ID=x-0 # Daemon connects when X server is ready #?*XMIR-0 INDICATE-READY #?XMIR-0 INDICATE-READY #?XMIR-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XMIR-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # System compositor switches to session #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-0 # Show the greeter #?*SWITCH-TO-GREETER #?RUNNER SWITCH-TO-GREETER # New X server starts #?XMIR-1 START SEAT=seat0 MIR-ID=x-1 # Daemon connects when X server is ready #?*XMIR-1 INDICATE-READY #?XMIR-1 INDICATE-READY #?XMIR-1 ACCEPT-CONNECT # Lock session #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XMIR-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # System compositor switches to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-1 # Login #?*GREETER-X-1 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-1 START-SESSION #?GREETER-X-1 TERMINATE SIGNAL=15 # New session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XMIR-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Logout of new session #?*SESSION-X-1 LOGOUT #?XMIR-1 TERMINATE SIGNAL=15 # X server starts #?XMIR-2 START SEAT=seat0 MIR-ID=x-2 #?*XMIR-2 INDICATE-READY #?XMIR-2 INDICATE-READY #?XMIR-2 ACCEPT-CONNECT # Greeter starts #?GREETER-X-2 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c3 #?XMIR-2 ACCEPT-CONNECT #?GREETER-X-2 CONNECT-XSERVER #?GREETER-X-2 CONNECT-TO-DAEMON #?GREETER-X-2 CONNECTED-TO-DAEMON # System compositor switches to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=x-2 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XMIR-0 TERMINATE SIGNAL=15 #?GREETER-X-2 TERMINATE SIGNAL=15 #?XMIR-2 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/shared-data-session-to-greeter.conf0000664000000000000000000000372412700600465021541 0ustar # # Make sure a shared data directory is created on login and can be written back to the greeter # [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account without a password #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check session can write to data directory #?*SESSION-X-0 WRITE-SHARED-DATA DATA=HELLO #?SESSION-X-0 WRITE-SHARED-DATA RESULT=TRUE # Logout session #?*SESSION-X-0 LOGOUT # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Check greeter can read from user #?*GREETER-X-0 READ-SHARED-DATA USERNAME=no-password1 DATA=HELLO #?GREETER-X-0 READ-SHARED-DATA DATA=HELLO # Cleanup #?*STOP-DAEMON #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/user-image.conf0000664000000000000000000000216312700600465015662 0ustar # # Check returns correct image for a user # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Watch a user for properties changes #?*GREETER-X-0 WATCH-USER USERNAME=prop-user #?GREETER-X-0 WATCH-USER USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=IMAGE #?GREETER-X-0 LOG-USER USERNAME=prop-user IMAGE= # Change image #?*UPDATE-USER USERNAME=prop-user IMAGE=flower #?RUNNER UPDATE-USER USERNAME=prop-user IMAGE=flower #?GREETER-X-0 USER-CHANGED USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=IMAGE #?GREETER-X-0 LOG-USER USERNAME=prop-user IMAGE=flower # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/cred-expired.conf0000664000000000000000000000170512700600465016200 0ustar # # Check automatic login stops if an account has expired credentials # [Seat:*] autologin-user=cred-expired user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # (Session fails) # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-request-without-addresses.conf0000664000000000000000000000140512700600465023403 0ustar # # Check remote X server sending a request without connections is declined # [LightDM] start-default-seat=false [XDMCPServer] enabled=true #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect - daemon says OK #?*XSERVER-98 SEND-QUERY #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="" STATUS="" # Connect without providing an address - daemon declines #?*XSERVER-98 SEND-REQUEST ADDRESSES="" AUTHORIZATION-NAMES="MIT-MAGIC-COOKIE-1" #?XSERVER-98 GOT-DECLINE STATUS="No valid address found" AUTHENTICATION-NAME="" AUTHENTICATION-DATA= # Clean up #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/0-additional.conf0000664000000000000000000000004712700600465016070 0ustar [Seat:*] autologin-user=have-password1 lightdm-1.18.1/tests/scripts/autologin-guest-logout.conf0000664000000000000000000000250212700600465020256 0ustar # # Check automatically logs in default user # [Seat:*] autologin-guest=true user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Guest account created #?GUEST-ACCOUNT ADD USERNAME=guest-.* # Guest session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/guest-.* XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=guest-.* #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout of session #?*SESSION-X-0 LOGOUT # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # Guest account removed #?GUEST-ACCOUNT REMOVE USERNAME=guest-.* # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-request-without-authorization.conf0000664000000000000000000000144012700600465024325 0ustar # # Check remote X server sending a request without an authorization is declined # [LightDM] start-default-seat=false [XDMCPServer] enabled=true #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect - daemon says OK #?*XSERVER-98 SEND-QUERY #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="" STATUS="" # Connect without authorization - daemon says no #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHORIZATION-NAMES="" #?XSERVER-98 GOT-DECLINE STATUS="No matching authorization, server requires MIT-MAGIC-COOKIE-1" AUTHENTICATION-NAME="" AUTHENTICATION-DATA= # Clean up #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/language.conf0000664000000000000000000000244712700600465015414 0ustar # # Check returns correct language for a user # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Correct language is found #?*GREETER-X-0 LOG-USER USERNAME=have-language FIELDS=LANGUAGE #?GREETER-X-0 LOG-USER USERNAME=have-language LANGUAGE=en_AU # Watch a user for properties changes #?*GREETER-X-0 WATCH-USER USERNAME=prop-user #?GREETER-X-0 WATCH-USER USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=LANGUAGE #?GREETER-X-0 LOG-USER USERNAME=prop-user LANGUAGE= # Change language #?*UPDATE-USER USERNAME=prop-user LANGUAGE=klingon #?RUNNER UPDATE-USER USERNAME=prop-user LANGUAGE=klingon #?GREETER-X-0 USER-CHANGED USERNAME=prop-user #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=LANGUAGE #?GREETER-X-0 LOG-USER USERNAME=prop-user LANGUAGE=klingon # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/mir-autologin.conf0000664000000000000000000000134312700600465016411 0ustar # # Check can automatically log into a Mir session from a VT based seat # [Seat:*] autologin-user=have-password1 user-session=mir #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/lightdm-mir-0 VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Session starts #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Session shown #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0 # Cleanup #?*STOP-DAEMON #?SESSION-MIR-session-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/user-uid.conf0000664000000000000000000000137712700600465015367 0ustar # # Check returns correct UID for a user # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Check correct UID #?*GREETER-X-0 LOG-USER USERNAME=have-password1 FIELDS=UID #?GREETER-X-0 LOG-USER USERNAME=have-password1 UID=1000 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-open-file-descriptors.conf0000664000000000000000000000370612700600465022462 0ustar # # Check that an XDMCP session doesn't have any unknown file descriptors # [LightDM] start-default-seat=false [XDMCPServer] enabled=true [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect - daemon says OK #?*XSERVER-98 SEND-QUERY #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="" HOSTNAME="" STATUS="" # Connect - daemon says OK #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHORIZATION-NAMES="MIT-MAGIC-COOKIE-1" #?XSERVER-98 GOT-ACCEPT SESSION-ID=[0-9]+ AUTHENTICATION-NAME="" AUTHENTICATION-DATA= AUTHORIZATION-NAME="MIT-MAGIC-COOKIE-1" AUTHORIZATION-DATA=[0-9A-F]{32} #?*XSERVER-98 SEND-MANAGE # LightDM connects to X server #?XSERVER-98 ACCEPT-CONNECT # Greeter starts and connects to remote X server #?GREETER-X-127.0.0.1:98 START XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-98 ACCEPT-CONNECT #?GREETER-X-127.0.0.1:98 CONNECT-XSERVER #?GREETER-X-127.0.0.1:98 CONNECT-TO-DAEMON #?GREETER-X-127.0.0.1:98 CONNECTED-TO-DAEMON # Log in #?*GREETER-X-127.0.0.1:98 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-127.0.0.1:98 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-127.0.0.1:98 RESPOND TEXT="password" #?GREETER-X-127.0.0.1:98 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-127.0.0.1:98 START-SESSION #?GREETER-X-127.0.0.1:98 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-127.0.0.1:98 START XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-98 ACCEPT-CONNECT #?SESSION-X-127.0.0.1:98 CONNECT-XSERVER # Check file descriptors #?*SESSION-X-127.0.0.1:98 LIST-UNKNOWN-FILE-DESCRIPTORS #?SESSION-X-127.0.0.1:98 LIST-UNKNOWN-FILE-DESCRIPTORS FDS= # Clean up #?*STOP-DAEMON #?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-new-authtok.conf0000664000000000000000000000236612700600465017205 0ustar # # Check prompted to change password # [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account that requires as password change #?*GREETER-X-0 AUTHENTICATE USERNAME=new-authtok #?GREETER-X-0 SHOW-PROMPT TEXT="Enter new password \(expired\):" #?*GREETER-X-0 RESPOND TEXT="New password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=new-authtok AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/new-authtok XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=new-authtok #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/plymouth-no-seat.conf0000664000000000000000000000056612700600465017056 0ustar # # Check Plymouth quits when the X server fails to start. # [LightDM] start-default-seat=false [test-plymouth-config] enabled=true has-active-vt=true active=true #?*START-DAEMON #?RUNNER DAEMON-START # Check if Plymouth is running #?PLYMOUTH PING ACTIVE=TRUE # Plymouth quits #?PLYMOUTH QUIT RETAIN-SPLASH=FALSE # Cleanup #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/lock-session-resettable.conf0000664000000000000000000000333112700600465020363 0ustar # # Check can lock a session from D-Bus # Uses a resettable greeter # [Seat:*] user-session=default [test-greeter-config] resettable=true #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION # Start new X server for session #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?VT ACTIVATE VT=8 #?GREETER-X-0 IDLE # Session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Lock the session #?*SESSION-X-1 LOCK-SESSION #?SESSION-X-1 LOCK-SESSION # Back to greeter with session user selected #?LOGIN1 LOCK-SESSION SESSION=c1 #?GREETER-X-0 RESET #?GREETER-X-0 SELECT-USER-HINT USERNAME=no-password1 #?GREETER-X-0 LOCK-HINT #?VT ACTIVATE VT=7 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-invalid-greeter.conf0000664000000000000000000000133112700600465020700 0ustar # # Check quits if autologin session ends and no valid greeter # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Logout session #?*SESSION-X-0 LOGOUT # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=1 lightdm-1.18.1/tests/scripts/mir-greeter.conf0000664000000000000000000000123712700600465016047 0ustar # # Check can run a Mir greeter from a VT based seat # #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/lightdm-mir-0 VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Greeter starts #?GREETER-MIR-greeter-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?GREETER-MIR-greeter-0 CONNECT-TO-DAEMON #?GREETER-MIR-greeter-0 CONNECTED-TO-DAEMON # Greeter shown #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=greeter-0 # Cleanup #?*STOP-DAEMON #?GREETER-MIR-greeter-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/change-authentication.conf0000664000000000000000000000154712700600465020073 0ustar # # Check can change authentication # #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Start authentication #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" # Change user authentication #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password2 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-session-error.conf0000664000000000000000000000170312700600465020434 0ustar # # Check automatic login stops if an account can't open a session # [Seat:*] autologin-user=session-error user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # (Session fails) # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-server-xdm-authentication-long-data.conf0000664000000000000000000000220712700600465023711 0ustar # # Check that a remote X server needs both XDM authentication and correct length authentication data # [LightDM] start-default-seat=false [XDMCPServer] enabled=true key=test-key #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # Start a remote X server to log in with XDMCP #?*START-XSERVER ARGS=":98 -query 127.0.0.1 -nolisten unix" #?XSERVER-98 START LISTEN-TCP NO-LISTEN-UNIX # Request to connect with XDM authentication - daemon says OK #?*XSERVER-98 SEND-QUERY AUTHENTICATION-NAMES="XDM-AUTHENTICATION-1" #?XSERVER-98 GOT-WILLING AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" HOSTNAME="" STATUS="" # Connect without any authentication data - daemon declines #?*XSERVER-98 SEND-REQUEST ADDRESSES="127.0.0.1" AUTHENTICATION-NAME="XDM-AUTHENTICATION-1" AUTHENTICATION-DATA="DEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF" AUTHORIZATION-NAMES="XDM-AUTHORIZATION-1" #?XSERVER-98 GOT-DECLINE STATUS="Invalid XDM-AUTHENTICATION-1 data provided" AUTHENTICATION-NAME="" AUTHENTICATION-DATA= # Clean up #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/unity-mir-script-hooks.conf0000664000000000000000000000335712700600465020212 0ustar # # Check LightDM runs the script hooks correctly for autologin and the greeter # [Seat:*] type=unity display-setup-script=test-script-hook DISPLAY-SETUP display-stopped-script=test-script-hook DISPLAY-STOPPED greeter-setup-script=test-script-hook GREETER-SETUP session-setup-script=test-script-hook SESSION-SETUP session-cleanup-script=test-script-hook SESSION-CLEANUP autologin-user=have-password1 user-session=mir #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/mir_socket VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Script hooks run #?SCRIPT-HOOK DISPLAY-SETUP #?SCRIPT-HOOK SESSION-SETUP USER=have-password1 # Session starts #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # System compositor switches to session #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0 # Logout session #?*SESSION-MIR-session-0 LOGOUT # Script hooks runs #?SCRIPT-HOOK SESSION-CLEANUP USER=have-password1 # FIXME: order wrong here? #?SCRIPT-HOOK DISPLAY-SETUP #?SCRIPT-HOOK DISPLAY-STOPPED #?SCRIPT-HOOK GREETER-SETUP USER=.* # Greeter starts #?GREETER-MIR-greeter-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?GREETER-MIR-greeter-0 CONNECT-TO-DAEMON #?GREETER-MIR-greeter-0 CONNECTED-TO-DAEMON # System compositor switches to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=greeter-0 # Cleanup #?*STOP-DAEMON #?GREETER-MIR-greeter-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 # Script hooks run #?SCRIPT-HOOK DISPLAY-STOPPED # Finish cleanup #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/cred-unavail.conf0000664000000000000000000000170612700600465016200 0ustar # # Check automatic login stops if an account can't access credentials # [Seat:*] autologin-user=cred-unavail user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # (Session fails) # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xdmcp-client-xorg-1.16.conf0000664000000000000000000000102212700600465017544 0ustar # # Check can run a local XDMCP client in X.Org < 1.17 (default is listening enabled) # [test-xserver-config] version=1.16.0 [Seat:*] xdmcp-manager=127.0.0.1 #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 LISTEN-TCP SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Send an XDMCP query #?*XSERVER-0 SEND-QUERY # Wait to check a greeter is not started #?*WAIT # Cleanup #?*STOP-DAEMON #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/greeter-default-session.conf0000664000000000000000000000144612700600465020367 0ustar # # Check greeter is informed of the default user session # [Seat:*] user-session=alternative #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Check has correct user session #?*GREETER-X-0 LOG-DEFAULT-SESSION #?GREETER-X-0 LOG-DEFAULT-SESSION SESSION=alternative # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-pam-config.conf0000664000000000000000000000367312700600465016761 0ustar # # Check we can configure the PAM service for login # [Seat:*] user-session=default pam-service=lightdm-alternative pam-greeter-service=lightdm-greeter-alternative [test-pam] log-events=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Create PAM session for greeter #?PAM-lightdm START SERVICE=lightdm-greeter-alternative USER=lightdm #?PAM-lightdm SETCRED ESTABLISH_CRED #?PAM-lightdm OPEN-SESSION # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Greeter does authentication via PAM #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?PAM-have-password1 START SERVICE=lightdm-alternative USER=have-password1 #?PAM-have-password1 AUTHENTICATE #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?PAM-have-password1 ACCT-MGMT #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE # User session starts #?*GREETER-X-0 START-SESSION #?PAM-have-password1 SETCRED ESTABLISH_CRED #?PAM-have-password1 OPEN-SESSION # Greeter session stops #?GREETER-X-0 TERMINATE SIGNAL=15 #?PAM-lightdm CLOSE-SESSION #?PAM-lightdm SETCRED DELETE_CRED #?PAM-lightdm END # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?PAM-have-password1 CLOSE-SESSION #?PAM-have-password1 SETCRED DELETE_CRED #?PAM-have-password1 END #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/lock-session-return-session.conf0000664000000000000000000000363312700600465021236 0ustar # # Check can lock a session from D-Bus and can return to it # [Seat:*] autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Lock the session #?*SESSION-X-0 LOCK-SESSION #?SESSION-X-0 LOCK-SESSION # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c0 # Greeter starts with session user selected #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON #?GREETER-X-1 SELECT-USER-HINT USERNAME=have-password1 #?GREETER-X-1 LOCK-HINT # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Login as existing user #?*GREETER-X-1 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-1 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-1 RESPOND TEXT="password" #?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-1 START-SESSION # Existing session is unlocked #?LOGIN1 UNLOCK-SESSION SESSION=c0 # Return to session #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?VT ACTIVATE VT=7 # Greeter and X server stop #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/login-guest-fail-setup-script.conf0000664000000000000000000000230712700600465021432 0ustar # # Check guest account fails gracefully if setup script fails # [LightDM] guest-account-script=false [Seat:*] user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Login as guest #?*GREETER-X-0 AUTHENTICATE-GUEST #?GREETER-X-0 AUTHENTICATION-COMPLETE AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # (guest account attempts to start and fails) # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON #?GREETER-X-0 SELECT-GUEST-HINT # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/autologin-previous-session.conf0000664000000000000000000000131712700600465021160 0ustar # # Check automatically logs in and picks correct session # [Seat:*] autologin-user=have-session #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-session XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=alternative NAME=alternative USER=have-session #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/user-logged-in.conf0000664000000000000000000000462312700600465016450 0ustar # # Check user marked as logged in # [Seat:*] user-session=default [test-greeter-config] log-user-changes=true #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Check not marked as logged in #?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=LOGGED-IN #?GREETER-X-0 LOG-USER USERNAME=prop-user LOGGED-IN=FALSE # Log into account #?*GREETER-X-0 AUTHENTICATE USERNAME=prop-user #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=prop-user AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION #?GREETER-X-0 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/prop-user XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=prop-user #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Switch to greeter #?*SWITCH-TO-GREETER #?RUNNER SWITCH-TO-GREETER # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c1 # Greeter starts #?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?VT ACTIVATE VT=8 # Watch a user for properties changes #?*GREETER-X-1 WATCH-USER USERNAME=prop-user #?GREETER-X-1 WATCH-USER USERNAME=prop-user # Check marked as logged in #?*GREETER-X-1 LOG-USER USERNAME=prop-user FIELDS=LOGGED-IN #?GREETER-X-1 LOG-USER USERNAME=prop-user LOGGED-IN=TRUE # Logout session #?*SESSION-X-0 LOGOUT #?XSERVER-0 TERMINATE SIGNAL=15 # Check not marked as logged in #?GREETER-X-1 USER-CHANGED USERNAME=prop-user #?*GREETER-X-1 LOG-USER USERNAME=prop-user FIELDS=LOGGED-IN #?GREETER-X-1 LOG-USER USERNAME=prop-user LOGGED-IN=FALSE # Cleanup #?*STOP-DAEMON #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/mir-script-hooks.conf0000664000000000000000000000373612700600465017045 0ustar # # Check LightDM runs the script hooks correctly for autologin and the greeter # [Seat:*] display-setup-script=test-script-hook DISPLAY-SETUP display-stopped-script=test-script-hook DISPLAY-STOPPED greeter-setup-script=test-script-hook GREETER-SETUP session-setup-script=test-script-hook SESSION-SETUP session-cleanup-script=test-script-hook SESSION-CLEANUP autologin-user=have-password1 user-session=mir #?*START-DAEMON #?RUNNER DAEMON-START # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/lightdm-mir-0 VT=7 XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Script hooks run #?SCRIPT-HOOK DISPLAY-SETUP #?SCRIPT-HOOK SESSION-SETUP USER=have-password1 # Session starts #?SESSION-MIR-session-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=mir XDG_SESSION_DESKTOP=mir USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Session shown #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=session-0 # Logout session #?*SESSION-MIR-session-0 LOGOUT # Script hooks runs #?SCRIPT-HOOK SESSION-CLEANUP USER=have-password1 # System compositor stops #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 # Script hooks run #?SCRIPT-HOOK DISPLAY-STOPPED # System compositor starts #?UNITY-SYSTEM-COMPOSITOR START FILE=/run/lightdm-mir-0 VT=7 ENABLE-HARDWARE-CURSOR=TRUE XDG_VTNR=7 #?*UNITY-SYSTEM-COMPOSITOR READY # Script hooks run #?SCRIPT-HOOK DISPLAY-SETUP #?SCRIPT-HOOK GREETER-SETUP USER=.* # Greeter starts #?GREETER-MIR-greeter-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?GREETER-MIR-greeter-0 CONNECT-TO-DAEMON # FIXME: Not occurring? #?GREETER-MIR-greeter-0 CONNECTED-TO-DAEMON # System compositor switches to greeter #?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=greeter-0 # Cleanup #?*STOP-DAEMON #?GREETER-MIR-greeter-0 TERMINATE SIGNAL=15 #?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15 # Script hooks run #?SCRIPT-HOOK DISPLAY-STOPPED # Finish cleanup #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/xremote-login.conf0000664000000000000000000000250312700600465016413 0ustar # # Check can log into a remote X server # [Seat:*] type=xremote user-session=default xserver-hostname=127.0.0.1 xserver-display-number=98 # Start a remote X server to use #?*START-XSERVER ARGS=":98 -listen tcp" #?XSERVER-98 START LISTEN-TCP #?*START-DAEMON #?RUNNER DAEMON-START # LightDM connects to X server #?XSERVER-98 ACCEPT-CONNECT # Greeter starts #?GREETER-X-127.0.0.1:98 START XDG_SEAT=seat0 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-98 ACCEPT-CONNECT #?GREETER-X-127.0.0.1:98 CONNECT-XSERVER #?GREETER-X-127.0.0.1:98 CONNECT-TO-DAEMON #?GREETER-X-127.0.0.1:98 CONNECTED-TO-DAEMON # Log into account with a password #?*GREETER-X-127.0.0.1:98 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-127.0.0.1:98 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-127.0.0.1:98 RESPOND TEXT="password" #?GREETER-X-127.0.0.1:98 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-127.0.0.1:98 START-SESSION #?GREETER-X-127.0.0.1:98 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-127.0.0.1:98 START XDG_SEAT=seat0 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-98 ACCEPT-CONNECT #?SESSION-X-127.0.0.1:98 CONNECT-XSERVER # Cleanup #?*STOP-DAEMON #?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/greeter-allow-guest.conf0000664000000000000000000000143312700600465017521 0ustar # # Check greeter is informed if manual login should be showed (it defaults to show) # [Seat:*] greeter-allow-guest=false #?*START-DAEMON #?RUNNER DAEMON-START # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Check has correct hint to allow guest #?GREETER-X-0 HAS-GUEST-ACCOUNT-HINT=FALSE # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-user-disabled.conf0000664000000000000000000000173412700600465020271 0ustar # # Check that can't switch to a user when switching disabled # [Seat:*] autologin-user=no-password1 user-session=default allow-user-switching=false #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Session starts #?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/no-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check daemon says we can't switch #?*SEAT-CAN-SWITCH #?RUNNER SEAT-CAN-SWITCH CAN-SWITCH=FALSE # Attempt to switch to an account #?*SWITCH-TO-USER USERNAME=have-password1 #?RUNNER SWITCH-TO-USER USERNAME=have-password1 FAILED # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/scripts/switch-to-user-logout-active-resettable.conf0000664000000000000000000000452012700600465023430 0ustar # # Check that switching to a user and logging out the active session starts a greeter # Uses a resettable greeter # [Seat:*] user-session=default [test-greeter-config] resettable=true #?*START-DAEMON #?RUNNER DAEMON-START #?*WAIT # X server starts #?XSERVER-0 START VT=7 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT # Greeter starts #?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?GREETER-X-0 CONNECT-XSERVER #?GREETER-X-0 CONNECT-TO-DAEMON #?GREETER-X-0 CONNECTED-TO-DAEMON # Log into account with a password #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*GREETER-X-0 START-SESSION # Start new X server for session #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?VT ACTIVATE VT=8 #?GREETER-X-0 IDLE # Session starts #?SESSION-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch user #?*SWITCH-TO-USER USERNAME=no-password2 #?RUNNER SWITCH-TO-USER USERNAME=no-password2 # New X server starts #?XSERVER-2 START VT=9 SEAT=seat0 # Daemon connects when X server is ready #?*XSERVER-2 INDICATE-READY #?XSERVER-2 INDICATE-READY #?XSERVER-2 ACCEPT-CONNECT # Session is locked #?LOGIN1 LOCK-SESSION SESSION=c1 # Session starts #?SESSION-X-2 START XDG_SEAT=seat0 XDG_VTNR=9 XDG_GREETER_DATA_DIR=.*/no-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password2 #?XSERVER-2 ACCEPT-CONNECT #?SESSION-X-2 CONNECT-XSERVER # Switch to new session #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?VT ACTIVATE VT=9 # Log out new session #?*SESSION-X-2 LOGOUT #?XSERVER-2 TERMINATE SIGNAL=15 # Switch back to greeter #?VT ACTIVATE VT=7 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 lightdm-1.18.1/tests/test-switch-to-user-existing-resettable0000775000000000000000000000014312700600465021042 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-existing-resettable test-gobject-greeter lightdm-1.18.1/tests/test-script-hook-greeter-setup-missing0000775000000000000000000000014212700600465020666 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner script-hook-greeter-setup-missing test-gobject-greeter lightdm-1.18.1/tests/test-mir-autologin0000775000000000000000000000011612700600465014753 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner mir-autologin test-gobject-greeter lightdm-1.18.1/tests/test-power-qt40000775000000000000000000000010212700600465014022 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power test-qt4-greeter lightdm-1.18.1/tests/test-session-stderr-backup0000775000000000000000000000012612700600465016415 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner session-stderr-backup test-gobject-greeter lightdm-1.18.1/tests/test-login-pam-config0000775000000000000000000000012112700600465015307 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-pam-config test-gobject-greeter lightdm-1.18.1/tests/test-no-login10000775000000000000000000000011212700600465013764 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner no-login1 test-gobject-greeter lightdm-1.18.1/tests/test-login-info-prompt-gobject0000775000000000000000000000012212700600465017155 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-info-prompt test-gobject-greeter lightdm-1.18.1/tests/test-vnc-open-file-descriptors0000775000000000000000000000013212700600465017164 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner vnc-open-file-descriptors test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-user-logout-inactive0000775000000000000000000000013712700600465020174 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-logout-inactive test-gobject-greeter lightdm-1.18.1/tests/test-additional-system-config-priority0000775000000000000000000000014212700600465020740 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner additional-system-config-priority test-gobject-greeter lightdm-1.18.1/tests/test-login-gobject0000775000000000000000000000010612700600465014707 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login test-gobject-greeter lightdm-1.18.1/tests/test-autologin-in-background0000775000000000000000000000013012700600465016703 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-in-background test-gobject-greeter lightdm-1.18.1/tests/test-greeter-show-remote-login0000775000000000000000000000013212700600465017175 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner greeter-show-remote-login test-gobject-greeter lightdm-1.18.1/tests/test-login-long-username-qt50000775000000000000000000000012012700600465016551 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-long-username test-qt5-greeter lightdm-1.18.1/tests/test-login-guest-disabled-qt40000775000000000000000000000012112700600465016671 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-disabled test-qt4-greeter lightdm-1.18.1/tests/test-cancel-authentication-qt40000775000000000000000000000012212700600465017132 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner cancel-authentication test-qt4-greeter lightdm-1.18.1/tests/test-autologin-new-authtok0000775000000000000000000000012612700600465016433 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-new-authtok test-gobject-greeter lightdm-1.18.1/tests/test-session-stdout0000775000000000000000000000011712700600465015171 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner session-stdout test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-guest0000775000000000000000000000012012700600465015226 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-guest test-gobject-greeter lightdm-1.18.1/tests/test-login-new-authtok-gobject0000775000000000000000000000012212700600465017151 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-new-authtok test-gobject-greeter lightdm-1.18.1/tests/test-script-hook-greeter-setup-fail0000775000000000000000000000013712700600465020134 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner script-hook-greeter-setup-fail test-gobject-greeter lightdm-1.18.1/tests/test-user-uid0000775000000000000000000000011112700600465013715 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner user-uid test-gobject-greeter lightdm-1.18.1/tests/test-open-file-descriptors0000775000000000000000000000012612700600465016403 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner open-file-descriptors test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-guest-fail-resettable0000775000000000000000000000014012700600465020271 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-guest-fail-resettable test-gobject-greeter lightdm-1.18.1/tests/test-vnc-dimensions0000775000000000000000000000011712700600465015122 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner vnc-dimensions test-gobject-greeter lightdm-1.18.1/tests/test-autologin-password0000775000000000000000000000012312700600465016024 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-password test-gobject-greeter lightdm-1.18.1/tests/test-unity-mir-switch-to-user-resettable0000775000000000000000000000014012700600465021142 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-mir-switch-to-user-resettable test-mir-greeter lightdm-1.18.1/tests/test-audit-autologin0000775000000000000000000000012012700600465015265 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner audit-autologin test-gobject-greeter lightdm-1.18.1/tests/test-greeter-default-session0000775000000000000000000000013012700600465016721 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner greeter-default-session test-gobject-greeter lightdm-1.18.1/tests/test-autologin-timeout-qt50000775000000000000000000000011612700600465016361 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-timeout test-qt5-greeter lightdm-1.18.1/tests/test-login-invalid-session-qt50000775000000000000000000000012212700600465017106 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-session test-qt5-greeter lightdm-1.18.1/tests/test-login-new-authtok-qt50000775000000000000000000000011612700600465016250 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-new-authtok test-qt5-greeter lightdm-1.18.1/tests/test-user-layout0000775000000000000000000000011412700600465014454 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner user-layout test-gobject-greeter lightdm-1.18.1/tests/test-power-python0000775000000000000000000000010512700600465014636 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power test-python-greeter lightdm-1.18.1/tests/test-unity-compositor-crash0000775000000000000000000000012712700600465016631 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-compositor-crash test-gobject-greeter lightdm-1.18.1/tests/test-login-previous-session-qt50000775000000000000000000000012312700600465017335 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-previous-session test-qt5-greeter lightdm-1.18.1/tests/test-add-local-x-seat0000775000000000000000000000012112700600465015200 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner add-local-x-seat test-gobject-greeter lightdm-1.18.1/tests/test-multi-seat-seat0-non-graphical-disabled0000775000000000000000000000015012700600465021546 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-seat0-non-graphical-disabled test-gobject-greeter lightdm-1.18.1/tests/test-login-invalid-user-qt50000775000000000000000000000011712700600465016405 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-user test-qt5-greeter lightdm-1.18.1/tests/test-unity-compositor-fail-ready0000775000000000000000000000013412700600465017544 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-compositor-fail-ready test-gobject-greeter lightdm-1.18.1/tests/test-login-long-password-python0000775000000000000000000000012312700600465017407 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-long-password test-python-greeter lightdm-1.18.1/tests/test-power-no-login1-qt40000775000000000000000000000011412700600465015626 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power-no-login1 test-qt4-greeter lightdm-1.18.1/tests/test-autologin-session-error0000775000000000000000000000013012700600465016772 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-session-error test-gobject-greeter lightdm-1.18.1/tests/test-login-two-factor-python0000775000000000000000000000012012700600465016672 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-two-factor test-python-greeter lightdm-1.18.1/tests/test-autologin-guest-logout0000775000000000000000000000012712700600465016624 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-logout test-gobject-greeter lightdm-1.18.1/tests/test-script-hook-session-setup-fail0000775000000000000000000000013712700600465020162 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner script-hook-session-setup-fail test-gobject-greeter lightdm-1.18.1/tests/test-login-guest-disabled-qt50000775000000000000000000000012112700600465016672 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-disabled test-qt5-greeter lightdm-1.18.1/tests/test-unity-mir-autologin0000775000000000000000000000012012700600465016114 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-mir-autologin test-mir-greeter lightdm-1.18.1/tests/test-autologin-timeout-python0000775000000000000000000000012112700600465017165 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-timeout test-python-greeter lightdm-1.18.1/tests/test-login-invalid-user-qt40000775000000000000000000000011712700600465016404 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-user test-qt4-greeter lightdm-1.18.1/tests/test-unity-mir-switch0000775000000000000000000000011512700600465015420 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-mir-switch test-mir-greeter lightdm-1.18.1/tests/test-login-long-password-qt50000775000000000000000000000012012700600465016574 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-long-password test-qt5-greeter lightdm-1.18.1/tests/test-console-kit0000775000000000000000000000011412700600465014412 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner console-kit test-gobject-greeter lightdm-1.18.1/tests/test-additional-config-priority0000775000000000000000000000013312700600465017416 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner additional-config-priority test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-greeter-return-session0000775000000000000000000000014112700600465020535 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter-return-session test-gobject-greeter lightdm-1.18.1/tests/test-login-previous-session-python0000775000000000000000000000012612700600465020150 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-previous-session test-python-greeter lightdm-1.18.1/tests/test-login-two-factor-qt40000775000000000000000000000011512700600465016065 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-two-factor test-qt4-greeter lightdm-1.18.1/tests/test-switch-to-greeter0000775000000000000000000000012212700600465015536 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter test-gobject-greeter lightdm-1.18.1/tests/test-login-guest-no-setup-script-qt50000775000000000000000000000013012700600465020177 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-no-setup-script test-qt5-greeter lightdm-1.18.1/tests/test-login-guest-fail-setup-script-qt40000775000000000000000000000013212700600465020477 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-fail-setup-script test-qt4-greeter lightdm-1.18.1/tests/test-login-guest-fail-setup-script-qt50000775000000000000000000000013212700600465020500 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-fail-setup-script test-qt5-greeter lightdm-1.18.1/tests/test-xdmcp-server-login0000775000000000000000000000012312700600465015710 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-login test-gobject-greeter lightdm-1.18.1/tests/test-lock-seat-after-vt-switch0000775000000000000000000000013212700600465017072 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner lock-seat-after-vt-switch test-gobject-greeter lightdm-1.18.1/tests/test-script-hook-display-setup-fail0000775000000000000000000000013712700600465020144 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner script-hook-display-setup-fail test-gobject-greeter lightdm-1.18.1/tests/test-users-gobject0000775000000000000000000000010612700600465014740 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner users test-gobject-greeter lightdm-1.18.1/tests/test-autologin-session0000775000000000000000000000012212700600465015644 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-session test-gobject-greeter lightdm-1.18.1/tests/test-login-wrong-password-python0000775000000000000000000000012412700600465017605 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-wrong-password test-python-greeter lightdm-1.18.1/tests/test-login-invalid-session-gobject0000775000000000000000000000012612700600465020016 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-session test-gobject-greeter lightdm-1.18.1/tests/test-login-manual-previous-session-gobject0000775000000000000000000000013612700600465021520 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-manual-previous-session test-gobject-greeter lightdm-1.18.1/tests/test-xdmcp-server-autologin0000775000000000000000000000012712700600465016605 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-autologin test-gobject-greeter lightdm-1.18.1/tests/test-script-hooks0000775000000000000000000000011512700600465014611 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner script-hooks test-gobject-greeter lightdm-1.18.1/tests/test-mir-greeter0000775000000000000000000000011012700600465014401 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner mir-greeter test-mir-greeter lightdm-1.18.1/tests/test-multi-seat-non-graphical-disabled0000775000000000000000000000014212700600465020535 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-non-graphical-disabled test-gobject-greeter lightdm-1.18.1/tests/test-lock-session-resettable0000775000000000000000000000013012700600465016722 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner lock-session-resettable test-gobject-greeter lightdm-1.18.1/tests/test-xdmcp-server-invalid-authentication0000775000000000000000000000014412700600465021246 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-invalid-authentication test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-user0000775000000000000000000000011712700600465015063 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user test-gobject-greeter lightdm-1.18.1/tests/test-xserver-fail-start0000775000000000000000000000012312700600465015725 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xserver-fail-start test-gobject-greeter lightdm-1.18.1/tests/test-lock-session0000775000000000000000000000011512700600465014575 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner lock-session test-gobject-greeter lightdm-1.18.1/tests/test-login-guest-qt40000775000000000000000000000011012700600465015122 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest test-qt4-greeter lightdm-1.18.1/tests/test-autologin-previous-session0000775000000000000000000000013312700600465017520 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-previous-session test-gobject-greeter lightdm-1.18.1/tests/test-login-guest-logout-gobject0000775000000000000000000000012312700600465017342 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-logout test-gobject-greeter lightdm-1.18.1/tests/test-unity-autologin-legacy0000775000000000000000000000012712700600465016600 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-autologin-legacy test-gobject-greeter lightdm-1.18.1/tests/test-wayland-autologin0000775000000000000000000000012212700600465015620 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner wayland-autologin test-gobject-greeter lightdm-1.18.1/tests/test-login-long-username-qt40000775000000000000000000000012012700600465016550 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-long-username test-qt4-greeter lightdm-1.18.1/tests/test-login-guest-session-config0000775000000000000000000000013312700600465017345 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-session-config test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-user-disabled0000775000000000000000000000013012700600465016623 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-disabled test-gobject-greeter lightdm-1.18.1/tests/test-cred-expired0000775000000000000000000000011512700600465014537 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner cred-expired test-gobject-greeter lightdm-1.18.1/tests/test-mir-session-crash0000775000000000000000000000012212700600465015530 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner mir-session-crash test-gobject-greeter lightdm-1.18.1/tests/test-no-console-kit-or-login10000775000000000000000000000013112700600465016630 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner no-console-kit-or-login1 test-gobject-greeter lightdm-1.18.1/tests/test-user-image0000775000000000000000000000011312700600465014220 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner user-image test-gobject-greeter lightdm-1.18.1/tests/test-allow-tcp-xorg-1.160000775000000000000000000000012412700600465015426 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner allow-tcp-xorg-1.16 test-gobject-greeter lightdm-1.18.1/tests/test-home-dir-on-session0000775000000000000000000000012412700600465015763 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner home-dir-on-session test-gobject-greeter lightdm-1.18.1/tests/test-greeter-allow-guest0000775000000000000000000000012412700600465016062 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner greeter-allow-guest test-gobject-greeter lightdm-1.18.1/tests/test-utmp-login0000775000000000000000000000011312700600465014255 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner utmp-login test-gobject-greeter lightdm-1.18.1/tests/test-login-guest-no-setup-script-qt40000775000000000000000000000013012700600465020176 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-no-setup-script test-qt4-greeter lightdm-1.18.1/tests/test-xdmcp-server-keep-alive0000775000000000000000000000013012700600465016620 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-keep-alive test-gobject-greeter lightdm-1.18.1/tests/test-no-console-kit0000775000000000000000000000011712700600465015027 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner no-console-kit test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-greeter-disabled0000775000000000000000000000013312700600465017305 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter-disabled test-gobject-greeter lightdm-1.18.1/tests/test-xdmcp-server-request-without-addresses0000775000000000000000000000014712700600465021752 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-request-without-addresses test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-user-logout-active0000775000000000000000000000013512700600465017643 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-logout-active test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-user-existing0000775000000000000000000000013012700600465016706 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-existing test-gobject-greeter lightdm-1.18.1/tests/test-login-invalid-session-python0000775000000000000000000000012512700600465017721 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-session test-python-greeter lightdm-1.18.1/tests/test-login-no-password-qt50000775000000000000000000000011612700600465016256 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-no-password test-qt5-greeter lightdm-1.18.1/tests/test-user-name0000775000000000000000000000011212700600465014055 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner user-name test-gobject-greeter lightdm-1.18.1/tests/test-autologin-guest-timeout-python0000775000000000000000000000012712700600465020320 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-timeout test-python-greeter lightdm-1.18.1/tests/test-cancel-authentication-python0000775000000000000000000000012512700600465017746 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner cancel-authentication test-python-greeter lightdm-1.18.1/tests/test-login-pick-session-qt40000775000000000000000000000011712700600465016411 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-pick-session test-qt4-greeter lightdm-1.18.1/tests/test-login-remember-session-gobject0000775000000000000000000000012712700600465020167 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-remember-session test-gobject-greeter lightdm-1.18.1/tests/test-xserver-no-share0000775000000000000000000000012112700600465015371 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xserver-no-share test-gobject-greeter lightdm-1.18.1/tests/test-lock-session-return-session0000775000000000000000000000013412700600465017574 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner lock-session-return-session test-gobject-greeter lightdm-1.18.1/tests/test-language0000775000000000000000000000011112700600465013743 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner language test-gobject-greeter lightdm-1.18.1/tests/test-headless0000775000000000000000000000011112700600465013750 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner headless test-gobject-greeter lightdm-1.18.1/tests/test-login-manual-remember-session-qt50000775000000000000000000000013212700600465020532 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-manual-remember-session test-qt5-greeter lightdm-1.18.1/tests/test-login-guest-fail-setup-script-gobject0000775000000000000000000000013612700600465021410 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-fail-setup-script test-gobject-greeter lightdm-1.18.1/tests/test-login-manual-remember-session-python0000775000000000000000000000013512700600465021345 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-manual-remember-session test-python-greeter lightdm-1.18.1/tests/test-xdmcp-server-xdm-authentication-long-data0000775000000000000000000000015212700600465022253 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-long-data test-gobject-greeter lightdm-1.18.1/tests/test-login-manual-previous-session-qt50000775000000000000000000000013212700600465020610 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-manual-previous-session test-qt5-greeter lightdm-1.18.1/tests/test-login-remember-session-python0000775000000000000000000000012612700600465020072 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-remember-session test-python-greeter lightdm-1.18.1/tests/test-login-invalid-user-python0000775000000000000000000000012212700600465017211 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-user test-python-greeter lightdm-1.18.1/tests/test-seatdefaults-still-supported0000775000000000000000000000013512700600465020022 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner seatdefaults-still-supported test-gobject-greeter lightdm-1.18.1/tests/test-power-no-console-kit-qt50000775000000000000000000000012112700600465016663 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power-no-console-kit test-qt5-greeter lightdm-1.18.1/tests/test-login-info-prompt-qt50000775000000000000000000000011612700600465016254 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-info-prompt test-qt5-greeter lightdm-1.18.1/tests/test-login-remote-session-python0000775000000000000000000000012412700600465017565 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-remote-session test-python-greeter lightdm-1.18.1/tests/test-login-guest-logout-qt50000775000000000000000000000011712700600465016441 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-logout test-qt5-greeter lightdm-1.18.1/tests/test-user-has-messages0000775000000000000000000000012212700600465015516 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner user-has-messages test-gobject-greeter lightdm-1.18.1/tests/test-login-no-password-python0000775000000000000000000000012112700600465017062 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-no-password test-python-greeter lightdm-1.18.1/tests/test-denied0000775000000000000000000000010712700600465013415 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner denied test-gobject-greeter lightdm-1.18.1/tests/test-autologin-timeout-in-background0000775000000000000000000000014012700600465020370 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-timeout-in-background test-gobject-greeter lightdm-1.18.1/tests/test-utmp-wrong-password0000775000000000000000000000012412700600465016143 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner utmp-wrong-password test-gobject-greeter lightdm-1.18.1/tests/test-user-background0000775000000000000000000000012012700600465015253 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner user-background test-gobject-greeter lightdm-1.18.1/tests/test-script-hook-session-setup-missing0000775000000000000000000000014212700600465020714 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner script-hook-session-setup-missing test-gobject-greeter lightdm-1.18.1/tests/test-multi-seat0000775000000000000000000000011312700600465014246 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner multi-seat test-gobject-greeter lightdm-1.18.1/tests/test-xremote-autologin0000775000000000000000000000012212700600465015644 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xremote-autologin test-gobject-greeter lightdm-1.18.1/tests/test-additional-config0000775000000000000000000000012212700600465015535 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner additional-config test-gobject-greeter lightdm-1.18.1/tests/test-shared-data-greeter-to-session0000775000000000000000000000013712700600465020101 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner shared-data-greeter-to-session test-gobject-greeter lightdm-1.18.1/tests/test-multi-seat-change-graphical-disabled0000775000000000000000000000014512700600465021173 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-change-graphical-disabled test-gobject-greeter lightdm-1.18.1/tests/test-autologin-guest-in-background0000775000000000000000000000013612700600465020036 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-in-background test-gobject-greeter lightdm-1.18.1/tests/test-multi-seat-seat0-non-graphical0000775000000000000000000000013712700600465020006 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-seat0-non-graphical test-gobject-greeter lightdm-1.18.1/tests/test-wayland-session0000775000000000000000000000012012700600465015300 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner wayland-session test-gobject-greeter lightdm-1.18.1/tests/test-mir-session0000775000000000000000000000011412700600465014433 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner mir-session test-gobject-greeter lightdm-1.18.1/tests/test-no-accounts-service0000775000000000000000000000012412700600465016053 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner no-accounts-service test-gobject-greeter lightdm-1.18.1/tests/test-login-invalid-greeter0000775000000000000000000000011112700600465016347 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-greeter INVALID lightdm-1.18.1/tests/test-xdmcp-server-xdm-authentication-invalid-authorization0000775000000000000000000000016612700600465024736 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-invalid-authorization test-gobject-greeter lightdm-1.18.1/tests/test-login-multi-info-prompt-qt40000775000000000000000000000012412700600465017402 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-multi-info-prompt test-qt4-greeter lightdm-1.18.1/tests/test-power-qt50000775000000000000000000000010212700600465014023 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power test-qt5-greeter lightdm-1.18.1/tests/test-guest-wrapper0000775000000000000000000000011612700600465014772 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner guest-wrapper test-gobject-greeter lightdm-1.18.1/tests/test-cred-error0000775000000000000000000000011312700600465014226 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner cred-error test-gobject-greeter lightdm-1.18.1/tests/test-greeter-crash0000775000000000000000000000011612700600465014720 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner greeter-crash test-gobject-greeter lightdm-1.18.1/tests/test-login-info-prompt-python0000775000000000000000000000012112700600465017060 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-info-prompt test-python-greeter lightdm-1.18.1/tests/test-users-qt40000775000000000000000000000010212700600465014027 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner users test-qt4-greeter lightdm-1.18.1/tests/test-switch-to-user-logout-active-resettable0000775000000000000000000000015012700600465021770 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-logout-active-resettable test-gobject-greeter lightdm-1.18.1/tests/test-xdmcp-server-request-invalid-authorization0000775000000000000000000000015312700600465022615 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-request-invalid-authorization test-gobject-greeter lightdm-1.18.1/tests/test-login-previous-session-gobject0000775000000000000000000000012712700600465020245 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-previous-session test-gobject-greeter lightdm-1.18.1/tests/test-unity-mir-session-x-greeter0000775000000000000000000000013412700600465017503 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-mir-session-x-greeter test-gobject-greeter lightdm-1.18.1/tests/test-xdmcp-server-guest0000775000000000000000000000012312700600465015727 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-guest test-gobject-greeter lightdm-1.18.1/tests/test-lock-seat-return-session-console-kit0000775000000000000000000000014512700600465021274 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner lock-seat-return-session-console-kit test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-user-resettable0000775000000000000000000000013212700600465017210 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-resettable test-gobject-greeter lightdm-1.18.1/tests/test-autologin-timeout-logout0000775000000000000000000000013112700600465017156 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-timeout-logout test-gobject-greeter lightdm-1.18.1/tests/test-unity-mir-lock-seat0000775000000000000000000000012012700600465015775 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-mir-lock-seat test-mir-greeter lightdm-1.18.1/tests/test-switch-to-user-active0000775000000000000000000000012612700600465016334 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-active test-gobject-greeter lightdm-1.18.1/tests/test-login-multi-prompt-gobject0000775000000000000000000000012312700600465017355 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-multi-prompt test-gobject-greeter lightdm-1.18.1/tests/test-login-logout-qt50000775000000000000000000000011112700600465015306 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-logout test-qt5-greeter lightdm-1.18.1/tests/test-login-guest-logout-qt40000775000000000000000000000011712700600465016440 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-logout test-qt4-greeter lightdm-1.18.1/tests/test-additional-system-config0000775000000000000000000000013112700600465017057 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner additional-system-config test-gobject-greeter lightdm-1.18.1/tests/test-system-xauthority0000775000000000000000000000012212700600465015724 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner system-xauthority test-gobject-greeter lightdm-1.18.1/tests/test-login-multi-info-prompt-gobject0000775000000000000000000000013012700600465020304 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-multi-info-prompt test-gobject-greeter lightdm-1.18.1/tests/test-greeter-wrapper0000775000000000000000000000012012700600465015273 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner greeter-wrapper test-gobject-greeter lightdm-1.18.1/tests/test-user-renamed0000775000000000000000000000011512700600465014553 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner user-renamed test-gobject-greeter lightdm-1.18.1/tests/test-plymouth-active-vt0000775000000000000000000000012312700600465015744 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner plymouth-active-vt test-gobject-greeter lightdm-1.18.1/tests/test-autologin-xserver-crash0000775000000000000000000000013012700600465016754 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-xserver-crash test-gobject-greeter lightdm-1.18.1/tests/test-autologin-invalid-session0000775000000000000000000000013212700600465017271 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-invalid-session test-gobject-greeter lightdm-1.18.1/tests/test-restart-authentication0000775000000000000000000000012712700600465016670 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner restart-authentication test-gobject-greeter lightdm-1.18.1/tests/test-user-session0000775000000000000000000000011512700600465014623 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner user-session test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-greeter-new-session0000775000000000000000000000013612700600465020013 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter-new-session test-gobject-greeter lightdm-1.18.1/tests/test-login-guest-no-setup-script-gobject0000775000000000000000000000013412700600465021107 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-no-setup-script test-gobject-greeter lightdm-1.18.1/tests/test-autologin-session-crash0000775000000000000000000000013012700600465016741 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-session-crash test-gobject-greeter lightdm-1.18.1/tests/test-multi-seat-non-graphical0000775000000000000000000000013112700600465016766 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-non-graphical test-gobject-greeter lightdm-1.18.1/tests/test-unity-compositor-not-found0000775000000000000000000000013312700600465017437 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-compositor-not-found test-gobject-greeter lightdm-1.18.1/tests/test-login-manual-remember-session-qt40000775000000000000000000000013212700600465020531 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-manual-remember-session test-qt4-greeter lightdm-1.18.1/tests/test-login-guest-gobject0000775000000000000000000000011412700600465016033 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest test-gobject-greeter lightdm-1.18.1/tests/test-shared-data-session-to-greeter0000775000000000000000000000013712700600465020101 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner shared-data-session-to-greeter test-gobject-greeter lightdm-1.18.1/tests/test-no-config0000775000000000000000000000011212700600465014040 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner no-config test-gobject-greeter lightdm-1.18.1/tests/test-xdmcp-server-xdm-authentication-missing-data0000775000000000000000000000015512700600465022770 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-missing-data test-gobject-greeter lightdm-1.18.1/tests/test-greeter-hide-users0000775000000000000000000000012312700600465015666 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner greeter-hide-users test-gobject-greeter lightdm-1.18.1/tests/test-xdmcp-server-xdm-authentication-no-key0000775000000000000000000000014712700600465021613 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-no-key test-gobject-greeter lightdm-1.18.1/tests/test-power-no-services-qt40000775000000000000000000000011612700600465016262 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power-no-services test-qt4-greeter lightdm-1.18.1/tests/test-login-guest-pick-session-gobject0000775000000000000000000000013112700600465020437 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-pick-session test-gobject-greeter lightdm-1.18.1/tests/test-xdmcp-server-xdm-authentication-short-data0000775000000000000000000000015312700600465022454 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-short-data test-gobject-greeter lightdm-1.18.1/tests/test-lock-session-no-password0000775000000000000000000000013112700600465017045 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner lock-session-no-password test-gobject-greeter lightdm-1.18.1/tests/test-lock-seat-console-kit0000775000000000000000000000012612700600465016275 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner lock-seat-console-kit test-gobject-greeter lightdm-1.18.1/tests/test-login-remote-session-qt40000775000000000000000000000012112700600465016751 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-remote-session test-qt4-greeter lightdm-1.18.1/tests/test-users-python0000775000000000000000000000010512700600465014643 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner users test-python-greeter lightdm-1.18.1/tests/test-unity-autologin0000775000000000000000000000012012700600465015327 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-autologin test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-user-no-password0000775000000000000000000000013312700600465017333 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-no-password test-gobject-greeter lightdm-1.18.1/tests/test-mir-session-compositor-crash0000775000000000000000000000013512700600465017730 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner mir-session-compositor-crash test-gobject-greeter lightdm-1.18.1/tests/test-login-long-username-gobject0000775000000000000000000000012412700600465017461 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-long-username test-gobject-greeter lightdm-1.18.1/tests/test-mir-script-hooks0000775000000000000000000000011512700600465015376 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner mir-script-hooks test-mir-greeter lightdm-1.18.1/tests/test-autologin-guest-timeout-qt50000775000000000000000000000012412700600465017505 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-timeout test-qt5-greeter lightdm-1.18.1/tests/test-autologin-guest-timeout-gobject0000775000000000000000000000013012700600465020406 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-timeout test-gobject-greeter lightdm-1.18.1/tests/test-mir-container-session0000775000000000000000000000012612700600465016416 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner mir-container-session test-gobject-greeter lightdm-1.18.1/tests/test-user-logged-in0000775000000000000000000000011712700600465015007 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner user-logged-in test-gobject-greeter lightdm-1.18.1/tests/test-power-gobject0000775000000000000000000000010612700600465014733 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power test-gobject-greeter lightdm-1.18.1/tests/test-autologin-guest-session-config0000775000000000000000000000013712700600465020242 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-session-config test-gobject-greeter lightdm-1.18.1/tests/test-xremote-login0000775000000000000000000000011612700600465014756 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xremote-login test-gobject-greeter lightdm-1.18.1/tests/test-login-invalid-user-gobject0000775000000000000000000000012312700600465017306 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-user test-gobject-greeter lightdm-1.18.1/tests/test-login-guest-pick-session-qt40000775000000000000000000000012512700600465017535 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-pick-session test-qt4-greeter lightdm-1.18.1/tests/test-language-no-accounts-service0000775000000000000000000000013512700600465017636 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner language-no-accounts-service test-gobject-greeter lightdm-1.18.1/tests/test-autologin-pam-config0000775000000000000000000000012512700600465016204 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-pam-config test-gobject-greeter lightdm-1.18.1/tests/test-change-authentication0000775000000000000000000000012612700600465016430 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner change-authentication test-gobject-greeter lightdm-1.18.1/tests/test-power-no-login1-qt50000775000000000000000000000011412700600465015627 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power-no-login1 test-qt5-greeter lightdm-1.18.1/tests/test-xdmcp-server-request-without-authorization0000775000000000000000000000015312700600465022672 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-request-without-authorization test-gobject-greeter lightdm-1.18.1/tests/test-autologin-guest-timeout-qt40000775000000000000000000000012412700600465017504 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-timeout test-qt4-greeter lightdm-1.18.1/tests/test-switch-to-guest-disabled0000775000000000000000000000013112700600465016775 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-guest-disabled test-gobject-greeter lightdm-1.18.1/tests/test-autologin-invalid-greeter0000775000000000000000000000011512700600465017244 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-invalid-greeter INVALID lightdm-1.18.1/tests/test-login-long-password-gobject0000775000000000000000000000012412700600465017504 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-long-password test-gobject-greeter lightdm-1.18.1/tests/test-xauthority0000775000000000000000000000011312700600465014402 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xauthority test-gobject-greeter lightdm-1.18.1/tests/test-login-manual-gobject0000775000000000000000000000011512700600465016162 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-manual test-gobject-greeter lightdm-1.18.1/tests/test-login-manual-qt40000775000000000000000000000011112700600465015251 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-manual test-qt4-greeter lightdm-1.18.1/tests/test-login-wrong-password-qt40000775000000000000000000000012112700600465016771 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-wrong-password test-qt4-greeter lightdm-1.18.1/tests/test-dbus0000775000000000000000000000010512700600465013120 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner dbus test-gobject-greeter lightdm-1.18.1/tests/test-allow-tcp0000775000000000000000000000011212700600465014063 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner allow-tcp test-gobject-greeter lightdm-1.18.1/tests/test-autologin0000775000000000000000000000011212700600465014162 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin test-gobject-greeter lightdm-1.18.1/tests/test-greeter-show-manual-login0000775000000000000000000000013212700600465017157 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner greeter-show-manual-login test-gobject-greeter lightdm-1.18.1/tests/test-login-guest-no-setup-script-python0000775000000000000000000000013312700600465021012 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-no-setup-script test-python-greeter lightdm-1.18.1/tests/test-greeter-xserver-crash0000775000000000000000000000012612700600465016415 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner greeter-xserver-crash test-gobject-greeter lightdm-1.18.1/tests/test-wayland-greeter0000775000000000000000000000012012700600465015252 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner wayland-greeter test-wayland-greeter lightdm-1.18.1/tests/test-upstart-autologin0000775000000000000000000000012212700600465015663 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner upstart-autologin test-gobject-greeter lightdm-1.18.1/tests/test-cancel-authentication-gobject0000775000000000000000000000012612700600465020043 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner cancel-authentication test-gobject-greeter lightdm-1.18.1/tests/test-login-multi-info-prompt-python0000775000000000000000000000012712700600465020216 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-multi-info-prompt test-python-greeter lightdm-1.18.1/tests/test-plymouth-no-seat0000775000000000000000000000012112700600465015406 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner plymouth-no-seat test-gobject-greeter lightdm-1.18.1/tests/test-xserver-config0000775000000000000000000000011712700600465015127 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xserver-config test-gobject-greeter lightdm-1.18.1/tests/test-login-manual-python0000775000000000000000000000011412700600465016065 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-manual test-python-greeter lightdm-1.18.1/tests/test-login-two-factor-gobject0000775000000000000000000000012112700600465016767 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-two-factor test-gobject-greeter lightdm-1.18.1/tests/test-power-no-services-gobject0000775000000000000000000000012212700600465017164 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power-no-services test-gobject-greeter lightdm-1.18.1/tests/test-autologin-guest-fail-setup-script0000775000000000000000000000014212700600465020663 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-fail-setup-script test-gobject-greeter lightdm-1.18.1/tests/test-login-manual-previous-session-python0000775000000000000000000000013512700600465021423 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-manual-previous-session test-python-greeter lightdm-1.18.1/tests/test-greeter-fail-start0000775000000000000000000000012312700600465015664 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner greeter-fail-start test-gobject-greeter lightdm-1.18.1/tests/test-login-guest-qt50000775000000000000000000000011012700600465015123 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest test-qt5-greeter lightdm-1.18.1/tests/test-login-long-password-qt40000775000000000000000000000012012700600465016573 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-long-password test-qt4-greeter lightdm-1.18.1/tests/test-unity-switch0000775000000000000000000000011512700600465014633 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-switch test-gobject-greeter lightdm-1.18.1/tests/test-login-python0000775000000000000000000000010512700600465014612 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login test-python-greeter lightdm-1.18.1/tests/test-autologin-logout0000775000000000000000000000012112700600465015471 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-logout test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-users0000775000000000000000000000012012700600465015240 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-users test-gobject-greeter lightdm-1.18.1/tests/test-login-remote-session-gobject0000775000000000000000000000012512700600465017662 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-remote-session test-gobject-greeter lightdm-1.18.1/tests/test-login-pick-session-qt50000775000000000000000000000011712700600465016412 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-pick-session test-qt5-greeter lightdm-1.18.1/tests/test-lock-seat-resettable0000775000000000000000000000012512700600465016177 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner lock-seat-resettable test-gobject-greeter lightdm-1.18.1/tests/test-login-manual-previous-session-qt40000775000000000000000000000013212700600465020607 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-manual-previous-session test-qt4-greeter lightdm-1.18.1/tests/test-login-session-crash0000775000000000000000000000012412700600465016053 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-session-crash test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-greeter-resettable0000775000000000000000000000013512700600465017672 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter-resettable test-gobject-greeter lightdm-1.18.1/tests/test-cred-unavail0000775000000000000000000000011512700600465014536 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner cred-unavail test-gobject-greeter lightdm-1.18.1/tests/test-users-qt50000775000000000000000000000010212700600465014030 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner users test-qt5-greeter lightdm-1.18.1/tests/test-login-remember-session-qt40000775000000000000000000000012312700600465017256 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-remember-session test-qt4-greeter lightdm-1.18.1/tests/test-login-logout-gobject0000775000000000000000000000011512700600465016216 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-logout test-gobject-greeter lightdm-1.18.1/tests/test-login-guest-fail-setup-script-python0000775000000000000000000000013512700600465021313 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-fail-setup-script test-python-greeter lightdm-1.18.1/tests/src/0000775000000000000000000000000012700603563012055 5ustar lightdm-1.18.1/tests/src/Makefile.am0000664000000000000000000001503412700600465014112 0ustar noinst_PROGRAMS = dbus-env \ initctl \ plymouth \ test-gobject-greeter \ test-greeter-wrapper \ test-guest-wrapper \ test-runner \ test-script-hook \ test-session \ guest-account \ unity-system-compositor \ vnc-client \ X \ Xmir \ Xvnc dist_noinst_SCRIPTS = lightdm-session \ test-python-greeter noinst_LTLIBRARIES = libsystem.la libsystem_la_SOURCES = libsystem.c status.c status.h libsystem_la_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_UNIX_CFLAGS) \ -DSRCDIR=\"$(abs_top_srcdir)\" \ -DBUILDDIR=\"$(abs_top_builddir)\" \ -DSYSCONFDIR=\"$(sysconfdir)\" \ -DLOCALSTATEDIR=\"$(localstatedir)\" \ -DDATADIR=\"$(datadir)\" \ -DCONFIG_DIR=\"$(sysconfdir)/lightdm\" libsystem_la_LIBADD = -ldl $(GLIB_LIBS) $(GIO_UNIX_LIBS) # This is required to have autotools generate a library that is not installed # but produces a shared library (instead of just a static library) libsystem_la_LDFLAGS = -rpath /nowhere if COMPILE_LIBLIGHTDM_QT4 noinst_PROGRAMS += test-qt4-greeter endif if COMPILE_LIBLIGHTDM_QT5 noinst_PROGRAMS += test-qt5-greeter endif dbus_env_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ -DDATADIR=\"$(abs_srcdir)/../data\" dbus_env_LDADD = \ $(GLIB_LIBS) test_runner_SOURCES = test-runner.c test_runner_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_CFLAGS) \ $(GIO_UNIX_CFLAGS) \ -DSRCDIR=\"$(abs_top_srcdir)\" \ -DBUILDDIR=\"$(abs_top_builddir)\" \ -DDATADIR=\"$(abs_srcdir)/../data\" test_runner_LDADD = \ $(GLIB_LIBS) \ $(GIO_LIBS) \ $(GIO_UNIX_LIBS) X_SOURCES = X.c x-authority.c x-authority.h x-common.c x-common.h x-server.c x-server.h xdmcp-client.c xdmcp-client.h status.c status.h X_CFLAGS = \ $(WARN_CFLAGS) \ $(GOBJECT_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_CFLAGS) \ $(GIO_UNIX_CFLAGS) X_LDADD = \ $(GOBJECT_LIBS) \ $(GLIB_LIBS) \ $(GIO_LIBS) \ $(GIO_UNIX_LIBS) Xmir_SOURCES = Xmir.c x-authority.c x-authority.h x-common.c x-common.h x-server.c x-server.h status.c status.h Xmir_CFLAGS = \ $(WARN_CFLAGS) \ $(GOBJECT_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_CFLAGS) \ $(GIO_UNIX_CFLAGS) Xmir_LDADD = \ $(GOBJECT_LIBS) \ $(GLIB_LIBS) \ $(GIO_LIBS) \ $(GIO_UNIX_LIBS) Xvnc_SOURCES = Xvnc.c x-authority.c x-authority.h x-common.c x-common.h x-server.c x-server.h status.c status.h Xvnc_CFLAGS = \ $(WARN_CFLAGS) \ $(GOBJECT_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_CFLAGS) \ $(GIO_UNIX_CFLAGS) Xvnc_LDADD = \ $(GOBJECT_LIBS) \ $(GLIB_LIBS) \ $(GIO_LIBS) \ $(GIO_UNIX_LIBS) test_greeter_wrapper_SOURCES = test-greeter-wrapper.c status.c status.h test_greeter_wrapper_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_UNIX_CFLAGS) test_greeter_wrapper_LDADD = \ $(GLIB_LIBS) \ $(GIO_UNIX_LIBS) test_guest_wrapper_SOURCES = test-guest-wrapper.c status.c status.h test_guest_wrapper_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_UNIX_CFLAGS) test_guest_wrapper_LDADD = \ $(GLIB_LIBS) \ $(GIO_UNIX_LIBS) test_gobject_greeter_SOURCES = test-gobject-greeter.c status.c status.h test_gobject_greeter_CFLAGS = \ -I$(top_srcdir)/liblightdm-gobject \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_UNIX_CFLAGS) \ $(XCB_CFLAGS) test_gobject_greeter_LDADD = \ -L$(top_builddir)/liblightdm-gobject \ -llightdm-gobject-1 \ $(GLIB_LIBS) \ $(GIO_UNIX_LIBS) \ $(XCB_LIBS) guest_account_SOURCES = guest-account.c status.c status.h guest_account_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_UNIX_CFLAGS) guest_account_LDADD = \ $(GLIB_LIBS) \ $(GIO_UNIX_LIBS) test_script_hook_SOURCES = test-script-hook.c status.c status.h test_script_hook_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_UNIX_CFLAGS) test_script_hook_LDADD = \ $(GLIB_LIBS) \ $(GIO_UNIX_LIBS) test-qt4-greeter_moc4.cpp: test-qt-greeter.h $(am__v_MOC4_$(V)) $(MOC4) $< -o $@ test-qt5-greeter_moc5.cpp: test-qt-greeter.h $(am__v_MOC5_$(V)) $(MOC5) $< -o $@ common_qt_sources = test-qt-greeter.cpp test-qt-greeter.h status.c status.h test_qt4_greeter_SOURCES = $(common_qt_sources) test_qt5_greeter_SOURCES = $(common_qt_sources) nodist_test_qt4_greeter_SOURCES = test-qt4-greeter_moc4.cpp nodist_test_qt5_greeter_SOURCES = test-qt5-greeter_moc5.cpp common_qt_cflags = \ $(WARN_CXXFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_UNIX_CFLAGS) \ $(XCB_CFLAGS) test_qt4_greeter_CFLAGS = $(common_qt_cflags) test_qt5_greeter_CFLAGS = $(common_qt_cflags) common_qt_cxxflags = \ -fPIC \ -DQT_DISABLE_DEPRECATED_BEFORE="QT_VERSION_CHECK(4, 0, 0)" \ -I$(top_srcdir)/liblightdm-qt \ $(GLIB_CFLAGS) test_qt4_greeter_CXXFLAGS = \ $(common_qt_cxxflags) \ $(LIBLIGHTDM_QT4_CFLAGS) test_qt5_greeter_CXXFLAGS = \ $(common_qt_cxxflags) \ $(LIBLIGHTDM_QT5_CFLAGS) common_qt_ldadd = \ -L$(top_builddir)/liblightdm-qt \ $(GLIB_LIBS) \ $(GIO_UNIX_LIBS) \ $(XCB_LIBS) test_qt4_greeter_LDADD = \ $(common_qt_ldadd) \ -llightdm-qt-3 \ $(LIBLIGHTDM_QT4_LIBS) test_qt5_greeter_LDADD = \ $(common_qt_ldadd) \ -llightdm-qt5-3 \ $(LIBLIGHTDM_QT5_LIBS) test_session_SOURCES = test-session.c status.c status.h test_session_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_UNIX_CFLAGS) \ $(XCB_CFLAGS) test_session_LDADD = \ $(GLIB_LIBS) \ $(GIO_UNIX_LIBS) \ $(XCB_LIBS) initctl_SOURCES = initctl.c status.c status.h initctl_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_UNIX_CFLAGS) initctl_LDADD = \ $(GLIB_LIBS) \ $(GIO_UNIX_LIBS) plymouth_SOURCES = plymouth.c status.c status.h plymouth_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_UNIX_CFLAGS) plymouth_LDADD = \ $(GLIB_LIBS) \ $(GIO_UNIX_LIBS) unity_system_compositor_SOURCES = unity-system-compositor.c status.c status.h unity_system_compositor_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_CFLAGS) \ $(GIO_UNIX_CFLAGS) unity_system_compositor_LDADD = \ $(GLIB_LIBS) \ $(GIO_LIBS) \ $(GIO_UNIX_LIBS) vnc_client_SOURCES = vnc-client.c status.c status.h vnc_client_CFLAGS = \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_CFLAGS) \ $(GIO_UNIX_CFLAGS) vnc_client_LDADD = \ $(GLIB_LIBS) \ $(GIO_LIBS) \ $(GIO_UNIX_LIBS) CLEANFILES = \ test-qt4-greeter_moc4.cpp \ test-qt5-greeter_moc5.cpp # Support pretty printing MOC AM_V_MOC4 = $(am__v_MOC4_$(V)) am__v_MOC4_ = $(am__v_MOC4_$(AM_DEFAULT_VERBOSITY)) am__v_MOC4_0 = @echo " MOC4 " $@; %_moc4.cpp: QLightDM/%.h $(AM_V_MOC4) $(MOC4) $< -o $@ AM_V_MOC5 = $(am__v_MOC5_$(V)) am__v_MOC5_ = $(am__v_MOC5_$(AM_DEFAULT_VERBOSITY)) am__v_MOC5_0 = @echo " MOC5 " $@; %_moc5.cpp: QLightDM/%.h $(AM_V_MOC5) $(MOC5) $< -o $@ lightdm-1.18.1/tests/src/test-guest-wrapper.c0000664000000000000000000000074712700600465016011 0ustar #include #include #include "status.h" int main (int argc, char **argv) { gchar *display; status_connect (NULL, NULL); display = getenv ("DISPLAY"); if (display == NULL) status_notify ("GUEST-WRAPPER-? START"); else if (display[0] == ':') status_notify ("GUEST-WRAPPER-X-%s START", display + 1); else status_notify ("GUEST-WRAPPER-X-%s START", display); execv (argv[1], argv + 1); return EXIT_FAILURE; } lightdm-1.18.1/tests/src/Xmir.c0000664000000000000000000002020612700600465013136 0ustar #include #include #include #include #include #include #include #include #include #include "status.h" #include "x-server.h" #include "x-authority.h" #include "xdmcp-client.h" static GMainLoop *loop; static int exit_status = EXIT_SUCCESS; static GKeyFile *config; /* Path to lock file */ static gchar *lock_path = NULL; /* Path to authority database to use */ static gchar *auth_path = NULL; /* ID to use for test reporting */ static gchar *id; /* Display number being served */ static int display_number = 0; /* VT being run on */ static int vt_number = -1; /* X server */ static XServer *xserver = NULL; static void cleanup (void) { if (lock_path) unlink (lock_path); if (xserver) g_object_unref (xserver); } static void quit (int status) { exit_status = status; g_main_loop_quit (loop); } static gboolean sighup_cb (gpointer user_data) { status_notify ("%s DISCONNECT-CLIENTS", id); return TRUE; } static gboolean sigint_cb (gpointer user_data) { status_notify ("%s TERMINATE SIGNAL=%d", id, SIGINT); quit (EXIT_SUCCESS); return TRUE; } static gboolean sigterm_cb (gpointer user_data) { status_notify ("%s TERMINATE SIGNAL=%d", id, SIGTERM); quit (EXIT_SUCCESS); return TRUE; } static void client_connected_cb (XServer *server, XClient *client) { status_notify ("%s ACCEPT-CONNECT", id); x_client_send_success (client); } static void client_disconnected_cb (XServer *server, XClient *client) { g_signal_handlers_disconnect_matched (client, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, NULL); } static void request_cb (const gchar *name, GHashTable *params) { if (!name) { g_main_loop_quit (loop); return; } if (strcmp (name, "INDICATE-READY") == 0) { void *handler; handler = signal (SIGUSR1, SIG_IGN); if (handler == SIG_IGN) { status_notify ("%s INDICATE-READY", id); kill (getppid (), SIGUSR1); } signal (SIGUSR1, handler); } } int main (int argc, char **argv) { int i; char *pid_string; gchar *seat = NULL; gchar *mir_id = NULL; gchar *lock_filename; int lock_file; GString *status_text; #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif loop = g_main_loop_new (NULL, FALSE); g_unix_signal_add (SIGINT, sigint_cb, NULL); g_unix_signal_add (SIGTERM, sigterm_cb, NULL); g_unix_signal_add (SIGHUP, sighup_cb, NULL); for (i = 1; i < argc; i++) { char *arg = argv[i]; if (arg[0] == ':') { display_number = atoi (arg + 1); } else if (strcmp (arg, "-auth") == 0) { auth_path = argv[i+1]; i++; } else if (strcmp (arg, "-nolisten") == 0) { char *protocol = argv[i+1]; i++; if (strcmp (protocol, "tcp") == 0) ;//listen_tcp = FALSE; else if (strcmp (protocol, "unix") == 0) ;//listen_unix = FALSE; } else if (strcmp (arg, "-nr") == 0) { } else if (strcmp (arg, "-background") == 0) { /* Ignore arg */ i++; } else if (g_str_has_prefix (arg, "vt")) { vt_number = atoi (arg + 2); } else if (strcmp (arg, "-novtswitch") == 0) { /* Ignore VT args */ } else if (strcmp (arg, "-seat") == 0) { seat = argv[i+1]; i++; } else if (strcmp (arg, "-mir") == 0) { mir_id = argv[i+1]; i++; } else if (strcmp (arg, "-mirSocket") == 0) { /* FIXME */ i++; } else { g_printerr ("Unrecognized option: %s\n" "Use: %s [:] [option]\n" "-auth file Select authorization file\n" "-nolisten protocol Don't listen on protocol\n" "-background [none] Create root window with no background\n" "-nr (Ubuntu-specific) Synonym for -background none\n" "-seat string seat to run on\n" "-mir id Mir ID to use\n" "-mirSocket name Mir socket to use\n" "vtxx Use virtual terminal xx instead of the next available\n", arg, argv[0]); return EXIT_FAILURE; } } id = g_strdup_printf ("XMIR-%d", display_number); status_connect (request_cb, id); xserver = x_server_new (display_number); g_signal_connect (xserver, X_SERVER_SIGNAL_CLIENT_CONNECTED, G_CALLBACK (client_connected_cb), NULL); g_signal_connect (xserver, X_SERVER_SIGNAL_CLIENT_DISCONNECTED, G_CALLBACK (client_disconnected_cb), NULL); status_text = g_string_new (""); g_string_printf (status_text, "%s START", id); if (vt_number >= 0) g_string_append_printf (status_text, " VT=%d", vt_number); if (seat != NULL) g_string_append_printf (status_text, " SEAT=%s", seat); if (mir_id != NULL) g_string_append_printf (status_text, " MIR-ID=%s", mir_id); status_notify ("%s", status_text->str); g_string_free (status_text, TRUE); config = g_key_file_new (); g_key_file_load_from_file (config, g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL), G_KEY_FILE_NONE, NULL); if (g_key_file_has_key (config, "test-xserver-config", "return-value", NULL)) { int return_value = g_key_file_get_integer (config, "test-xserver-config", "return-value", NULL); status_notify ("%s EXIT CODE=%d", id, return_value); return return_value; } lock_filename = g_strdup_printf (".X%d-lock", display_number); lock_path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "tmp", lock_filename, NULL); g_free (lock_filename); lock_file = open (lock_path, O_CREAT | O_EXCL | O_WRONLY, 0444); if (lock_file < 0) { char *lock_contents = NULL; if (g_file_get_contents (lock_path, &lock_contents, NULL, NULL)) { gchar *proc_filename; pid_t pid; pid = atol (lock_contents); g_free (lock_contents); proc_filename = g_strdup_printf ("/proc/%d", pid); if (!g_file_test (proc_filename, G_FILE_TEST_EXISTS)) { gchar *socket_dir; gchar *socket_filename; gchar *socket_path; socket_dir = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "tmp", ".X11-unix", NULL); g_mkdir_with_parents (socket_dir, 0755); socket_filename = g_strdup_printf ("X%d", display_number); socket_path = g_build_filename (socket_dir, socket_filename, NULL); g_printerr ("Breaking lock on non-existant process %d\n", pid); unlink (lock_path); unlink (socket_path); g_free (socket_dir); g_free (socket_filename); g_free (socket_path); } g_free (proc_filename); lock_file = open (lock_path, O_CREAT | O_EXCL | O_WRONLY, 0444); } } if (lock_file < 0) { fprintf (stderr, "Fatal server error:\n" "Server is already active for display %d\n" " If this server is no longer running, remove %s\n" " and start again.\n", display_number, lock_path); g_free (lock_path); lock_path = NULL; return EXIT_FAILURE; } pid_string = g_strdup_printf ("%10ld", (long) getpid ()); if (write (lock_file, pid_string, strlen (pid_string)) < 0) { g_warning ("Error writing PID file: %s", strerror (errno)); return EXIT_FAILURE; } g_free (pid_string); if (!x_server_start (xserver)) return EXIT_FAILURE; g_main_loop_run (loop); cleanup (); return exit_status; } lightdm-1.18.1/tests/src/dbus-env.c0000664000000000000000000000440312700600465013743 0ustar #include #include #include #include #include #include #include static gchar * create_bus (const gchar *config_file, GPid *pid) { int name_pipe[2]; gchar *command, address[1024]; gchar **argv; ssize_t n_read; GError *error = NULL; if (pipe (name_pipe) < 0) { g_warning ("Error creating pipe: %s", strerror (errno)); exit (EXIT_FAILURE); } command = g_strdup_printf ("dbus-daemon --config-file=%s --print-address=%d", config_file, name_pipe[1]); if (!g_shell_parse_argv (command, NULL, &argv, &error)) { g_warning ("Error parsing command line: %s", error->message); exit (EXIT_FAILURE); } g_clear_error (&error); if (!g_spawn_async (NULL, argv, NULL, G_SPAWN_SEARCH_PATH | G_SPAWN_LEAVE_DESCRIPTORS_OPEN, NULL, NULL, pid, &error)) { g_warning ("Error launching D-Bus: %s", error->message); exit (EXIT_FAILURE); } n_read = read (name_pipe[0], address, 1023); if (n_read < 0) { g_warning ("Error reading D-Bus address: %s", strerror (errno)); exit (EXIT_FAILURE); } address[n_read] = '\0'; if (n_read > 0 && address[n_read - 1] == '\n') address[n_read - 1] = '\0'; return g_strdup (address); } int main (int argc, char **argv) { gchar *conf_file, *system_bus_address, *session_bus_address; GPid system_bus_pid, session_bus_pid, child_pid; int status; conf_file = g_build_filename (DATADIR, "system.conf", NULL); system_bus_address = create_bus (conf_file, &system_bus_pid); g_free (conf_file); g_setenv ("DBUS_SYSTEM_BUS_ADDRESS", system_bus_address, TRUE); conf_file = g_build_filename (DATADIR, "session.conf", NULL); session_bus_address = create_bus (conf_file, &session_bus_pid); g_free (conf_file); g_setenv ("DBUS_SESSION_BUS_ADDRESS", session_bus_address, TRUE); child_pid = fork (); if (child_pid == 0) { execvp (argv[1], argv + 1); _exit (EXIT_FAILURE); } waitpid (child_pid, &status, 0); kill (session_bus_pid, SIGTERM); kill (system_bus_pid, SIGTERM); if (WIFEXITED (status)) return WEXITSTATUS (status); else return EXIT_FAILURE; } lightdm-1.18.1/tests/src/plymouth.c0000664000000000000000000000330012700600465014074 0ustar #include #include #include #include #include "status.h" static GKeyFile *config; int main (int argc, char **argv) { #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif status_connect (NULL, NULL); config = g_key_file_new (); g_key_file_load_from_file (config, g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL), G_KEY_FILE_NONE, NULL); if (!g_key_file_get_boolean (config, "test-plymouth-config", "enabled", NULL)) return EXIT_FAILURE; if (argc == 2 && strcmp (argv[1], "--ping") == 0) { if (g_key_file_get_boolean (config, "test-plymouth-config", "active", NULL)) { status_notify ("PLYMOUTH PING ACTIVE=TRUE"); return EXIT_SUCCESS; } else { status_notify ("PLYMOUTH PING ACTIVE=FALSE"); return EXIT_FAILURE; } } if (argc == 2 && strcmp (argv[1], "--has-active-vt") == 0) { if (g_key_file_get_boolean (config, "test-plymouth-config", "has-active-vt", NULL)) { status_notify ("PLYMOUTH HAS-ACTIVE-VT=TRUE"); return EXIT_SUCCESS; } else { status_notify ("PLYMOUTH HAS-ACTIVE-VT=FALSE"); return EXIT_FAILURE; } } if (argc == 2 && strcmp (argv[1], "deactivate") == 0) status_notify ("PLYMOUTH DEACTIVATE"); if (argc == 2 && strcmp (argv[1], "quit") == 0) status_notify ("PLYMOUTH QUIT RETAIN-SPLASH=FALSE"); if (argc == 3 && strcmp (argv[1], "quit") == 0 && strcmp (argv[2], "--retain-splash") == 0) status_notify ("PLYMOUTH QUIT RETAIN-SPLASH=TRUE"); return EXIT_SUCCESS; } lightdm-1.18.1/tests/src/test-script-hook.c0000664000000000000000000000165212700600465015442 0ustar #include #include #include #include "status.h" static GKeyFile *config; int main (int argc, char **argv) { GString *status_text; #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif status_connect (NULL, NULL); config = g_key_file_new (); g_key_file_load_from_file (config, g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL), G_KEY_FILE_NONE, NULL); if (argc < 2) { g_printerr ("Usage: %s text [return-value]\n", argv[0]); return EXIT_FAILURE; } status_text = g_string_new ("SCRIPT-HOOK"); g_string_append_printf (status_text, " %s", argv[1]); if (g_getenv ("USER")) g_string_append_printf (status_text, " USER=%s", g_getenv ("USER")); status_notify ("%s", status_text->str); g_string_free (status_text, TRUE); if (argc > 2) return atoi (argv[2]); else return EXIT_SUCCESS; } lightdm-1.18.1/tests/src/test-gobject-greeter.c0000664000000000000000000004440712700600465016255 0ustar /* -*- Mode: C; indent-tabs-mode: nil; tab-width: 4 -*- */ #include #include #include #include #include #include #include #include "status.h" static int exit_code = EXIT_SUCCESS; static gchar *greeter_id; static GMainLoop *loop; static LightDMGreeter *greeter; static xcb_connection_t *connection = NULL; static GKeyFile *config; static void show_message_cb (LightDMGreeter *greeter, const gchar *text, LightDMMessageType type) { status_notify ("%s SHOW-MESSAGE TEXT=\"%s\"", greeter_id, text); } static void show_prompt_cb (LightDMGreeter *greeter, const gchar *text, LightDMPromptType type) { status_notify ("%s SHOW-PROMPT TEXT=\"%s\"", greeter_id, text); } static void authentication_complete_cb (LightDMGreeter *greeter) { if (lightdm_greeter_get_authentication_user (greeter)) status_notify ("%s AUTHENTICATION-COMPLETE USERNAME=%s AUTHENTICATED=%s", greeter_id, lightdm_greeter_get_authentication_user (greeter), lightdm_greeter_get_is_authenticated (greeter) ? "TRUE" : "FALSE"); else status_notify ("%s AUTHENTICATION-COMPLETE AUTHENTICATED=%s", greeter_id, lightdm_greeter_get_is_authenticated (greeter) ? "TRUE" : "FALSE"); } static void autologin_timer_expired_cb (LightDMGreeter *greeter) { } static gboolean sigint_cb (gpointer user_data) { status_notify ("%s TERMINATE SIGNAL=%d", greeter_id, SIGINT); g_main_loop_quit (loop); return TRUE; } static gboolean sigterm_cb (gpointer user_data) { status_notify ("%s TERMINATE SIGNAL=%d", greeter_id, SIGTERM); g_main_loop_quit (loop); return TRUE; } static void notify_hints (LightDMGreeter *greeter) { int timeout = lightdm_greeter_get_autologin_timeout_hint (greeter); if (lightdm_greeter_get_select_user_hint (greeter)) status_notify ("%s SELECT-USER-HINT USERNAME=%s", greeter_id, lightdm_greeter_get_select_user_hint (greeter)); if (lightdm_greeter_get_select_guest_hint (greeter)) status_notify ("%s SELECT-GUEST-HINT", greeter_id); if (lightdm_greeter_get_lock_hint (greeter)) status_notify ("%s LOCK-HINT", greeter_id); if (!lightdm_greeter_get_has_guest_account_hint (greeter)) status_notify ("%s HAS-GUEST-ACCOUNT-HINT=FALSE", greeter_id); if (lightdm_greeter_get_hide_users_hint (greeter)) status_notify ("%s HIDE-USERS-HINT", greeter_id); if (lightdm_greeter_get_show_manual_login_hint (greeter)) status_notify ("%s SHOW-MANUAL-LOGIN-HINT", greeter_id); if (!lightdm_greeter_get_show_remote_login_hint (greeter)) status_notify ("%s SHOW-REMOTE-LOGIN-HINT=FALSE", greeter_id); if (lightdm_greeter_get_autologin_user_hint (greeter)) { if (timeout != 0) status_notify ("%s AUTOLOGIN-USER USERNAME=%s TIMEOUT=%d", greeter_id, lightdm_greeter_get_autologin_user_hint (greeter), timeout); else status_notify ("%s AUTOLOGIN-USER USERNAME=%s", greeter_id, lightdm_greeter_get_autologin_user_hint (greeter)); } else if (lightdm_greeter_get_autologin_guest_hint (greeter)) { if (timeout != 0) status_notify ("%s AUTOLOGIN-GUEST TIMEOUT=%d", greeter_id, timeout); else status_notify ("%s AUTOLOGIN-GUEST", greeter_id); } } static void idle_cb (LightDMGreeter *greeter) { status_notify ("%s IDLE", greeter_id); } static void reset_cb (LightDMGreeter *greeter) { status_notify ("%s RESET", greeter_id); notify_hints (greeter); } static void user_changed_cb (LightDMUser *user) { status_notify ("%s USER-CHANGED USERNAME=%s", greeter_id, lightdm_user_get_name (user)); } static void start_session_finished (GObject *object, GAsyncResult *result, gpointer data) { LightDMGreeter *greeter = LIGHTDM_GREETER (object); GError *error = NULL; if (!lightdm_greeter_start_session_finish (greeter, result, &error)) status_notify ("%s SESSION-FAILED", greeter_id); g_clear_error (&error); } static void write_shared_data_finished (GObject *object, GAsyncResult *result, gpointer data) { LightDMGreeter *greeter = LIGHTDM_GREETER (object); gchar *dir, *path, *test_data; FILE *f; dir = lightdm_greeter_ensure_shared_data_dir_finish (greeter, result); if (!dir) { status_notify ("%s WRITE-SHARED-DATA ERROR=NO_SHARED_DIR", greeter_id); return; } path = g_build_filename (dir, "data", NULL); test_data = data; if (!(f = fopen (path, "w")) || fprintf (f, "%s", test_data) < 0) status_notify ("%s WRITE-SHARED-DATA ERROR=%s", greeter_id, strerror (errno)); else status_notify ("%s WRITE-SHARED-DATA RESULT=TRUE", greeter_id); g_free (test_data); if (f) fclose (f); g_free (path); g_free (dir); } static void read_shared_data_finished (GObject *object, GAsyncResult *result, gpointer data) { LightDMGreeter *greeter = LIGHTDM_GREETER (object); gchar *dir, *path; gchar *contents = NULL; GError *error = NULL; dir = lightdm_greeter_ensure_shared_data_dir_finish (greeter, result); if (!dir) { status_notify ("%s READ-SHARED-DATA ERROR=NO_SHARED_DIR", greeter_id); return; } path = g_build_filename (dir, "data", NULL); if (g_file_get_contents (path, &contents, NULL, &error)) status_notify ("%s READ-SHARED-DATA DATA=%s", greeter_id, contents); else status_notify ("%s READ-SHARED-DATA ERROR=%s", greeter_id, error->message); g_free (path); g_free (contents); g_clear_error (&error); } static void request_cb (const gchar *name, GHashTable *params) { if (!name) { g_main_loop_quit (loop); return; } if (strcmp (name, "CRASH") == 0) kill (getpid (), SIGSEGV); else if (strcmp (name, "AUTHENTICATE") == 0) lightdm_greeter_authenticate (greeter, g_hash_table_lookup (params, "USERNAME")); else if (strcmp (name, "AUTHENTICATE-GUEST") == 0) lightdm_greeter_authenticate_as_guest (greeter); else if (strcmp (name, "AUTHENTICATE-AUTOLOGIN") == 0) lightdm_greeter_authenticate_autologin (greeter); else if (strcmp (name, "AUTHENTICATE-REMOTE") == 0) lightdm_greeter_authenticate_remote (greeter, g_hash_table_lookup (params, "SESSION"), NULL); else if (strcmp (name, "RESPOND") == 0) lightdm_greeter_respond (greeter, g_hash_table_lookup (params, "TEXT")); else if (strcmp (name, "CANCEL-AUTHENTICATION") == 0) lightdm_greeter_cancel_authentication (greeter); else if (strcmp (name, "START-SESSION") == 0) lightdm_greeter_start_session (greeter, g_hash_table_lookup (params, "SESSION"), NULL, start_session_finished, NULL); else if (strcmp (name, "LOG-DEFAULT-SESSION") == 0) status_notify ("%s LOG-DEFAULT-SESSION SESSION=%s", greeter_id, lightdm_greeter_get_default_session_hint (greeter)); else if (strcmp (name, "LOG-USER-LIST-LENGTH") == 0) status_notify ("%s LOG-USER-LIST-LENGTH N=%d", greeter_id, lightdm_user_list_get_length (lightdm_user_list_get_instance ())); else if (strcmp (name, "WRITE-SHARED-DATA") == 0) { const gchar *data = g_hash_table_lookup (params, "DATA"); lightdm_greeter_ensure_shared_data_dir (greeter, g_hash_table_lookup (params, "USERNAME"), NULL, write_shared_data_finished, g_strdup (data)); } else if (strcmp (name, "READ-SHARED-DATA") == 0) lightdm_greeter_ensure_shared_data_dir (greeter, g_hash_table_lookup (params, "USERNAME"), NULL, read_shared_data_finished, NULL); else if (strcmp (name, "WATCH-USER") == 0) { LightDMUser *user; const gchar *username; username = g_hash_table_lookup (params, "USERNAME"); user = lightdm_user_list_get_user_by_name (lightdm_user_list_get_instance (), username); if (user) g_signal_connect (user, LIGHTDM_SIGNAL_USER_CHANGED, G_CALLBACK (user_changed_cb), NULL); status_notify ("%s WATCH-USER USERNAME=%s", greeter_id, username); } else if (strcmp (name, "LOG-USER") == 0) { LightDMUser *user; const gchar *username, *image, *background, *language, *layout, *session; const gchar * const * layouts; gchar **fields = NULL; gchar *layouts_text; GString *status_text; int i; username = g_hash_table_lookup (params, "USERNAME"); if (g_hash_table_lookup (params, "FIELDS")) fields = g_strsplit (g_hash_table_lookup (params, "FIELDS"), ",", -1); if (!fields) { fields = g_malloc (sizeof (gchar *) * 1); fields[0] = NULL; } user = lightdm_user_list_get_user_by_name (lightdm_user_list_get_instance (), username); image = lightdm_user_get_image (user); background = lightdm_user_get_background (user); language = lightdm_user_get_language (user); layout = lightdm_user_get_layout (user); layouts = lightdm_user_get_layouts (user); layouts_text = g_strjoinv (";", (gchar **) layouts); session = lightdm_user_get_session (user); status_text = g_string_new (""); g_string_append_printf (status_text, "%s LOG-USER USERNAME=%s", greeter_id, username); for (i = 0; fields[i]; i++) { if (strcmp (fields[i], "REAL-NAME") == 0) g_string_append_printf (status_text, " REAL-NAME=%s", lightdm_user_get_real_name (user)); else if (strcmp (fields[i], "DISPLAY-NAME") == 0) g_string_append_printf (status_text, " DISPLAY-NAME=%s", lightdm_user_get_display_name (user)); else if (strcmp (fields[i], "IMAGE") == 0) g_string_append_printf (status_text, " IMAGE=%s", image ? image : ""); else if (strcmp (fields[i], "BACKGROUND") == 0) g_string_append_printf (status_text, " BACKGROUND=%s", background ? background : ""); else if (strcmp (fields[i], "LANGUAGE") == 0) g_string_append_printf (status_text, " LANGUAGE=%s", language ? language : ""); else if (strcmp (fields[i], "LAYOUT") == 0) g_string_append_printf (status_text, " LAYOUT=%s", layout ? layout : ""); else if (strcmp (fields[i], "LAYOUTS") == 0) g_string_append_printf (status_text, " LAYOUTS=%s", layouts_text); else if (strcmp (fields[i], "SESSION") == 0) g_string_append_printf (status_text, " SESSION=%s", session ? session : ""); else if (strcmp (fields[i], "LOGGED-IN") == 0) g_string_append_printf (status_text, " LOGGED-IN=%s", lightdm_user_get_logged_in (user) ? "TRUE" : "FALSE"); else if (strcmp (fields[i], "HAS-MESSAGES") == 0) g_string_append_printf (status_text, " HAS-MESSAGES=%s", lightdm_user_get_has_messages (user) ? "TRUE" : "FALSE"); else if (strcmp (fields[i], "UID") == 0) g_string_append_printf (status_text, " UID=%d", lightdm_user_get_uid (user)); } g_strfreev (fields); g_free (layouts_text); status_notify ("%s", status_text->str); g_string_free (status_text, TRUE); } else if (strcmp (name, "LOG-USER-LIST") == 0) { GList *users, *link; users = lightdm_user_list_get_users (lightdm_user_list_get_instance ()); for (link = users; link; link = link->next) { LightDMUser *user = link->data; status_notify ("%s LOG-USER USERNAME=%s", greeter_id, lightdm_user_get_name (user)); } } else if (strcmp (name, "GET-CAN-SUSPEND") == 0) { gboolean can_suspend = lightdm_get_can_suspend (); status_notify ("%s CAN-SUSPEND ALLOWED=%s", greeter_id, can_suspend ? "TRUE" : "FALSE"); } else if (strcmp (name, "SUSPEND") == 0) { GError *error = NULL; if (!lightdm_suspend (&error)) status_notify ("%s FAIL-SUSPEND", greeter_id); g_clear_error (&error); } else if (strcmp (name, "GET-CAN-HIBERNATE") == 0) { gboolean can_hibernate = lightdm_get_can_hibernate (); status_notify ("%s CAN-HIBERNATE ALLOWED=%s", greeter_id, can_hibernate ? "TRUE" : "FALSE"); } else if (strcmp (name, "HIBERNATE") == 0) { GError *error = NULL; if (!lightdm_hibernate (&error)) status_notify ("%s FAIL-HIBERNATE", greeter_id); g_clear_error (&error); } else if (strcmp (name, "GET-CAN-RESTART") == 0) { gboolean can_restart = lightdm_get_can_restart (); status_notify ("%s CAN-RESTART ALLOWED=%s", greeter_id, can_restart ? "TRUE" : "FALSE"); } else if (strcmp (name, "RESTART") == 0) { GError *error = NULL; if (!lightdm_restart (&error)) status_notify ("%s FAIL-RESTART", greeter_id); g_clear_error (&error); } else if (strcmp (name, "GET-CAN-SHUTDOWN") == 0) { gboolean can_shutdown = lightdm_get_can_shutdown (); status_notify ("%s CAN-SHUTDOWN ALLOWED=%s", greeter_id, can_shutdown ? "TRUE" : "FALSE"); } else if (strcmp (name, "SHUTDOWN") == 0) { GError *error = NULL; if (!lightdm_shutdown (&error)) status_notify ("%s FAIL-SHUTDOWN", greeter_id); g_clear_error (&error); } } static void user_added_cb (LightDMUserList *user_list, LightDMUser *user) { status_notify ("%s USER-ADDED USERNAME=%s", greeter_id, lightdm_user_get_name (user)); } static void user_removed_cb (LightDMUserList *user_list, LightDMUser *user) { status_notify ("%s USER-REMOVED USERNAME=%s", greeter_id, lightdm_user_get_name (user)); } static void connect_finished (GObject *object, GAsyncResult *result, gpointer data) { LightDMGreeter *greeter = LIGHTDM_GREETER (object); GError *error = NULL; if (!lightdm_greeter_connect_to_daemon_finish (greeter, result, &error)) { status_notify ("%s FAIL-CONNECT-DAEMON", greeter_id); exit_code = EXIT_FAILURE; g_main_loop_quit (loop); return; } status_notify ("%s CONNECTED-TO-DAEMON", greeter_id); notify_hints (greeter); } int main (int argc, char **argv) { gchar *display, *xdg_seat, *xdg_vtnr, *xdg_session_cookie, *xdg_session_class, *xdg_session_type, *mir_socket, *mir_vt, *mir_id, *path; GString *status_text; #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif display = getenv ("DISPLAY"); xdg_seat = getenv ("XDG_SEAT"); xdg_vtnr = getenv ("XDG_VTNR"); xdg_session_cookie = getenv ("XDG_SESSION_COOKIE"); xdg_session_class = getenv ("XDG_SESSION_CLASS"); xdg_session_type = getenv ("XDG_SESSION_TYPE"); mir_socket = getenv ("MIR_SOCKET"); mir_vt = getenv ("MIR_SERVER_VT"); mir_id = getenv ("MIR_SERVER_NAME"); if (display) { if (display[0] == ':') greeter_id = g_strdup_printf ("GREETER-X-%s", display + 1); else greeter_id = g_strdup_printf ("GREETER-X-%s", display); } else if (mir_id) greeter_id = g_strdup_printf ("GREETER-MIR-%s", mir_id); else if (mir_socket || mir_vt) greeter_id = g_strdup ("GREETER-MIR"); else if (g_strcmp0 (xdg_session_type, "wayland") == 0) greeter_id = g_strdup ("GREETER-WAYLAND"); else greeter_id = g_strdup ("GREETER-?"); loop = g_main_loop_new (NULL, FALSE); g_unix_signal_add (SIGINT, sigint_cb, NULL); g_unix_signal_add (SIGTERM, sigterm_cb, NULL); status_connect (request_cb, greeter_id); status_text = g_string_new (""); g_string_printf (status_text, "%s START", greeter_id); if (xdg_seat) g_string_append_printf (status_text, " XDG_SEAT=%s", xdg_seat); if (xdg_vtnr) g_string_append_printf (status_text, " XDG_VTNR=%s", xdg_vtnr); if (xdg_session_cookie) g_string_append_printf (status_text, " XDG_SESSION_COOKIE=%s", xdg_session_cookie); if (xdg_session_class) g_string_append_printf (status_text, " XDG_SESSION_CLASS=%s", xdg_session_class); if (mir_vt > 0) g_string_append_printf (status_text, " MIR_SERVER_VT=%s", mir_vt); status_notify ("%s", status_text->str); g_string_free (status_text, TRUE); config = g_key_file_new (); path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL); g_key_file_load_from_file (config, path, G_KEY_FILE_NONE, NULL); g_free (path); if (g_key_file_has_key (config, "test-greeter-config", "return-value", NULL)) { int return_value = g_key_file_get_integer (config, "test-greeter-config", "return-value", NULL); status_notify ("%s EXIT CODE=%d", greeter_id, return_value); return return_value; } if (display) { connection = xcb_connect (NULL, NULL); if (xcb_connection_has_error (connection)) { status_notify ("%s FAIL-CONNECT-XSERVER", greeter_id); return EXIT_FAILURE; } status_notify ("%s CONNECT-XSERVER", greeter_id); } greeter = lightdm_greeter_new (); g_signal_connect (greeter, LIGHTDM_GREETER_SIGNAL_SHOW_MESSAGE, G_CALLBACK (show_message_cb), NULL); g_signal_connect (greeter, LIGHTDM_GREETER_SIGNAL_SHOW_PROMPT, G_CALLBACK (show_prompt_cb), NULL); g_signal_connect (greeter, LIGHTDM_GREETER_SIGNAL_AUTHENTICATION_COMPLETE, G_CALLBACK (authentication_complete_cb), NULL); g_signal_connect (greeter, LIGHTDM_GREETER_SIGNAL_AUTOLOGIN_TIMER_EXPIRED, G_CALLBACK (autologin_timer_expired_cb), NULL); if (g_key_file_get_boolean (config, "test-greeter-config", "resettable", NULL)) { lightdm_greeter_set_resettable (greeter, TRUE); g_signal_connect (greeter, LIGHTDM_GREETER_SIGNAL_IDLE, G_CALLBACK (idle_cb), NULL); g_signal_connect (greeter, LIGHTDM_GREETER_SIGNAL_RESET, G_CALLBACK (reset_cb), NULL); } if (g_key_file_get_boolean (config, "test-greeter-config", "log-user-changes", NULL)) { g_signal_connect (lightdm_user_list_get_instance (), LIGHTDM_USER_LIST_SIGNAL_USER_ADDED, G_CALLBACK (user_added_cb), NULL); g_signal_connect (lightdm_user_list_get_instance (), LIGHTDM_USER_LIST_SIGNAL_USER_REMOVED, G_CALLBACK (user_removed_cb), NULL); } status_notify ("%s CONNECT-TO-DAEMON", greeter_id); lightdm_greeter_connect_to_daemon (greeter, NULL, connect_finished, NULL); g_main_loop_run (loop); return exit_code; } lightdm-1.18.1/tests/src/status.h0000664000000000000000000000060712700600465013552 0ustar #ifndef STATUS_H_ #define STATUS_H_ #ifdef __cplusplus extern "C" { #endif #include typedef void (*StatusRequestFunc)(const gchar *name, GHashTable *params); gboolean status_connect (StatusRequestFunc message_cb, const gchar *id); void status_notify (const gchar *format, ...) __attribute__((format (printf, 1, 2))); #ifdef __cplusplus } #endif #endif /* STATUS_H_ */ lightdm-1.18.1/tests/src/x-common.c0000664000000000000000000001040612700600465013755 0ustar #include #include "x-common.h" gsize pad (gsize length) { if (length % 4 == 0) return 0; return 4 - length % 4; } void read_padding (gsize length, gsize *offset) { *offset += length; } guint8 read_card8 (const guint8 *buffer, gsize buffer_length, gsize *offset) { if (*offset >= buffer_length) return 0; (*offset)++; return buffer[*offset - 1]; } guint16 read_card16 (const guint8 *buffer, gsize buffer_length, guint8 byte_order, gsize *offset) { guint8 a, b; a = read_card8 (buffer, buffer_length, offset); b = read_card8 (buffer, buffer_length, offset); if (byte_order == X_BYTE_ORDER_MSB) return a << 8 | b; else return b << 8 | a; } guint32 read_card32 (const guint8 *buffer, gsize buffer_length, guint8 byte_order, gsize *offset) { guint8 a, b, c, d; a = read_card8 (buffer, buffer_length, offset); b = read_card8 (buffer, buffer_length, offset); c = read_card8 (buffer, buffer_length, offset); d = read_card8 (buffer, buffer_length, offset); if (byte_order == X_BYTE_ORDER_MSB) return a << 24 | b << 16 | c << 8 | d; else return d << 24 | c << 16 | b << 8 | a; } guint8 * read_string8 (const guint8 *buffer, gsize buffer_length, gsize string_length, gsize *offset) { guint8 *string; int i; string = g_malloc (string_length + 1); for (i = 0; i < string_length; i++) string[i] = read_card8 (buffer, buffer_length, offset); string[i] = '\0'; return string; } gchar * read_string (const guint8 *buffer, gsize buffer_length, gsize string_length, gsize *offset) { return (gchar *) read_string8 (buffer, buffer_length, string_length, offset); } gchar * read_padded_string (const guint8 *buffer, gsize buffer_length, gsize string_length, gsize *offset) { guint8 *value; value = read_string8 (buffer, buffer_length, string_length, offset); read_padding (pad (string_length), offset); return (gchar *) value; } void write_card8 (guint8 *buffer, gsize buffer_length, guint8 value, gsize *offset) { if (*offset >= buffer_length) return; buffer[*offset] = value; (*offset)++; } void write_padding (guint8 *buffer, gsize buffer_length, gsize length, gsize *offset) { gsize i; for (i = 0; i < length; i++) write_card8 (buffer, buffer_length, 0, offset); } void write_card16 (guint8 *buffer, gsize buffer_length, guint8 byte_order, guint16 value, gsize *offset) { if (byte_order == X_BYTE_ORDER_MSB) { write_card8 (buffer, buffer_length, value >> 8, offset); write_card8 (buffer, buffer_length, value & 0xFF, offset); } else { write_card8 (buffer, buffer_length, value & 0xFF, offset); write_card8 (buffer, buffer_length, value >> 8, offset); } } void write_card32 (guint8 *buffer, gsize buffer_length, guint8 byte_order, guint32 value, gsize *offset) { if (byte_order == X_BYTE_ORDER_MSB) { write_card8 (buffer, buffer_length, value >> 24, offset); write_card8 (buffer, buffer_length, (value >> 16) & 0xFF, offset); write_card8 (buffer, buffer_length, (value >> 8) & 0xFF, offset); write_card8 (buffer, buffer_length, value & 0xFF, offset); } else { write_card8 (buffer, buffer_length, value & 0xFF, offset); write_card8 (buffer, buffer_length, (value >> 8) & 0xFF, offset); write_card8 (buffer, buffer_length, (value >> 16) & 0xFF, offset); write_card8 (buffer, buffer_length, value >> 24, offset); } } void write_string8 (guint8 *buffer, gsize buffer_length, const guint8 *value, gsize value_length, gsize *offset) { gsize i; for (i = 0; i < value_length; i++) write_card8 (buffer, buffer_length, value[i], offset); } gsize padded_string_length (const gchar *value) { return (strlen (value) + pad (strlen (value))) / 4; } void write_string (guint8 *buffer, gsize buffer_length, const gchar *value, gsize *offset) { write_string8 (buffer, buffer_length, (guint8 *) value, strlen (value), offset); } void write_padded_string (guint8 *buffer, gsize buffer_length, const gchar *value, gsize *offset) { write_string8 (buffer, buffer_length, (guint8 *) value, strlen (value), offset); write_padding (buffer, buffer_length, pad (strlen (value)), offset); } lightdm-1.18.1/tests/src/initctl.c0000664000000000000000000000135412700600465013670 0ustar #include #include #include #include "status.h" static GKeyFile *config; int main (int argc, char **argv) { status_connect (NULL, NULL); config = g_key_file_new (); g_key_file_load_from_file (config, g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL), G_KEY_FILE_NONE, NULL); if (g_key_file_get_boolean (config, "test-initctl-config", "report-events", NULL)) { GString *status_text; int i; status_text = g_string_new ("INIT"); for (i = 1; i < argc; i++) g_string_append_printf (status_text, " %s", argv[i]); status_notify ("%s", status_text->str); g_string_free (status_text, TRUE); } return EXIT_SUCCESS; } lightdm-1.18.1/tests/src/Xvnc.c0000664000000000000000000002007312700600465013137 0ustar #include #include #include #include #include #include #include #include #include #include #include "status.h" #include "x-server.h" #include "x-authority.h" static GMainLoop *loop; static int exit_status = EXIT_SUCCESS; static GKeyFile *config; /* Path to lock file */ static gchar *lock_path = NULL; /* Path to authority database to use */ static gchar *auth_path = NULL; /* ID to use for test reporting */ static gchar *id; /* Display number being served */ static int display_number = 0; /* X server */ static XServer *xserver = NULL; static void cleanup (void) { if (lock_path) unlink (lock_path); if (xserver) g_object_unref (xserver); } static void quit (int status) { exit_status = status; g_main_loop_quit (loop); } static gboolean sighup_cb (gpointer user_data) { status_notify ("%s DISCONNECT-CLIENTS", id); return TRUE; } static gboolean sigint_cb (gpointer user_data) { status_notify ("%s TERMINATE SIGNAL=%d", id, SIGINT); quit (EXIT_SUCCESS); return TRUE; } static gboolean sigterm_cb (gpointer user_data) { status_notify ("%s TERMINATE SIGNAL=%d", id, SIGTERM); quit (EXIT_SUCCESS); return TRUE; } static void client_connected_cb (XServer *server, XClient *client) { status_notify ("%s ACCEPT-CONNECT", id); x_client_send_success (client); } static void client_disconnected_cb (XServer *server, XClient *client) { g_signal_handlers_disconnect_matched (client, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, NULL); } static gboolean vnc_data_cb (GIOChannel *channel, GIOCondition condition, gpointer data) { gchar buffer[1024]; gsize n_read; GIOStatus status; GError *error = NULL; status = g_io_channel_read_chars (channel, buffer, 1023, &n_read, &error); if (error) g_warning ("Error reading from VNC client: %s", error->message); g_clear_error (&error); if (status == G_IO_STATUS_NORMAL) { buffer[n_read] = '\0'; if (g_str_has_suffix (buffer, "\n")) buffer[n_read-1] = '\0'; status_notify ("%s VNC-CLIENT-CONNECT VERSION=\"%s\"", id, buffer); } return TRUE; } static void request_cb (const gchar *name, GHashTable *params) { if (!name) { g_main_loop_quit (loop); return; } if (strcmp (name, "INDICATE-READY") == 0) { void *handler; handler = signal (SIGUSR1, SIG_IGN); if (handler == SIG_IGN) { status_notify ("%s INDICATE-READY", id); kill (getppid (), SIGUSR1); } signal (SIGUSR1, handler); } else if (strcmp (name, "START-VNC") == 0) { /* Send server protocol version to client */ g_print ("RFB 003.007\n"); } } int main (int argc, char **argv) { int i; char *pid_string; gboolean use_inetd = FALSE; gboolean has_option = FALSE; gchar *geometry = g_strdup ("640x480"); gint depth = 8; gchar *lock_filename; int lock_file; #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif loop = g_main_loop_new (NULL, FALSE); g_unix_signal_add (SIGINT, sigint_cb, NULL); g_unix_signal_add (SIGTERM, sigterm_cb, NULL); g_unix_signal_add (SIGHUP, sighup_cb, NULL); for (i = 1; i < argc; i++) { char *arg = argv[i]; if (arg[0] == ':') { display_number = atoi (arg + 1); } else if (strcmp (arg, "-auth") == 0) { auth_path = argv[i+1]; i++; } else if (strcmp (arg, "-nolisten") == 0) { char *protocol = argv[i+1]; i++; if (strcmp (protocol, "tcp") == 0) ;//listen_tcp = FALSE; else if (strcmp (protocol, "unix") == 0) ;//listen_unix = FALSE; } else if (strcmp (arg, "-geometry") == 0) { g_free (geometry); geometry = g_strdup (argv[i+1]); i++; } else if (strcmp (arg, "-depth") == 0) { depth = atoi (argv[i+1]); i++; } else if (strcmp (arg, "-inetd") == 0) { use_inetd = TRUE; } else if (strcmp (arg, "-option") == 0) { has_option = TRUE; } else { g_printerr ("Unrecognized option: %s\n" "Use: %s [:] [option]\n" "-auth file Select authorization file\n" "-nolisten protocol Don't listen on protocol\n" "-geometry WxH Set framebuffer width & height\n" "-depth D Set framebuffer depth\n" "-inetd Xvnc is launched by inetd\n", arg, argv[0]); return EXIT_FAILURE; } } id = g_strdup_printf ("XVNC-%d", display_number); status_connect (request_cb, id); xserver = x_server_new (display_number); g_signal_connect (xserver, X_SERVER_SIGNAL_CLIENT_CONNECTED, G_CALLBACK (client_connected_cb), NULL); g_signal_connect (xserver, X_SERVER_SIGNAL_CLIENT_DISCONNECTED, G_CALLBACK (client_disconnected_cb), NULL); status_notify ("%s START GEOMETRY=%s DEPTH=%d OPTION=%s", id, geometry, depth, has_option ? "TRUE" : "FALSE"); config = g_key_file_new (); g_key_file_load_from_file (config, g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL), G_KEY_FILE_NONE, NULL); if (use_inetd) { if (!g_io_add_watch (g_io_channel_unix_new (STDIN_FILENO), G_IO_IN, vnc_data_cb, NULL)) return EXIT_FAILURE; } else { g_printerr ("Only supported in -inetd mode\n"); return EXIT_FAILURE; } lock_filename = g_strdup_printf (".X%d-lock", display_number); lock_path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "tmp", lock_filename, NULL); g_free (lock_filename); lock_file = open (lock_path, O_CREAT | O_EXCL | O_WRONLY, 0444); if (lock_file < 0) { char *lock_contents = NULL; if (g_file_get_contents (lock_path, &lock_contents, NULL, NULL)) { gchar *proc_filename; pid_t pid; pid = atol (lock_contents); g_free (lock_contents); proc_filename = g_strdup_printf ("/proc/%d", pid); if (!g_file_test (proc_filename, G_FILE_TEST_EXISTS)) { gchar *socket_dir; gchar *socket_filename; gchar *socket_path; socket_dir = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "tmp", ".X11-unix", NULL); g_mkdir_with_parents (socket_dir, 0755); socket_filename = g_strdup_printf ("X%d", display_number); socket_path = g_build_filename (socket_dir, socket_filename, NULL); g_printerr ("Breaking lock on non-existant process %d\n", pid); unlink (lock_path); unlink (socket_path); g_free (socket_dir); g_free (socket_filename); g_free (socket_path); } g_free (proc_filename); lock_file = open (lock_path, O_CREAT | O_EXCL | O_WRONLY, 0444); } } if (lock_file < 0) { fprintf (stderr, "Fatal server error:\n" "Server is already active for display %d\n" " If this server is no longer running, remove %s\n" " and start again.\n", display_number, lock_path); g_free (lock_path); lock_path = NULL; return EXIT_FAILURE; } pid_string = g_strdup_printf ("%10ld", (long) getpid ()); if (write (lock_file, pid_string, strlen (pid_string)) < 0) { g_warning ("Error writing PID file: %s", strerror (errno)); return EXIT_FAILURE; } g_free (pid_string); if (!x_server_start (xserver)) return EXIT_FAILURE; g_main_loop_run (loop); cleanup (); return exit_status; } lightdm-1.18.1/tests/src/test-session.c0000664000000000000000000002633712700600465014672 0ustar #include #include #include #include #include #include #include #include #include #include #include #include #include #include "status.h" static gchar *session_id; static GMainLoop *loop; static GString *open_fds; static GKeyFile *config; static xcb_connection_t *connection; static gboolean sigint_cb (gpointer user_data) { status_notify ("%s TERMINATE SIGNAL=%d", session_id, SIGINT); g_main_loop_quit (loop); return TRUE; } static gboolean sigterm_cb (gpointer user_data) { status_notify ("%s TERMINATE SIGNAL=%d", session_id, SIGTERM); g_main_loop_quit (loop); return TRUE; } static void request_cb (const gchar *name, GHashTable *params) { if (!name) { g_main_loop_quit (loop); return; } if (strcmp (name, "LOGOUT") == 0) exit (EXIT_SUCCESS); else if (strcmp (name, "CRASH") == 0) kill (getpid (), SIGSEGV); else if (strcmp (name, "LOCK-SEAT") == 0) { status_notify ("%s LOCK-SEAT", session_id); g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), "org.freedesktop.DisplayManager", getenv ("XDG_SEAT_PATH"), "org.freedesktop.DisplayManager.Seat", "Lock", g_variant_new ("()"), G_VARIANT_TYPE ("()"), G_DBUS_CALL_FLAGS_NONE, 1000, NULL, NULL); } else if (strcmp (name, "LOCK-SESSION") == 0) { status_notify ("%s LOCK-SESSION", session_id); g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), "org.freedesktop.DisplayManager", getenv ("XDG_SESSION_PATH"), "org.freedesktop.DisplayManager.Session", "Lock", g_variant_new ("()"), G_VARIANT_TYPE ("()"), G_DBUS_CALL_FLAGS_NONE, 1000, NULL, NULL); } else if (strcmp (name, "LIST-GROUPS") == 0) { int n_groups, i; gid_t *groups; GString *group_list; n_groups = getgroups (0, NULL); if (n_groups < 0) { g_printerr ("Failed to get groups: %s", strerror (errno)); n_groups = 0; } groups = malloc (sizeof (gid_t) * n_groups); n_groups = getgroups (n_groups, groups); group_list = g_string_new (""); for (i = 0; i < n_groups; i++) { struct group *group; if (i != 0) g_string_append (group_list, ","); group = getgrgid (groups[i]); if (group) g_string_append (group_list, group->gr_name); else g_string_append_printf (group_list, "%d", groups[i]); } status_notify ("%s LIST-GROUPS GROUPS=%s", session_id, group_list->str); g_string_free (group_list, TRUE); free (groups); } else if (strcmp (name, "READ-ENV") == 0) { const gchar *name = g_hash_table_lookup (params, "NAME"); const gchar *value = g_getenv (name); status_notify ("%s READ-ENV NAME=%s VALUE=%s", session_id, name, value ? value : ""); } else if (strcmp (name, "WRITE-STDOUT") == 0) g_print ("%s", (const gchar *) g_hash_table_lookup (params, "TEXT")); else if (strcmp (name, "WRITE-STDERR") == 0) g_printerr ("%s", (const gchar *) g_hash_table_lookup (params, "TEXT")); else if (strcmp (name, "READ") == 0) { const gchar *name = g_hash_table_lookup (params, "FILE"); gchar *contents = NULL; GError *error = NULL; if (g_file_get_contents (name, &contents, NULL, &error)) status_notify ("%s READ FILE=%s TEXT=%s", session_id, name, contents); else status_notify ("%s READ FILE=%s ERROR=%s", session_id, name, error->message); g_free (contents); g_clear_error (&error); } else if (strcmp (name, "LIST-UNKNOWN-FILE-DESCRIPTORS") == 0) status_notify ("%s LIST-UNKNOWN-FILE-DESCRIPTORS FDS=%s", session_id, open_fds->str); else if (strcmp (name, "CHECK-X-AUTHORITY") == 0) { gchar *xauthority; GStatBuf file_info; GString *mode_string; xauthority = g_strdup (g_getenv ("XAUTHORITY")); if (!xauthority) xauthority = g_build_filename (g_get_home_dir (), ".Xauthority", NULL); g_stat (xauthority, &file_info); g_free (xauthority); mode_string = g_string_new (""); g_string_append_c (mode_string, file_info.st_mode & S_IRUSR ? 'r' : '-'); g_string_append_c (mode_string, file_info.st_mode & S_IWUSR ? 'w' : '-'); g_string_append_c (mode_string, file_info.st_mode & S_IXUSR ? 'x' : '-'); g_string_append_c (mode_string, file_info.st_mode & S_IRGRP ? 'r' : '-'); g_string_append_c (mode_string, file_info.st_mode & S_IWGRP ? 'w' : '-'); g_string_append_c (mode_string, file_info.st_mode & S_IXGRP ? 'x' : '-'); g_string_append_c (mode_string, file_info.st_mode & S_IROTH ? 'r' : '-'); g_string_append_c (mode_string, file_info.st_mode & S_IWOTH ? 'w' : '-'); g_string_append_c (mode_string, file_info.st_mode & S_IXOTH ? 'x' : '-'); status_notify ("%s CHECK-X-AUTHORITY MODE=%s", session_id, mode_string->str); g_string_free (mode_string, TRUE); } else if (strcmp (name, "WRITE-SHARED-DATA") == 0) { const gchar *data = g_hash_table_lookup (params, "DATA"); gchar *dir; dir = getenv ("XDG_GREETER_DATA_DIR"); if (dir) { gchar *path; FILE *f; path = g_build_filename (dir, "data", NULL); if (!(f = fopen (path, "w")) || fprintf (f, "%s", data) < 0) status_notify ("%s WRITE-SHARED-DATA ERROR=%s", session_id, strerror (errno)); else status_notify ("%s WRITE-SHARED-DATA RESULT=TRUE", session_id); if (f) fclose (f); g_free (path); } else status_notify ("%s WRITE-SHARED-DATA ERROR=NO_XDG_GREETER_DATA_DIR", session_id); } else if (strcmp (name, "READ-SHARED-DATA") == 0) { gchar *dir; dir = getenv ("XDG_GREETER_DATA_DIR"); if (dir) { gchar *path; gchar *contents = NULL; GError *error = NULL; path = g_build_filename (dir, "data", NULL); if (g_file_get_contents (path, &contents, NULL, &error)) status_notify ("%s READ-SHARED-DATA DATA=%s", session_id, contents); else status_notify ("%s WRITE-SHARED-DATA ERROR=%s", session_id, error->message); g_free (path); g_free (contents); g_clear_error (&error); } else status_notify ("%s WRITE-SHARED-DATA ERROR=NO_XDG_GREETER_DATA_DIR", session_id); } } int main (int argc, char **argv) { gchar *display, *xdg_seat, *xdg_vtnr, *xdg_current_desktop, *xdg_greeter_data_dir, *xdg_session_cookie, *xdg_session_class, *xdg_session_type, *xdg_session_desktop, *mir_socket, *mir_vt, *mir_id; GString *status_text; int fd, open_max; display = getenv ("DISPLAY"); xdg_seat = getenv ("XDG_SEAT"); xdg_vtnr = getenv ("XDG_VTNR"); xdg_current_desktop = getenv ("XDG_CURRENT_DESKTOP"); xdg_greeter_data_dir = getenv ("XDG_GREETER_DATA_DIR"); xdg_session_cookie = getenv ("XDG_SESSION_COOKIE"); xdg_session_class = getenv ("XDG_SESSION_CLASS"); xdg_session_type = getenv ("XDG_SESSION_TYPE"); xdg_session_desktop = getenv ("XDG_SESSION_DESKTOP"); mir_socket = getenv ("MIR_SOCKET"); mir_vt = getenv ("MIR_SERVER_VT"); mir_id = getenv ("MIR_SERVER_NAME"); if (display) { if (display[0] == ':') session_id = g_strdup_printf ("SESSION-X-%s", display + 1); else session_id = g_strdup_printf ("SESSION-X-%s", display); } else if (mir_id) session_id = g_strdup_printf ("SESSION-MIR-%s", mir_id); else if (mir_socket || mir_vt) session_id = g_strdup ("SESSION-MIR"); else if (g_strcmp0 (xdg_session_type, "wayland") == 0) session_id = g_strdup ("SESSION-WAYLAND"); else session_id = g_strdup ("SESSION-UNKNOWN"); open_fds = g_string_new (""); open_max = sysconf (_SC_OPEN_MAX); for (fd = STDERR_FILENO + 1; fd < open_max; fd++) { if (fcntl (fd, F_GETFD) >= 0) g_string_append_printf (open_fds, "%d,", fd); } if (g_str_has_suffix (open_fds->str, ",")) open_fds->str[strlen (open_fds->str) - 1] = '\0'; #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif loop = g_main_loop_new (NULL, FALSE); g_unix_signal_add (SIGINT, sigint_cb, NULL); g_unix_signal_add (SIGTERM, sigterm_cb, NULL); status_connect (request_cb, session_id); status_text = g_string_new (""); g_string_printf (status_text, "%s START", session_id); if (xdg_seat) g_string_append_printf (status_text, " XDG_SEAT=%s", xdg_seat); if (xdg_vtnr) g_string_append_printf (status_text, " XDG_VTNR=%s", xdg_vtnr); if (xdg_current_desktop) g_string_append_printf (status_text, " XDG_CURRENT_DESKTOP=%s", xdg_current_desktop); if (xdg_greeter_data_dir) g_string_append_printf (status_text, " XDG_GREETER_DATA_DIR=%s", xdg_greeter_data_dir); if (xdg_session_cookie) g_string_append_printf (status_text, " XDG_SESSION_COOKIE=%s", xdg_session_cookie); if (xdg_session_class) g_string_append_printf (status_text, " XDG_SESSION_CLASS=%s", xdg_session_class); if (xdg_session_type) g_string_append_printf (status_text, " XDG_SESSION_TYPE=%s", xdg_session_type); if (xdg_session_desktop) g_string_append_printf (status_text, " XDG_SESSION_DESKTOP=%s", xdg_session_desktop); if (mir_vt > 0) g_string_append_printf (status_text, " MIR_SERVER_VT=%s", mir_vt); if (argc > 1) g_string_append_printf (status_text, " NAME=%s", argv[1]); g_string_append_printf (status_text, " USER=%s", getenv ("USER")); status_notify ("%s", status_text->str); g_string_free (status_text, TRUE); config = g_key_file_new (); g_key_file_load_from_file (config, g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL), G_KEY_FILE_NONE, NULL); if (display) { connection = xcb_connect (NULL, NULL); if (xcb_connection_has_error (connection)) { status_notify ("%s CONNECT-XSERVER-ERROR", session_id); return EXIT_FAILURE; } status_notify ("%s CONNECT-XSERVER", session_id); } g_main_loop_run (loop); return EXIT_SUCCESS; } lightdm-1.18.1/tests/src/x-server.c0000664000000000000000000001435512700600465014002 0ustar /* -*- Mode: C; indent-tabs-mode: nil; tab-width: 4 -*- */ #include #include #include #include #include #include #include #include #include #include "x-server.h" G_DEFINE_TYPE (XServer, x_server, G_TYPE_OBJECT); G_DEFINE_TYPE (XClient, x_client, G_TYPE_OBJECT); #define MAXIMUM_REQUEST_LENGTH 65535 enum { X_SERVER_CLIENT_CONNECTED, X_SERVER_CLIENT_DISCONNECTED, X_SERVER_LAST_SIGNAL }; static guint x_server_signals[X_SERVER_LAST_SIGNAL] = { 0 }; struct XServerPrivate { gint display_number; gchar *socket_path; GSocket *socket; GIOChannel *channel; GHashTable *clients; }; struct XClientPrivate { XServer *server; GSocket *socket; GIOChannel *channel; }; enum { X_CLIENT_DISCONNECTED, X_CLIENT_LAST_SIGNAL }; static guint x_client_signals[X_CLIENT_LAST_SIGNAL] = { 0 }; void x_client_send_failed (XClient *client, const gchar *reason) { gchar *message; message = g_strdup_printf ("FAILED:%s", reason); errno = 0; if (send (g_io_channel_unix_get_fd (client->priv->channel), message, strlen (message), 0) != strlen (message)) g_printerr ("Failed to send FAILED: %s\n", strerror (errno)); g_free (message); } void x_client_send_success (XClient *client) { gchar *message; message = g_strdup ("SUCCESS"); errno = 0; if (send (g_io_channel_unix_get_fd (client->priv->channel), message, strlen (message), 0) != strlen (message)) g_printerr ("Failed to send SUCCESS: %s\n", strerror (errno)); g_free (message); } void x_client_disconnect (XClient *client) { g_io_channel_shutdown (client->priv->channel, TRUE, NULL); } static void x_client_init (XClient *client) { client->priv = G_TYPE_INSTANCE_GET_PRIVATE (client, x_client_get_type (), XClientPrivate); } static void x_client_class_init (XClientClass *klass) { g_type_class_add_private (klass, sizeof (XClientPrivate)); x_client_signals[X_CLIENT_DISCONNECTED] = g_signal_new (X_CLIENT_SIGNAL_DISCONNECTED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (XClientClass, disconnected), NULL, NULL, NULL, G_TYPE_NONE, 0); } XServer * x_server_new (gint display_number) { XServer *server = g_object_new (x_server_get_type (), NULL); server->priv->display_number = display_number; return server; } static void x_client_disconnected_cb (XClient *client, XServer *server) { g_signal_handlers_disconnect_matched (client, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, server); g_hash_table_remove (server->priv->clients, client->priv->channel); g_signal_emit (server, x_server_signals[X_SERVER_CLIENT_DISCONNECTED], 0, client); } static gboolean socket_connect_cb (GIOChannel *channel, GIOCondition condition, gpointer data) { XServer *server = data; GSocket *data_socket; XClient *client; GError *error = NULL; data_socket = g_socket_accept (server->priv->socket, NULL, &error); if (error) g_warning ("Error accepting connection: %s", strerror (errno)); g_clear_error (&error); if (!data_socket) return FALSE; client = g_object_new (x_client_get_type (), NULL); client->priv->server = server; g_signal_connect (client, X_CLIENT_SIGNAL_DISCONNECTED, G_CALLBACK (x_client_disconnected_cb), server); client->priv->socket = data_socket; client->priv->channel = g_io_channel_unix_new (g_socket_get_fd (data_socket)); g_hash_table_insert (server->priv->clients, client->priv->channel, client); g_signal_emit (server, x_server_signals[X_SERVER_CLIENT_CONNECTED], 0, client); return TRUE; } gboolean x_server_start (XServer *server) { gchar *name; GError *error = NULL; name = g_strdup_printf (".x:%d", server->priv->display_number); server->priv->socket_path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), name, NULL); g_free (name); server->priv->socket = g_socket_new (G_SOCKET_FAMILY_UNIX, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_DEFAULT, &error); if (!server->priv->socket || !g_socket_bind (server->priv->socket, g_unix_socket_address_new (server->priv->socket_path), TRUE, &error) || !g_socket_listen (server->priv->socket, &error)) { g_warning ("Error creating Unix X socket: %s", error->message); return FALSE; } server->priv->channel = g_io_channel_unix_new (g_socket_get_fd (server->priv->socket)); g_io_add_watch (server->priv->channel, G_IO_IN, socket_connect_cb, server); return TRUE; } gsize x_server_get_n_clients (XServer *server) { return g_hash_table_size (server->priv->clients); } static void x_server_init (XServer *server) { server->priv = G_TYPE_INSTANCE_GET_PRIVATE (server, x_server_get_type (), XServerPrivate); server->priv->clients = g_hash_table_new_full (g_direct_hash, g_direct_equal, (GDestroyNotify) g_io_channel_unref, g_object_unref); } static void x_server_finalize (GObject *object) { XServer *server = (XServer *) object; if (server->priv->socket_path) unlink (server->priv->socket_path); G_OBJECT_CLASS (x_server_parent_class)->finalize (object); } static void x_server_class_init (XServerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = x_server_finalize; g_type_class_add_private (klass, sizeof (XServerPrivate)); x_server_signals[X_SERVER_CLIENT_CONNECTED] = g_signal_new (X_SERVER_SIGNAL_CLIENT_CONNECTED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (XServerClass, client_connected), NULL, NULL, NULL, G_TYPE_NONE, 1, x_client_get_type ()); x_server_signals[X_SERVER_CLIENT_DISCONNECTED] = g_signal_new (X_SERVER_SIGNAL_CLIENT_DISCONNECTED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (XServerClass, client_disconnected), NULL, NULL, NULL, G_TYPE_NONE, 1, x_client_get_type ()); } lightdm-1.18.1/tests/src/x-server.h0000664000000000000000000000247212700600465014004 0ustar #ifndef X_SERVER_H_ #define X_SERVER_H_ #include #include G_BEGIN_DECLS #define X_CLIENT_SIGNAL_DISCONNECTED "disconnected" #define X_SERVER_SIGNAL_CLIENT_CONNECTED "client-connected" #define X_SERVER_SIGNAL_CLIENT_DISCONNECTED "client-disconnected" typedef struct XClientPrivate XClientPrivate; typedef struct { GObject parent_instance; XClientPrivate *priv; } XClient; typedef struct { GObjectClass parent_class; void (*disconnected)(XClient *client); } XClientClass; typedef struct XServerPrivate XServerPrivate; typedef struct { GObject parent_instance; XServerPrivate *priv; } XServer; typedef struct { GObjectClass parent_class; void (*client_connected)(XServer *server, XClient *client); void (*client_disconnected)(XServer *server, XClient *client); } XServerClass; GType x_server_get_type (void); XServer *x_server_new (gint display_number); gboolean x_server_start (XServer *server); gsize x_server_get_n_clients (XServer *server); GType x_client_get_type (void); void x_client_send_failed (XClient *client, const gchar *reason); void x_client_send_success (XClient *client); void x_client_send_error (XClient *client, int type, int major, int minor); void x_client_disconnect (XClient *client); G_END_DECLS #endif /* X_SERVER_H_ */ lightdm-1.18.1/tests/src/xdmcp-client.c0000664000000000000000000004704712700600465014622 0ustar #include #include #include #include #include #include #include #include "x-common.h" #include "xdmcp-client.h" G_DEFINE_TYPE (XDMCPClient, xdmcp_client, G_TYPE_OBJECT); #define MAXIMUM_REQUEST_LENGTH 65535 typedef enum { XDMCP_BroadcastQuery = 1, XDMCP_Query = 2, XDMCP_IndirectQuery = 3, XDMCP_ForwardQuery = 4, XDMCP_Willing = 5, XDMCP_Unwilling = 6, XDMCP_Request = 7, XDMCP_Accept = 8, XDMCP_Decline = 9, XDMCP_Manage = 10, XDMCP_Refuse = 11, XDMCP_Failed = 12, XDMCP_KeepAlive = 13, XDMCP_Alive = 14 } XDMCPOpcode; struct XDMCPClientPrivate { gchar *host; gint port; GSocket *socket; gchar *authentication_names; gchar *authorization_name; gint authorization_data_length; guint8 *authorization_data; }; enum { XDMCP_CLIENT_WILLING, XDMCP_CLIENT_UNWILLING, XDMCP_CLIENT_ACCEPT, XDMCP_CLIENT_DECLINE, XDMCP_CLIENT_FAILED, XDMCP_CLIENT_ALIVE, XDMCP_CLIENT_LAST_SIGNAL }; static guint xdmcp_client_signals[XDMCP_CLIENT_LAST_SIGNAL] = { 0 }; static void xdmcp_write (XDMCPClient *client, const guint8 *buffer, gssize buffer_length) { gssize n_written; GError *error = NULL; n_written = g_socket_send (client->priv->socket, (const gchar *) buffer, buffer_length, NULL, &error); if (n_written < 0) g_warning ("Failed to send XDMCP request: %s", error->message); else if (n_written != buffer_length) g_warning ("Partial write for XDMCP request, wrote %zi, expected %zi", n_written, buffer_length); g_clear_error (&error); } static void decode_willing (XDMCPClient *client, const guint8 *buffer, gssize buffer_length) { XDMCPWilling *message; gsize offset = 0; guint16 length; message = g_malloc0 (sizeof (XDMCPWilling)); length = read_card16 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); message->authentication_name = read_string (buffer, buffer_length, length, &offset); length = read_card16 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); message->hostname = read_string (buffer, buffer_length, length, &offset); length = read_card16 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); message->status = read_string (buffer, buffer_length, length, &offset); g_signal_emit (client, xdmcp_client_signals[XDMCP_CLIENT_WILLING], 0, message); g_free (message->authentication_name); g_free (message->hostname); g_free (message->status); g_free (message); } static void decode_unwilling (XDMCPClient *client, const guint8 *buffer, gssize buffer_length) { XDMCPUnwilling *message; gsize offset = 0; guint16 length; message = g_malloc0 (sizeof (XDMCPUnwilling)); length = read_card16 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); message->hostname = read_string (buffer, buffer_length, length, &offset); length = read_card16 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); message->status = read_string (buffer, buffer_length, length, &offset); g_signal_emit (client, xdmcp_client_signals[XDMCP_CLIENT_UNWILLING], 0, message); g_free (message->hostname); g_free (message->status); g_free (message); } static void decode_accept (XDMCPClient *client, const guint8 *buffer, gssize buffer_length) { XDMCPAccept *message; gsize offset = 0; guint16 length; message = g_malloc (sizeof (XDMCPAccept)); message->session_id = read_card32 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); length = read_card16 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); message->authentication_name = read_string (buffer, buffer_length, length, &offset); message->authentication_data_length = read_card16 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); message->authentication_data = read_string8 (buffer, buffer_length, message->authentication_data_length, &offset); length = read_card16 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); message->authorization_name = read_string (buffer, buffer_length, length, &offset); message->authorization_data_length = read_card16 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); message->authorization_data = read_string8 (buffer, buffer_length, length, &offset); g_signal_emit (client, xdmcp_client_signals[XDMCP_CLIENT_ACCEPT], 0, message); g_free (message->authentication_name); g_free (message->authentication_data); g_free (message->authorization_name); g_free (message->authorization_data); g_free (message); } static void decode_decline (XDMCPClient *client, const guint8 *buffer, gssize buffer_length) { XDMCPDecline *message; gsize offset = 0; guint16 length; message = g_malloc0 (sizeof (XDMCPDecline)); length = read_card16 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); message->status = read_string (buffer, buffer_length, length, &offset); length = read_card16 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); message->authentication_name = read_string (buffer, buffer_length, length, &offset); message->authentication_data_length = read_card16 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); message->authentication_data = read_string8 (buffer, buffer_length, message->authentication_data_length, &offset); g_signal_emit (client, xdmcp_client_signals[XDMCP_CLIENT_DECLINE], 0, message); g_free (message->status); g_free (message->authentication_name); g_free (message->authentication_data); g_free (message); } static void decode_failed (XDMCPClient *client, const guint8 *buffer, gssize buffer_length) { XDMCPFailed *message; gsize offset = 0; guint16 length; message = g_malloc0 (sizeof (XDMCPFailed)); message->session_id = read_card32 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); length = read_card16 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); message->status = read_string (buffer, buffer_length, length, &offset); g_signal_emit (client, xdmcp_client_signals[XDMCP_CLIENT_FAILED], 0, message); g_free (message->status); g_free (message); } static void decode_alive (XDMCPClient *client, const guint8 *buffer, gssize buffer_length) { XDMCPAlive *message; gsize offset = 0; message = g_malloc0 (sizeof (XDMCPAlive)); message->session_running = read_card8 (buffer, buffer_length, &offset) != 0 ? TRUE : FALSE; message->session_id = read_card32 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); g_signal_emit (client, xdmcp_client_signals[XDMCP_CLIENT_ALIVE], 0, message); g_free (message); } static gboolean xdmcp_data_cb (GIOChannel *channel, GIOCondition condition, gpointer data) { XDMCPClient *client = data; guint8 buffer[MAXIMUM_REQUEST_LENGTH]; gssize n_read; n_read = recv (g_io_channel_unix_get_fd (channel), buffer, MAXIMUM_REQUEST_LENGTH, 0); if (n_read < 0) g_warning ("Error reading from XDMCP socket: %s", strerror (errno)); else if (n_read == 0) { g_debug ("EOF"); return FALSE; } else { gsize offset = 0; guint16 version, opcode, length; version = read_card16 (buffer, n_read, X_BYTE_ORDER_MSB, &offset); opcode = read_card16 (buffer, n_read, X_BYTE_ORDER_MSB, &offset); length = read_card16 (buffer, n_read, X_BYTE_ORDER_MSB, &offset); if (version != 1) { g_debug ("Ignoring XDMCP version %d message", version); return TRUE; } if (6 + length > n_read) { g_debug ("Ignoring XDMCP message of length %zi with invalid length field %d", n_read, length); return TRUE; } switch (opcode) { case XDMCP_Willing: decode_willing (client, buffer + offset, n_read - offset); break; case XDMCP_Unwilling: decode_unwilling (client, buffer + offset, n_read - offset); break; case XDMCP_Accept: decode_accept (client, buffer + offset, n_read - offset); break; case XDMCP_Decline: decode_decline (client, buffer + offset, n_read - offset); break; case XDMCP_Failed: decode_failed (client, buffer + offset, n_read - offset); break; case XDMCP_Alive: decode_alive (client, buffer + offset, n_read - offset); break; default: g_debug ("Ignoring unknown XDMCP opcode %d", opcode); break; } } return TRUE; } XDMCPClient * xdmcp_client_new (void) { return g_object_new (xdmcp_client_get_type (), NULL); } void xdmcp_client_set_hostname (XDMCPClient *client, const gchar *hostname) { g_free (client->priv->host); client->priv->host = g_strdup (hostname); } void xdmcp_client_set_port (XDMCPClient *client, guint16 port) { client->priv->port = port; } gboolean xdmcp_client_start (XDMCPClient *client) { GSocketConnectable *address; GSocketAddressEnumerator *enumerator; gboolean result; GError *error = NULL; if (client->priv->socket) return TRUE; client->priv->socket = g_socket_new (G_SOCKET_FAMILY_IPV4, G_SOCKET_TYPE_DATAGRAM, G_SOCKET_PROTOCOL_UDP, &error); if (error) g_warning ("Error creating XDMCP socket: %s", error->message); g_clear_error (&error); if (!client->priv->socket) return FALSE; address = g_network_address_new (client->priv->host, client->priv->port); enumerator = g_socket_connectable_enumerate (address); result = FALSE; while (TRUE) { GSocketAddress *socket_address; GError *e = NULL; socket_address = g_socket_address_enumerator_next (enumerator, NULL, &e); if (e) g_warning ("Failed to get socket address: %s", e->message); g_clear_error (&e); if (!socket_address) break; result = g_socket_connect (client->priv->socket, socket_address, NULL, error ? NULL : &error); g_object_unref (socket_address); if (result) { g_clear_error (&error); break; } } if (error) g_warning ("Unable to connect XDMCP socket: %s", error->message); if (!result) return FALSE; g_io_add_watch (g_io_channel_unix_new (g_socket_get_fd (client->priv->socket)), G_IO_IN, xdmcp_data_cb, client); return TRUE; } GInetAddress * xdmcp_client_get_local_address (XDMCPClient *client) { GSocketAddress *socket_address; if (!client->priv->socket) return NULL; socket_address = g_socket_get_local_address (client->priv->socket, NULL); return g_inet_socket_address_get_address (G_INET_SOCKET_ADDRESS (socket_address)); } static void xdmcp_client_init (XDMCPClient *client) { client->priv = G_TYPE_INSTANCE_GET_PRIVATE (client, xdmcp_client_get_type (), XDMCPClientPrivate); client->priv->port = XDMCP_PORT; } static void send_query (XDMCPClient *client, guint16 opcode, gchar **authentication_names) { guint8 buffer[MAXIMUM_REQUEST_LENGTH]; gsize length, offset = 0, n_names = 0; gchar **name; length = 1; for (name = authentication_names; authentication_names && *name; name++) { length += 2 + strlen (*name); n_names++; } write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, XDMCP_VERSION, &offset); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, opcode, &offset); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, length, &offset); write_card8 (buffer, MAXIMUM_REQUEST_LENGTH, n_names, &offset); for (name = authentication_names; authentication_names && *name; name++) { write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, strlen (*name), &offset); write_string (buffer, MAXIMUM_REQUEST_LENGTH, *name, &offset); } xdmcp_write (client, buffer, offset); } void xdmcp_client_send_query (XDMCPClient *client, gchar **authentication_names) { send_query (client, XDMCP_Query, authentication_names); } void xdmcp_client_send_broadcast_query (XDMCPClient *client, gchar **authentication_names) { send_query (client, XDMCP_BroadcastQuery, authentication_names); } void xdmcp_client_send_indirect_query (XDMCPClient *client, gchar **authentication_names) { send_query (client, XDMCP_IndirectQuery, authentication_names); } void xdmcp_client_send_request (XDMCPClient *client, guint16 display_number, GInetAddress **addresses, const gchar *authentication_name, const guint8 *authentication_data, guint16 authentication_data_length, gchar **authorization_names, const gchar *mfid) { guint8 buffer[MAXIMUM_REQUEST_LENGTH]; gsize length = 0, offset = 0, n_addresses = 0, n_names = 0; GInetAddress **address; gchar **name; length = 11 + strlen (authentication_name) + authentication_data_length + strlen (mfid); for (address = addresses; *address; address++) { gssize native_address_length = g_inet_address_get_native_size (*address); length += 4 + native_address_length; n_addresses++; } for (name = authorization_names; *name; name++) { length += 2 + strlen (*name); n_names++; } write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, XDMCP_VERSION, &offset); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, XDMCP_Request, &offset); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, length, &offset); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, display_number, &offset); write_card8 (buffer, MAXIMUM_REQUEST_LENGTH, n_addresses, &offset); for (address = addresses; *address; address++) write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, 0, &offset); /* FamilyInternet */ write_card8 (buffer, MAXIMUM_REQUEST_LENGTH, n_addresses, &offset); for (address = addresses; *address; address++) { gssize native_address_length; const guint8 *native_address; native_address_length = g_inet_address_get_native_size (*address); native_address = g_inet_address_to_bytes (*address); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, native_address_length, &offset); write_string8 (buffer, MAXIMUM_REQUEST_LENGTH, native_address, native_address_length, &offset); } write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, strlen (authentication_name), &offset); write_string (buffer, MAXIMUM_REQUEST_LENGTH, authentication_name, &offset); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, authentication_data_length, &offset); write_string8 (buffer, MAXIMUM_REQUEST_LENGTH, authentication_data, authentication_data_length, &offset); write_card8 (buffer, MAXIMUM_REQUEST_LENGTH, n_names, &offset); for (name = authorization_names; *name; name++) { write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, strlen (*name), &offset); write_string (buffer, MAXIMUM_REQUEST_LENGTH, *name, &offset); } write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, strlen (mfid), &offset); write_string (buffer, MAXIMUM_REQUEST_LENGTH, mfid, &offset); xdmcp_write (client, buffer, offset); } void xdmcp_client_send_manage (XDMCPClient *client, guint32 session_id, guint16 display_number, const gchar *display_class) { guint8 buffer[MAXIMUM_REQUEST_LENGTH]; gsize offset = 0; write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, XDMCP_VERSION, &offset); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, XDMCP_Manage, &offset); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, 8 + strlen (display_class), &offset); write_card32 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, session_id, &offset); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, display_number, &offset); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, strlen (display_class), &offset); write_string (buffer, MAXIMUM_REQUEST_LENGTH, display_class, &offset); xdmcp_write (client, buffer, offset); } void xdmcp_client_send_keep_alive (XDMCPClient *client, guint16 display_number, guint32 session_id) { guint8 buffer[MAXIMUM_REQUEST_LENGTH]; gsize offset = 0; write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, XDMCP_VERSION, &offset); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, XDMCP_KeepAlive, &offset); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, 6, &offset); write_card16 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, display_number, &offset); write_card32 (buffer, MAXIMUM_REQUEST_LENGTH, X_BYTE_ORDER_MSB, session_id, &offset); xdmcp_write (client, buffer, offset); } static void xdmcp_client_finalize (GObject *object) { XDMCPClient *client = (XDMCPClient *) object; g_free (client->priv->host); if (client->priv->socket) g_object_unref (client->priv->socket); g_free (client->priv->authorization_name); g_free (client->priv->authorization_data); } static void xdmcp_client_class_init (XDMCPClientClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = xdmcp_client_finalize; g_type_class_add_private (klass, sizeof (XDMCPClientPrivate)); xdmcp_client_signals[XDMCP_CLIENT_WILLING] = g_signal_new (XDMCP_CLIENT_SIGNAL_WILLING, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (XDMCPClientClass, willing), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_POINTER); xdmcp_client_signals[XDMCP_CLIENT_UNWILLING] = g_signal_new (XDMCP_CLIENT_SIGNAL_UNWILLING, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (XDMCPClientClass, unwilling), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_POINTER); xdmcp_client_signals[XDMCP_CLIENT_ACCEPT] = g_signal_new (XDMCP_CLIENT_SIGNAL_ACCEPT, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (XDMCPClientClass, accept), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_POINTER); xdmcp_client_signals[XDMCP_CLIENT_DECLINE] = g_signal_new (XDMCP_CLIENT_SIGNAL_DECLINE, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (XDMCPClientClass, decline), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_POINTER); xdmcp_client_signals[XDMCP_CLIENT_FAILED] = g_signal_new (XDMCP_CLIENT_SIGNAL_FAILED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (XDMCPClientClass, failed), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_POINTER); xdmcp_client_signals[XDMCP_CLIENT_ALIVE] = g_signal_new (XDMCP_CLIENT_SIGNAL_ALIVE, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (XDMCPClientClass, alive), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_POINTER); } lightdm-1.18.1/tests/src/guest-account.c0000664000000000000000000000625412700600465015007 0ustar #include #include #include #include #include #include #include "status.h" static GKeyFile *config; int main (int argc, char **argv) { gchar *passwd_path; #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif status_connect (NULL, NULL); config = g_key_file_new (); g_key_file_load_from_file (config, g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL), G_KEY_FILE_NONE, NULL); passwd_path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "etc", "passwd", NULL); if (argc == 2 && strcmp (argv[1], "add") == 0) { gchar *home_dir, *username, line[1024]; gint max_uid = 1000; FILE *passwd; /* Create a unique name */ home_dir = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "home", "guest-XXXXXX", NULL); if (!mkdtemp (home_dir)) { g_printerr ("Failed to create home directory %s: %s\n", home_dir, strerror (errno)); return EXIT_FAILURE; } username = strrchr (home_dir, '/') + 1; /* Get the largest UID */ passwd = fopen (passwd_path, "r"); if (passwd) { while (fgets (line, 1024, passwd)) { gchar **tokens = g_strsplit (line, ":", -1); if (g_strv_length (tokens) >= 3) { gint uid = atoi (tokens[2]); if (uid > max_uid) max_uid = uid; } g_strfreev (tokens); } fclose (passwd); } /* Add a new account to the passwd file */ passwd = fopen (passwd_path, "a"); fprintf (passwd, "%s::%d:%d:Guest Account:%s:/bin/sh\n", username, max_uid+1, max_uid+1, home_dir); fclose (passwd); status_notify ("GUEST-ACCOUNT ADD USERNAME=%s", username); /* Print out the username so LightDM picks it up */ g_print ("%s\n", username); return EXIT_SUCCESS; } else if (argc == 3 && strcmp (argv[1], "remove") == 0) { gchar *username, *path, *prefix, line[1024]; FILE *passwd, *new_passwd; username = argv[2]; status_notify ("GUEST-ACCOUNT REMOVE USERNAME=%s", username); /* Open a new file for writing */ passwd = fopen (passwd_path, "r"); path = g_strdup_printf ("%s~", passwd_path); new_passwd = fopen (path, "w"); /* Copy the old file, omitting our entry */ prefix = g_strdup_printf ("%s:", username); while (fgets (line, 1024, passwd)) { if (!g_str_has_prefix (line, prefix)) fprintf (new_passwd, "%s", line); } fclose (passwd); fclose (new_passwd); /* Move the new file on the old one */ rename (path, passwd_path); /* Delete home directory */ gchar *command = g_strdup_printf ("rm -r %s/home/%s", g_getenv ("LIGHTDM_TEST_ROOT"), username); if (system (command)) perror ("Failed to delete temp directory"); return EXIT_SUCCESS; } g_printerr ("Usage %s add|remove\n", argv[0]); return EXIT_FAILURE; } lightdm-1.18.1/tests/src/X.c0000664000000000000000000004756612700600465012450 0ustar #include #include #include #include #include #include #include #include #include #include "status.h" #include "x-server.h" #include "x-authority.h" #include "xdmcp-client.h" static GMainLoop *loop; static int exit_status = EXIT_SUCCESS; static GKeyFile *config; /* Version to pretend to be */ static gchar *xorg_version; static gint xorg_version_major, xorg_version_minor; /* Path to lock file */ static gchar *lock_path = NULL; /* TRUE if we allow TCP connections */ static gboolean listen_tcp = TRUE; /* TRUE if we allow Unix connections */ static gboolean listen_unix = TRUE; /* Configuration to use */ static gchar *config_file = NULL; /* Configuration layout to use */ static gchar *layout = NULL; /* Path to authority database to use */ static gchar *auth_path = NULL; /* ID to use for test reporting */ static gchar *id; /* Display number being served */ static int display_number = 0; /* VT being run on */ static int vt_number = -1; /* X server */ static XServer *xserver = NULL; /* XDMCP client */ static XDMCPClient *xdmcp_client = NULL; /* Session ID provided by XDMCP server */ static guint32 xdmcp_session_id = 0; /* Authorization provided by XDMCP server */ static guint16 xdmcp_cookie_length = 0; static guint8 *xdmcp_cookie = NULL; static void cleanup (void) { if (lock_path) unlink (lock_path); if (xserver) g_object_unref (xserver); if (xdmcp_client) g_object_unref (xdmcp_client); } static void quit (int status) { exit_status = status; g_main_loop_quit (loop); } static gboolean sighup_cb (gpointer user_data) { status_notify ("%s DISCONNECT-CLIENTS", id); return TRUE; } static gboolean sigint_cb (gpointer user_data) { status_notify ("%s TERMINATE SIGNAL=%d", id, SIGINT); quit (EXIT_SUCCESS); return TRUE; } static gboolean sigterm_cb (gpointer user_data) { status_notify ("%s TERMINATE SIGNAL=%d", id, SIGTERM); quit (EXIT_SUCCESS); return TRUE; } static void xdmcp_willing_cb (XDMCPClient *client, XDMCPWilling *message) { status_notify ("%s GOT-WILLING AUTHENTICATION-NAME=\"%s\" HOSTNAME=\"%s\" STATUS=\"%s\"", id, message->authentication_name, message->hostname, message->status); } static void xdmcp_unwilling_cb (XDMCPClient *client, XDMCPUnwilling *message) { status_notify ("%s GOT-UNWILLING HOSTNAME=\"%s\" STATUS=\"%s\"", id, message->hostname, message->status); } static gchar * data_to_string (guint8 *data, gsize data_length) { static gchar hex_char[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; gchar *text; gsize i; text = malloc (data_length * 2 + 1); for (i = 0; i < data_length; i++) { text[i*2] = hex_char [data[i] >> 4]; text[i*2 + 1] = hex_char [data[i] & 0xF]; } text[i*2] = '\0'; return text; } static void xdmcp_accept_cb (XDMCPClient *client, XDMCPAccept *message) { gchar *authentication_data_text, *authorization_data_text; authentication_data_text = data_to_string (message->authentication_data, message->authentication_data_length); authorization_data_text = data_to_string (message->authorization_data, message->authorization_data_length); status_notify ("%s GOT-ACCEPT SESSION-ID=%d AUTHENTICATION-NAME=\"%s\" AUTHENTICATION-DATA=%s AUTHORIZATION-NAME=\"%s\" AUTHORIZATION-DATA=%s", id, message->session_id, message->authentication_name, authentication_data_text, message->authorization_name, authorization_data_text); g_free (authentication_data_text); g_free (authorization_data_text); xdmcp_session_id = message->session_id; g_free (xdmcp_cookie); xdmcp_cookie_length = message->authorization_data_length; xdmcp_cookie = g_malloc (message->authorization_data_length); memcpy (xdmcp_cookie, message->authorization_data, message->authorization_data_length); } static void xdmcp_decline_cb (XDMCPClient *client, XDMCPDecline *message) { gchar *authentication_data_text; authentication_data_text = data_to_string (message->authentication_data, message->authentication_data_length); status_notify ("%s GOT-DECLINE STATUS=\"%s\" AUTHENTICATION-NAME=\"%s\" AUTHENTICATION-DATA=%s", id, message->status, message->authentication_name, authentication_data_text); g_free (authentication_data_text); } static void xdmcp_failed_cb (XDMCPClient *client, XDMCPFailed *message) { status_notify ("%s GOT-FAILED SESSION-ID=%d STATUS=\"%s\"", id, message->session_id, message->status); } static void xdmcp_alive_cb (XDMCPClient *client, XDMCPAlive *message) { status_notify ("%s GOT-ALIVE SESSION-RUNNING=%s SESSION-ID=%d", id, message->session_running ? "TRUE" : "FALSE", message->session_id); } static void client_connected_cb (XServer *server, XClient *client) { status_notify ("%s ACCEPT-CONNECT", id); x_client_send_success (client); } static void client_disconnected_cb (XServer *server, XClient *client) { g_signal_handlers_disconnect_matched (client, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, NULL); } static guint8 get_nibble (char c) { if (c >= '0' && c <= '9') return c - '0'; else if (c >= 'a' && c <= 'f') return c - 'a' + 10; else if (c >= 'A' && c <= 'F') return c - 'A' + 10; else return 0; } static void request_cb (const gchar *name, GHashTable *params) { if (!name) { g_main_loop_quit (loop); return; } if (strcmp (name, "CRASH") == 0) { cleanup (); kill (getpid (), SIGSEGV); } else if (strcmp (name, "INDICATE-READY") == 0) { void *handler; handler = signal (SIGUSR1, SIG_IGN); if (handler == SIG_IGN) { status_notify ("%s INDICATE-READY", id); kill (getppid (), SIGUSR1); } signal (SIGUSR1, handler); } else if (strcmp (name, "SEND-QUERY") == 0) { const gchar *authentication_names_list; gchar **authentication_names; if (!xdmcp_client_start (xdmcp_client)) quit (EXIT_FAILURE); authentication_names_list = g_hash_table_lookup (params, "AUTHENTICATION-NAMES"); if (!authentication_names_list) authentication_names_list = ""; authentication_names = g_strsplit (authentication_names_list, " ", -1); xdmcp_client_send_query (xdmcp_client, authentication_names); g_strfreev (authentication_names); } else if (strcmp (name, "SEND-REQUEST") == 0) { const gchar *text, *addresses_list, *authentication_name, *authentication_data_text, *authorization_names_list, *mfid; int request_display_number = display_number; gchar **list, **authorization_names; guint8 *authentication_data; gsize authentication_data_length, list_length; gint i; GInetAddress **addresses; text = g_hash_table_lookup (params, "DISPLAY-NUMBER"); if (text) request_display_number = atoi (text); addresses_list = g_hash_table_lookup (params, "ADDRESSES"); if (!addresses_list) addresses_list = ""; authentication_name = g_hash_table_lookup (params, "AUTHENTICATION-NAME"); if (!authentication_name) authentication_name = ""; authentication_data_text = g_hash_table_lookup (params, "AUTHENTICATION-DATA"); if (!authentication_data_text) authentication_data_text = ""; authorization_names_list = g_hash_table_lookup (params, "AUTHORIZATION-NAMES"); if (!authorization_names_list) authorization_names_list = ""; mfid = g_hash_table_lookup (params, "MFID"); if (!mfid) mfid = ""; list = g_strsplit (addresses_list, " ", -1); list_length = g_strv_length (list); addresses = g_malloc (sizeof (GInetAddress *) * (list_length + 1)); for (i = 0; i < list_length; i++) addresses[i] = g_inet_address_new_from_string (list[i]); addresses[i] = NULL; g_strfreev (list); authentication_data_length = strlen (authentication_data_text) / 2; authentication_data = malloc (authentication_data_length); for (i = 0; i < authentication_data_length; i++) authentication_data[i] = get_nibble (authentication_data_text[i*2]) << 4 | get_nibble (authentication_data_text[i*2+1]); authorization_names = g_strsplit (authorization_names_list, " ", -1); xdmcp_client_send_request (xdmcp_client, request_display_number, addresses, authentication_name, authentication_data, authentication_data_length, authorization_names, mfid); g_free (authentication_data); g_strfreev (authorization_names); } else if (strcmp (name, "SEND-MANAGE") == 0) { const char *text, *display_class; guint32 session_id = xdmcp_session_id; guint16 manage_display_number = display_number; text = g_hash_table_lookup (params, "SESSION-ID"); if (text) session_id = atoi (text); text = g_hash_table_lookup (params, "DISPLAY-NUMBER"); if (text) manage_display_number = atoi (text); display_class = g_hash_table_lookup (params, "DISPLAY-CLASS"); if (!display_class) display_class = ""; xdmcp_client_send_manage (xdmcp_client, session_id, manage_display_number, display_class); } else if (strcmp (name, "SEND-KEEP-ALIVE") == 0) { const char *text; guint32 session_id = xdmcp_session_id; guint16 keep_alive_display_number = display_number; text = g_hash_table_lookup (params, "DISPLAY-NUMBER"); if (text) keep_alive_display_number = atoi (text); text = g_hash_table_lookup (params, "SESSION-ID"); if (text) session_id = atoi (text); xdmcp_client_send_keep_alive (xdmcp_client, keep_alive_display_number, session_id); } } static int version_compare (int major, int minor) { if (major == xorg_version_major) return xorg_version_minor - minor; else return xorg_version_major - major; } int main (int argc, char **argv) { int i; gchar **tokens; char *pid_string; gboolean do_xdmcp = FALSE; guint xdmcp_port = 0; gchar *xdmcp_host = NULL; gchar *seat = NULL; gchar *mir_id = NULL; gchar *lock_filename; int lock_file; GString *status_text; #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif loop = g_main_loop_new (NULL, FALSE); g_unix_signal_add (SIGINT, sigint_cb, NULL); g_unix_signal_add (SIGTERM, sigterm_cb, NULL); g_unix_signal_add (SIGHUP, sighup_cb, NULL); config = g_key_file_new (); g_key_file_load_from_file (config, g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL), G_KEY_FILE_NONE, NULL); xorg_version = g_key_file_get_string (config, "test-xserver-config", "version", NULL); if (!xorg_version) xorg_version = g_strdup ("1.17.0"); tokens = g_strsplit (xorg_version, ".", -1); xorg_version_major = g_strv_length (tokens) > 0 ? atoi (tokens[0]) : 0; xorg_version_minor = g_strv_length (tokens) > 1 ? atoi (tokens[1]) : 0; g_strfreev (tokens); /* TCP listening default changed in 1.17.0 */ listen_tcp = version_compare (1, 17) < 0; for (i = 1; i < argc; i++) { char *arg = argv[i]; if (arg[0] == ':') { display_number = atoi (arg + 1); } else if (strcmp (arg, "-config") == 0) { config_file = argv[i+1]; i++; } else if (strcmp (arg, "-layout") == 0) { layout = argv[i+1]; i++; } else if (strcmp (arg, "-auth") == 0) { auth_path = argv[i+1]; i++; } else if (strcmp (arg, "-listen") == 0 && version_compare (1, 17) >= 0) { char *protocol = argv[i+1]; i++; if (strcmp (protocol, "tcp") == 0) listen_tcp = TRUE; else if (strcmp (protocol, "unix") == 0) listen_unix = TRUE; } else if (strcmp (arg, "-nolisten") == 0) { char *protocol = argv[i+1]; i++; if (strcmp (protocol, "tcp") == 0) listen_tcp = FALSE; else if (strcmp (protocol, "unix") == 0) listen_unix = FALSE; } else if (strcmp (arg, "-nr") == 0) { } else if (strcmp (arg, "-background") == 0) { /* Ignore arg */ i++; } else if (strcmp (arg, "-port") == 0) { xdmcp_port = atoi (argv[i+1]); i++; } else if (strcmp (arg, "-query") == 0) { do_xdmcp = TRUE; xdmcp_host = argv[i+1]; listen_tcp = TRUE; i++; } else if (strcmp (arg, "-broadcast") == 0) { do_xdmcp = TRUE; listen_tcp = TRUE; } else if (g_str_has_prefix (arg, "vt")) { vt_number = atoi (arg + 2); } else if (strcmp (arg, "-novtswitch") == 0) { /* Ignore VT args */ } else if (strcmp (arg, "-seat") == 0) { seat = argv[i+1]; i++; } else if (strcmp (arg, "-mir") == 0) { mir_id = argv[i+1]; i++; } else if (strcmp (arg, "-mirSocket") == 0) { /* FIXME */ i++; } else if (strcmp (arg, "-version") == 0) { fprintf (stderr, "\nX.Org X Server %s\nBlah blah blah\n", xorg_version); return EXIT_SUCCESS; } else { g_printerr ("Unrecognized option: %s\n" "Use: %s [:] [option]\n" "-config file Specify a configuration file\n" "-layout name Specify the ServerLayout section name\n" "-auth file Select authorization file\n" "-nolisten protocol Don't listen on protocol\n" "-listen protocol Listen on protocol\n" "-background [none] Create root window with no background\n" "-nr (Ubuntu-specific) Synonym for -background none\n" "-query host-name Contact named host for XDMCP\n" "-broadcast Broadcast for XDMCP\n" "-port port-num UDP port number to send messages to\n" "-seat string seat to run on\n" "-mir id Mir ID to use\n" "-mirSocket name Mir socket to use\n" "-version show the server version\n" "vtxx Use virtual terminal xx instead of the next available\n", arg, argv[0]); return EXIT_FAILURE; } } id = g_strdup_printf ("XSERVER-%d", display_number); status_connect (request_cb, id); xserver = x_server_new (display_number); g_signal_connect (xserver, X_SERVER_SIGNAL_CLIENT_CONNECTED, G_CALLBACK (client_connected_cb), NULL); g_signal_connect (xserver, X_SERVER_SIGNAL_CLIENT_DISCONNECTED, G_CALLBACK (client_disconnected_cb), NULL); status_text = g_string_new (""); g_string_printf (status_text, "%s START", id); if (config_file) g_string_append_printf (status_text, " CONFIG=%s", config_file); if (layout) g_string_append_printf (status_text, " LAYOUT=%s", layout); if (vt_number >= 0) g_string_append_printf (status_text, " VT=%d", vt_number); if (listen_tcp) g_string_append (status_text, " LISTEN-TCP"); if (!listen_unix) g_string_append (status_text, " NO-LISTEN-UNIX"); if (seat != NULL) g_string_append_printf (status_text, " SEAT=%s", seat); if (mir_id != NULL) g_string_append_printf (status_text, " MIR-ID=%s", mir_id); status_notify ("%s", status_text->str); g_string_free (status_text, TRUE); if (g_key_file_has_key (config, "test-xserver-config", "return-value", NULL)) { int return_value = g_key_file_get_integer (config, "test-xserver-config", "return-value", NULL); status_notify ("%s EXIT CODE=%d", id, return_value); return return_value; } lock_filename = g_strdup_printf (".X%d-lock", display_number); lock_path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "tmp", lock_filename, NULL); g_free (lock_filename); lock_file = open (lock_path, O_CREAT | O_EXCL | O_WRONLY, 0444); if (lock_file < 0) { char *lock_contents = NULL; if (g_file_get_contents (lock_path, &lock_contents, NULL, NULL)) { gchar *proc_filename; pid_t pid; pid = atol (lock_contents); g_free (lock_contents); proc_filename = g_strdup_printf ("/proc/%d", pid); if (!g_file_test (proc_filename, G_FILE_TEST_EXISTS)) { gchar *socket_dir; gchar *socket_filename; gchar *socket_path; socket_dir = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "tmp", ".X11-unix", NULL); g_mkdir_with_parents (socket_dir, 0755); socket_filename = g_strdup_printf ("X%d", display_number); socket_path = g_build_filename (socket_dir, socket_filename, NULL); g_printerr ("Breaking lock on non-existant process %d\n", pid); unlink (lock_path); unlink (socket_path); g_free (socket_dir); g_free (socket_filename); g_free (socket_path); } g_free (proc_filename); lock_file = open (lock_path, O_CREAT | O_EXCL | O_WRONLY, 0444); } } if (lock_file < 0) { fprintf (stderr, "Fatal server error:\n" "Server is already active for display %d\n" " If this server is no longer running, remove %s\n" " and start again.\n", display_number, lock_path); g_free (lock_path); lock_path = NULL; return EXIT_FAILURE; } pid_string = g_strdup_printf ("%10ld", (long) getpid ()); if (write (lock_file, pid_string, strlen (pid_string)) < 0) { g_warning ("Error writing PID file: %s", strerror (errno)); return EXIT_FAILURE; } g_free (pid_string); if (!x_server_start (xserver)) return EXIT_FAILURE; /* Enable XDMCP */ if (do_xdmcp) { xdmcp_client = xdmcp_client_new (); if (xdmcp_host > 0) xdmcp_client_set_hostname (xdmcp_client, xdmcp_host); if (xdmcp_port > 0) xdmcp_client_set_port (xdmcp_client, xdmcp_port); g_signal_connect (xdmcp_client, XDMCP_CLIENT_SIGNAL_WILLING, G_CALLBACK (xdmcp_willing_cb), NULL); g_signal_connect (xdmcp_client, XDMCP_CLIENT_SIGNAL_UNWILLING, G_CALLBACK (xdmcp_unwilling_cb), NULL); g_signal_connect (xdmcp_client, XDMCP_CLIENT_SIGNAL_ACCEPT, G_CALLBACK (xdmcp_accept_cb), NULL); g_signal_connect (xdmcp_client, XDMCP_CLIENT_SIGNAL_DECLINE, G_CALLBACK (xdmcp_decline_cb), NULL); g_signal_connect (xdmcp_client, XDMCP_CLIENT_SIGNAL_FAILED, G_CALLBACK (xdmcp_failed_cb), NULL); g_signal_connect (xdmcp_client, XDMCP_CLIENT_SIGNAL_ALIVE, G_CALLBACK (xdmcp_alive_cb), NULL); } g_main_loop_run (loop); cleanup (); return exit_status; } lightdm-1.18.1/tests/src/libsystem.c0000664000000000000000000014662112700600465014244 0ustar #define _GNU_SOURCE #define __USE_GNU #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef __linux__ #include #endif #include #include #include #if HAVE_LIBAUDIT #include #endif #include "status.h" #define LOGIN_PROMPT "login:" static int tty_fd = -1; static GList *user_entries = NULL; static GList *getpwent_link = NULL; static GList *group_entries = NULL; static int active_vt = 7; static gboolean status_connected = FALSE; static GKeyFile *config; static void connect_status (void) { if (status_connected) return; status_connected = TRUE; status_connect (NULL, NULL); config = g_key_file_new (); g_key_file_load_from_file (config, g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL), G_KEY_FILE_NONE, NULL); } struct pam_handle { char *id; char *service_name; char *user; char *authtok; char *ruser; char *tty; char **envlist; struct pam_conv conversation; }; uid_t getuid (void) { return 0; } /*uid_t geteuid (void) { return 0; }*/ int initgroups (const char *user, gid_t group) { gid_t g[1]; g[0] = group; setgroups (1, g); return 0; } int getgroups (int size, gid_t list[]) { const gchar *group_list; gchar **groups; gint groups_length; /* Get groups we are a member of */ group_list = g_getenv ("LIGHTDM_TEST_GROUPS"); if (!group_list) group_list = ""; groups = g_strsplit (group_list, ",", -1); groups_length = g_strv_length (groups); if (size != 0) { int i; if (groups_length > size) { errno = EINVAL; return -1; } for (i = 0; groups[i]; i++) list[i] = atoi (groups[i]); } g_free (groups); return groups_length; } int setgroups (size_t size, const gid_t *list) { size_t i; GString *group_list; group_list = g_string_new (""); for (i = 0; i < size; i++) { if (i != 0) g_string_append (group_list, ","); g_string_append_printf (group_list, "%d", list[i]); } g_setenv ("LIGHTDM_TEST_GROUPS", group_list->str, TRUE); g_string_free (group_list, TRUE); return 0; } int setgid (gid_t gid) { return 0; } int setegid (gid_t gid) { return 0; } int setresgid (gid_t rgid, gid_t ugid, gid_t sgid) { return 0; } int setuid (uid_t uid) { return 0; } int seteuid (uid_t uid) { return 0; } int setresuid (uid_t ruid, uid_t uuid, uid_t suid) { return 0; } static gchar * redirect_path (const gchar *path) { /* Hide Xmir for legacy tests */ if (g_str_has_suffix (path, "/Xmir")) { connect_status (); if (g_key_file_get_boolean (config, "test-xmir", "hide", NULL)) return NULL; } // Don't redirect if inside the running directory if (g_str_has_prefix (path, g_getenv ("LIGHTDM_TEST_ROOT"))) return g_strdup (path); if (g_str_has_prefix (path, SYSCONFDIR)) return g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "etc", path + strlen (SYSCONFDIR), NULL); if (g_str_has_prefix (path, LOCALSTATEDIR)) return g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "var", path + strlen (LOCALSTATEDIR), NULL); if (g_str_has_prefix (path, DATADIR)) return g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "usr", "share", path + strlen (DATADIR), NULL); // Don't redirect if inside the build directory if (g_str_has_prefix (path, BUILDDIR)) return g_strdup (path); if (g_str_has_prefix (path, "/tmp")) return g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "tmp", path + strlen ("/tmp"), NULL); if (g_str_has_prefix (path, "/run")) return g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "run", path + strlen ("/run"), NULL); if (g_str_has_prefix (path, "/etc/xdg")) return g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "etc", "xdg", path + strlen ("/etc/xdg"), NULL); if (g_str_has_prefix (path, "/usr/share/lightdm")) return g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "usr", "share", "lightdm", path + strlen ("/usr/share/lightdm"), NULL); return g_strdup (path); } #ifdef __linux__ static int open_wrapper (const char *func, const char *pathname, int flags, mode_t mode) { int (*_open) (const char *pathname, int flags, mode_t mode); gchar *new_path = NULL; int fd; _open = (int (*)(const char *pathname, int flags, mode_t mode)) dlsym (RTLD_NEXT, func); if (strcmp (pathname, "/dev/tty0") == 0) { if (tty_fd < 0) { tty_fd = _open ("/dev/null", flags, mode); fcntl (tty_fd, F_SETFD, FD_CLOEXEC); } return tty_fd; } new_path = redirect_path (pathname); fd = _open (new_path, flags, mode); g_free (new_path); return fd; } int open (const char *pathname, int flags, ...) { int mode = 0; if (flags & O_CREAT) { va_list ap; va_start (ap, flags); mode = va_arg (ap, mode_t); va_end (ap); } return open_wrapper ("open", pathname, flags, mode); } int open64 (const char *pathname, int flags, ...) { int mode = 0; if (flags & O_CREAT) { va_list ap; va_start (ap, flags); mode = va_arg (ap, mode_t); va_end (ap); } return open_wrapper ("open64", pathname, flags, mode); } FILE * fopen (const char *path, const char *mode) { FILE *(*_fopen) (const char *pathname, const char *mode); gchar *new_path = NULL; FILE *result; _fopen = (FILE *(*)(const char *pathname, const char *mode)) dlsym (RTLD_NEXT, "fopen"); new_path = redirect_path (path); result = _fopen (new_path, mode); g_free (new_path); return result; } int unlinkat (int dirfd, const char *pathname, int flags) { int (*_unlinkat) (int dirfd, const char *pathname, int flags); gchar *new_path = NULL; int result; _unlinkat = (int (*)(int dirfd, const char *pathname, int flags)) dlsym (RTLD_NEXT, "unlinkat"); new_path = redirect_path (pathname); result = _unlinkat (dirfd, new_path, flags); g_free (new_path); return result; } int creat (const char *pathname, mode_t mode) { int (*_creat) (const char *pathname, mode_t mode); gchar *new_path = NULL; int result; _creat = (int (*)(const char *pathname, mode_t mode)) dlsym (RTLD_NEXT, "creat"); new_path = redirect_path (pathname); result = _creat (new_path, mode); g_free (new_path); return result; } int creat64 (const char *pathname, mode_t mode) { int (*_creat64) (const char *pathname, mode_t mode); gchar *new_path = NULL; int result; _creat64 = (int (*)(const char *pathname, mode_t mode)) dlsym (RTLD_NEXT, "creat64"); new_path = redirect_path (pathname); result = _creat64 (new_path, mode); g_free (new_path); return result; } int access (const char *pathname, int mode) { int (*_access) (const char *pathname, int mode); gchar *new_path = NULL; int ret; _access = (int (*)(const char *pathname, int mode)) dlsym (RTLD_NEXT, "access"); if (strcmp (pathname, "/dev/tty0") == 0) return F_OK; if (strcmp (pathname, "/sys/class/tty/tty0/active") == 0) return F_OK; new_path = redirect_path (pathname); ret = _access (new_path, mode); g_free (new_path); return ret; } int stat (const char *path, struct stat *buf) { int (*_stat) (const char *path, struct stat *buf); gchar *new_path = NULL; int ret; _stat = (int (*)(const char *path, struct stat *buf)) dlsym (RTLD_NEXT, "stat"); new_path = redirect_path (path); ret = _stat (new_path, buf); g_free (new_path); return ret; } int stat64 (const char *path, struct stat64 *buf) { int (*_stat64) (const char *path, struct stat64 *buf); gchar *new_path = NULL; int ret; _stat64 = (int (*)(const char *path, struct stat64 *buf)) dlsym (RTLD_NEXT, "stat64"); new_path = redirect_path (path); ret = _stat64 (new_path, buf); g_free (new_path); return ret; } int __xstat (int version, const char *path, struct stat *buf) { int (*___xstat) (int version, const char *path, struct stat *buf); gchar *new_path = NULL; int ret; ___xstat = (int (*)(int version, const char *path, struct stat *buf)) dlsym (RTLD_NEXT, "__xstat"); new_path = redirect_path (path); ret = ___xstat (version, new_path, buf); g_free (new_path); return ret; } int __xstat64 (int version, const char *path, struct stat64 *buf) { int (*___xstat64) (int version, const char *path, struct stat64 *buf); gchar *new_path = NULL; int ret; ___xstat64 = (int (*)(int version, const char *path, struct stat64 *buf)) dlsym (RTLD_NEXT, "__xstat64"); new_path = redirect_path (path); ret = ___xstat64 (version, new_path, buf); g_free (new_path); return ret; } int __fxstatat(int ver, int dirfd, const char *pathname, struct stat *buf, int flags) { int (*___fxstatat) (int ver, int dirfd, const char *pathname, struct stat *buf, int flags); gchar *new_path = NULL; int ret; ___fxstatat = (int (*)(int ver, int dirfd, const char *pathname, struct stat *buf, int flags)) dlsym (RTLD_NEXT, "__fxstatat"); new_path = redirect_path (pathname); ret = ___fxstatat (ver, dirfd, new_path, buf, flags); g_free (new_path); return ret; } int __fxstatat64(int ver, int dirfd, const char *pathname, struct stat64 *buf, int flags) { int (*___fxstatat64) (int ver, int dirfd, const char *pathname, struct stat64 *buf, int flags); gchar *new_path = NULL; int ret; ___fxstatat64 = (int (*)(int ver, int dirfd, const char *pathname, struct stat64 *buf, int flags)) dlsym (RTLD_NEXT, "__fxstatat64"); new_path = redirect_path (pathname); ret = ___fxstatat64 (ver, dirfd, new_path, buf, flags); g_free (new_path); return ret; } DIR * opendir (const char *name) { DIR *(*_opendir) (const char *name); gchar *new_path = NULL; DIR *result; _opendir = (DIR *(*)(const char *name)) dlsym (RTLD_NEXT, "opendir"); new_path = redirect_path (name); result = _opendir (new_path); g_free (new_path); return result; } int mkdir (const char *pathname, mode_t mode) { int (*_mkdir) (const char *pathname, mode_t mode); gchar *new_path = NULL; int result; _mkdir = (int (*)(const char *pathname, mode_t mode)) dlsym (RTLD_NEXT, "mkdir"); new_path = redirect_path (pathname); result = _mkdir (new_path, mode); g_free (new_path); return result; } int chown (const char *pathname, uid_t owner, gid_t group) { /* Just fake it - we're not root */ return 0; } int chmod (const char *path, mode_t mode) { int (*_chmod) (const char *path, mode_t mode); gchar *new_path = NULL; int result; _chmod = (int (*)(const char *path, mode_t mode)) dlsym (RTLD_NEXT, "chmod"); new_path = redirect_path (path); result = _chmod (new_path, mode); g_free (new_path); return result; } int ioctl (int d, unsigned long request, ...) { int (*_ioctl) (int d, int request, ...); _ioctl = (int (*)(int d, int request, ...)) dlsym (RTLD_NEXT, "ioctl"); if (d > 0 && d == tty_fd) { struct vt_stat *vt_state; int vt; va_list ap; switch (request) { case VT_GETSTATE: va_start (ap, request); vt_state = va_arg (ap, struct vt_stat *); va_end (ap); vt_state->v_active = active_vt; break; case VT_ACTIVATE: va_start (ap, request); vt = va_arg (ap, int); va_end (ap); if (vt != active_vt) { active_vt = vt; connect_status (); status_notify ("VT ACTIVATE VT=%d", active_vt); } break; case VT_WAITACTIVE: break; } return 0; } else { va_list ap; void *data; va_start (ap, request); data = va_arg (ap, void *); va_end (ap); return _ioctl (d, request, data); } } static void add_port_redirect (int requested_port, int redirected_port) { GKeyFile *file; gchar *path, *name, *data; file = g_key_file_new (); path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), ".port-redirects", NULL); g_key_file_load_from_file (file, path, G_KEY_FILE_NONE, NULL); name = g_strdup_printf ("%d", requested_port); g_key_file_set_integer (file, name, "redirected", redirected_port); g_free (name); data = g_key_file_to_data (file, NULL, NULL); g_file_set_contents (path, data, -1, NULL); g_free (data); g_free (path); g_key_file_free (file); } static int find_port_redirect (int port) { GKeyFile *file; gchar *path, *name; int redirected_port; file = g_key_file_new (); path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), ".port-redirects", NULL); g_key_file_load_from_file (file, path, G_KEY_FILE_NONE, NULL); g_free (path); name = g_strdup_printf ("%d", port); redirected_port = g_key_file_get_integer (file, name, "redirected", NULL); g_free (name); g_key_file_free (file); return redirected_port; } int bind (int sockfd, const struct sockaddr *addr, socklen_t addrlen) { int port = 0, redirected_port = 0; int (*_bind) (int sockfd, const struct sockaddr *addr, socklen_t addrlen); const struct sockaddr *modified_addr = addr; struct sockaddr_in temp_addr; struct sockaddr_in6 temp_addr6; int retval; _bind = (int (*)(int sockfd, const struct sockaddr *addr, socklen_t addrlen)) dlsym (RTLD_NEXT, "bind"); switch (addr->sa_family) { case AF_INET: port = ntohs (((const struct sockaddr_in *) addr)->sin_port); redirected_port = find_port_redirect (port); memcpy (&temp_addr, addr, sizeof (struct sockaddr_in)); modified_addr = (struct sockaddr *) &temp_addr; if (redirected_port != 0) temp_addr.sin_port = htons (redirected_port); else temp_addr.sin_port = 0; break; case AF_INET6: port = ntohs (((const struct sockaddr_in6 *) addr)->sin6_port); redirected_port = find_port_redirect (port); memcpy (&temp_addr6, addr, sizeof (struct sockaddr_in6)); modified_addr = (struct sockaddr *) &temp_addr6; if (redirected_port != 0) temp_addr6.sin6_port = htons (redirected_port); else temp_addr6.sin6_port = 0; break; } retval = _bind (sockfd, modified_addr, addrlen); socklen_t temp_addr_len; switch (addr->sa_family) { case AF_INET: temp_addr_len = sizeof (temp_addr); getsockname (sockfd, &temp_addr, &temp_addr_len); if (redirected_port == 0) { redirected_port = ntohs (temp_addr.sin_port); add_port_redirect (port, redirected_port); } break; case AF_INET6: temp_addr_len = sizeof (temp_addr6); getsockname (sockfd, &temp_addr6, &temp_addr_len); if (redirected_port == 0) { redirected_port = ntohs (temp_addr6.sin6_port); add_port_redirect (port, redirected_port); } break; } return retval; } int connect (int sockfd, const struct sockaddr *addr, socklen_t addrlen) { int port, redirected_port; const struct sockaddr *modified_addr = addr; struct sockaddr_in temp_addr; struct sockaddr_in6 temp_addr6; int (*_connect) (int sockfd, const struct sockaddr *addr, socklen_t addrlen); _connect = (int (*)(int sockfd, const struct sockaddr *addr, socklen_t addrlen)) dlsym (RTLD_NEXT, "connect"); switch (addr->sa_family) { case AF_INET: port = ntohs (((const struct sockaddr_in *) addr)->sin_port); redirected_port = find_port_redirect (port); if (redirected_port != 0) { memcpy (&temp_addr, addr, sizeof (struct sockaddr_in)); temp_addr.sin_port = htons (redirected_port); modified_addr = (struct sockaddr *) &temp_addr; } break; case AF_INET6: port = ntohs (((const struct sockaddr_in6 *) addr)->sin6_port); redirected_port = find_port_redirect (port); if (redirected_port != 0) { memcpy (&temp_addr6, addr, sizeof (struct sockaddr_in6)); temp_addr6.sin6_port = htons (redirected_port); modified_addr = (struct sockaddr *) &temp_addr6; } break; } return _connect (sockfd, modified_addr, addrlen); } ssize_t sendto (int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen) { int port, redirected_port; const struct sockaddr *modified_addr = dest_addr; struct sockaddr_in temp_addr; struct sockaddr_in6 temp_addr6; ssize_t (*_sendto) (int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen); _sendto = (ssize_t (*)(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen)) dlsym (RTLD_NEXT, "sendto"); switch (dest_addr->sa_family) { case AF_INET: port = ntohs (((const struct sockaddr_in *) dest_addr)->sin_port); redirected_port = find_port_redirect (port); if (redirected_port != 0) { memcpy (&temp_addr, dest_addr, sizeof (struct sockaddr_in)); temp_addr.sin_port = htons (redirected_port); modified_addr = (struct sockaddr *) &temp_addr; } break; case AF_INET6: port = ntohs (((const struct sockaddr_in6 *) dest_addr)->sin6_port); redirected_port = find_port_redirect (port); if (redirected_port != 0) { memcpy (&temp_addr6, dest_addr, sizeof (struct sockaddr_in6)); temp_addr6.sin6_port = htons (redirected_port); modified_addr = (struct sockaddr *) &temp_addr6; } break; } return _sendto (sockfd, buf, len, flags, modified_addr, addrlen); } int close (int fd) { int (*_close) (int fd); if (fd > 0 && fd == tty_fd) return 0; _close = (int (*)(int fd)) dlsym (RTLD_NEXT, "close"); return _close (fd); } #endif static void free_user (gpointer data) { struct passwd *entry = data; g_free (entry->pw_name); g_free (entry->pw_passwd); g_free (entry->pw_gecos); g_free (entry->pw_dir); g_free (entry->pw_shell); g_free (entry); } static void load_passwd_file (void) { gchar *path, *data = NULL, **lines; gint i; GError *error = NULL; g_list_free_full (user_entries, free_user); user_entries = NULL; getpwent_link = NULL; path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "etc", "passwd", NULL); g_file_get_contents (path, &data, NULL, &error); g_free (path); if (error) g_warning ("Error loading passwd file: %s", error->message); g_clear_error (&error); if (!data) return; lines = g_strsplit (data, "\n", -1); g_free (data); for (i = 0; lines[i]; i++) { gchar *line, **fields; line = g_strstrip (lines[i]); fields = g_strsplit (line, ":", -1); if (g_strv_length (fields) == 7) { struct passwd *entry = malloc (sizeof (struct passwd)); entry->pw_name = g_strdup (fields[0]); entry->pw_passwd = g_strdup (fields[1]); entry->pw_uid = atoi (fields[2]); entry->pw_gid = atoi (fields[3]); entry->pw_gecos = g_strdup (fields[4]); entry->pw_dir = g_strdup (fields[5]); entry->pw_shell = g_strdup (fields[6]); user_entries = g_list_append (user_entries, entry); } g_strfreev (fields); } g_strfreev (lines); } struct passwd * getpwent (void) { if (getpwent_link == NULL) { load_passwd_file (); if (user_entries == NULL) return NULL; getpwent_link = user_entries; } else { if (getpwent_link->next == NULL) return NULL; getpwent_link = getpwent_link->next; } return getpwent_link->data; } void setpwent (void) { getpwent_link = NULL; } void endpwent (void) { getpwent_link = NULL; } struct passwd * getpwnam (const char *name) { GList *link; if (name == NULL) return NULL; load_passwd_file (); for (link = user_entries; link; link = link->next) { struct passwd *entry = link->data; if (strcmp (entry->pw_name, name) == 0) break; } if (!link) return NULL; return link->data; } struct passwd * getpwuid (uid_t uid) { GList *link; load_passwd_file (); for (link = user_entries; link; link = link->next) { struct passwd *entry = link->data; if (entry->pw_uid == uid) break; } if (!link) return NULL; return link->data; } static void free_group (gpointer data) { struct group *entry = data; g_free (entry->gr_name); g_free (entry->gr_passwd); g_strfreev (entry->gr_mem); g_free (entry); } static void load_group_file (void) { gchar *path, *data = NULL, **lines; gint i; GError *error = NULL; g_list_free_full (group_entries, free_group); group_entries = NULL; path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "etc", "group", NULL); g_file_get_contents (path, &data, NULL, &error); g_free (path); if (error) g_warning ("Error loading group file: %s", error->message); g_clear_error (&error); if (!data) return; lines = g_strsplit (data, "\n", -1); g_free (data); for (i = 0; lines[i]; i++) { gchar *line, **fields; line = g_strstrip (lines[i]); fields = g_strsplit (line, ":", -1); if (g_strv_length (fields) == 4) { struct group *entry = malloc (sizeof (struct group)); entry->gr_name = g_strdup (fields[0]); entry->gr_passwd = g_strdup (fields[1]); entry->gr_gid = atoi (fields[2]); entry->gr_mem = g_strsplit (fields[3], ",", -1); group_entries = g_list_append (group_entries, entry); } g_strfreev (fields); } g_strfreev (lines); } struct group * getgrnam (const char *name) { GList *link; load_group_file (); for (link = group_entries; link; link = link->next) { struct group *entry = link->data; if (strcmp (entry->gr_name, name) == 0) break; } if (!link) return NULL; return link->data; } struct group * getgrgid (gid_t gid) { GList *link; load_group_file (); for (link = group_entries; link; link = link->next) { struct group *entry = link->data; if (entry->gr_gid == gid) break; } if (!link) return NULL; return link->data; } int pam_start (const char *service_name, const char *user, const struct pam_conv *conversation, pam_handle_t **pamh) { pam_handle_t *handle; if (service_name == NULL || conversation == NULL || pamh == NULL) return PAM_SYSTEM_ERR; handle = *pamh = malloc (sizeof (pam_handle_t)); if (handle == NULL) return PAM_BUF_ERR; if (user) handle->id = g_strdup_printf ("PAM-%s", user); else handle->id = g_strdup ("PAM"); connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { GString *status; status = g_string_new (""); g_string_append_printf (status, "%s START", handle->id); g_string_append_printf (status, " SERVICE=%s", service_name); if (user) g_string_append_printf (status, " USER=%s", user); status_notify ("%s", status->str); g_string_free (status, TRUE); } handle->service_name = strdup (service_name); handle->user = user ? strdup (user) : NULL; handle->authtok = NULL; handle->ruser = NULL; handle->tty = NULL; handle->conversation.conv = conversation->conv; handle->conversation.appdata_ptr = conversation->appdata_ptr; handle->envlist = malloc (sizeof (char *) * 1); handle->envlist[0] = NULL; return PAM_SUCCESS; } int pam_authenticate (pam_handle_t *pamh, int flags) { struct passwd *entry; gboolean password_matches = FALSE; if (pamh == NULL) return PAM_SYSTEM_ERR; connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { GString *status; status = g_string_new (""); g_string_append_printf (status, "%s AUTHENTICATE", pamh->id); if (flags & PAM_SILENT) g_string_append (status, " SILENT"); if (flags & PAM_DISALLOW_NULL_AUTHTOK) g_string_append (status, " DISALLOW_NULL_AUTHTOK"); status_notify ("%s", status->str); g_string_free (status, TRUE); } if (strcmp (pamh->service_name, "test-remote") == 0) { int result; struct pam_message **msg; struct pam_response *resp = NULL; msg = malloc (sizeof (struct pam_message *) * 1); msg[0] = malloc (sizeof (struct pam_message)); msg[0]->msg_style = PAM_PROMPT_ECHO_ON; msg[0]->msg = "remote-login:"; result = pamh->conversation.conv (1, (const struct pam_message **) msg, &resp, pamh->conversation.appdata_ptr); free (msg[0]); free (msg); if (result != PAM_SUCCESS) return result; if (resp == NULL) return PAM_CONV_ERR; if (resp[0].resp == NULL) { free (resp); return PAM_CONV_ERR; } if (pamh->ruser) free (pamh->ruser); pamh->ruser = strdup (resp[0].resp); free (resp[0].resp); free (resp); msg = malloc (sizeof (struct pam_message *) * 1); msg[0] = malloc (sizeof (struct pam_message)); msg[0]->msg_style = PAM_PROMPT_ECHO_OFF; msg[0]->msg = "remote-password:"; result = pamh->conversation.conv (1, (const struct pam_message **) msg, &resp, pamh->conversation.appdata_ptr); free (msg[0]); free (msg); if (result != PAM_SUCCESS) return result; if (resp == NULL) return PAM_CONV_ERR; if (resp[0].resp == NULL) { free (resp); return PAM_CONV_ERR; } if (pamh->authtok) free (pamh->authtok); pamh->authtok = strdup (resp[0].resp); free (resp[0].resp); free (resp); password_matches = strcmp (pamh->ruser, "remote-user") == 0 && strcmp (pamh->authtok, "password") == 0; if (password_matches) return PAM_SUCCESS; else return PAM_AUTH_ERR; } /* Prompt for username */ if (pamh->user == NULL) { int result; struct pam_message **msg; struct pam_response *resp = NULL; msg = malloc (sizeof (struct pam_message *) * 1); msg[0] = malloc (sizeof (struct pam_message)); msg[0]->msg_style = PAM_PROMPT_ECHO_ON; msg[0]->msg = LOGIN_PROMPT; result = pamh->conversation.conv (1, (const struct pam_message **) msg, &resp, pamh->conversation.appdata_ptr); free (msg[0]); free (msg); if (result != PAM_SUCCESS) return result; if (resp == NULL) return PAM_CONV_ERR; if (resp[0].resp == NULL) { free (resp); return PAM_CONV_ERR; } pamh->user = strdup (resp[0].resp); free (resp[0].resp); free (resp); } /* Crash on authenticate */ if (strcmp (pamh->user, "crash-authenticate") == 0) kill (getpid (), SIGSEGV); /* Look up password database */ entry = getpwnam (pamh->user); /* Prompt for password if required */ if (entry && strcmp (pamh->user, "always-password") != 0 && (strcmp (pamh->service_name, "lightdm-autologin") == 0 || strcmp (entry->pw_passwd, "") == 0)) password_matches = TRUE; else { int i, n_messages = 0, password_index, result; struct pam_message **msg; struct pam_response *resp = NULL; msg = malloc (sizeof (struct pam_message *) * 5); if (strcmp (pamh->user, "info-prompt") == 0) { msg[n_messages] = malloc (sizeof (struct pam_message)); msg[n_messages]->msg_style = PAM_TEXT_INFO; msg[n_messages]->msg = "Welcome to LightDM"; n_messages++; } if (strcmp (pamh->user, "multi-info-prompt") == 0) { msg[n_messages] = malloc (sizeof (struct pam_message)); msg[n_messages]->msg_style = PAM_TEXT_INFO; msg[n_messages]->msg = "Welcome to LightDM"; n_messages++; msg[n_messages] = malloc (sizeof (struct pam_message)); msg[n_messages]->msg_style = PAM_ERROR_MSG; msg[n_messages]->msg = "This is an error"; n_messages++; msg[n_messages] = malloc (sizeof (struct pam_message)); msg[n_messages]->msg_style = PAM_TEXT_INFO; msg[n_messages]->msg = "You should have seen three messages"; n_messages++; } if (strcmp (pamh->user, "multi-prompt") == 0) { msg[n_messages] = malloc (sizeof (struct pam_message)); msg[n_messages]->msg_style = PAM_PROMPT_ECHO_ON; msg[n_messages]->msg = "Favorite Color:"; n_messages++; } msg[n_messages] = malloc (sizeof (struct pam_message)); msg[n_messages]->msg_style = PAM_PROMPT_ECHO_OFF; msg[n_messages]->msg = "Password:"; password_index = n_messages; n_messages++; result = pamh->conversation.conv (n_messages, (const struct pam_message **) msg, &resp, pamh->conversation.appdata_ptr); for (i = 0; i < n_messages; i++) free (msg[i]); free (msg); if (result != PAM_SUCCESS) return result; if (resp == NULL) return PAM_CONV_ERR; if (resp[password_index].resp == NULL) { free (resp); return PAM_CONV_ERR; } if (entry) password_matches = strcmp (entry->pw_passwd, resp[password_index].resp) == 0; if (password_matches && strcmp (pamh->user, "multi-prompt") == 0) password_matches = strcmp ("blue", resp[0].resp) == 0; for (i = 0; i < n_messages; i++) { if (resp[i].resp) free (resp[i].resp); } free (resp); /* Do two factor authentication */ if (password_matches && strcmp (pamh->user, "two-factor") == 0) { msg = malloc (sizeof (struct pam_message *) * 1); msg[0] = malloc (sizeof (struct pam_message)); msg[0]->msg_style = PAM_PROMPT_ECHO_ON; msg[0]->msg = "OTP:"; resp = NULL; result = pamh->conversation.conv (1, (const struct pam_message **) msg, &resp, pamh->conversation.appdata_ptr); free (msg[0]); free (msg); if (result != PAM_SUCCESS) return result; if (resp == NULL) return PAM_CONV_ERR; if (resp[0].resp == NULL) { free (resp); return PAM_CONV_ERR; } password_matches = strcmp (resp[0].resp, "otp") == 0; free (resp[0].resp); free (resp); } } /* Special user has home directory created on login */ if (password_matches && strcmp (pamh->user, "mount-home-dir") == 0) g_mkdir_with_parents (entry->pw_dir, 0755); /* Special user 'change-user1' changes user on authentication */ if (password_matches && strcmp (pamh->user, "change-user1") == 0) { g_free (pamh->user); pamh->user = g_strdup ("change-user2"); } /* Special user 'change-user-invalid' changes to an invalid user on authentication */ if (password_matches && strcmp (pamh->user, "change-user-invalid") == 0) { g_free (pamh->user); pamh->user = g_strdup ("invalid-user"); } if (password_matches) return PAM_SUCCESS; else return PAM_AUTH_ERR; } static const char * get_env_value (const char *name_value, const char *name) { int j; for (j = 0; name[j] && name_value[j] && name[j] == name_value[j]; j++); if (name[j] == '\0' && name_value[j] == '=') return &name_value[j + 1]; return NULL; } int pam_putenv (pam_handle_t *pamh, const char *name_value) { int i; gchar *name; if (pamh == NULL || name_value == NULL) return PAM_SYSTEM_ERR; name = strdup (name_value); for (i = 0; name[i]; i++) if (name[i] == '=') name[i] = '\0'; for (i = 0; pamh->envlist[i]; i++) { if (get_env_value (pamh->envlist[i], name)) break; } free (name); if (pamh->envlist[i]) { free (pamh->envlist[i]); pamh->envlist[i] = strdup (name_value); } else { pamh->envlist = realloc (pamh->envlist, sizeof (char *) * (i + 2)); pamh->envlist[i] = strdup (name_value); pamh->envlist[i + 1] = NULL; } return PAM_SUCCESS; } const char * pam_getenv (pam_handle_t *pamh, const char *name) { int i; if (pamh == NULL || name == NULL) return NULL; for (i = 0; pamh->envlist[i]; i++) { const char *value; value = get_env_value (pamh->envlist[i], name); if (value) return value; } return NULL; } char ** pam_getenvlist (pam_handle_t *pamh) { if (pamh == NULL) return NULL; return pamh->envlist; } int pam_set_item (pam_handle_t *pamh, int item_type, const void *item) { if (pamh == NULL || item == NULL) return PAM_SYSTEM_ERR; switch (item_type) { case PAM_TTY: if (pamh->tty) free (pamh->tty); pamh->tty = strdup ((const char *) item); return PAM_SUCCESS; default: return PAM_BAD_ITEM; } } int pam_get_item (const pam_handle_t *pamh, int item_type, const void **item) { if (pamh == NULL || item == NULL) return PAM_SYSTEM_ERR; switch (item_type) { case PAM_SERVICE: *item = pamh->service_name; return PAM_SUCCESS; case PAM_USER: *item = pamh->user; return PAM_SUCCESS; case PAM_AUTHTOK: *item = pamh->authtok; return PAM_SUCCESS; case PAM_RUSER: *item = pamh->ruser; return PAM_SUCCESS; case PAM_USER_PROMPT: *item = LOGIN_PROMPT; return PAM_SUCCESS; case PAM_TTY: *item = pamh->tty; return PAM_SUCCESS; case PAM_CONV: *item = &pamh->conversation; return PAM_SUCCESS; default: return PAM_BAD_ITEM; } } int pam_open_session (pam_handle_t *pamh, int flags) { GVariant *result; GError *error = NULL; if (pamh == NULL) return PAM_SYSTEM_ERR; connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { GString *status; status = g_string_new (""); g_string_append_printf (status, "%s OPEN-SESSION", pamh->id); if (flags & PAM_SILENT) g_string_append (status, " SILENT"); status_notify ("%s", status->str); g_string_free (status, TRUE); } if (strcmp (pamh->user, "session-error") == 0) return PAM_SESSION_ERR; if (strcmp (pamh->user, "make-home-dir") == 0) { struct passwd *entry; entry = getpwnam (pamh->user); g_mkdir_with_parents (entry->pw_dir, 0755); } /* Open logind session */ result = g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), "org.freedesktop.login1", "/org/freedesktop/login1", "org.freedesktop.login1.Manager", "CreateSession", g_variant_new ("()", ""), G_VARIANT_TYPE ("(so)"), G_DBUS_CALL_FLAGS_NONE, G_MAXINT, NULL, &error); if (result) { gchar *e; const gchar *id; g_variant_get (result, "(&so)", &id, NULL); e = g_strdup_printf ("XDG_SESSION_ID=%s", id); pam_putenv (pamh, e); g_free (e); g_variant_unref (result); } else g_printerr ("Failed to create logind session: %s\n", error->message); g_clear_error (&error); return PAM_SUCCESS; } int pam_close_session (pam_handle_t *pamh, int flags) { if (pamh == NULL) return PAM_SYSTEM_ERR; connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { GString *status; status = g_string_new (""); g_string_append_printf (status, "%s CLOSE-SESSION", pamh->id); if (flags & PAM_SILENT) g_string_append (status, " SILENT"); status_notify ("%s", status->str); g_string_free (status, TRUE); } return PAM_SUCCESS; } int pam_acct_mgmt (pam_handle_t *pamh, int flags) { if (pamh == NULL) return PAM_SYSTEM_ERR; connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { GString *status; status = g_string_new (""); g_string_append_printf (status, "%s ACCT-MGMT", pamh->id); if (flags & PAM_SILENT) g_string_append (status, " SILENT"); if (flags & PAM_DISALLOW_NULL_AUTHTOK) g_string_append (status, " DISALLOW_NULL_AUTHTOK"); status_notify ("%s", status->str); g_string_free (status, TRUE); } if (!pamh->user) return PAM_USER_UNKNOWN; if (strcmp (pamh->user, "denied") == 0) return PAM_PERM_DENIED; if (strcmp (pamh->user, "expired") == 0) return PAM_ACCT_EXPIRED; if (strcmp (pamh->user, "new-authtok") == 0) return PAM_NEW_AUTHTOK_REQD; return PAM_SUCCESS; } int pam_chauthtok (pam_handle_t *pamh, int flags) { struct passwd *entry; int result; struct pam_message **msg; struct pam_response *resp = NULL; if (pamh == NULL) return PAM_SYSTEM_ERR; connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { GString *status; status = g_string_new (""); g_string_append_printf (status, "%s CHAUTHTOK", pamh->id); if (flags & PAM_SILENT) g_string_append (status, " SILENT"); if (flags & PAM_CHANGE_EXPIRED_AUTHTOK) g_string_append (status, " CHANGE_EXPIRED_AUTHTOK"); status_notify ("%s", status->str); g_string_free (status, TRUE); } msg = malloc (sizeof (struct pam_message *) * 1); msg[0] = malloc (sizeof (struct pam_message)); msg[0]->msg_style = PAM_PROMPT_ECHO_OFF; if ((flags & PAM_CHANGE_EXPIRED_AUTHTOK) != 0) msg[0]->msg = "Enter new password (expired):"; else msg[0]->msg = "Enter new password:"; result = pamh->conversation.conv (1, (const struct pam_message **) msg, &resp, pamh->conversation.appdata_ptr); free (msg[0]); free (msg); if (result != PAM_SUCCESS) return result; if (resp == NULL) return PAM_CONV_ERR; if (resp[0].resp == NULL) { free (resp); return PAM_CONV_ERR; } /* Update password database */ entry = getpwnam (pamh->user); free (entry->pw_passwd); entry->pw_passwd = resp[0].resp; free (resp); return PAM_SUCCESS; } int pam_setcred (pam_handle_t *pamh, int flags) { gchar *e; if (pamh == NULL) return PAM_SYSTEM_ERR; connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { GString *status; status = g_string_new (""); g_string_append_printf (status, "%s SETCRED", pamh->id); if (flags & PAM_SILENT) g_string_append (status, " SILENT"); if (flags & PAM_ESTABLISH_CRED) g_string_append (status, " ESTABLISH_CRED"); if (flags & PAM_DELETE_CRED) g_string_append (status, " DELETE_CRED"); if (flags & PAM_REINITIALIZE_CRED) g_string_append (status, " REINITIALIZE_CRED"); if (flags & PAM_REFRESH_CRED) g_string_append (status, " REFRESH_CRED"); status_notify ("%s", status->str); g_string_free (status, TRUE); } /* Put the test directories into the path */ e = g_strdup_printf ("PATH=%s/tests/src/.libs:%s/tests/src:%s/tests/src:%s/src:%s", BUILDDIR, BUILDDIR, SRCDIR, BUILDDIR, pam_getenv (pamh, "PATH")); pam_putenv (pamh, e); g_free (e); if (strcmp (pamh->user, "cred-error") == 0) return PAM_CRED_ERR; if (strcmp (pamh->user, "cred-expired") == 0) return PAM_CRED_EXPIRED; if (strcmp (pamh->user, "cred-unavail") == 0) return PAM_CRED_UNAVAIL; /* Join special groups if requested */ if (strcmp (pamh->user, "group-member") == 0 && flags & PAM_ESTABLISH_CRED) { struct group *group; gid_t *groups; int groups_length; group = getgrnam ("test-group"); if (group) { groups_length = getgroups (0, NULL); if (groups_length < 0) return PAM_SYSTEM_ERR; groups = malloc (sizeof (gid_t) * (groups_length + 1)); groups_length = getgroups (groups_length, groups); if (groups_length < 0) return PAM_SYSTEM_ERR; groups[groups_length] = group->gr_gid; groups_length++; setgroups (groups_length, groups); free (groups); } /* We need to pass our group overrides down the child process - the environment via PAM seems the only way to do it easily */ pam_putenv (pamh, g_strdup_printf ("LIGHTDM_TEST_GROUPS=%s", g_getenv ("LIGHTDM_TEST_GROUPS"))); } return PAM_SUCCESS; } int pam_end (pam_handle_t *pamh, int pam_status) { if (pamh == NULL) return PAM_SYSTEM_ERR; connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { GString *status; status = g_string_new (""); g_string_append_printf (status, "%s END", pamh->id); status_notify ("%s", status->str); g_string_free (status, TRUE); } free (pamh->id); free (pamh->service_name); if (pamh->user) free (pamh->user); if (pamh->authtok) free (pamh->authtok); if (pamh->ruser) free (pamh->ruser); if (pamh->tty) free (pamh->tty); free (pamh); return PAM_SUCCESS; } const char * pam_strerror (pam_handle_t *pamh, int errnum) { if (pamh == NULL) return NULL; switch (errnum) { case PAM_SUCCESS: return "Success"; case PAM_ABORT: return "Critical error - immediate abort"; case PAM_OPEN_ERR: return "Failed to load module"; case PAM_SYMBOL_ERR: return "Symbol not found"; case PAM_SERVICE_ERR: return "Error in service module"; case PAM_SYSTEM_ERR: return "System error"; case PAM_BUF_ERR: return "Memory buffer error"; case PAM_PERM_DENIED: return "Permission denied"; case PAM_AUTH_ERR: return "Authentication failure"; case PAM_CRED_INSUFFICIENT: return "Insufficient credentials to access authentication data"; case PAM_AUTHINFO_UNAVAIL: return "Authentication service cannot retrieve authentication info"; case PAM_USER_UNKNOWN: return "User not known to the underlying authentication module"; case PAM_MAXTRIES: return "Have exhausted maximum number of retries for service"; case PAM_NEW_AUTHTOK_REQD: return "Authentication token is no longer valid; new one required"; case PAM_ACCT_EXPIRED: return "User account has expired"; case PAM_SESSION_ERR: return "Cannot make/remove an entry for the specified session"; case PAM_CRED_UNAVAIL: return "Authentication service cannot retrieve user credentials"; case PAM_CRED_EXPIRED: return "User credentials expired"; case PAM_CRED_ERR: return "Failure setting user credentials"; case PAM_NO_MODULE_DATA: return "No module specific data is present"; case PAM_BAD_ITEM: return "Bad item passed to pam_*_item()"; case PAM_CONV_ERR: return "Conversation error"; case PAM_AUTHTOK_ERR: return "Authentication token manipulation error"; case PAM_AUTHTOK_RECOVERY_ERR: return "Authentication information cannot be recovered"; case PAM_AUTHTOK_LOCK_BUSY: return "Authentication token lock busy"; case PAM_AUTHTOK_DISABLE_AGING: return "Authentication token aging disabled"; case PAM_TRY_AGAIN: return "Failed preliminary check by password service"; case PAM_IGNORE: return "The return value should be ignored by PAM dispatch"; case PAM_MODULE_UNKNOWN: return "Module is unknown"; case PAM_AUTHTOK_EXPIRED: return "Authentication token expired"; case PAM_CONV_AGAIN: return "Conversation is waiting for event"; case PAM_INCOMPLETE: return "Application needs to call libpam again"; default: return "Unknown PAM error"; } } void setutxent (void) { } struct utmpx * pututxline (const struct utmpx *ut) { connect_status (); if (g_key_file_get_boolean (config, "test-utmp-config", "check-events", NULL)) { GString *status; status = g_string_new ("UTMP"); switch (ut->ut_type) { case INIT_PROCESS: g_string_append_printf (status, " TYPE=INIT_PROCESS"); break; case LOGIN_PROCESS: g_string_append_printf (status, " TYPE=LOGIN_PROCESS"); break; case USER_PROCESS: g_string_append_printf (status, " TYPE=USER_PROCESS"); break; case DEAD_PROCESS: g_string_append_printf (status, " TYPE=DEAD_PROCESS"); break; default: g_string_append_printf (status, " TYPE=%d", ut->ut_type); } if (ut->ut_line) g_string_append_printf (status, " LINE=%s", ut->ut_line); if (ut->ut_id) g_string_append_printf (status, " ID=%s", ut->ut_id); if (ut->ut_user) g_string_append_printf (status, " USER=%s", ut->ut_user); if (ut->ut_host) g_string_append_printf (status, " HOST=%s", ut->ut_host); status_notify ("%s", status->str); g_string_free (status, TRUE); } return (struct utmpx *)ut; } void endutxent (void) { } void updwtmp (const char *wtmp_file, const struct utmp *ut) { connect_status (); if (g_key_file_get_boolean (config, "test-utmp-config", "check-events", NULL)) { GString *status; status = g_string_new ("WTMP"); g_string_append_printf (status, " FILE=%s", wtmp_file); switch (ut->ut_type) { case INIT_PROCESS: g_string_append_printf (status, " TYPE=INIT_PROCESS"); break; case LOGIN_PROCESS: g_string_append_printf (status, " TYPE=LOGIN_PROCESS"); break; case USER_PROCESS: g_string_append_printf (status, " TYPE=USER_PROCESS"); break; case DEAD_PROCESS: g_string_append_printf (status, " TYPE=DEAD_PROCESS"); break; default: g_string_append_printf (status, " TYPE=%d", ut->ut_type); } if (ut->ut_line) g_string_append_printf (status, " LINE=%s", ut->ut_line); if (ut->ut_id) g_string_append_printf (status, " ID=%s", ut->ut_id); if (ut->ut_user) g_string_append_printf (status, " USER=%s", ut->ut_user); if (ut->ut_host) g_string_append_printf (status, " HOST=%s", ut->ut_host); status_notify ("%s", status->str); g_string_free (status, TRUE); } } struct xcb_connection_t { gchar *display; int error; GSocket *socket; }; xcb_connection_t * xcb_connect_to_display_with_auth_info (const char *display, xcb_auth_info_t *auth, int *screen) { xcb_connection_t *c; gchar *socket_path; GError *error = NULL; c = malloc (sizeof (xcb_connection_t)); c->display = g_strdup (display); c->error = 0; if (display == NULL) display = getenv ("DISPLAY"); if (display == NULL) c->error = XCB_CONN_CLOSED_PARSE_ERR; if (c->error == 0) { c->socket = g_socket_new (G_SOCKET_FAMILY_UNIX, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_DEFAULT, &error); if (error) g_printerr ("%s\n", error->message); g_clear_error (&error); if (c->socket == NULL) c->error = XCB_CONN_ERROR; } if (c->error == 0) { gchar *d; GSocketAddress *address; /* Skip the hostname, we'll assume it's localhost */ d = g_strdup_printf (".x%s", strchr (display, ':')); socket_path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), d, NULL); g_free (d); address = g_unix_socket_address_new (socket_path); if (!g_socket_connect (c->socket, address, NULL, &error)) c->error = XCB_CONN_ERROR; g_object_unref (address); if (error) g_printerr ("Failed to connect to X socket %s: %s\n", socket_path, error->message); g_free (socket_path); g_clear_error (&error); } // FIXME: Send auth info if (c->error == 0) { } return c; } xcb_connection_t * xcb_connect (const char *displayname, int *screenp) { return xcb_connect_to_display_with_auth_info(displayname, NULL, screenp); } int xcb_connection_has_error (xcb_connection_t *c) { return c->error; } void xcb_disconnect (xcb_connection_t *c) { free (c->display); if (c->socket) g_object_unref (c->socket); free (c); } #if HAVE_LIBAUDIT int audit_open (void) { connect_status (); if (g_key_file_get_boolean (config, "test-audit-config", "check-events", NULL)) status_notify ("AUDIT OPEN"); return dup (STDOUT_FILENO); } int audit_log_acct_message (int audit_fd, int type, const char *pgname, const char *op, const char *name, unsigned int id, const char *host, const char *addr, const char *tty, int result) { gchar *type_string; connect_status (); if (!g_key_file_get_boolean (config, "test-audit-config", "check-events", NULL)) return 1; switch (type) { case AUDIT_USER_LOGIN: type_string = g_strdup ("USER_LOGIN"); break; case AUDIT_USER_LOGOUT: type_string = g_strdup ("USER_LOGOUT"); break; default: type_string = g_strdup_printf ("%d", type); break; } status_notify ("AUDIT LOG-ACCT TYPE=%s PGNAME=%s OP=%s NAME=%s ID=%u HOST=%s ADDR=%s TTY=%s RESULT=%d", type_string, pgname ? pgname : "", op ? op : "", name ? name : "", id, host ? host : "", addr ? addr : "", tty ? tty : "", result); g_free (type_string); return 1; } #endif lightdm-1.18.1/tests/src/unity-system-compositor.c0000664000000000000000000001353712700600465017116 0ustar #include #include #include #include #include #include #include "status.h" static GMainLoop *loop; static int exit_status = EXIT_SUCCESS; static int from_dm_fd = -1, to_dm_fd = -1; static GKeyFile *config; static void quit (int status) { exit_status = status; g_main_loop_quit (loop); } static gboolean sigint_cb (gpointer user_data) { status_notify ("UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=%d", SIGINT); quit (EXIT_SUCCESS); return TRUE; } static gboolean sigterm_cb (gpointer user_data) { status_notify ("UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=%d", SIGTERM); quit (EXIT_SUCCESS); return TRUE; } typedef enum { USC_MESSAGE_PING = 0, USC_MESSAGE_PONG = 1, USC_MESSAGE_READY = 2, USC_MESSAGE_SESSION_CONNECTED = 3, USC_MESSAGE_SET_ACTIVE_SESSION = 4, USC_MESSAGE_SET_NEXT_SESSION = 5, } USCMessageID; static void write_message (guint16 id, const guint8 *payload, guint16 payload_length) { guint8 *data; gsize data_length = 4 + payload_length; data = g_malloc (data_length); data[0] = id >> 8; data[1] = id & 0xFF; data[2] = payload_length >> 8; data[3] = payload_length & 0xFF; if (payload) memcpy (data + 4, payload, payload_length); if (write (to_dm_fd, data, data_length) < 0) fprintf (stderr, "Failed to write to daemon: %s\n", strerror (errno)); } static gboolean read_message_cb (GIOChannel *channel, GIOCondition condition, gpointer data) { gchar header[4], *payload; gsize n_read; guint16 id; guint16 payload_length; GError *error = NULL; if (g_io_channel_read_chars (channel, header, 4, &n_read, &error) != G_IO_STATUS_NORMAL) { g_printerr ("Failed to read header: %s\n", error->message); return FALSE; } if (n_read != 4) { g_printerr ("Short read for header, %zi instead of expected 4\n", n_read); return FALSE; } id = header[0] << 8 | header[1]; payload_length = header[2] << 8 | header[3]; payload = g_malloc0 (payload_length + 1); if (g_io_channel_read_chars (channel, payload, payload_length, &n_read, &error) != G_IO_STATUS_NORMAL) { g_printerr ("Failed to read payload: %s\n", error->message); return FALSE; } if (n_read != payload_length) { g_printerr ("Short read for payload, %zi instead of expected %d\n", n_read, payload_length); return FALSE; } switch (id) { case USC_MESSAGE_PING: status_notify ("UNITY-SYSTEM-COMPOSITOR PING"); break; case USC_MESSAGE_SET_ACTIVE_SESSION: status_notify ("UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=%s", (gchar *)payload); break; case USC_MESSAGE_SET_NEXT_SESSION: status_notify ("UNITY-SYSTEM-COMPOSITOR SET-NEXT-SESSION ID=%s", (gchar *)payload); break; default: g_printerr ("Ignoring message %d with %d octets\n", id, payload_length); break; } free (payload); return TRUE; } static void request_cb (const gchar *name, GHashTable *params) { if (!name) { g_main_loop_quit (loop); return; } if (strcmp (name, "PING") == 0) write_message (USC_MESSAGE_PING, NULL, 0); else if (strcmp (name, "PONG") == 0) write_message (USC_MESSAGE_PONG, NULL, 0); else if (strcmp (name, "READY") == 0) write_message (USC_MESSAGE_READY, NULL, 0); else if (strcmp (name, "CRASH") == 0) kill (getpid (), SIGSEGV); } int main (int argc, char **argv) { int i; GString *status_text; gboolean test = FALSE, container = FALSE; int vt_number = -1; const gchar *file = NULL; #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif loop = g_main_loop_new (NULL, FALSE); g_unix_signal_add (SIGINT, sigint_cb, NULL); g_unix_signal_add (SIGTERM, sigterm_cb, NULL); status_connect (request_cb, "UNITY-SYSTEM-COMPOSITOR"); for (i = 1; i < argc; i++) { char *arg = argv[i]; if (strcmp (arg, "--from-dm-fd") == 0) { from_dm_fd = atoi (argv[i+1]); i++; } else if (strcmp (arg, "--to-dm-fd") == 0) { to_dm_fd = atoi (argv[i+1]); i++; } else if (strcmp (arg, "--vt") == 0) { vt_number = atoi (argv[i+1]); i++; } else if (strcmp (arg, "--file") == 0) { file = argv[i+1]; i++; } else if (strcmp (arg, "--test") == 0) test = TRUE; else if (strcmp (arg, "--container") == 0) container = TRUE; else return EXIT_FAILURE; } g_io_add_watch (g_io_channel_unix_new (from_dm_fd), G_IO_IN, read_message_cb, NULL); status_text = g_string_new ("UNITY-SYSTEM-COMPOSITOR START"); if (file) g_string_append_printf (status_text, " FILE=%s", file); if (vt_number >= 0) g_string_append_printf (status_text, " VT=%d", vt_number); if (g_getenv ("XDG_VTNR")) g_string_append_printf (status_text, " XDG_VTNR=%s", g_getenv ("XDG_VTNR")); if (test) g_string_append (status_text, " TEST=TRUE"); if (container) g_string_append (status_text, " CONTAINER=TRUE"); status_notify ("%s", status_text->str); g_string_free (status_text, TRUE); config = g_key_file_new (); g_key_file_load_from_file (config, g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL), G_KEY_FILE_NONE, NULL); if (g_key_file_has_key (config, "unity-system-compositor-config", "return-value", NULL)) { int return_value = g_key_file_get_integer (config, "unity-system-compositor-config", "return-value", NULL); status_notify ("UNITY-SYSTEM-COMPOSITOR EXIT CODE=%d", return_value); return return_value; } g_main_loop_run (loop); return exit_status; } lightdm-1.18.1/tests/src/lightdm-session0000775000000000000000000000027112700600465015112 0ustar #!/bin/sh # Run the session expecting the full command to be the first argument. It has # to be like this for backwards compatibility instead of having a normal argument list exec $1 lightdm-1.18.1/tests/src/test-runner.c0000664000000000000000000031774012700600465014521 0ustar #include #include #include #include #include #include #include #include #include #include #include #include /* Timeout in ms waiting for the status we expect */ static int status_timeout_ms = 4000; /* Timeout in ms to wait for SIGTERM to be handled by a child process */ #define KILL_TIMEOUT 2000 static gchar *test_runner_command; static gchar *config_path; static GKeyFile *config; static GSocket *status_socket = NULL; static gchar *status_socket_name = NULL; static GList *statuses = NULL; typedef struct { gchar *text; gboolean done; } ScriptLine; static GList *script = NULL; static guint status_timeout = 0; static gchar *temp_dir = NULL; static int service_count; typedef struct { pid_t pid; guint kill_timeout; } Process; static Process *lightdm_process = NULL; static GHashTable *children = NULL; static gboolean stop = FALSE; static gint exit_status = 0; static GDBusConnection *accounts_connection = NULL; static GDBusNodeInfo *accounts_info; static GDBusNodeInfo *user_info; typedef struct { guint uid; gchar *user_name; gchar *real_name; gchar *home_directory; gchar *image; gchar *background; gchar *path; guint id; gchar *language; gchar *xsession; gchar **layouts; gboolean has_messages; gboolean hidden; } AccountsUser; static GList *accounts_users = NULL; static void handle_user_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data); static GVariant *handle_user_get_property (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *property_name, GError **error, gpointer user_data); static const GDBusInterfaceVTable user_vtable = { handle_user_call, handle_user_get_property, }; static GDBusNodeInfo *ck_session_info; typedef struct { gchar *cookie; gchar *path; guint id; gboolean locked; } CKSession; static GList *ck_sessions = NULL; static gint ck_session_index = 0; static void handle_ck_session_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data); static const GDBusInterfaceVTable ck_session_vtable = { handle_ck_session_call, }; typedef struct { gchar *id; gchar *path; gboolean can_graphical; gboolean can_multi_session; gchar *active_session; } Login1Seat; static GList *login1_seats = NULL; static Login1Seat *add_login1_seat (GDBusConnection *connection, const gchar *id, gboolean emit_signal); static Login1Seat *find_login1_seat (const gchar *id); static void remove_login1_seat (GDBusConnection *connection, const gchar *id); typedef struct { gchar *id; gchar *path; guint pid; gboolean locked; } Login1Session; static GList *login1_sessions = NULL; static gint login1_session_index = 0; typedef struct { GSocket *socket; GSource *source; } StatusClient; static GList *status_clients = NULL; static void ready (void); static void quit (int status); static gboolean status_timeout_cb (gpointer data); static void check_status (const gchar *status); static AccountsUser *get_accounts_user_by_uid (guint uid); static AccountsUser *get_accounts_user_by_name (const gchar *username); static void accounts_user_set_hidden (AccountsUser *user, gboolean hidden, gboolean emit_signal); static Login1Session *find_login1_session (const gchar *id); static gboolean kill_timeout_cb (gpointer data) { Process *process = data; process->kill_timeout = 0; if (getenv ("DEBUG")) g_print ("Sending SIGKILL to process %d\n", process->pid); kill (process->pid, SIGKILL); return FALSE; } static void stop_process (Process *process) { if (process->kill_timeout != 0) return; if (getenv ("DEBUG")) g_print ("Sending SIGTERM to process %d\n", process->pid); kill (process->pid, SIGTERM); process->kill_timeout = g_timeout_add (KILL_TIMEOUT, kill_timeout_cb, process); } static void process_exit_cb (GPid pid, gint status, gpointer data) { Process *process; gchar *status_text; if (getenv ("DEBUG")) { if (WIFEXITED (status)) g_print ("Process %d exited with status %d\n", pid, WEXITSTATUS (status)); else g_print ("Process %d terminated with signal %d\n", pid, WTERMSIG (status)); } if (lightdm_process && pid == lightdm_process->pid) { process = lightdm_process; lightdm_process = NULL; if (WIFEXITED (status)) status_text = g_strdup_printf ("RUNNER DAEMON-EXIT STATUS=%d", WEXITSTATUS (status)); else status_text = g_strdup_printf ("RUNNER DAEMON-TERMINATE SIGNAL=%d", WTERMSIG (status)); check_status (status_text); } else { process = g_hash_table_lookup (children, GINT_TO_POINTER (pid)); if (!process) return; g_hash_table_remove (children, GINT_TO_POINTER (pid)); } if (process->kill_timeout) g_source_remove (process->kill_timeout); process->kill_timeout = 0; /* Quit once all children have stopped */ if (stop) quit (exit_status); } static Process * watch_process (pid_t pid) { Process *process; process = g_malloc0 (sizeof (Process)); process->pid = pid; process->kill_timeout = 0; if (getenv ("DEBUG")) g_print ("Watching process %d\n", process->pid); g_child_watch_add (process->pid, process_exit_cb, NULL); return process; } static void quit (int status) { GHashTableIter iter; if (!stop) exit_status = status; stop = TRUE; /* Stop all the children */ g_hash_table_iter_init (&iter, children); while (TRUE) { gpointer key, value; if (!g_hash_table_iter_next (&iter, &key, &value)) break; stop_process ((Process *)value); } /* Don't quit until all children are stopped */ if (g_hash_table_size (children) > 0) return; /* Stop the daemon */ if (lightdm_process) { stop_process (lightdm_process); return; } if (status_socket_name) unlink (status_socket_name); if (temp_dir && getenv ("DEBUG") == NULL) { gchar *command = g_strdup_printf ("rm -rf %s", temp_dir); if (system (command)) perror ("Failed to delete temp directory"); } exit (status); } static void fail (const gchar *event, const gchar *expected) { GList *link; if (stop) return; g_printerr ("Command line: %s", test_runner_command); g_printerr ("Events:\n"); for (link = statuses; link; link = link->next) g_printerr (" %s\n", (gchar *)link->data); if (event) g_printerr (" %s\n", event); if (expected) g_printerr (" ^^^ expected \"%s\"\n", expected); else g_printerr ("^^^ expected nothing\n"); quit (EXIT_FAILURE); } static gchar * get_prefix (const gchar *text) { gchar *prefix; gint i; prefix = g_strdup (text); for (i = 0; prefix[i] != '\0' && prefix[i] != ' '; i++); prefix[i] = '\0'; return prefix; } static ScriptLine * get_script_line (const gchar *prefix) { GList *link; for (link = script; link; link = link->next) { ScriptLine *line = link->data; /* Ignore lines with other prefixes */ if (prefix) { gchar *p; gboolean matches; p = get_prefix (line->text); matches = strcmp (prefix, p) == 0; g_free (p); if (!matches) continue; } if (!line->done) return line; } return NULL; } static gboolean stop_loop (gpointer user_data) { g_main_loop_quit ((GMainLoop *)user_data); return G_SOURCE_REMOVE; } static void switch_to_greeter_done_cb (GObject *bus, GAsyncResult *result, gpointer data) { GVariant *r; GError *error = NULL; r = g_dbus_connection_call_finish (G_DBUS_CONNECTION (bus), result, &error); if (error) g_warning ("Failed to switch to greeter: %s\n", error->message); g_clear_error (&error); if (r) { check_status ("RUNNER SWITCH-TO-GREETER"); g_variant_unref (r); } else check_status ("RUNNER SWITCH-TO-GREETER FAILED"); } static void switch_to_user_done_cb (GObject *bus, GAsyncResult *result, gpointer data) { GVariant *r; GError *error = NULL; gchar *username = data, *status_text; r = g_dbus_connection_call_finish (G_DBUS_CONNECTION (bus), result, &error); if (error) g_warning ("Failed to switch to user: %s\n", error->message); g_clear_error (&error); if (r) { status_text = g_strdup_printf ("RUNNER SWITCH-TO-USER USERNAME=%s", username); g_variant_unref (r); } else status_text = g_strdup_printf ("RUNNER SWITCH-TO-USER USERNAME=%s FAILED", username); check_status (status_text); g_free (status_text); g_free (username); } static void switch_to_guest_done_cb (GObject *bus, GAsyncResult *result, gpointer data) { GVariant *r; GError *error = NULL; r = g_dbus_connection_call_finish (G_DBUS_CONNECTION (bus), result, &error); if (error) g_warning ("Failed to switch to guest: %s\n", error->message); g_clear_error (&error); if (r) { check_status ("RUNNER SWITCH-TO-GUEST"); g_variant_unref (r); } else check_status ("RUNNER SWITCH-TO-GUEST FAILED"); } static void handle_command (const gchar *command) { const gchar *c; gchar *name = NULL; GHashTable *params; c = command; while (*c && !isspace (*c)) c++; name = g_strdup_printf ("%.*s", (int) (c - command), command); params = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); while (TRUE) { const gchar *start; gchar *param_name, *param_value; while (isspace (*c)) c++; start = c; while (*c && !isspace (*c) && *c != '=') c++; if (*c == '\0') break; param_name = g_strdup_printf ("%.*s", (int) (c - start), start); if (*c == '=') { c++; while (isspace (*c)) c++; if (*c == '\"') { gboolean escaped = FALSE; GString *value; c++; value = g_string_new (""); while (*c) { if (*c == '\\') { if (escaped) { g_string_append_c (value, '\\'); escaped = FALSE; } else escaped = TRUE; } else if (!escaped && *c == '\"') break; if (!escaped) g_string_append_c (value, *c); c++; } param_value = value->str; g_string_free (value, FALSE); if (*c == '\"') c++; } else { start = c; while (*c && !isspace (*c)) c++; param_value = g_strdup_printf ("%.*s", (int) (c - start), start); } } else param_value = g_strdup (""); g_hash_table_insert (params, param_name, param_value); } if (strcmp (name, "START-DAEMON") == 0) { GString *command_line; gchar **lightdm_argv; pid_t lightdm_pid; GError *error = NULL; command_line = g_string_new ("lightdm"); if (getenv ("DEBUG")) g_string_append (command_line, " --debug"); g_string_append_printf (command_line, " --cache-dir %s/cache", temp_dir); test_runner_command = g_strdup_printf ("PATH=%s LD_PRELOAD=%s LD_LIBRARY_PATH=%s LIGHTDM_TEST_ROOT=%s DBUS_SESSION_BUS_ADDRESS=%s %s\n", g_getenv ("PATH"), g_getenv ("LD_PRELOAD"), g_getenv ("LD_LIBRARY_PATH"), g_getenv ("LIGHTDM_TEST_ROOT"), g_getenv ("DBUS_SESSION_BUS_ADDRESS"), command_line->str); if (!g_shell_parse_argv (command_line->str, NULL, &lightdm_argv, &error)) { g_warning ("Error parsing command line: %s", error->message); quit (EXIT_FAILURE); } g_clear_error (&error); if (!g_spawn_async (NULL, lightdm_argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_SEARCH_PATH, NULL, NULL, &lightdm_pid, &error)) { g_warning ("Error launching LightDM: %s", error->message); quit (EXIT_FAILURE); } g_clear_error (&error); lightdm_process = watch_process (lightdm_pid); check_status ("RUNNER DAEMON-START"); } else if (strcmp (name, "WAIT") == 0) { const gchar *v; int duration; /* Stop status timeout */ if (status_timeout) g_source_remove (status_timeout); /* Use a main loop so that our DBus functions are still responsive */ GMainLoop *loop = g_main_loop_new (NULL, FALSE); v = g_hash_table_lookup (params, "DURATION"); duration = v ? atoi (v) : 1; if (duration < 1) duration = 1; g_timeout_add_seconds (duration, stop_loop, loop); g_main_loop_run (loop); g_main_loop_unref (loop); /* Restart status timeout */ status_timeout = g_timeout_add (status_timeout_ms, status_timeout_cb, NULL); } else if (strcmp (name, "ADD-SEAT") == 0) { const gchar *id, *v; Login1Seat *seat; id = g_hash_table_lookup (params, "ID"); seat = add_login1_seat (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), id, TRUE); v = g_hash_table_lookup (params, "CAN-GRAPHICAL"); if (v) seat->can_graphical = strcmp (v, "TRUE") == 0; v = g_hash_table_lookup (params, "CAN-MULTI-SESSION"); if (v) seat->can_multi_session = strcmp (v, "TRUE") == 0; } else if (strcmp (name, "ADD-LOCAL-X-SEAT") == 0) { GVariant *result; const gchar *v; v = g_hash_table_lookup (params, "DISPLAY"); result = g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), "org.freedesktop.DisplayManager", "/org/freedesktop/DisplayManager", "org.freedesktop.DisplayManager", "AddLocalXSeat", g_variant_new ("(i)", v ? atoi (v) : -1), G_VARIANT_TYPE ("(o)"), G_DBUS_CALL_FLAGS_NONE, G_MAXINT, NULL, NULL); g_variant_unref (result); } else if (strcmp (name, "UPDATE-SEAT") == 0) { Login1Seat *seat; const gchar *id; id = g_hash_table_lookup (params, "ID"); seat = find_login1_seat (id); if (seat) { const gchar *v; GVariantBuilder invalidated_properties; GError *error = NULL; g_variant_builder_init (&invalidated_properties, G_VARIANT_TYPE_ARRAY); v = g_hash_table_lookup (params, "CAN-GRAPHICAL"); if (v) { seat->can_graphical = strcmp (v, "TRUE") == 0; g_variant_builder_add (&invalidated_properties, "s", "CanGraphical"); } v = g_hash_table_lookup (params, "CAN-MULTI-SESSION"); if (v) { seat->can_multi_session = strcmp (v, "TRUE") == 0; g_variant_builder_add (&invalidated_properties, "s", "CanMultiSession"); } v = g_hash_table_lookup (params, "ACTIVE-SESSION"); if (v) { g_free (seat->active_session); seat->active_session = g_strdup (v); g_variant_builder_add (&invalidated_properties, "s", "ActiveSession"); } g_dbus_connection_emit_signal (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), NULL, seat->path, "org.freedesktop.DBus.Properties", "PropertiesChanged", g_variant_new ("(sa{sv}as)", "org.freedesktop.login1.Seat", NULL, &invalidated_properties), &error); if (error) g_warning ("Failed to emit PropertiesChanged: %s", error->message); g_clear_error (&error); } } else if (strcmp (name, "REMOVE-SEAT") == 0) { const gchar *id; id = g_hash_table_lookup (params, "ID"); remove_login1_seat (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), id); } else if (strcmp (name, "LIST-SEATS") == 0) { GVariant *result, *value; GString *status; GVariantIter *iter; const gchar *path; int i = 0; result = g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), "org.freedesktop.DisplayManager", "/org/freedesktop/DisplayManager", "org.freedesktop.DBus.Properties", "Get", g_variant_new ("(ss)", "org.freedesktop.DisplayManager", "Seats"), G_VARIANT_TYPE ("(v)"), G_DBUS_CALL_FLAGS_NONE, G_MAXINT, NULL, NULL); status = g_string_new ("RUNNER LIST-SEATS SEATS="); g_variant_get (result, "(v)", &value); g_variant_get (value, "ao", &iter); while (g_variant_iter_loop (iter, "&o", &path)) { if (i != 0) g_string_append (status, ","); g_string_append (status, path); i++; } g_variant_unref (value); g_variant_unref (result); check_status (status->str); g_string_free (status, TRUE); } else if (strcmp (name, "LIST-SESSIONS") == 0) { GVariant *result, *value; GString *status; GVariantIter *iter; const gchar *path; int i = 0; result = g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), "org.freedesktop.DisplayManager", "/org/freedesktop/DisplayManager", "org.freedesktop.DBus.Properties", "Get", g_variant_new ("(ss)", "org.freedesktop.DisplayManager", "Sessions"), G_VARIANT_TYPE ("(v)"), G_DBUS_CALL_FLAGS_NONE, G_MAXINT, NULL, NULL); status = g_string_new ("RUNNER LIST-SESSIONS SESSIONS="); g_variant_get (result, "(v)", &value); g_variant_get (value, "ao", &iter); while (g_variant_iter_loop (iter, "&o", &path)) { if (i != 0) g_string_append (status, ","); g_string_append (status, path); i++; } g_variant_unref (value); g_variant_unref (result); check_status (status->str); g_string_free (status, TRUE); } else if (strcmp (name, "SEAT-CAN-SWITCH") == 0) { GVariant *result, *value; gchar *status; result = g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), "org.freedesktop.DisplayManager", "/org/freedesktop/DisplayManager/Seat0", "org.freedesktop.DBus.Properties", "Get", g_variant_new ("(ss)", "org.freedesktop.DisplayManager.Seat", "CanSwitch"), G_VARIANT_TYPE ("(v)"), G_DBUS_CALL_FLAGS_NONE, G_MAXINT, NULL, NULL); g_variant_get (result, "(v)", &value); status = g_strdup_printf ("RUNNER SEAT-CAN-SWITCH CAN-SWITCH=%s", g_variant_get_boolean (value) ? "TRUE" : "FALSE"); g_variant_unref (value); g_variant_unref (result); check_status (status); g_free (status); } else if (strcmp (name, "SEAT-HAS-GUEST-ACCOUNT") == 0) { GVariant *result, *value; gchar *status; result = g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), "org.freedesktop.DisplayManager", "/org/freedesktop/DisplayManager/Seat0", "org.freedesktop.DBus.Properties", "Get", g_variant_new ("(ss)", "org.freedesktop.DisplayManager.Seat", "HasGuestAccount"), G_VARIANT_TYPE ("(v)"), G_DBUS_CALL_FLAGS_NONE, G_MAXINT, NULL, NULL); g_variant_get (result, "(v)", &value); status = g_strdup_printf ("RUNNER SEAT-HAS-GUEST-ACCOUNT HAS-GUEST-ACCOUNT=%s", g_variant_get_boolean (value) ? "TRUE" : "FALSE"); g_variant_unref (value); g_variant_unref (result); check_status (status); g_free (status); } else if (strcmp (name, "SWITCH-TO-GREETER") == 0) { g_dbus_connection_call (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), "org.freedesktop.DisplayManager", "/org/freedesktop/DisplayManager/Seat0", "org.freedesktop.DisplayManager.Seat", "SwitchToGreeter", g_variant_new ("()"), G_VARIANT_TYPE ("()"), G_DBUS_CALL_FLAGS_NONE, G_MAXINT, NULL, switch_to_greeter_done_cb, NULL); } else if (strcmp (name, "SWITCH-TO-USER") == 0) { const gchar *username; username = g_hash_table_lookup (params, "USERNAME"); g_dbus_connection_call (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), "org.freedesktop.DisplayManager", "/org/freedesktop/DisplayManager/Seat0", "org.freedesktop.DisplayManager.Seat", "SwitchToUser", g_variant_new ("(ss)", username, ""), G_VARIANT_TYPE ("()"), G_DBUS_CALL_FLAGS_NONE, G_MAXINT, NULL, switch_to_user_done_cb, g_strdup (username)); } else if (strcmp (name, "SWITCH-TO-GUEST") == 0) { g_dbus_connection_call (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), "org.freedesktop.DisplayManager", "/org/freedesktop/DisplayManager/Seat0", "org.freedesktop.DisplayManager.Seat", "SwitchToGuest", g_variant_new ("(s)", ""), G_VARIANT_TYPE ("()"), G_DBUS_CALL_FLAGS_NONE, G_MAXINT, NULL, switch_to_guest_done_cb, NULL); } else if (strcmp (name, "STOP-DAEMON") == 0) stop_process (lightdm_process); // FIXME: Make generic RUN-COMMAND else if (strcmp (name, "START-XSERVER") == 0) { gchar *xserver_args, *command_line; gchar **argv; GPid pid; Process *process; GError *error = NULL; xserver_args = g_hash_table_lookup (params, "ARGS"); if (!xserver_args) xserver_args = ""; command_line = g_strdup_printf ("%s/tests/src/X %s", BUILDDIR, xserver_args); if (!g_shell_parse_argv (command_line, NULL, &argv, &error) || !g_spawn_async (NULL, argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, &pid, &error)) { g_printerr ("Error starting X server: %s", error->message); quit (EXIT_FAILURE); } else { process = watch_process (pid); g_hash_table_insert (children, GINT_TO_POINTER (process->pid), process); } } else if (strcmp (name, "START-VNC-CLIENT") == 0) { gchar *vnc_client_args, *command_line; gchar **argv; GPid pid; Process *process; GError *error = NULL; vnc_client_args = g_hash_table_lookup (params, "ARGS"); if (!vnc_client_args) vnc_client_args = ""; command_line = g_strdup_printf ("%s/tests/src/vnc-client %s", BUILDDIR, vnc_client_args); if (!g_shell_parse_argv (command_line, NULL, &argv, &error) || !g_spawn_async (NULL, argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, &pid, &error)) { g_printerr ("Error starting VNC client: %s", error->message); quit (EXIT_FAILURE); } else { process = watch_process (pid); g_hash_table_insert (children, GINT_TO_POINTER (process->pid), process); } } else if (strcmp (name, "ADD-USER") == 0) { gchar *status_text, *username; AccountsUser *user; username = g_hash_table_lookup (params, "USERNAME"); user = get_accounts_user_by_name (username); if (user) accounts_user_set_hidden (user, FALSE, TRUE); else g_warning ("Unknown user %s", username); status_text = g_strdup_printf ("RUNNER ADD-USER USERNAME=%s", username); check_status (status_text); g_free (status_text); } else if (strcmp (name, "UPDATE-USER") == 0) { GString *status_text; gchar *username; AccountsUser *user; GError *error = NULL; status_text = g_string_new ("RUNNER UPDATE-USER USERNAME="); username = g_hash_table_lookup (params, "USERNAME"); g_string_append (status_text, username); user = get_accounts_user_by_name (username); if (user) { if (g_hash_table_lookup (params, "NAME")) { user->user_name = g_strdup (g_hash_table_lookup (params, "NAME")); g_string_append_printf (status_text, " NAME=%s", user->user_name); } if (g_hash_table_lookup (params, "REAL-NAME")) { user->real_name = g_strdup (g_hash_table_lookup (params, "REAL-NAME")); g_string_append_printf (status_text, " REAL-NAME=%s", user->real_name); } if (g_hash_table_lookup (params, "HOME-DIRECTORY")) { user->home_directory = g_strdup (g_hash_table_lookup (params, "HOME-DIRECTORY")); g_string_append_printf (status_text, " HOME-DIRECTORY=%s", user->home_directory); } if (g_hash_table_lookup (params, "IMAGE")) { user->image = g_strdup (g_hash_table_lookup (params, "IMAGE")); g_string_append_printf (status_text, " IMAGE=%s", user->image); } if (g_hash_table_lookup (params, "BACKGROUND")) { user->background = g_strdup (g_hash_table_lookup (params, "BACKGROUND")); g_string_append_printf (status_text, " BACKGROUND=%s", user->background); } if (g_hash_table_lookup (params, "LANGUAGE")) { user->language = g_strdup (g_hash_table_lookup (params, "LANGUAGE")); g_string_append_printf (status_text, " LANGUAGE=%s", user->language); } if (g_hash_table_lookup (params, "LAYOUTS")) { const gchar *value = g_hash_table_lookup (params, "LAYOUTS"); user->layouts = g_strsplit (value, ";", -1); g_string_append_printf (status_text, " LAYOUTS=%s", value); } if (g_hash_table_lookup (params, "HAS-MESSAGES")) { user->has_messages = g_strcmp0 (g_hash_table_lookup (params, "HAS-MESSAGES"), "TRUE") == 0; g_string_append_printf (status_text, " HAS-MESSAGES=%s", user->has_messages ? "TRUE" : "FALSE"); } if (g_hash_table_lookup (params, "SESSION")) { user->xsession = g_strdup (g_hash_table_lookup (params, "SESSION")); g_string_append_printf (status_text, " SESSION=%s", user->xsession); } g_dbus_connection_emit_signal (accounts_connection, NULL, user->path, "org.freedesktop.Accounts.User", "Changed", g_variant_new ("()"), &error); } else g_warning ("Unknown user %s", username); if (error) g_warning ("Failed to emit Changed: %s", error->message); g_clear_error (&error); check_status (status_text->str); g_string_free (status_text, TRUE); } else if (strcmp (name, "DELETE-USER") == 0) { gchar *status_text, *username; AccountsUser *user; username = g_hash_table_lookup (params, "USERNAME"); user = get_accounts_user_by_name (username); if (user) accounts_user_set_hidden (user, TRUE, TRUE); else g_warning ("Unknown user %s", username); status_text = g_strdup_printf ("RUNNER DELETE-USER USERNAME=%s", username); check_status (status_text); g_free (status_text); } else if (strcmp (name, "UNLOCK-SESSION") == 0) { gchar *status_text, *id; Login1Session *session; id = g_hash_table_lookup (params, "SESSION"); session = find_login1_session (id); if (session) { if (!session->locked) g_warning ("Session %s is not locked", id); session->locked = FALSE; } else g_warning ("Unknown session %s", id); status_text = g_strdup_printf ("RUNNER UNLOCK-SESSION SESSION=%s", id); check_status (status_text); g_free (status_text); } /* Forward to external processes */ else if (g_str_has_prefix (name, "SESSION-") || g_str_has_prefix (name, "GREETER-") || g_str_has_prefix (name, "XSERVER-") || g_str_has_prefix (name, "XMIR-") || g_str_has_prefix (name, "XVNC-") || strcmp (name, "UNITY-SYSTEM-COMPOSITOR") == 0) { GList *link; for (link = status_clients; link; link = link->next) { StatusClient *client = link->data; int length; GError *error = NULL; length = strlen (command); if (g_socket_send (client->socket, (gchar *) &length, sizeof (length), NULL, &error) < 0 || g_socket_send (client->socket, command, strlen (command), NULL, &error) < 0) g_printerr ("Failed to write to client socket: %s\n", error->message); g_clear_error (&error); } } else { g_printerr ("Unknown command '%s'\n", name); quit (EXIT_FAILURE); } g_free (name); g_hash_table_unref (params); } static void run_commands (void) { /* Stop daemon if requested */ while (TRUE) { ScriptLine *line; /* Commands start with an asterisk */ line = get_script_line (NULL); if (!line || line->text[0] != '*') break; statuses = g_list_append (statuses, g_strdup (line->text)); line->done = TRUE; handle_command (line->text + 1); } /* Stop at the end of the script */ if (get_script_line (NULL) == NULL) quit (EXIT_SUCCESS); } static gboolean status_timeout_cb (gpointer data) { ScriptLine *line; line = get_script_line (NULL); fail ("(timeout)", line ? line->text : NULL); return FALSE; } static void check_status (const gchar *status) { ScriptLine *line; gboolean result = FALSE; gchar *prefix; if (stop) return; statuses = g_list_append (statuses, g_strdup (status)); if (getenv ("DEBUG")) g_print ("%s\n", status); /* Try and match against expected */ prefix = get_prefix (status); line = get_script_line (prefix); g_free (prefix); if (line) { gchar *full_pattern = g_strdup_printf ("^%s$", line->text); result = g_regex_match_simple (full_pattern, status, 0, 0); g_free (full_pattern); } if (!result) { if (line == NULL) line = get_script_line (NULL); fail (NULL, line ? line->text : NULL); return; } line->done = TRUE; /* Restart timeout */ if (status_timeout) g_source_remove (status_timeout); status_timeout = g_timeout_add (status_timeout_ms, status_timeout_cb, NULL); run_commands (); } static gboolean status_message_cb (GSocket *socket, GIOCondition condition, StatusClient *client) { int length; gchar buffer[1024]; ssize_t n_read; GError *error = NULL; n_read = g_socket_receive (socket, (gchar *)&length, sizeof (length), NULL, &error); if (n_read > 0) n_read = g_socket_receive (socket, buffer, length, NULL, &error); if (error) g_warning ("Error reading from socket: %s", error->message); g_clear_error (&error); if (n_read == 0) { status_clients = g_list_remove (status_clients, client); g_object_unref (client->socket); g_free (client); return FALSE; } else if (n_read > 0) { buffer[n_read] = '\0'; check_status (buffer); } return TRUE; } static gboolean status_connect_cb (gpointer data) { GSocket *socket; GError *error = NULL; socket = g_socket_accept (status_socket, NULL, &error); if (error) g_warning ("Failed to accept status connection: %s", error->message); g_clear_error (&error); if (socket) { StatusClient *client; client = g_malloc0 (sizeof (StatusClient)); client->socket = socket; client->source = g_socket_create_source (socket, G_IO_IN, NULL); status_clients = g_list_append (status_clients, client); g_source_set_callback (client->source, (GSourceFunc) status_message_cb, client, NULL); g_source_attach (client->source, NULL); } return TRUE; } static void load_script (const gchar *filename) { int i; gchar *data, **lines; if (!g_file_get_contents (filename, &data, NULL, NULL)) { g_printerr ("Unable to load script: %s\n", filename); quit (EXIT_FAILURE); } lines = g_strsplit (data, "\n", -1); g_free (data); /* Load lines with #? prefix as expected behaviour */ for (i = 0; lines[i]; i++) { gchar *text = g_strstrip (lines[i]); if (g_str_has_prefix (text, "#?")) { ScriptLine *line; line = g_malloc0 (sizeof (ScriptLine)); line->text = g_strdup (text + 2); line->done = FALSE; script = g_list_append (script, line); } } g_strfreev (lines); } static void handle_upower_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { if (strcmp (method_name, "SuspendAllowed") == 0) { check_status ("UPOWER SUSPEND-ALLOWED"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", TRUE)); } else if (strcmp (method_name, "Suspend") == 0) { check_status ("UPOWER SUSPEND"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "HibernateAllowed") == 0) { check_status ("UPOWER HIBERNATE-ALLOWED"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", TRUE)); } else if (strcmp (method_name, "Hibernate") == 0) { check_status ("UPOWER HIBERNATE"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "No such method: %s", method_name); } static void upower_name_acquired_cb (GDBusConnection *connection, const gchar *name, gpointer user_data) { const gchar *upower_interface = "" " " " " " " " " " " " " " " " " " " " " ""; static const GDBusInterfaceVTable upower_vtable = { handle_upower_call, }; GDBusNodeInfo *upower_info; GError *error = NULL; upower_info = g_dbus_node_info_new_for_xml (upower_interface, &error); if (error) g_warning ("Failed to parse D-Bus interface: %s", error->message); g_clear_error (&error); if (!upower_info) return; g_dbus_connection_register_object (connection, "/org/freedesktop/UPower", upower_info->interfaces[0], &upower_vtable, NULL, NULL, &error); if (error) g_warning ("Failed to register UPower service: %s", error->message); g_clear_error (&error); g_dbus_node_info_unref (upower_info); service_count--; if (service_count == 0) ready (); } static void start_upower_daemon (void) { service_count++; g_bus_own_name (G_BUS_TYPE_SYSTEM, "org.freedesktop.UPower", G_BUS_NAME_OWNER_FLAGS_NONE, upower_name_acquired_cb, NULL, NULL, NULL, NULL); } static CKSession * open_ck_session (GDBusConnection *connection, GVariant *params) { CKSession *session; GString *cookie; GVariantIter *iter; const gchar *name; GVariant *value; GError *error = NULL; session = g_malloc0 (sizeof (CKSession)); ck_sessions = g_list_append (ck_sessions, session); cookie = g_string_new ("ck-cookie"); g_variant_get (params, "a(sv)", &iter); while (g_variant_iter_loop (iter, "(&sv)", &name, &value)) { if (strcmp (name, "x11-display") == 0) { const gchar *display; g_variant_get (value, "&s", &display); g_string_append_printf (cookie, "-x%s", display); } } session->cookie = cookie->str; g_string_free (cookie, FALSE); session->path = g_strdup_printf ("/org/freedesktop/ConsoleKit/Session%d", ck_session_index++); session->id = g_dbus_connection_register_object (connection, session->path, ck_session_info->interfaces[0], &ck_session_vtable, session, NULL, &error); if (error) g_warning ("Failed to register CK Session: %s", error->message); g_clear_error (&error); return session; } static void handle_ck_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { if (strcmp (method_name, "CanRestart") == 0) { check_status ("CONSOLE-KIT CAN-RESTART"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", TRUE)); } else if (strcmp (method_name, "CanStop") == 0) { check_status ("CONSOLE-KIT CAN-STOP"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", TRUE)); } else if (strcmp (method_name, "CloseSession") == 0) g_dbus_method_invocation_return_value (invocation, g_variant_new ("(b)", TRUE)); else if (strcmp (method_name, "OpenSession") == 0) { GVariantBuilder params; g_variant_builder_init (¶ms, G_VARIANT_TYPE ("a(sv)")); CKSession *session = open_ck_session (connection, g_variant_builder_end (¶ms)); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", session->cookie)); } else if (strcmp (method_name, "OpenSessionWithParameters") == 0) { CKSession *session = open_ck_session (connection, g_variant_get_child_value (parameters, 0)); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", session->cookie)); } else if (strcmp (method_name, "GetSessionForCookie") == 0) { GList *link; gchar *cookie; g_variant_get (parameters, "(&s)", &cookie); for (link = ck_sessions; link; link = link->next) { CKSession *session = link->data; if (strcmp (session->cookie, cookie) == 0) { g_dbus_method_invocation_return_value (invocation, g_variant_new ("(o)", session->path)); return; } } g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "Unable to find session for cookie"); } else if (strcmp (method_name, "Restart") == 0) { check_status ("CONSOLE-KIT RESTART"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "Stop") == 0) { check_status ("CONSOLE-KIT STOP"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "No such method: %s", method_name); } static void handle_ck_session_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { CKSession *session = user_data; if (strcmp (method_name, "GetXDGRuntimeDir") == 0 && !g_key_file_get_boolean (config, "test-runner-config", "ck-no-xdg-runtime", NULL)) { g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "/run/console-kit")); } else if (strcmp (method_name, "Lock") == 0) { if (!session->locked) check_status ("CONSOLE-KIT LOCK-SESSION"); session->locked = TRUE; g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "Unlock") == 0) { if (session->locked) check_status ("CONSOLE-KIT UNLOCK-SESSION"); session->locked = FALSE; g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "Activate") == 0) { gchar *status = g_strdup_printf ("CONSOLE-KIT ACTIVATE-SESSION SESSION=%s", session->cookie); check_status (status); g_free (status); g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "No such method: %s", method_name); } static void ck_name_acquired_cb (GDBusConnection *connection, const gchar *name, gpointer user_data) { const gchar *ck_interface = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; static const GDBusInterfaceVTable ck_vtable = { handle_ck_call, }; const gchar *ck_session_interface_old = "" " " " " " " " " " " ""; const gchar *ck_session_interface = "" " " " " " " " " " " " " " " " " ""; GDBusNodeInfo *ck_info; GError *error = NULL; ck_info = g_dbus_node_info_new_for_xml (ck_interface, &error); if (error) g_warning ("Failed to parse D-Bus interface: %s", error->message); g_clear_error (&error); if (!ck_info) return; if (g_key_file_get_boolean (config, "test-runner-config", "ck-no-xdg-runtime", NULL)) ck_session_info = g_dbus_node_info_new_for_xml (ck_session_interface_old, &error); else ck_session_info = g_dbus_node_info_new_for_xml (ck_session_interface, &error); if (error) g_warning ("Failed to parse D-Bus interface: %s", error->message); g_clear_error (&error); if (!ck_session_info) return; g_dbus_connection_register_object (connection, "/org/freedesktop/ConsoleKit/Manager", ck_info->interfaces[0], &ck_vtable, NULL, NULL, &error); if (error) g_warning ("Failed to register console kit service: %s", error->message); g_clear_error (&error); g_dbus_node_info_unref (ck_info); service_count--; if (service_count == 0) ready (); } static void start_console_kit_daemon (void) { service_count++; g_bus_own_name (G_BUS_TYPE_SYSTEM, "org.freedesktop.ConsoleKit", G_BUS_NAME_OWNER_FLAGS_NONE, NULL, ck_name_acquired_cb, NULL, NULL, NULL); } static void handle_login1_seat_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "No such method: %s", method_name); } static GVariant * handle_login1_seat_get_property (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *property_name, GError **error, gpointer user_data) { Login1Seat *seat = user_data; if (strcmp (property_name, "CanGraphical") == 0) return g_variant_new_boolean (seat->can_graphical); else if (strcmp (property_name, "CanMultiSession") == 0) return g_variant_new_boolean (seat->can_multi_session); else if (strcmp (property_name, "Id") == 0) return g_variant_new_string (seat->id); else if (strcmp (property_name, "ActiveSession") == 0) { if (seat->active_session) { gchar *path; GVariant *ret; path = g_strdup_printf ("/org/freedesktop/login1/session/%s", seat->active_session); ret = g_variant_new ("(so)", seat->active_session, path); g_free (path); return ret; } else return NULL; } else return NULL; } static Login1Seat * add_login1_seat (GDBusConnection *connection, const gchar *id, gboolean emit_signal) { Login1Seat *seat; GError *error = NULL; GDBusNodeInfo *login1_seat_info; const gchar *login1_seat_interface = "" " " " " " " " " " " " " ""; static const GDBusInterfaceVTable login1_seat_vtable = { handle_login1_seat_call, handle_login1_seat_get_property, }; seat = g_malloc0 (sizeof (Login1Seat)); login1_seats = g_list_append (login1_seats, seat); seat->id = g_strdup (id); seat->path = g_strdup_printf ("/org/freedesktop/login1/seat/%s", seat->id); seat->can_graphical = TRUE; seat->can_multi_session = TRUE; seat->active_session = NULL; login1_seat_info = g_dbus_node_info_new_for_xml (login1_seat_interface, &error); if (error) g_warning ("Failed to parse login1 seat D-Bus interface: %s", error->message); g_clear_error (&error); if (!login1_seat_info) return NULL; g_dbus_connection_register_object (connection, seat->path, login1_seat_info->interfaces[0], &login1_seat_vtable, seat, NULL, &error); if (error) g_warning ("Failed to register login1 seat: %s", error->message); g_clear_error (&error); g_dbus_node_info_unref (login1_seat_info); if (emit_signal) { g_dbus_connection_emit_signal (connection, NULL, "/org/freedesktop/login1", "org.freedesktop.login1.Manager", "SeatNew", g_variant_new ("(so)", seat->id, seat->path), &error); if (error) g_warning ("Failed to emit SeatNew: %s", error->message); g_clear_error (&error); } return seat; } static Login1Seat * find_login1_seat (const gchar *id) { Login1Seat *seat; GList *link; for (link = login1_seats; link; link = link->next) { seat = link->data; if (strcmp (seat->id, id) == 0) return seat; } return NULL; } static void remove_login1_seat (GDBusConnection *connection, const gchar *id) { Login1Seat *seat; GError *error = NULL; seat = find_login1_seat (id); if (!seat) return; g_dbus_connection_emit_signal (connection, NULL, "/org/freedesktop/login1", "org.freedesktop.login1.Manager", "SeatRemoved", g_variant_new ("(so)", seat->id, seat->path), &error); if (error) g_warning ("Failed to emit SeatNew: %s", error->message); g_clear_error (&error); login1_seats = g_list_remove (login1_seats, seat); g_free (seat->id); g_free (seat->path); g_free (seat->active_session); g_free (seat); } static void handle_login1_session_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { /*Login1Session *session = user_data;*/ g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "No such method: %s", method_name); } static Login1Session * create_login1_session (GDBusConnection *connection) { Login1Session *session; GError *error = NULL; GDBusNodeInfo *login1_session_info; const gchar *login1_session_interface = "" " " " " ""; static const GDBusInterfaceVTable login1_session_vtable = { handle_login1_session_call, }; session = g_malloc0 (sizeof (Login1Session)); login1_sessions = g_list_append (login1_sessions, session); session->id = g_strdup_printf ("c%d", login1_session_index++); session->path = g_strdup_printf ("/org/freedesktop/login1/Session/%s", session->id); login1_session_info = g_dbus_node_info_new_for_xml (login1_session_interface, &error); if (error) g_warning ("Failed to parse login1 session D-Bus interface: %s", error->message); g_clear_error (&error); if (!login1_session_info) return NULL; g_dbus_connection_register_object (connection, session->path, login1_session_info->interfaces[0], &login1_session_vtable, session, NULL, &error); if (error) g_warning ("Failed to register login1 session: %s", error->message); g_clear_error (&error); g_dbus_node_info_unref (login1_session_info); return session; } static Login1Session * find_login1_session (const gchar *id) { GList *link; for (link = login1_sessions; link; link = link->next) { Login1Session *session = link->data; if (strcmp (session->id, id) == 0) return session; } return NULL; } static void handle_login1_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { if (strcmp (method_name, "ListSeats") == 0) { GVariantBuilder seats; GList *link; g_variant_builder_init (&seats, G_VARIANT_TYPE ("a(so)")); for (link = login1_seats; link; link = link->next) { Login1Seat *seat = link->data; g_variant_builder_add (&seats, "(so)", seat->id, seat->path); } g_dbus_method_invocation_return_value (invocation, g_variant_new ("(a(so))", &seats)); } else if (strcmp (method_name, "CreateSession") == 0) { /* Note: this is not the full CreateSession as used by logind, we just need one so our fake PAM stack can communicate with this service */ Login1Session *session = create_login1_session (connection); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(so)", session->id, session->path)); } else if (strcmp (method_name, "LockSession") == 0) { const gchar *id; Login1Session *session; g_variant_get (parameters, "(&s)", &id); session = find_login1_session (id); if (!session) { g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "No such session: %s", id); return; } if (!session->locked) { gchar *status = g_strdup_printf ("LOGIN1 LOCK-SESSION SESSION=%s", id); check_status (status); g_free (status); } session->locked = TRUE; g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "UnlockSession") == 0) { const gchar *id; Login1Session *session; g_variant_get (parameters, "(&s)", &id); session = find_login1_session (id); if (!session) { g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "No such session: %s", id); return; } if (session->locked) { gchar *status = g_strdup_printf ("LOGIN1 UNLOCK-SESSION SESSION=%s", id); check_status (status); g_free (status); } session->locked = FALSE; g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "ActivateSession") == 0) { const gchar *id; Login1Session *session; g_variant_get (parameters, "(&s)", &id); session = find_login1_session (id); if (!session) { g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "No such session: %s", id); return; } gchar *status = g_strdup_printf ("LOGIN1 ACTIVATE-SESSION SESSION=%s", id); check_status (status); g_free (status); g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "CanReboot") == 0) { check_status ("LOGIN1 CAN-REBOOT"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "yes")); } else if (strcmp (method_name, "Reboot") == 0) { gboolean interactive; g_variant_get (parameters, "(b)", &interactive); check_status ("LOGIN1 REBOOT"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "CanPowerOff") == 0) { check_status ("LOGIN1 CAN-POWER-OFF"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "yes")); } else if (strcmp (method_name, "Suspend") == 0) { gboolean interactive; g_variant_get (parameters, "(b)", &interactive); check_status ("LOGIN1 SUSPEND"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "CanSuspend") == 0) { check_status ("LOGIN1 CAN-SUSPEND"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "yes")); } else if (strcmp (method_name, "PowerOff") == 0) { gboolean interactive; g_variant_get (parameters, "(b)", &interactive); check_status ("LOGIN1 POWER-OFF"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "CanHibernate") == 0) { check_status ("LOGIN1 CAN-HIBERNATE"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "yes")); } else if (strcmp (method_name, "Hibernate") == 0) { gboolean interactive; g_variant_get (parameters, "(b)", &interactive); check_status ("LOGIN1 HIBERNATE"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "No such method: %s", method_name); } static void login1_name_acquired_cb (GDBusConnection *connection, const gchar *name, gpointer user_data) { const gchar *login1_interface = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; static const GDBusInterfaceVTable login1_vtable = { handle_login1_call, }; GDBusNodeInfo *login1_info; Login1Seat *seat0; GError *error = NULL; login1_info = g_dbus_node_info_new_for_xml (login1_interface, &error); if (error) g_warning ("Failed to parse login1 D-Bus interface: %s", error->message); g_clear_error (&error); if (!login1_info) return; g_dbus_connection_register_object (connection, "/org/freedesktop/login1", login1_info->interfaces[0], &login1_vtable, NULL, NULL, &error); if (error) g_warning ("Failed to register login1 service: %s", error->message); g_clear_error (&error); g_dbus_node_info_unref (login1_info); /* We always have seat0 */ seat0 = add_login1_seat (connection, "seat0", FALSE); if (g_key_file_has_key (config, "test-runner-config", "seat0-can-graphical", NULL)) seat0->can_graphical = g_key_file_get_boolean (config, "test-runner-config", "seat0-can-graphical", NULL); if (g_key_file_has_key (config, "test-runner-config", "seat0-can-multi-session", NULL)) seat0->can_multi_session = g_key_file_get_boolean (config, "test-runner-config", "seat0-can-multi-session", NULL); service_count--; if (service_count == 0) ready (); } static void start_login1_daemon (void) { service_count++; g_bus_own_name (G_BUS_TYPE_SYSTEM, "org.freedesktop.login1", G_BUS_NAME_OWNER_FLAGS_NONE, NULL, login1_name_acquired_cb, NULL, NULL, NULL); } static AccountsUser * get_accounts_user_by_uid (guint uid) { GList *link; for (link = accounts_users; link; link = link->next) { AccountsUser *u = link->data; if (u->uid == uid) return u; } return NULL; } static AccountsUser * get_accounts_user_by_name (const gchar *username) { GList *link; for (link = accounts_users; link; link = link->next) { AccountsUser *u = link->data; if (strcmp (u->user_name, username) == 0) return u; } return NULL; } static void accounts_user_set_hidden (AccountsUser *user, gboolean hidden, gboolean emit_signal) { GError *error = NULL; user->hidden = hidden; if (user->hidden && user->id != 0) { g_dbus_connection_unregister_object (accounts_connection, user->id); g_dbus_connection_emit_signal (accounts_connection, NULL, "/org/freedesktop/Accounts", "org.freedesktop.Accounts", "UserDeleted", g_variant_new ("(o)", user->path), &error); if (error) g_warning ("Failed to emit UserDeleted: %s", error->message); g_clear_error (&error); user->id = 0; } if (!user->hidden && user->id == 0) { user->id = g_dbus_connection_register_object (accounts_connection, user->path, user_info->interfaces[0], &user_vtable, user, NULL, &error); if (error) g_warning ("Failed to register user: %s", error->message); g_clear_error (&error); g_dbus_connection_emit_signal (accounts_connection, NULL, "/org/freedesktop/Accounts", "org.freedesktop.Accounts", "UserAdded", g_variant_new ("(o)", user->path), &error); if (error) g_warning ("Failed to emit UserAdded: %s", error->message); g_clear_error (&error); } } static void load_passwd_file (void) { gchar *path, *data, **lines; gchar **user_filter = NULL; int i; if (g_key_file_has_key (config, "test-runner-config", "accounts-service-user-filter", NULL)) { gchar *filter; filter = g_key_file_get_string (config, "test-runner-config", "accounts-service-user-filter", NULL); user_filter = g_strsplit (filter, " ", -1); g_free (filter); } path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "etc", "passwd", NULL); g_file_get_contents (path, &data, NULL, NULL); g_free (path); lines = g_strsplit (data, "\n", -1); g_free (data); for (i = 0; lines[i]; i++) { gchar **fields; guint uid; gchar *user_name, *real_name; AccountsUser *user = NULL; fields = g_strsplit (lines[i], ":", -1); if (fields == NULL || g_strv_length (fields) < 7) { g_strfreev (fields); continue; } user_name = fields[0]; uid = atoi (fields[2]); real_name = fields[4]; user = get_accounts_user_by_uid (uid); if (!user) { gchar *path; GKeyFile *dmrc_file; user = g_malloc0 (sizeof (AccountsUser)); accounts_users = g_list_append (accounts_users, user); /* Only allow users in whitelist */ user->hidden = FALSE; if (user_filter) { int j; user->hidden = TRUE; for (j = 0; user_filter[j] != NULL; j++) if (strcmp (user_name, user_filter[j]) == 0) user->hidden = FALSE; } dmrc_file = g_key_file_new (); path = g_build_filename (temp_dir, "home", user_name, ".dmrc", NULL); g_key_file_load_from_file (dmrc_file, path, G_KEY_FILE_NONE, NULL); g_free (path); user->uid = uid; user->user_name = g_strdup (user_name); user->real_name = g_strdup (real_name); user->home_directory = g_build_filename (temp_dir, "home", user_name, NULL); user->language = g_key_file_get_string (dmrc_file, "Desktop", "Language", NULL); /* DMRC contains a locale, strip the codeset off it to get the language */ if (user->language) { gchar *c = strchr (user->language, '.'); if (c) *c = '\0'; } user->xsession = g_key_file_get_string (dmrc_file, "Desktop", "Session", NULL); user->layouts = g_key_file_get_string_list (dmrc_file, "X-Accounts", "Layouts", NULL, NULL); if (!user->layouts) { user->layouts = g_malloc (sizeof (gchar *) * 2); user->layouts[0] = g_key_file_get_string (dmrc_file, "Desktop", "Layout", NULL); user->layouts[1] = NULL; } user->has_messages = g_key_file_get_boolean (dmrc_file, "X-Accounts", "HasMessages", NULL); user->path = g_strdup_printf ("/org/freedesktop/Accounts/User%d", uid); accounts_user_set_hidden (user, user->hidden, FALSE); g_key_file_free (dmrc_file); } g_strfreev (fields); } g_strfreev (lines); } static void handle_accounts_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { if (strcmp (method_name, "ListCachedUsers") == 0) { GVariantBuilder builder; GList *link; g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao")); load_passwd_file (); for (link = accounts_users; link; link = link->next) { AccountsUser *user = link->data; if (!user->hidden && user->uid >= 1000) g_variant_builder_add_value (&builder, g_variant_new_object_path (user->path)); } g_dbus_method_invocation_return_value (invocation, g_variant_new ("(ao)", &builder)); } else if (strcmp (method_name, "FindUserByName") == 0) { AccountsUser *user = NULL; gchar *user_name; g_variant_get (parameters, "(&s)", &user_name); load_passwd_file (); user = get_accounts_user_by_name (user_name); if (user) { if (user->hidden) accounts_user_set_hidden (user, FALSE, TRUE); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(o)", user->path)); } else g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "No such user: %s", user_name); } else g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "No such method: %s", method_name); } static void handle_user_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { AccountsUser *user = user_data; if (strcmp (method_name, "SetXSession") == 0) { gchar *xsession; g_variant_get (parameters, "(&s)", &xsession); g_free (user->xsession); user->xsession = g_strdup (xsession); g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); /* And notify others that it took */ g_dbus_connection_emit_signal (accounts_connection, NULL, user->path, "org.freedesktop.Accounts.User", "Changed", g_variant_new ("()"), NULL); } else g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "No such method: %s", method_name); } static GVariant * handle_user_get_property (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *property_name, GError **error, gpointer user_data) { AccountsUser *user = user_data; if (strcmp (property_name, "UserName") == 0) return g_variant_new_string (user->user_name); else if (strcmp (property_name, "RealName") == 0) return g_variant_new_string (user->real_name); else if (strcmp (property_name, "HomeDirectory") == 0) return g_variant_new_string (user->home_directory); else if (strcmp (property_name, "SystemAccount") == 0) return g_variant_new_boolean (user->uid < 1000); else if (strcmp (property_name, "BackgroundFile") == 0) return g_variant_new_string (user->background ? user->background : ""); else if (strcmp (property_name, "Language") == 0) return g_variant_new_string (user->language ? user->language : ""); else if (strcmp (property_name, "IconFile") == 0) return g_variant_new_string (user->image ? user->image : ""); else if (strcmp (property_name, "Shell") == 0) return g_variant_new_string ("/bin/sh"); else if (strcmp (property_name, "Uid") == 0) return g_variant_new_uint64 (user->uid); else if (strcmp (property_name, "XSession") == 0) return g_variant_new_string (user->xsession ? user->xsession : ""); else if (strcmp (property_name, "XKeyboardLayouts") == 0) { if (user->layouts != NULL) return g_variant_new_strv ((const gchar * const *) user->layouts, -1); else return g_variant_new_strv (NULL, 0); } else if (strcmp (property_name, "XHasMessages") == 0) return g_variant_new_boolean (user->has_messages); return NULL; } static void accounts_name_acquired_cb (GDBusConnection *connection, const gchar *name, gpointer user_data) { const gchar *accounts_interface = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; static const GDBusInterfaceVTable accounts_vtable = { handle_accounts_call, }; const gchar *user_interface = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; GError *error = NULL; accounts_connection = connection; accounts_info = g_dbus_node_info_new_for_xml (accounts_interface, &error); if (error) g_warning ("Failed to parse D-Bus interface: %s", error->message); g_clear_error (&error); if (!accounts_info) return; user_info = g_dbus_node_info_new_for_xml (user_interface, &error); if (error) g_warning ("Failed to parse D-Bus interface: %s", error->message); g_clear_error (&error); if (!user_info) return; g_dbus_connection_register_object (connection, "/org/freedesktop/Accounts", accounts_info->interfaces[0], &accounts_vtable, NULL, NULL, &error); if (error) g_warning ("Failed to register accounts service: %s", error->message); g_clear_error (&error); g_dbus_node_info_unref (accounts_info); service_count--; if (service_count == 0) ready (); } static void start_accounts_service_daemon (void) { service_count++; g_bus_own_name (G_BUS_TYPE_SYSTEM, "org.freedesktop.Accounts", G_BUS_NAME_OWNER_FLAGS_NONE, accounts_name_acquired_cb, NULL, NULL, NULL, NULL); } static void ready (void) { run_commands (); } static gboolean signal_cb (gpointer user_data) { g_print ("Caught signal, quitting\n"); quit (EXIT_FAILURE); return FALSE; } static void properties_changed_cb (GDBusConnection *connection, const gchar *sender_name, const gchar *object_path, const gchar *interface_name, const gchar *signal_name, GVariant *parameters, gpointer user_data) { const gchar *interface, *name; GString *status; GVariant *value; GVariantIter *changed_properties, *invalidated_properties; int i; g_variant_get (parameters, "(&sa{sv}as)", &interface, &changed_properties, &invalidated_properties); status = g_string_new ("RUNNER DBUS-PROPERTIES-CHANGED"); g_string_append_printf (status, " PATH=%s", object_path); g_string_append_printf (status, " INTERFACE=%s", interface); for (i = 0; g_variant_iter_loop (changed_properties, "{&sv}", &name, &value); i++) { if (i == 0) g_string_append (status, " CHANGED="); else g_string_append (status, ","); g_string_append (status, name); if (g_variant_is_of_type (value, G_VARIANT_TYPE ("ao"))) { GVariantIter iter; const gchar *path; g_variant_iter_init (&iter, value); while (g_variant_iter_loop (&iter, "&o", &path)) g_string_append_printf (status, ":%s", path); } } for (i = 0; g_variant_iter_loop (invalidated_properties, "&s", &name); i++) { if (i == 0) g_string_append (status, " INVALIDATED="); else g_string_append (status, ","); g_string_append (status, name); } check_status (status->str); g_string_free (status, TRUE); } static void dbus_signal_cb (GDBusConnection *connection, const gchar *sender_name, const gchar *object_path, const gchar *interface_name, const gchar *signal_name, GVariant *parameters, gpointer user_data) { GString *status; status = g_string_new ("RUNNER DBUS-SIGNAL"); g_string_append_printf (status, " PATH=%s", object_path); g_string_append_printf (status, " INTERFACE=%s", interface_name); g_string_append_printf (status, " NAME=%s", signal_name); check_status (status->str); g_string_free (status, TRUE); } int main (int argc, char **argv) { GMainLoop *loop; int i; gchar *greeter = NULL, *script_name, *config_file, *additional_system_config; gchar *additional_config, *path, *path1, *path2, *ld_preload, *ld_library_path, *home_dir; GString *passwd_data, *group_data; GSource *status_source; gchar cwd[1024]; GError *error = NULL; #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif loop = g_main_loop_new (NULL, FALSE); g_unix_signal_add (SIGINT, signal_cb, NULL); g_unix_signal_add (SIGTERM, signal_cb, NULL); children = g_hash_table_new (g_direct_hash, g_direct_equal); if (argc != 3) { g_printerr ("Usage %s SCRIPT-NAME GREETER\n", argv[0]); quit (EXIT_FAILURE); } script_name = argv[1]; config_file = g_strdup_printf ("%s.conf", script_name); config_path = g_build_filename (SRCDIR, "tests", "scripts", config_file, NULL); g_free (config_file); config = g_key_file_new (); g_key_file_load_from_file (config, config_path, G_KEY_FILE_NONE, NULL); load_script (config_path); if (!getcwd (cwd, 1024)) { g_critical ("Error getting current directory: %s", strerror (errno)); quit (EXIT_FAILURE); } /* Don't contact our X server */ g_unsetenv ("DISPLAY"); /* Don't let XDG vars from system affect tests */ g_unsetenv ("XDG_CONFIG_DIRS"); g_unsetenv ("XDG_DATA_DIRS"); /* Override system calls */ ld_preload = g_build_filename (BUILDDIR, "tests", "src", ".libs", "libsystem.so", NULL); g_setenv ("LD_PRELOAD", ld_preload, TRUE); g_free (ld_preload); /* Run test programs */ path = g_strdup_printf ("%s/tests/src/.libs:%s/tests/src:%s/tests/src:%s/src:%s", BUILDDIR, BUILDDIR, SRCDIR, BUILDDIR, g_getenv ("PATH")); g_setenv ("PATH", path, TRUE); g_free (path); /* Use locally built libraries */ path1 = g_build_filename (BUILDDIR, "liblightdm-gobject", ".libs", NULL); path2 = g_build_filename (BUILDDIR, "liblightdm-qt", ".libs", NULL); ld_library_path = g_strdup_printf ("%s:%s", path1, path2); g_free (path1); g_free (path2); g_setenv ("LD_LIBRARY_PATH", ld_library_path, TRUE); g_free (ld_library_path); path1 = g_build_filename (BUILDDIR, "liblightdm-gobject", NULL); g_setenv ("GI_TYPELIB_PATH", path1, TRUE); g_free (path1); /* Run in a temporary directory inside the build directory */ /* Note we have to pick a name that is short since Unix sockets in this directory have a 108 character limit on their paths */ i = 0; while (TRUE) { gchar *name; name = g_strdup_printf (".r%d", i); g_free (temp_dir); temp_dir = g_build_filename ("/tmp", name, NULL); g_free (name); if (!g_file_test (temp_dir, G_FILE_TEST_EXISTS)) break; i++; } g_mkdir_with_parents (temp_dir, 0755); g_setenv ("LIGHTDM_TEST_ROOT", temp_dir, TRUE); /* Open socket for status */ /* Note we have to pick a socket name that is short since there is a 108 character limit on the name */ status_socket_name = g_build_filename (temp_dir, ".s", NULL); unlink (status_socket_name); status_socket = g_socket_new (G_SOCKET_FAMILY_UNIX, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_DEFAULT, &error); if (error) g_warning ("Error creating status socket %s: %s", status_socket_name, error->message); g_clear_error (&error); if (status_socket) { GSocketAddress *address; gboolean result; address = g_unix_socket_address_new (status_socket_name); result = g_socket_bind (status_socket, address, FALSE, &error); g_object_unref (address); if (error) g_warning ("Error binding status socket %s: %s", status_socket_name, error->message); g_clear_error (&error); if (result) { result = g_socket_listen (status_socket, &error); if (error) g_warning ("Error listening on status socket %s: %s", status_socket_name, error->message); g_clear_error (&error); } if (!result) { g_object_unref (status_socket); status_socket = NULL; } } if (!status_socket) quit (EXIT_FAILURE); status_source = g_socket_create_source (status_socket, G_IO_IN, NULL); g_source_set_callback (status_source, status_connect_cb, NULL, NULL); g_source_attach (status_source, NULL); /* Set up a skeleton file system */ g_mkdir_with_parents (g_strdup_printf ("%s/etc", temp_dir), 0755); g_mkdir_with_parents (g_strdup_printf ("%s/run", temp_dir), 0755); g_mkdir_with_parents (g_strdup_printf ("%s/usr/share", temp_dir), 0755); g_mkdir_with_parents (g_strdup_printf ("%s/usr/share/lightdm/sessions", temp_dir), 0755); g_mkdir_with_parents (g_strdup_printf ("%s/usr/share/lightdm/remote-sessions", temp_dir), 0755); g_mkdir_with_parents (g_strdup_printf ("%s/usr/share/lightdm/greeters", temp_dir), 0755); g_mkdir_with_parents (g_strdup_printf ("%s/tmp", temp_dir), 0755); g_mkdir_with_parents (g_strdup_printf ("%s/var/lib/lightdm-data", temp_dir), 0755); g_mkdir_with_parents (g_strdup_printf ("%s/var/run", temp_dir), 0755); g_mkdir_with_parents (g_strdup_printf ("%s/var/log", temp_dir), 0755); /* Copy over the configuration */ g_mkdir_with_parents (g_strdup_printf ("%s/etc/lightdm", temp_dir), 0755); if (!g_key_file_has_key (config, "test-runner-config", "have-config", NULL) || g_key_file_get_boolean (config, "test-runner-config", "have-config", NULL)) if (system (g_strdup_printf ("cp %s %s/etc/lightdm/lightdm.conf", config_path, temp_dir))) perror ("Failed to copy configuration"); if (system (g_strdup_printf ("cp %s/tests/data/keys.conf %s/etc/lightdm/", SRCDIR, temp_dir))) perror ("Failed to copy key configuration"); additional_system_config = g_key_file_get_string (config, "test-runner-config", "additional-system-config", NULL); if (additional_system_config) { gchar **files; g_mkdir_with_parents (g_strdup_printf ("%s/usr/share/lightdm/lightdm.conf.d", temp_dir), 0755); files = g_strsplit (additional_system_config, " ", -1); for (i = 0; files[i]; i++) if (system (g_strdup_printf ("cp %s/tests/scripts/%s %s/usr/share/lightdm/lightdm.conf.d", SRCDIR, files[i], temp_dir))) perror ("Failed to copy configuration"); g_strfreev (files); } additional_config = g_key_file_get_string (config, "test-runner-config", "additional-config", NULL); if (additional_config) { gchar **files; g_mkdir_with_parents (g_strdup_printf ("%s/etc/xdg/lightdm/lightdm.conf.d", temp_dir), 0755); files = g_strsplit (additional_config, " ", -1); for (i = 0; files[i]; i++) if (system (g_strdup_printf ("cp %s/tests/scripts/%s %s/etc/xdg/lightdm/lightdm.conf.d", SRCDIR, files[i], temp_dir))) perror ("Failed to copy configuration"); g_strfreev (files); } if (g_key_file_has_key (config, "test-runner-config", "shared-data-dirs", NULL)) { gchar *dir_string; gchar **dirs; gint i; dir_string = g_key_file_get_string (config, "test-runner-config", "shared-data-dirs", NULL); dirs = g_strsplit (dir_string, " ", -1); g_free (dir_string); for (i = 0; dirs[i]; i++) { gchar **fields = g_strsplit (dirs[i], ":", -1); if (g_strv_length (fields) == 4) { gchar *path = g_strdup_printf ("%s/var/lib/lightdm-data/%s", temp_dir, fields[0]); int uid = g_ascii_strtoll (fields[1], NULL, 10); int gid = g_ascii_strtoll (fields[2], NULL, 10); int mode = g_ascii_strtoll (fields[3], NULL, 8); g_mkdir (path, mode); g_chmod (path, mode); /* mkdir filters by umask, so make sure we have what we want */ if (chown (path, uid, gid) < 0) g_warning ("chown (%s) failed: %s", path, strerror (errno)); g_free (path); } g_strfreev (fields); } g_strfreev (dirs); } /* Always copy the script */ if (system (g_strdup_printf ("cp %s %s/script", config_path, temp_dir))) perror ("Failed to copy configuration"); /* Copy over the greeter files */ if (system (g_strdup_printf ("cp %s/sessions/* %s/usr/share/lightdm/sessions", DATADIR, temp_dir))) perror ("Failed to copy sessions"); if (system (g_strdup_printf ("cp %s/remote-sessions/* %s/usr/share/lightdm/remote-sessions", DATADIR, temp_dir))) perror ("Failed to copy remote sessions"); if (system (g_strdup_printf ("cp %s/greeters/* %s/usr/share/lightdm/greeters", DATADIR, temp_dir))) perror ("Failed to copy greeters"); /* Set up the default greeter */ path = g_build_filename (temp_dir, "usr", "share", "lightdm", "greeters", "default.desktop", NULL); greeter = g_strdup_printf ("%s.desktop", argv[2]); if (symlink (greeter, path) < 0) { g_printerr ("Failed to make greeter symlink %s->%s: %s\n", path, greeter, strerror (errno)); quit (EXIT_FAILURE); } g_free (path); g_free (greeter); home_dir = g_build_filename (temp_dir, "home", NULL); /* Make fake users */ struct { gchar *user_name; gchar *password; gchar *real_name; gint uid; } users[] = { /* Root account */ {"root", "", "root", 0}, /* Unprivileged account for greeters */ {"lightdm", "", "", 100}, /* These accounts have a password */ {"have-password1", "password", "Password User 1", 1000}, {"have-password2", "password", "Password User 2", 1001}, {"have-password3", "password", "Password User 3", 1002}, {"have-password4", "password", "Password User 4", 1003}, /* This account always prompts for a password, even if using the lightdm-autologin service */ {"always-password", "password", "Password User 4", 1004}, /* These accounts have no password */ {"no-password1", "", "No Password User 1", 1005}, {"no-password2", "", "No Password User 2", 1006}, {"no-password3", "", "No Password User 3", 1007}, {"no-password4", "", "No Password User 4", 1008}, /* This account has a keyboard layout */ {"have-layout", "", "Layout User", 1009}, /* This account has a set of keyboard layouts */ {"have-layouts", "", "Layouts User", 1010}, /* This account has a language set */ {"have-language", "", "Language User", 1011}, /* This account has a preconfigured session */ {"have-session", "", "Session User", 1012}, /* This account has the home directory mounted on login */ {"mount-home-dir", "", "Mounted Home Dir User", 1013}, /* This account is denied access */ {"denied", "", "Denied User", 1014}, /* This account has expired */ {"expired", "", "Expired User", 1015}, /* This account needs a password change */ {"new-authtok", "", "New Token User", 1016}, /* This account is switched to change-user2 when authentication succeeds */ {"change-user1", "", "Change User 1", 1017}, {"change-user2", "", "Change User 2", 1018}, /* This account switches to invalid-user when authentication succeeds */ {"change-user-invalid", "", "Invalid Change User", 1019}, /* This account crashes on authentication */ {"crash-authenticate", "", "Crash Auth User", 1020}, /* This account shows an informational prompt on login */ {"info-prompt", "password", "Info Prompt", 1021}, /* This account shows multiple informational prompts on login */ {"multi-info-prompt","password", "Multi Info Prompt", 1022}, /* This account uses two factor authentication */ {"two-factor", "password", "Two Factor", 1023}, /* This account has a special group */ {"group-member", "password", "Group Member", 1024}, /* This account has the home directory created when the session starts */ {"make-home-dir", "", "Make Home Dir User", 1025}, /* This account fails to open a session */ {"session-error", "password", "Session Error", 1026}, /* This account can't establish credentials */ {"cred-error", "password", "Cred Error", 1027}, /* This account has expired credentials */ {"cred-expired", "password", "Cred Expired", 1028}, /* This account has cannot access their credentials */ {"cred-unavail", "password", "Cred Unavail", 1029}, /* This account sends informational messages for each PAM function that is called */ {"log-pam", "password", "Log PAM", 1030}, /* This account shows multiple prompts on login */ {"multi-prompt", "password", "Multi Prompt", 1031}, /* This account has an existing corrupt X authority */ {"corrupt-xauth", "password", "Corrupt Xauthority", 1032}, /* User to test properties */ {"prop-user", "", "TEST", 1033}, {NULL, NULL, NULL, 0} }; passwd_data = g_string_new (""); group_data = g_string_new (""); for (i = 0; users[i].user_name; i++) { GKeyFile *dmrc_file; gboolean save_dmrc = FALSE; if (strcmp (users[i].user_name, "mount-home-dir") != 0 && strcmp (users[i].user_name, "make-home-dir") != 0) { path = g_build_filename (home_dir, users[i].user_name, NULL); g_mkdir_with_parents (path, 0755); if (chown (path, users[i].uid, users[i].uid) < 0) g_debug ("chown (%s) failed: %s", path, strerror (errno)); g_free (path); } dmrc_file = g_key_file_new (); if (strcmp (users[i].user_name, "have-session") == 0) { g_key_file_set_string (dmrc_file, "Desktop", "Session", "alternative"); save_dmrc = TRUE; } if (strcmp (users[i].user_name, "have-layout") == 0) { g_key_file_set_string (dmrc_file, "Desktop", "Layout", "us"); save_dmrc = TRUE; } if (strcmp (users[i].user_name, "have-layouts") == 0) { g_key_file_set_string (dmrc_file, "Desktop", "Layout", "ru"); g_key_file_set_string (dmrc_file, "X-Accounts", "Layouts", "fr\toss;ru;"); save_dmrc = TRUE; } if (strcmp (users[i].user_name, "have-language") == 0) { g_key_file_set_string (dmrc_file, "Desktop", "Language", "en_AU.utf8"); save_dmrc = TRUE; } if (save_dmrc) { gchar *data; path = g_build_filename (home_dir, users[i].user_name, ".dmrc", NULL); data = g_key_file_to_data (dmrc_file, NULL, NULL); g_file_set_contents (path, data, -1, NULL); g_free (data); g_free (path); } g_key_file_free (dmrc_file); /* Write corrupt X authority file */ if (strcmp (users[i].user_name, "corrupt-xauth") == 0) { gchar data[1] = { 0xFF }; path = g_build_filename (home_dir, users[i].user_name, ".Xauthority", NULL); g_file_set_contents (path, data, 1, NULL); chmod (path, S_IRUSR | S_IWUSR); g_free (path); } /* Add passwd file entry */ g_string_append_printf (passwd_data, "%s:%s:%d:%d:%s:%s/home/%s:/bin/sh\n", users[i].user_name, users[i].password, users[i].uid, users[i].uid, users[i].real_name, temp_dir, users[i].user_name); /* Add group file entry */ g_string_append_printf (group_data, "%s:x:%d:%s\n", users[i].user_name, users[i].uid, users[i].user_name); } path = g_build_filename (temp_dir, "etc", "passwd", NULL); g_file_set_contents (path, passwd_data->str, -1, NULL); g_free (path); g_string_free (passwd_data, TRUE); /* Add an extra test group */ g_string_append_printf (group_data, "test-group:x:111:\n"); path = g_build_filename (temp_dir, "etc", "group", NULL); g_file_set_contents (path, group_data->str, -1, NULL); g_free (path); g_string_free (group_data, TRUE); if (g_key_file_has_key (config, "test-runner-config", "timeout", NULL)) status_timeout_ms = g_key_file_get_integer (config, "test-runner-config", "timeout", NULL) * 1000; /* Start D-Bus services */ if (!g_key_file_get_boolean (config, "test-runner-config", "disable-upower", NULL)) start_upower_daemon (); if (!g_key_file_get_boolean (config, "test-runner-config", "disable-console-kit", NULL)) start_console_kit_daemon (); if (!g_key_file_get_boolean (config, "test-runner-config", "disable-login1", NULL)) start_login1_daemon (); if (!g_key_file_get_boolean (config, "test-runner-config", "disable-accounts-service", NULL)) start_accounts_service_daemon (); /* Listen for daemon bus events */ if (g_key_file_get_boolean (config, "test-runner-config", "log-dbus", NULL)) { g_dbus_connection_signal_subscribe (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), "org.freedesktop.DisplayManager", "org.freedesktop.DBus.Properties", "PropertiesChanged", NULL, NULL, G_DBUS_SIGNAL_FLAGS_NONE, properties_changed_cb, NULL, NULL); g_dbus_connection_signal_subscribe (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL), "org.freedesktop.DisplayManager", "org.freedesktop.DisplayManager", NULL, NULL, NULL, G_DBUS_SIGNAL_FLAGS_NONE, dbus_signal_cb, NULL, NULL); } g_main_loop_run (loop); return EXIT_FAILURE; } lightdm-1.18.1/tests/src/x-authority.h0000664000000000000000000000336512700600465014530 0ustar #ifndef X_AUTHORITY_H_ #define X_AUTHORITY_H_ #include #include G_BEGIN_DECLS enum { XAUTH_FAMILY_INTERNET = 0, XAUTH_FAMILY_DECNET = 1, XAUTH_FAMILY_CHAOS = 2, XAUTH_FAMILY_SERVER_INTERPRETED = 5, XAUTH_FAMILY_INTERNET6 = 6, XAUTH_FAMILY_LOCALHOST = 252, XAUTH_FAMILY_KRB5_PRINCIPAL = 253, XAUTH_FAMILY_NETNAME = 254, XAUTH_FAMILY_LOCAL = 256, XAUTH_FAMILY_WILD = 65535 }; typedef struct XAuthorityPrivate XAuthorityPrivate; typedef struct { GObjectClass parent_instance; XAuthorityPrivate *priv; } XAuthority; typedef struct { GObjectClass parent_class; } XAuthorityClass; typedef struct XAuthorityRecordPrivate XAuthorityRecordPrivate; typedef struct { GObjectClass parent_instance; XAuthorityRecordPrivate *priv; } XAuthorityRecord; typedef struct { GObjectClass parent_class; } XAuthorityRecordClass; GType x_authority_get_type (void); GType x_authority_record_get_type (void); XAuthority *x_authority_new (void); gboolean x_authority_load (XAuthority *authority, const gchar *filename, GError **error); XAuthorityRecord *x_authority_match_local (XAuthority *authority, const gchar *authorization_name); XAuthorityRecord *x_authority_match_localhost (XAuthority *authority, const gchar *authorization_name); XAuthorityRecord *x_authority_match_inet (XAuthority *authority, GInetAddress *address, const gchar *authorization_name); guint16 x_authority_record_get_authorization_data_length (XAuthorityRecord *record); const guint8 *x_authority_record_get_authorization_data (XAuthorityRecord *record); gboolean x_authority_record_check_cookie (XAuthorityRecord *record, const guint8 *cookie_data, guint16 cookie_data_length); G_END_DECLS #endif /* X_AUTHORITY_H_ */ lightdm-1.18.1/tests/src/xdmcp-client.h0000664000000000000000000000604212700600465014615 0ustar #ifndef XDMCP_CLIENT_H_ #define XDMCP_CLIENT_H_ #include #include #define XDMCP_VERSION 1 #define XDMCP_PORT 177 #define XDMCP_CLIENT_SIGNAL_WILLING "willing" #define XDMCP_CLIENT_SIGNAL_UNWILLING "unwilling" #define XDMCP_CLIENT_SIGNAL_ACCEPT "accept" #define XDMCP_CLIENT_SIGNAL_DECLINE "decline" #define XDMCP_CLIENT_SIGNAL_FAILED "failed" #define XDMCP_CLIENT_SIGNAL_ALIVE "alive" typedef struct { gchar *authentication_name; gchar *hostname; gchar *status; } XDMCPWilling; typedef struct { gchar *hostname; gchar *status; } XDMCPUnwilling; typedef struct { guint32 session_id; gchar *authentication_name; guint16 authentication_data_length; guint8 *authentication_data; gchar *authorization_name; guint16 authorization_data_length; guint8 *authorization_data; } XDMCPAccept; typedef struct { gchar *status; gchar *authentication_name; guint16 authentication_data_length; guint8 *authentication_data; } XDMCPDecline; typedef struct { guint32 session_id; gchar *status; } XDMCPFailed; typedef struct { gboolean session_running; guint32 session_id; } XDMCPAlive; typedef struct XDMCPClientPrivate XDMCPClientPrivate; typedef struct { GObject parent_instance; XDMCPClientPrivate *priv; } XDMCPClient; typedef struct { GObjectClass parent_class; void (*willing)(XDMCPClient *client, XDMCPWilling *message); void (*unwilling)(XDMCPClient *client, XDMCPUnwilling *message); void (*accept)(XDMCPClient *client, XDMCPAccept *message); void (*decline)(XDMCPClient *client, XDMCPDecline *message); void (*failed)(XDMCPClient *client, XDMCPFailed *message); void (*alive)(XDMCPClient *client, XDMCPAlive *message); } XDMCPClientClass; GType xdmcp_client_get_type (void); XDMCPClient *xdmcp_client_new (void); void xdmcp_client_set_hostname (XDMCPClient *client, const gchar *hostname); void xdmcp_client_set_port (XDMCPClient *client, guint16 port); gboolean xdmcp_client_start (XDMCPClient *client); GInetAddress *xdmcp_client_get_local_address (XDMCPClient *client); void xdmcp_client_send_query (XDMCPClient *client, gchar **authentication_names); void xdmcp_client_send_broadcast_query (XDMCPClient *client, gchar **authentication_names); void xdmcp_client_send_indirect_query (XDMCPClient *client, gchar **authentication_names); void xdmcp_client_send_request (XDMCPClient *client, guint16 display_number, GInetAddress **addresses, const gchar *authentication_name, const guint8 *authentication_data, guint16 authentication_data_length, gchar **authorization_names, const gchar *mfid); void xdmcp_client_send_manage (XDMCPClient *client, guint32 session_id, guint16 display_number, const gchar *display_class); void xdmcp_client_send_keep_alive (XDMCPClient *client, guint16 display_number, guint32 session_id); G_END_DECLS #endif /* XDMCP_CLIENT_H_ */ lightdm-1.18.1/tests/src/vnc-client.c0000664000000000000000000000377212700600465014272 0ustar #include #include #include #include #include #include #include "status.h" static GKeyFile *config; int main (int argc, char **argv) { GError *error = NULL; GSocket *socket; GSocketAddress *address; gboolean result; gchar buffer[1024]; gssize n_read, n_sent; #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif status_connect (NULL, NULL); status_notify ("VNC-CLIENT START"); config = g_key_file_new (); g_key_file_load_from_file (config, g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL), G_KEY_FILE_NONE, NULL); status_notify ("VNC-CLIENT CONNECT"); socket = g_socket_new (G_SOCKET_FAMILY_IPV4, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_TCP, &error); if (error) g_warning ("Unable to make VNC socket: %s", error->message); g_clear_error (&error); if (!socket) return EXIT_FAILURE; address = g_inet_socket_address_new (g_inet_address_new_loopback (G_SOCKET_FAMILY_IPV4), 5900); result = g_socket_connect (socket, address, NULL, &error); g_object_unref (address); if (error) g_warning ("Unable to connect VNC socket: %s", error->message); g_clear_error (&error); if (!result) return EXIT_FAILURE; n_read = g_socket_receive (socket, buffer, 1023, NULL, &error); if (error) g_warning ("Unable to receive on VNC socket: %s", error->message); g_clear_error (&error); if (n_read <= 0) return EXIT_FAILURE; buffer[n_read] = '\0'; if (g_str_has_suffix (buffer, "\n")) buffer[n_read-1] = '\0'; status_notify ("VNC-CLIENT CONNECTED VERSION=\"%s\"", buffer); snprintf (buffer, 1024, "RFB 003.003\n"); n_sent = g_socket_send (socket, buffer, strlen (buffer), NULL, &error); if (error) g_warning ("Unable to send on VNC socket: %s", error->message); g_clear_error (&error); if (n_sent != strlen (buffer)) return EXIT_FAILURE; return EXIT_SUCCESS; } lightdm-1.18.1/tests/src/x-authority.c0000664000000000000000000001465512700600465014527 0ustar #include #include "x-authority.h" #include "x-common.h" struct XAuthorityPrivate { GList *records; }; struct XAuthorityRecordPrivate { guint16 family; guint16 address_length; guint8 *address; gchar *number; gchar *authorization_name; guint16 authorization_data_length; guint8 *authorization_data; }; G_DEFINE_TYPE (XAuthority, x_authority, G_TYPE_OBJECT); G_DEFINE_TYPE (XAuthorityRecord, x_authority_record, G_TYPE_OBJECT); XAuthority * x_authority_new (void) { return g_object_new (x_authority_get_type (), NULL); } gboolean x_authority_load (XAuthority *authority, const gchar *filename, GError **error) { guint8 *xauth_data; gsize xauth_length; gsize offset = 0; if (!g_file_get_contents (filename, (gchar **) &xauth_data, &xauth_length, error)) return FALSE; while (offset < xauth_length) { XAuthorityRecord *record; guint16 length; record = g_object_new (x_authority_record_get_type (), NULL); record->priv->family = read_card16 (xauth_data, xauth_length, X_BYTE_ORDER_MSB, &offset); record->priv->address_length = read_card16 (xauth_data, xauth_length, X_BYTE_ORDER_MSB, &offset); record->priv->address = read_string8 (xauth_data, xauth_length, record->priv->address_length, &offset); length = read_card16 (xauth_data, xauth_length, X_BYTE_ORDER_MSB, &offset); record->priv->number = (gchar *) read_string8 (xauth_data, xauth_length, length, &offset); length = read_card16 (xauth_data, xauth_length, X_BYTE_ORDER_MSB, &offset); record->priv->authorization_name = (gchar *) read_string8 (xauth_data, xauth_length, length, &offset); record->priv->authorization_data_length = read_card16 (xauth_data, xauth_length, X_BYTE_ORDER_MSB, &offset); record->priv->authorization_data = read_string8 (xauth_data, xauth_length, record->priv->authorization_data_length, &offset); authority->priv->records = g_list_append (authority->priv->records, record); } return TRUE; } XAuthorityRecord * x_authority_match_local (XAuthority *authority, const gchar *authorization_name) { GList *link; for (link = authority->priv->records; link; link = link->next) { XAuthorityRecord *record = link->data; if (strcmp (record->priv->authorization_name, authorization_name) != 0) continue; if (record->priv->family == XAUTH_FAMILY_WILD || record->priv->family == XAUTH_FAMILY_LOCAL) return record; } return NULL; } XAuthorityRecord * x_authority_match_localhost (XAuthority *authority, const gchar *authorization_name) { GList *link; for (link = authority->priv->records; link; link = link->next) { XAuthorityRecord *record = link->data; if (strcmp (record->priv->authorization_name, authorization_name) != 0) continue; if (record->priv->family == XAUTH_FAMILY_WILD || record->priv->family == XAUTH_FAMILY_LOCALHOST) return record; } return NULL; } XAuthorityRecord * x_authority_match_inet (XAuthority *authority, GInetAddress *address, const gchar *authorization_name) { GList *link; guint16 family; gssize address_data_length; const guint8 *address_data; switch (g_inet_address_get_family (address)) { case G_SOCKET_FAMILY_IPV4: family = XAUTH_FAMILY_INTERNET; break; case G_SOCKET_FAMILY_IPV6: family = XAUTH_FAMILY_INTERNET6; break; default: return NULL; } address_data_length = g_inet_address_get_native_size (address); address_data = g_inet_address_to_bytes (address); for (link = authority->priv->records; link; link = link->next) { XAuthorityRecord *record = link->data; int i; gboolean matches = TRUE; if (strcmp (record->priv->authorization_name, authorization_name) != 0) continue; if (record->priv->family == XAUTH_FAMILY_WILD) return record; if (record->priv->family != family) continue; if (record->priv->address_length != address_data_length) continue; for (i = 0; i < address_data_length; i++) { if (address_data[i] != record->priv->address[i]) { matches = FALSE; break; } } if (matches) return record; } return NULL; } static void x_authority_init (XAuthority *authority) { authority->priv = G_TYPE_INSTANCE_GET_PRIVATE (authority, x_authority_get_type (), XAuthorityPrivate); } static void x_authority_finalize (GObject *object) { XAuthority *authority = (XAuthority *) object; g_list_free_full (authority->priv->records, g_object_unref); } static void x_authority_class_init (XAuthorityClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = x_authority_finalize; g_type_class_add_private (klass, sizeof (XAuthorityPrivate)); } guint16 x_authority_record_get_authorization_data_length (XAuthorityRecord *record) { return record->priv->authorization_data_length; } const guint8 * x_authority_record_get_authorization_data (XAuthorityRecord *record) { return record->priv->authorization_data; } gboolean x_authority_record_check_cookie (XAuthorityRecord *record, const guint8 *cookie_data, guint16 cookie_data_length) { guint16 i; if (strcmp (record->priv->authorization_name, "MIT-MAGIC-COOKIE-1") != 0) return FALSE; if (cookie_data_length != record->priv->authorization_data_length) return FALSE; for (i = 0; i < cookie_data_length; i++) if (cookie_data[i] != record->priv->authorization_data[i]) return FALSE; return TRUE; } static void x_authority_record_init (XAuthorityRecord *record) { record->priv = G_TYPE_INSTANCE_GET_PRIVATE (record, x_authority_record_get_type (), XAuthorityRecordPrivate); } static void x_authority_record_finalize (GObject *object) { XAuthorityRecord *record = (XAuthorityRecord *) object; g_free (record->priv->address); g_free (record->priv->number); g_free (record->priv->authorization_name); g_free (record->priv->authorization_data); } static void x_authority_record_class_init (XAuthorityRecordClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = x_authority_record_finalize; g_type_class_add_private (klass, sizeof (XAuthorityRecordPrivate)); } lightdm-1.18.1/tests/src/test-qt-greeter.cpp0000664000000000000000000002614112700600465015617 0ustar #include #include #include #include #include #include #include #include #include #include #include #include #include "test-qt-greeter.h" #include "status.h" static gchar *greeter_id; static QCoreApplication *app = NULL; static QSettings *config = NULL; static QLightDM::PowerInterface *power = NULL; static TestGreeter *greeter = NULL; static QLightDM::UsersModel *users_model = NULL; TestGreeter::TestGreeter () { connect (this, SIGNAL(showMessage(QString, QLightDM::Greeter::MessageType)), SLOT(showMessage(QString, QLightDM::Greeter::MessageType))); connect (this, SIGNAL(showPrompt(QString, QLightDM::Greeter::PromptType)), SLOT(showPrompt(QString, QLightDM::Greeter::PromptType))); connect (this, SIGNAL(authenticationComplete()), SLOT(authenticationComplete())); connect (this, SIGNAL(autologinTimerExpired()), SLOT(autologinTimerExpired())); } void TestGreeter::showMessage (QString text, QLightDM::Greeter::MessageType type) { status_notify ("%s SHOW-MESSAGE TEXT=\"%s\"", greeter_id, text.toAscii ().constData ()); } void TestGreeter::showPrompt (QString text, QLightDM::Greeter::PromptType type) { status_notify ("%s SHOW-PROMPT TEXT=\"%s\"", greeter_id, text.toAscii ().constData ()); } void TestGreeter::authenticationComplete () { if (authenticationUser () != "") status_notify ("%s AUTHENTICATION-COMPLETE USERNAME=%s AUTHENTICATED=%s", greeter_id, authenticationUser ().toAscii ().constData (), isAuthenticated () ? "TRUE" : "FALSE"); else status_notify ("%s AUTHENTICATION-COMPLETE AUTHENTICATED=%s", greeter_id, isAuthenticated () ? "TRUE" : "FALSE"); } void TestGreeter::autologinTimerExpired () { } void TestGreeter::printHints () { if (selectUserHint() != "") status_notify ("%s SELECT-USER-HINT USERNAME=%s", greeter_id, greeter->selectUserHint ().toAscii ().constData ()); if (selectGuestHint()) status_notify ("%s SELECT-GUEST-HINT", greeter_id); if (lockHint()) status_notify ("%s LOCK-HINT", greeter_id); if (!hasGuestAccountHint ()) status_notify ("%s HAS-GUEST-ACCOUNT-HINT=FALSE", greeter_id); if (hideUsersHint ()) status_notify ("%s HIDE-USERS-HINT", greeter_id); if (showManualLoginHint ()) status_notify ("%s SHOW-MANUAL-LOGIN-HINT", greeter_id); if (!showRemoteLoginHint ()) status_notify ("%s SHOW-REMOTE-LOGIN-HINT=FALSE", greeter_id); int timeout = autologinTimeoutHint (); if (autologinUserHint () != "") { if (timeout != 0) status_notify ("%s AUTOLOGIN-USER USERNAME=%s TIMEOUT=%d", greeter_id, greeter->autologinUserHint ().toAscii ().constData (), timeout); else status_notify ("%s AUTOLOGIN-USER USERNAME=%s", greeter_id, greeter->autologinUserHint ().toAscii ().constData ()); } else if (autologinGuestHint ()) { if (timeout != 0) status_notify ("%s AUTOLOGIN-GUEST TIMEOUT=%d", greeter_id, timeout); else status_notify ("%s AUTOLOGIN-GUEST", greeter_id); } } void TestGreeter::idle () { status_notify ("%s IDLE", greeter_id); } void TestGreeter::reset () { status_notify ("%s RESET", greeter_id); printHints (); } void TestGreeter::userRowsInserted (const QModelIndex & parent, int start, int end) { for (int i = start; i <= end; i++) { QString name = users_model->data (users_model->index (i, 0), QLightDM::UsersModel::NameRole).toString (); status_notify ("%s USER-ADDED USERNAME=%s", greeter_id, qPrintable (name)); } } void TestGreeter::userRowsRemoved (const QModelIndex & parent, int start, int end) { for (int i = start; i <= end; i++) { QString name = users_model->data (users_model->index (i, 0), QLightDM::UsersModel::NameRole).toString (); status_notify ("%s USER-REMOVED USERNAME=%s", greeter_id, qPrintable (name)); } } static void signal_cb (int signum) { status_notify ("%s TERMINATE SIGNAL=%d", greeter_id, signum); _exit (EXIT_SUCCESS); } static void request_cb (const gchar *name, GHashTable *params) { gchar *r; if (!name) { app->quit (); return; } if (strcmp (name, "AUTHENTICATE") == 0) { if (g_hash_table_lookup (params, "USERNAME")) greeter->authenticate ((const gchar *) g_hash_table_lookup (params, "USERNAME")); else greeter->authenticate (); } else if (strcmp (name, "AUTHENTICATE-GUEST") == 0) greeter->authenticateAsGuest (); else if (strcmp (name, "AUTHENTICATE-AUTOLOGIN") == 0) greeter->authenticateAutologin (); else if (strcmp (name, "AUTHENTICATE-REMOTE") == 0) greeter->authenticateRemote ((const gchar *) g_hash_table_lookup (params, "SESSION"), NULL); else if (strcmp (name, "RESPOND") == 0) greeter->respond ((const gchar *) g_hash_table_lookup (params, "TEXT")); else if (strcmp (name, "CANCEL-AUTHENTICATION") == 0) greeter->cancelAuthentication (); else if (strcmp (name, "START-SESSION") == 0) { if (g_hash_table_lookup (params, "SESSION")) { if (!greeter->startSessionSync ((const gchar *) g_hash_table_lookup (params, "SESSION"))) status_notify ("%s SESSION-FAILED", greeter_id); } else { if (!greeter->startSessionSync ()) status_notify ("%s SESSION-FAILED", greeter_id); } } else if (strcmp (name, "LOG-USER-LIST-LENGTH") == 0) status_notify ("%s LOG-USER-LIST-LENGTH N=%d", greeter_id, users_model->rowCount (QModelIndex ())); else if (strcmp (name, "LOG-USER") == 0) { const gchar *username = (const gchar *) g_hash_table_lookup (params, "USERNAME"); for (int i = 0; i < users_model->rowCount (QModelIndex ()); i++) { QString name = users_model->data (users_model->index (i, 0), QLightDM::UsersModel::NameRole).toString (); if (name == username) status_notify ("%s LOG-USER USERNAME=%s", greeter_id, qPrintable (name)); } } else if (strcmp (name, "LOG-USER-LIST") == 0) { for (int i = 0; i < users_model->rowCount (QModelIndex ()); i++) { QString name = users_model->data (users_model->index (i, 0), QLightDM::UsersModel::NameRole).toString (); status_notify ("%s LOG-USER USERNAME=%s", greeter_id, qPrintable (name)); } } else if (strcmp (name, "GET-CAN-SUSPEND") == 0) { gboolean can_suspend = power->canSuspend (); status_notify ("%s CAN-SUSPEND ALLOWED=%s", greeter_id, can_suspend ? "TRUE" : "FALSE"); } else if (strcmp (name, "SUSPEND") == 0) { if (!power->suspend ()) status_notify ("%s FAIL-SUSPEND", greeter_id); } else if (strcmp (name, "GET-CAN-HIBERNATE") == 0) { gboolean can_hibernate = power->canHibernate (); status_notify ("%s CAN-HIBERNATE ALLOWED=%s", greeter_id, can_hibernate ? "TRUE" : "FALSE"); } else if (strcmp (name, "HIBERNATE") == 0) { if (!power->hibernate ()) status_notify ("%s FAIL-HIBERNATE", greeter_id); } else if (strcmp (name, "GET-CAN-RESTART") == 0) { gboolean can_restart = power->canRestart (); status_notify ("%s CAN-RESTART ALLOWED=%s", greeter_id, can_restart ? "TRUE" : "FALSE"); } else if (strcmp (name, "RESTART") == 0) { if (!power->restart ()) status_notify ("%s FAIL-RESTART", greeter_id); } else if (strcmp (name, "GET-CAN-SHUTDOWN") == 0) { gboolean can_shutdown = power->canShutdown (); status_notify ("%s CAN-SHUTDOWN ALLOWED=%s", greeter_id, can_shutdown ? "TRUE" : "FALSE"); } else if (strcmp (name, "SHUTDOWN") == 0) { if (!power->shutdown ()) status_notify ("%s FAIL-SHUTDOWN", greeter_id); } } int main(int argc, char *argv[]) { gchar *display, *xdg_seat, *xdg_vtnr, *xdg_session_cookie, *xdg_session_class; GString *status_text; #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif display = getenv ("DISPLAY"); xdg_seat = getenv ("XDG_SEAT"); xdg_vtnr = getenv ("XDG_VTNR"); xdg_session_cookie = getenv ("XDG_SESSION_COOKIE"); xdg_session_class = getenv ("XDG_SESSION_CLASS"); if (display) { if (display[0] == ':') greeter_id = g_strdup_printf ("GREETER-X-%s", display + 1); else greeter_id = g_strdup_printf ("GREETER-X-%s", display); } else greeter_id = g_strdup ("GREETER-?"); status_connect (request_cb, greeter_id); /* Workaround for Qt being confused by libsystem */ #if QT_VERSION >= QT_VERSION_CHECK (5, 3, 0) QCoreApplication::setSetuidAllowed (true); #endif app = new QCoreApplication (argc, argv); signal (SIGINT, signal_cb); signal (SIGTERM, signal_cb); status_text = g_string_new (""); g_string_printf (status_text, "%s START", greeter_id); if (xdg_seat) g_string_append_printf (status_text, " XDG_SEAT=%s", xdg_seat); if (xdg_vtnr) g_string_append_printf (status_text, " XDG_VTNR=%s", xdg_vtnr); if (xdg_session_cookie) g_string_append_printf (status_text, " XDG_SESSION_COOKIE=%s", xdg_session_cookie); if (xdg_session_class) g_string_append_printf (status_text, " XDG_SESSION_CLASS=%s", xdg_session_class); status_notify ("%s", status_text->str); g_string_free (status_text, TRUE); config = new QSettings (g_build_filename (getenv ("LIGHTDM_TEST_ROOT"), "script", NULL), QSettings::IniFormat); if (display) { xcb_connection_t *connection = xcb_connect (NULL, NULL); if (xcb_connection_has_error (connection)) { status_notify ("%s FAIL-CONNECT-XSERVER", greeter_id); return EXIT_FAILURE; } status_notify ("%s CONNECT-XSERVER", greeter_id); } power = new QLightDM::PowerInterface(); greeter = new TestGreeter(); if (config->value ("test-greeter-config/resettable", "false") == "true") { greeter->setResettable (true); QObject::connect (greeter, SIGNAL(idle()), greeter, SLOT(idle())); QObject::connect (greeter, SIGNAL(reset()), greeter, SLOT(reset())); } users_model = new QLightDM::UsersModel(); if (config->value ("test-greeter-config/log-user-changes", "false") == "true") { QObject::connect (users_model, SIGNAL(rowsInserted(const QModelIndex&, int, int)), greeter, SLOT(userRowsInserted(const QModelIndex&, int, int))); QObject::connect (users_model, SIGNAL(rowsAboutToBeRemoved(const QModelIndex&, int, int)), greeter, SLOT(userRowsRemoved(const QModelIndex&, int, int))); } status_notify ("%s CONNECT-TO-DAEMON", greeter_id); if (!greeter->connectSync()) { status_notify ("%s FAIL-CONNECT-DAEMON", greeter_id); return EXIT_FAILURE; } status_notify ("%s CONNECTED-TO-DAEMON", greeter_id); greeter->printHints(); return app->exec(); } lightdm-1.18.1/tests/src/test-greeter-wrapper.c0000664000000000000000000000075512700600465016316 0ustar #include #include #include "status.h" int main (int argc, char **argv) { gchar *display; status_connect (NULL, NULL); display = getenv ("DISPLAY"); if (display == NULL) status_notify ("GREETER-WRAPPER-? START"); else if (display[0] == ':') status_notify ("GREETER-WRAPPER-X-%s START", display + 1); else status_notify ("GREETER-WRAPPER-X-%s START", display); execv (argv[1], argv + 1); return EXIT_FAILURE; } lightdm-1.18.1/tests/src/test-qt-greeter.h0000664000000000000000000000111712700600465015260 0ustar #include #include class TestGreeter : public QLightDM::Greeter { Q_OBJECT public: TestGreeter (); void printHints(); private Q_SLOTS: void showMessage(QString text, QLightDM::Greeter::MessageType type); void showPrompt(QString text, QLightDM::Greeter::PromptType type); void authenticationComplete(); void autologinTimerExpired(); void userRowsInserted(const QModelIndex & parent, int start, int end); void userRowsRemoved(const QModelIndex & parent, int start, int end); void idle(); void reset(); }; lightdm-1.18.1/tests/src/test-python-greeter0000775000000000000000000002520312700600465015734 0ustar #!/usr/bin/python import sys import os import struct import socket import subprocess import signal from gi.repository import GLib from gi.repository import LightDM display = os.getenv ('DISPLAY'); xdg_seat = os.getenv ('XDG_SEAT'); xdg_vtnr = os.getenv ('XDG_VTNR'); xdg_session_cookie = os.getenv ('XDG_SESSION_COOKIE'); xdg_session_class = os.getenv ('XDG_SESSION_CLASS'); if display is not None: if display.startswith (':'): greeter_id = 'GREETER-X-%s' % display[1:] else: greeter_id = 'GREETER-X-%s' % display else: greeter_id = 'GREETER-?' loop = GLib.MainLoop () def sigterm_cb (data): status_notify ('%s TERMINATE SIGNAL=%d' % (greeter_id, signal.SIGTERM)) loop.quit () GLib.unix_signal_add (GLib.PRIORITY_DEFAULT, signal.SIGTERM, sigterm_cb, None) status_socket = None def status_notify (message): if status_socket is not None: status_socket.send (struct.pack ('i', len (message)) + message) else: sys.stderr.write ('%s\n' % message) def request_cb (channel, condition): length = status_socket.recv (4) if len (length) == 0: loop.quit (); return False if len (length) > 0: (l,) = struct.unpack ('i', length) request = status_socket.recv (l) r = '%s AUTHENTICATE' % greeter_id if request == r: greeter.authenticate (None) r = '%s AUTHENTICATE USERNAME=' % greeter_id if request.startswith (r): greeter.authenticate (request[len(r):]) r = '%s AUTHENTICATE-GUEST' % greeter_id if request == r: greeter.authenticate_as_guest () r = '%s AUTHENTICATE-AUTOLOGIN' % greeter_id if request == r: greeter.authenticate_autologin () r = '%s AUTHENTICATE-REMOTE SESSION=' % greeter_id if request.startswith (r): greeter.authenticate_remote (request[len(r):], None) r = '%s RESPOND TEXT=\"' % greeter_id if request.startswith (r): greeter.respond (request[len (r):-1]) r = '%s CANCEL-AUTHENTICATION' % greeter_id if request == r: greeter.cancel_authentication () r = '%s START-SESSION' % greeter_id if request == r: if not greeter.start_session_sync (None): status_notify ('%s SESSION-FAILED' % greeter_id) r = '%s START-SESSION SESSION=' % greeter_id if request.startswith (r): if not greeter.start_session_sync (request[len(r):]): status_notify ('%s SESSION-FAILED' % greeter_id) r = '%s LOG-USER-LIST-LENGTH' % greeter_id if request == r: status_notify ('%s LOG-USER-LIST-LENGTH N=%d' % (greeter_id, LightDM.UserList.get_instance ().get_length ())) r = '%s LOG-USER USERNAME=' % greeter_id if request.startswith (r): username = request[len(r):] user = LightDM.UserList.get_instance ().get_user_by_name (username) status_notify ('%s LOG-USER USERNAME=%s' % (greeter_id, user.get_name ())) r = '%s LOG-USER-LIST' % greeter_id if request == r: users = LightDM.UserList.get_instance ().get_users (); for user in users: status_notify ('%s LOG-USER USERNAME=%s' % (greeter_id, user.get_name ())) r = '%s LOG-LAYOUT' % greeter_id if request == r: layout = LightDM.get_layout ().get_name () status_notify ('%s LOG-LAYOUT LAYOUT=%s' % (greeter_id, layout)) r = '%s LOG-LAYOUT USERNAME=' % greeter_id if request.startswith (r): username = request[len(r):] user = LightDM.UserList.get_instance ().get_user_by_name (username) layout = user.get_layout () if layout is None: layout = '' status_notify ('%s LOG-LAYOUT USERNAME=%s LAYOUT=%s' % (greeter_id, username, layout)) r = '%s LOG-LANGUAGE USERNAME=' % greeter_id if request.startswith (r): username = request[len(r):] user = LightDM.UserList.get_instance ().get_user_by_name (username) language = user.get_language () if language is None: language = '' status_notify ('%s LOG-LANGUAGE USERNAME=%s LANGUAGE=%s' % (greeter_id, username, language)) r = '%s GET-CAN-SUSPEND' % greeter_id if request == r: if LightDM.get_can_suspend (): allowed = "TRUE" else: allowed = "FALSE" status_notify ('%s CAN-SUSPEND ALLOWED=%s' % (greeter_id, allowed)) r = '%s SUSPEND' % greeter_id if request == r: try: LightDM.suspend () except: status_notify ('%s FAIL-SUSPEND' % greeter_id) r = '%s GET-CAN-HIBERNATE' % greeter_id if request == r: if LightDM.get_can_hibernate (): allowed = "TRUE" else: allowed = "FALSE" status_notify ('%s CAN-HIBERNATE ALLOWED=%s' % (greeter_id, allowed)) r = '%s HIBERNATE' % greeter_id if request == r: try: LightDM.hibernate () except: status_notify ('%s FAIL-HIBERNATE' % greeter_id) r = '%s GET-CAN-RESTART' % greeter_id if request == r: if LightDM.get_can_restart (): allowed = "TRUE" else: allowed = "FALSE" status_notify ('%s CAN-RESTART ALLOWED=%s' % (greeter_id, allowed)) r = '%s RESTART' % greeter_id if request == r: try: LightDM.restart () except: status_notify ('%s FAIL-RESTART' % greeter_id) r = '%s GET-CAN-SHUTDOWN' % greeter_id if request == r: if LightDM.get_can_shutdown (): allowed = "TRUE" else: allowed = "FALSE" status_notify ('%s CAN-SHUTDOWN ALLOWED=%s' % (greeter_id, allowed)) r = '%s SHUTDOWN' % greeter_id if request == r: try: LightDM.shutdown () except: status_notify ('%s FAIL-SHUTDOWN' % greeter_id) return True def notify_hints (greeter): if greeter.get_select_user_hint () is not None: status_notify ('%s SELECT-USER-HINT USERNAME=%s' % (greeter_id, greeter.get_select_user_hint ())) if greeter.get_select_guest_hint (): status_notify ('%s SELECT-GUEST-HINT' % greeter_id) if greeter.get_lock_hint (): status_notify ('%s LOCK-HINT' % greeter_id) if not greeter.get_has_guest_account_hint (): status_notify ('%s HAS-GUEST-ACCOUNT-HINT=FALSE' % greeter_id) if greeter.get_hide_users_hint (): status_notify ('%s HIDE-USERS-HINT' % greeter_id) if greeter.get_show_manual_login_hint (): status_notify ('%s SHOW-MANUAL-LOGIN-HINT' % greeter_id) if not greeter.get_show_remote_login_hint (): status_notify ('%s SHOW-REMOTE-LOGIN-HINT=FALSE' % greeter_id) timeout = greeter.get_autologin_timeout_hint () if greeter.get_autologin_user_hint () is not None: if timeout != 0: status_notify ('%s AUTOLOGIN-USER USERNAME=%s TIMEOUT=%d' % (greeter_id, greeter.get_autologin_user_hint (), timeout)) else: status_notify ('%s AUTOLOGIN-USER USERNAME=%s' % (greeter_id, greeter.get_autologin_user_hint ())) elif greeter.get_autologin_guest_hint (): if timeout != 0: status_notify ('%s AUTOLOGIN-GUEST TIMEOUT=%d' % (greeter_id, timeout)) else: status_notify ('%s AUTOLOGIN-GUEST' % greeter_id) path = os.getenv ('LIGHTDM_TEST_ROOT') + '/.s' status_socket = socket.socket (socket.AF_UNIX, socket.SOCK_STREAM) status_socket.connect (path) GLib.io_add_watch (status_socket.fileno (), GLib.IO_IN | GLib.IO_HUP, request_cb) status_text = '%s START' % greeter_id if xdg_seat is not None: status_text += ' XDG_SEAT=%s' % xdg_seat if xdg_vtnr is not None: status_text += ' XDG_VTNR=%s' % xdg_vtnr if xdg_session_cookie is not None: status_text += ' XDG_SESSION_COOKIE=%s' % xdg_session_cookie if xdg_session_class is not None: status_text += ' XDG_SESSION_CLASS=%s' % xdg_session_class status_notify (status_text) config = GLib.KeyFile () config.load_from_file (os.getenv ('LIGHTDM_TEST_ROOT') + '/script', GLib.KeyFileFlags.NONE) # NOTE: There don't seem to be any good X bindings so we have to mock up our own... if display is not None: (host, display_number) = display.split (':') if host == '': x_socket = socket.socket (socket.AF_UNIX, socket.SOCK_STREAM) x_socket.connect (os.getenv ('LIGHTDM_TEST_ROOT') + '/.x' + display) else: x_socket = socket.socket (socket.AF_INET, socket.SOCK_STREAM) x_socket.connect ((host, 6000 + int (display_number))) status_notify ('%s CONNECT-XSERVER' % (greeter_id)) def show_message_cb (greeter, text, type): status_notify ('%s SHOW-MESSAGE TEXT=\"%s\"' % (greeter_id, text)) def show_prompt_cb (greeter, text, type): status_notify ('%s SHOW-PROMPT TEXT=\"%s\"' % (greeter_id, text)) def authentication_complete_cb (greeter): if greeter.get_is_authenticated (): is_authenticated = 'TRUE' else: is_authenticated = 'FALSE' if greeter.get_authentication_user () is not None: status_notify ('%s AUTHENTICATION-COMPLETE USERNAME=%s AUTHENTICATED=%s' % (greeter_id, greeter.get_authentication_user (), is_authenticated)) else: status_notify ('%s AUTHENTICATION-COMPLETE AUTHENTICATED=%s' % (greeter_id, is_authenticated)) def autologin_timer_expired_cb (greeter): pass greeter = LightDM.Greeter () greeter.connect ('show-message', show_message_cb) greeter.connect ('show-prompt', show_prompt_cb) greeter.connect ('authentication-complete', authentication_complete_cb) greeter.connect ('autologin-timer-expired', autologin_timer_expired_cb) resettable = False try: resettable = config.get_boolean ('test-greeter-config', 'resettable') except: pass if resettable: LightDM.Greeter.get_instance ().set_resettable (True) LightDM.Greeter.get_instance ().connect ('idle', idle_cb) LightDM.Greeter.get_instance ().connect ('reset', reset_cb) def user_added_cb (user_list, user): status_notify ('%s USER-ADDED USERNAME=%s' % (greeter_id, user.get_name ())) def user_removed_cb (user_list, user): status_notify ('%s USER-REMOVED USERNAME=%s' % (greeter_id, user.get_name ())) log_user_changes = False try: log_user_changes = config.get_boolean ('test-greeter-config', 'log-user-changes') except: pass if log_user_changes: LightDM.UserList.get_instance ().connect ('user-added', user_added_cb) LightDM.UserList.get_instance ().connect ('user-removed', user_removed_cb) status_notify ('%s CONNECT-TO-DAEMON' % greeter_id) if not greeter.connect_to_daemon_sync (): status_notify ('%s FAIL-CONNECT-DAEMON' % greeter_id) exit (1) status_notify ('%s CONNECTED-TO-DAEMON' % greeter_id) def idle_cb (greeter): status_notify ('%s IDLE' % (greeter_id)) def reset_cb (greeter): status_notify ('%s RESET' % (greeter_id)) notify_hints (greeter) notify_hints (greeter) loop.run () lightdm-1.18.1/tests/src/x-common.h0000664000000000000000000000306412700600465013764 0ustar #ifndef X_COMMON_H_ #define X_COMMON_H_ #include G_BEGIN_DECLS enum { X_BYTE_ORDER_MSB, X_BYTE_ORDER_LSB }; gsize pad (gsize length); void read_padding (gsize length, gsize *offset); guint8 read_card8 (const guint8 *buffer, gsize buffer_length, gsize *offset); guint16 read_card16 (const guint8 *buffer, gsize buffer_length, guint8 byte_order, gsize *offset); guint32 read_card32 (const guint8 *buffer, gsize buffer_length, guint8 byte_order, gsize *offset); guint8 *read_string8 (const guint8 *buffer, gsize buffer_length, gsize string_length, gsize *offset); gchar *read_string (const guint8 *buffer, gsize buffer_length, gsize string_length, gsize *offset); gchar *read_padded_string (const guint8 *buffer, gsize buffer_length, gsize string_length, gsize *offset); void write_card8 (guint8 *buffer, gsize buffer_length, guint8 value, gsize *offset); void write_padding (guint8 *buffer, gsize buffer_length, gsize length, gsize *offset); void write_card16 (guint8 *buffer, gsize buffer_length, guint8 byte_order, guint16 value, gsize *offset); void write_card32 (guint8 *buffer, gsize buffer_length, guint8 byte_order, guint32 value, gsize *offset); void write_string8 (guint8 *buffer, gsize buffer_length, const guint8 *value, gsize value_length, gsize *offset); gsize padded_string_length (const gchar *value); void write_string (guint8 *buffer, gsize buffer_length, const gchar *value, gsize *offset); void write_padded_string (guint8 *buffer, gsize buffer_length, const gchar *value, gsize *offset); G_END_DECLS #endif /* X_COMMON_H_ */ lightdm-1.18.1/tests/src/status.c0000664000000000000000000001255112700600465013546 0ustar #include #include #include #include #include #include #include #include #include "status.h" static GSocket *status_socket = NULL; static StatusRequestFunc request_func = NULL; static gchar *filter_id = NULL; static gboolean status_request_cb (GSocket *socket, GIOCondition condition, gpointer data) { int length; gchar buffer[1024]; ssize_t n_read; const gchar *c, *start; int l; gchar *id, *name = NULL; gboolean id_matches; GHashTable *params; GError *error = NULL; n_read = g_socket_receive (socket, (gchar *)&length, sizeof (length), NULL, &error); if (n_read > 0) n_read = g_socket_receive (socket, buffer, length, NULL, &error); if (n_read == 0) { if (request_func) request_func (NULL, NULL); return FALSE; } if (error) g_warning ("Error reading from socket: %s", error->message); g_clear_error (&error); if (n_read <= 0 || !request_func) return TRUE; buffer[n_read] = '\0'; c = buffer; start = c; l = 0; while (*c && !isspace (*c)) { c++; l++; } id = g_strdup_printf ("%.*s", l, start); id_matches = g_strcmp0 (id, filter_id) == 0; g_free (id); if (!id_matches) return TRUE; while (isspace (*c)) c++; start = c; l = 0; while (*c && !isspace (*c)) { c++; l++; } name = g_strdup_printf ("%.*s", l, start); params = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); while (TRUE) { const gchar *start; gchar *param_name, *param_value; while (isspace (*c)) c++; start = c; while (*c && !isspace (*c) && *c != '=') c++; if (*c == '\0') break; param_name = g_strdup_printf ("%.*s", (int) (c - start), start); if (*c == '=') { c++; while (isspace (*c)) c++; if (*c == '\"') { gboolean escaped = FALSE; GString *value; c++; value = g_string_new (""); while (*c) { if (*c == '\\') { if (escaped) { g_string_append_c (value, '\\'); escaped = FALSE; } else escaped = TRUE; } else if (!escaped && *c == '\"') break; if (!escaped) g_string_append_c (value, *c); c++; } param_value = value->str; g_string_free (value, FALSE); if (*c == '\"') c++; } else { start = c; while (*c && !isspace (*c)) c++; param_value = g_strdup_printf ("%.*s", (int) (c - start), start); } } else param_value = g_strdup (""); g_hash_table_insert (params, param_name, param_value); } request_func (name, params); g_free (name); g_hash_table_unref (params); return TRUE; } gboolean status_connect (StatusRequestFunc request_cb, const gchar *id) { gchar *path; GSocketAddress *address; gboolean result; GSource *source; GError *error = NULL; request_func = request_cb; filter_id = g_strdup (id); status_socket = g_socket_new (G_SOCKET_FAMILY_UNIX, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_DEFAULT, &error); if (error) g_printerr ("Unable to open socket for status: %s\n", error->message); g_clear_error (&error); if (!status_socket) return FALSE; path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), ".s", NULL); address = g_unix_socket_address_new (path); result = g_socket_connect (status_socket, address, NULL, &error); g_object_unref (address); if (error) g_printerr ("Failed to connect to status socket %s: %s\n", path, error->message); g_clear_error (&error); g_free (path); if (!result) { g_object_unref (status_socket); status_socket = NULL; return FALSE; } source = g_socket_create_source (status_socket, G_IO_IN, NULL); g_source_set_callback (source, (GSourceFunc) status_request_cb, NULL, NULL); g_source_attach (source, NULL); return TRUE; } void status_notify (const gchar *format, ...) { gboolean written = FALSE; gchar status[1024]; va_list ap; va_start (ap, format); vsnprintf (status, 1024, format, ap); va_end (ap); if (status_socket) { GError *error = NULL; int length; length = strlen (status); written = g_socket_send (status_socket, (gchar *) &length, sizeof (length), NULL, &error) == sizeof (length) && g_socket_send (status_socket, status, strlen (status), NULL, &error) == strlen (status); if (error) g_printerr ("Failed to write to status socket: %s\n", error->message); g_clear_error (&error); } if (!written) g_printerr ("%s\n", status); } lightdm-1.18.1/tests/test-login-guest-disabled-gobject0000775000000000000000000000012512700600465017602 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-disabled test-gobject-greeter lightdm-1.18.1/tests/test-power-no-console-kit-gobject0000775000000000000000000000012512700600465017573 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power-no-console-kit test-gobject-greeter lightdm-1.18.1/tests/test-switch-to-user-existing-no-password0000775000000000000000000000014412700600465021165 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-existing-no-password test-gobject-greeter lightdm-1.18.1/tests/test-lock-seat-return-session0000775000000000000000000000013112700600465017042 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner lock-seat-return-session test-gobject-greeter lightdm-1.18.1/tests/test-unity-mir-script-hooks0000775000000000000000000000012312700600465016543 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-mir-script-hooks test-mir-greeter lightdm-1.18.1/tests/test-xdg-current-desktop0000775000000000000000000000012412700600465016075 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdg-current-desktop test-gobject-greeter lightdm-1.18.1/tests/test-login-guest-python0000775000000000000000000000011312700600465015736 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest test-python-greeter lightdm-1.18.1/tests/test-autologin-timeout-qt40000775000000000000000000000011612700600465016360 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-timeout test-qt4-greeter lightdm-1.18.1/tests/test-login-guest-disabled-python0000775000000000000000000000012412700600465017505 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-disabled test-python-greeter lightdm-1.18.1/tests/test-unity-compositor-fail-start0000775000000000000000000000013412700600465017575 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-compositor-fail-start test-gobject-greeter lightdm-1.18.1/tests/test-login-guest-pick-session-qt50000775000000000000000000000012512700600465017536 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-pick-session test-qt5-greeter lightdm-1.18.1/tests/test-crash-authenticate0000775000000000000000000000012312700600465015737 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner crash-authenticate test-gobject-greeter lightdm-1.18.1/tests/test-vnc-command0000775000000000000000000000011412700600465014365 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner vnc-command test-gobject-greeter lightdm-1.18.1/tests/test-home-dir-on-authenticate0000775000000000000000000000013112700600465016754 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner home-dir-on-authenticate test-gobject-greeter lightdm-1.18.1/tests/test-xdmcp-server-request-invalid-authentication0000775000000000000000000000015412700600465022735 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-request-invalid-authentication test-gobject-greeter lightdm-1.18.1/tests/test-login-info-prompt-qt40000775000000000000000000000011612700600465016253 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-info-prompt test-qt4-greeter lightdm-1.18.1/tests/test-unity-compositor-next-session0000775000000000000000000000013612700600465020170 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-compositor-next-session test-gobject-greeter lightdm-1.18.1/tests/test-xdmcp-client-xorg-1.160000775000000000000000000000012712700600465016116 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-client-xorg-1.16 test-gobject-greeter lightdm-1.18.1/tests/test-login-invalid-session-qt40000775000000000000000000000012212700600465017105 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-session test-qt4-greeter lightdm-1.18.1/tests/test-autologin-pam0000775000000000000000000000011612700600465014741 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner autologin-pam test-gobject-greeter lightdm-1.18.1/tests/test-vnc-login0000775000000000000000000000011212700600465014055 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner vnc-login test-gobject-greeter lightdm-1.18.1/tests/test-login-pick-session-python0000775000000000000000000000012212700600465017216 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-pick-session test-python-greeter lightdm-1.18.1/tests/test-multi-seat-globbing-config-sections0000775000000000000000000000014412700600465021123 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-globbing-config-sections test-gobject-greeter lightdm-1.18.1/tests/test-power-no-services-python0000775000000000000000000000012112700600465017067 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner power-no-services test-python-greeter lightdm-1.18.1/tests/test-unity-mir-greeter-mir-session0000775000000000000000000000013212700600465020021 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-mir-greeter-mir-session test-mir-greeter lightdm-1.18.1/tests/test-login-two-factor-qt50000775000000000000000000000011512700600465016066 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-two-factor test-qt5-greeter lightdm-1.18.1/tests/test-unity-compositor-command0000775000000000000000000000013112700600465017142 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner unity-compositor-command test-gobject-greeter lightdm-1.18.1/tests/test-login-no-password-gobject0000775000000000000000000000012212700600465017157 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-no-password test-gobject-greeter lightdm-1.18.1/tests/test-lock-seat-twice0000775000000000000000000000012012700600465015153 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner lock-seat-twice test-gobject-greeter lightdm-1.18.1/tests/test-login-pick-session-gobject0000775000000000000000000000012312700600465017313 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-pick-session test-gobject-greeter lightdm-1.18.1/tests/test-login-long-username-python0000775000000000000000000000012312700600465017364 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-long-username test-python-greeter lightdm-1.18.1/tests/test-login-guest-logout-python0000775000000000000000000000012212700600465017245 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner login-guest-logout test-python-greeter lightdm-1.18.1/tests/test-utmp-autologin0000775000000000000000000000011712700600465015152 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner utmp-autologin test-gobject-greeter lightdm-1.18.1/tests/test-lock-session-twice0000775000000000000000000000012312700600465015705 0ustar #!/bin/sh ./src/dbus-env ./src/test-runner lock-session-twice test-gobject-greeter lightdm-1.18.1/debian/0000775000000000000000000000000012700603564011347 5ustar lightdm-1.18.1/debian/50-greeter-wrapper.conf0000664000000000000000000000010212700600465015541 0ustar [Seat:*] greeter-wrapper=/usr/lib/lightdm/lightdm-greeter-session lightdm-1.18.1/debian/liblightdm-gobject-1-0.symbols0000664000000000000000000000716112700600465017010 0ustar liblightdm-gobject-1.so.0 liblightdm-gobject-1-0 #MINVER# lightdm_get_can_hibernate@Base 0.9.2 lightdm_get_can_restart@Base 0.9.2 lightdm_get_can_shutdown@Base 0.9.2 lightdm_get_can_suspend@Base 0.9.2 lightdm_get_hostname@Base 0.9.2 lightdm_get_language@Base 0.9.2 lightdm_get_languages@Base 0.9.2 lightdm_get_layout@Base 0.9.2 lightdm_get_layouts@Base 0.9.2 lightdm_get_remote_sessions@Base 1.3.3 lightdm_get_sessions@Base 0.9.2 lightdm_greeter_authenticate@Base 0.9.2 lightdm_greeter_authenticate_as_guest@Base 0.9.2 lightdm_greeter_authenticate_autologin@Base 1.4.0 lightdm_greeter_authenticate_remote@Base 1.3.3 lightdm_greeter_cancel_authentication@Base 0.9.2 lightdm_greeter_cancel_autologin@Base 0.9.2 lightdm_greeter_connect_sync@Base 0.9.2 lightdm_greeter_connect_to_daemon@Base 1.11.1 lightdm_greeter_connect_to_daemon_finish@Base 1.11.1 lightdm_greeter_connect_to_daemon_sync@Base 1.11.1 lightdm_greeter_ensure_shared_data_dir@Base 1.11.1 lightdm_greeter_ensure_shared_data_dir_finish@Base 1.11.1 lightdm_greeter_ensure_shared_data_dir_sync@Base 1.9.8 lightdm_greeter_get_authentication_user@Base 0.9.2 lightdm_greeter_get_autologin_guest_hint@Base 0.9.2 lightdm_greeter_get_autologin_timeout_hint@Base 0.9.2 lightdm_greeter_get_autologin_user_hint@Base 0.9.2 lightdm_greeter_get_default_session_hint@Base 0.9.2 lightdm_greeter_get_has_guest_account_hint@Base 0.9.2 lightdm_greeter_get_hide_users_hint@Base 0.9.2 lightdm_greeter_get_hint@Base 0.9.2 lightdm_greeter_get_in_authentication@Base 0.9.2 lightdm_greeter_get_is_authenticated@Base 0.9.2 lightdm_greeter_get_lock_hint@Base 1.1.3 lightdm_greeter_get_select_guest_hint@Base 0.9.2 lightdm_greeter_get_select_user_hint@Base 0.9.2 lightdm_greeter_get_show_manual_login_hint@Base 1.1.7 lightdm_greeter_get_show_remote_login_hint@Base 1.4.0 lightdm_greeter_get_type@Base 0.9.2 lightdm_greeter_new@Base 0.9.2 lightdm_greeter_respond@Base 0.9.2 lightdm_greeter_set_language@Base 0.9.8 lightdm_greeter_set_resettable@Base 1.11.1 lightdm_greeter_start_session@Base 1.11.1 lightdm_greeter_start_session_finish@Base 1.11.1 lightdm_greeter_start_session_sync@Base 0.9.2 lightdm_hibernate@Base 0.9.2 lightdm_language_get_code@Base 0.9.2 lightdm_language_get_name@Base 0.9.2 lightdm_language_get_territory@Base 0.9.2 lightdm_language_get_type@Base 0.9.2 lightdm_language_matches@Base 0.9.2 lightdm_layout_get_description@Base 0.9.2 lightdm_layout_get_name@Base 0.9.2 lightdm_layout_get_short_description@Base 0.9.2 lightdm_layout_get_type@Base 0.9.2 lightdm_message_type_get_type@Base 1.15.2 lightdm_prompt_type_get_type@Base 1.15.2 lightdm_restart@Base 0.9.2 lightdm_session_get_comment@Base 0.9.2 lightdm_session_get_key@Base 0.9.2 lightdm_session_get_name@Base 0.9.2 lightdm_session_get_session_type@Base 1.7.8 lightdm_session_get_type@Base 0.9.2 lightdm_set_layout@Base 0.9.2 lightdm_shutdown@Base 0.9.2 lightdm_suspend@Base 0.9.2 lightdm_user_get_background@Base 1.1.1 lightdm_user_get_display_name@Base 0.9.2 lightdm_user_get_has_messages@Base 1.1.3 lightdm_user_get_home_directory@Base 0.9.2 lightdm_user_get_image@Base 0.9.2 lightdm_user_get_language@Base 0.9.2 lightdm_user_get_layout@Base 0.9.2 lightdm_user_get_layouts@Base 1.1.3 lightdm_user_get_logged_in@Base 0.9.2 lightdm_user_get_name@Base 0.9.2 lightdm_user_get_real_name@Base 0.9.2 lightdm_user_get_session@Base 0.9.2 lightdm_user_get_type@Base 0.9.2 lightdm_user_get_uid@Base 1.11.1 lightdm_user_list_get_instance@Base 0.9.2 lightdm_user_list_get_length@Base 0.9.2 lightdm_user_list_get_type@Base 0.9.2 lightdm_user_list_get_user_by_name@Base 0.9.2 lightdm_user_list_get_users@Base 0.9.2 lightdm-1.18.1/debian/50-guest-wrapper.conf0000664000000000000000000000007612700600465015245 0ustar [Seat:*] guest-wrapper=/usr/lib/lightdm/lightdm-guest-session lightdm-1.18.1/debian/guest-session-startup.desktop0000664000000000000000000000022312700600465017244 0ustar [Desktop Entry] Name=Custom startup commands for LightDM guest session Type=Application NoDisplay=true Exec=/usr/lib/lightdm/guest-session-auto.sh lightdm-1.18.1/debian/liblightdm-gobject-1-doc.install0000664000000000000000000000005112700600465017363 0ustar usr/share/gtk-doc/html/lightdm-gobject-* lightdm-1.18.1/debian/source/0000775000000000000000000000000012700603563012646 5ustar lightdm-1.18.1/debian/source/format0000664000000000000000000000000412700600465014051 0ustar 1.0 lightdm-1.18.1/debian/po/0000775000000000000000000000000012700603563011764 5ustar lightdm-1.18.1/debian/po/br.po0000664000000000000000000000305312700600465012726 0ustar # Breton translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-09-28 04:14+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Breton \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/ca@valencia.po0000664000000000000000000000442612700600465014516 0ustar # Catalan (Valencian) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-10-06 04:49+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Catalan (Valencian) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:37+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Cancel·la" #~ msgid "Hibernate" #~ msgstr "Hiberna" #~ msgid "Large Font" #~ msgstr "Mida de lletra gran" #~ msgid "Restart..." #~ msgstr "Reinicia..." #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Esteu segur que voleu tancar tots els programes i reiniciar l'ordinador?" #~ msgid "Restart" #~ msgstr "Reinicia" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Esteu segur que voleu tancar tots els programes i aturar l'ordinador?" #~ msgid "Shutdown" #~ msgstr "Atura" #~ msgid "Shutdown..." #~ msgstr "Atura..." #~ msgid "Suspend" #~ msgstr "Atura temporalment" lightdm-1.18.1/debian/po/tr.po0000664000000000000000000000572412700600465012757 0ustar # Turkish translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2013-11-01 15:33+0000\n" "Last-Translator: Volkan Gezer \n" "Language-Team: Turkish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Öntanımlı görüntü yöneticisi:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "X Pencere Sistemi için grafiksel oturum açma yetenekleri sağlayan bir " "görüntü yönetici programı." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Belirtilen X sunucusunu sadece bir görüntü yöneticisi çalıştırabilir ancak " "birden fazla görüntü yöneticisi kurulu. Lütfen öntanımlı olarak " "çalıştırılacak görüntü yöneticisini seçin." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Farklı sunucuları yönetmek üzere yapılandırılmışlarsa, birden fazla görüntü " "yöneticisi çalışabilir. Bunun için görüntü yöneticilerinin ilgili " "/etc/init.d dosyalarını düzenleyerek yapılandırın ve öntanımlı görüntü " "yöneticisi seçimi denetlemesini devre dışı bırakın." #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Tüm programları sonlandırıp bilgisayarı kapatmak istediğinize emin misiniz?" #~ msgid "Large Font" #~ msgstr "Büyük Yazı Tipi" #~ msgid "Cancel" #~ msgstr "Vazgeç" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Tüm programları sonlandırıp bilgisayarı yeniden başlatmak istediğinize emin " #~ "misiniz?" #~ msgid "Shutdown" #~ msgstr "Bilgisayarı Kapat" #~ msgid "Restart" #~ msgstr "Yeniden Başlat" #~ msgid "Hibernate" #~ msgstr "Hazırda Beklet" #~ msgid "Restart..." #~ msgstr "Yeniden Başlat..." #~ msgid "Suspend" #~ msgstr "Askıya Al" #~ msgid "Shutdown..." #~ msgstr "Kapat..." lightdm-1.18.1/debian/po/pothead.in0000664000000000000000000000174712700600465013747 0ustar # debconf templates for xorg-x11 package # # $Id: pothead.in 498 2005-08-05 01:55:05Z dnusinow $ # # Copyright: # Branden Robinson, 2000-2004 # # This file is distributed under the same license as the xorg-x11 package. # Please see debian/copyright. # # Translators, if you are not familiar with the PO format, gettext # documentation is worth reading, especially sections dedicated to # this format, e.g. by running: # info -n '(gettext)PO Files' # info -n '(gettext)Header Entry' # # Some information specific to po-debconf is available at # /usr/share/doc/po-debconf/README-trans # or http://www.debian.org/intl/l10n/po-debconf/README-trans # # Developers do not need to manually edit POT or PO files. # msgid "" msgstr "" "Project-Id-Version: SOURCE_VERSION\n" "Report-Msgid-Bugs-To: debian-x@lists.debian.org\n" "POT-Creation-Date: DATE\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" lightdm-1.18.1/debian/po/da.po0000664000000000000000000000442112700600465012707 0ustar # Danish translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-05-12 11:52+0000\n" "Last-Translator: Nicholas Christian Langkjær Ipsen " "\n" "Language-Team: Danish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "Stor skrifttype" #~ msgid "Cancel" #~ msgstr "Annuller" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Er du sikker på, at du vil afslutte alle programmer og genstarte computeren?" #~ msgid "Restart" #~ msgstr "Genstart" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Er du sikker på, at du vil afslutte alle programmer og lukke computeren?" #~ msgid "Shutdown" #~ msgstr "Luk ned" #~ msgid "Shutdown..." #~ msgstr "Luk ned..." #~ msgid "Hibernate" #~ msgstr "Dvale" #~ msgid "Restart..." #~ msgstr "Genstart..." #~ msgid "Suspend" #~ msgstr "Hvile" lightdm-1.18.1/debian/po/pt_BR.po0000664000000000000000000000445312700600465013336 0ustar # Brazilian Portuguese translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-08-05 20:50+0000\n" "Last-Translator: André Gondim \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Cancelar" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Você tem certeza de que deseja fechar todos os programas e reiniciar o " #~ "computador?" #~ msgid "Restart" #~ msgstr "Reiniciar" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Você tem certeza de que deseja fechar todos os programas e desligar o " #~ "computador?" #~ msgid "Hibernate" #~ msgstr "Hibernar" #~ msgid "Suspend" #~ msgstr "Suspender" #~ msgid "Large Font" #~ msgstr "Fonte grande" #~ msgid "Shutdown" #~ msgstr "Desligar" #~ msgid "Shutdown..." #~ msgstr "Desligar…" #~ msgid "Restart..." #~ msgstr "Reiniciar…" lightdm-1.18.1/debian/po/sc.po0000664000000000000000000000306112700600465012727 0ustar # Sardinian translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-11-27 18:07+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Sardinian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/kl.po0000664000000000000000000000312112700600465012725 0ustar # Greenlandic (Kalaallisut) translation for lightdm # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2013-09-10 11:28+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Greenlandic (Kalaallisut) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/ja.po0000664000000000000000000000453512700600465012723 0ustar # Japanese translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-12-23 02:36+0000\n" "Last-Translator: OKANO Takayoshi \n" "Language-Team: Japanese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "大きいフォント" #~ msgid "Cancel" #~ msgstr "キャンセル" #~ msgid "Restart..." #~ msgstr "再起動..." #~ msgid "Restart" #~ msgstr "再起動" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "本当にすべてのプログラムを終了しコンピューターをシャットダウンしますか?" #~ msgid "Shutdown" #~ msgstr "シャットダウン" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "本当にすべてのプログラムを終了し、コンピューターを再起動させますか?" #~ msgid "Shutdown..." #~ msgstr "シャットダウン..." #~ msgid "Suspend" #~ msgstr "サスペンド" #~ msgid "Hibernate" #~ msgstr "ハイバネート" lightdm-1.18.1/debian/po/gu.po0000664000000000000000000000305712700600465012742 0ustar # Gujarati translation for lightdm # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2013-01-02 14:51+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Gujarati \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/POTFILES.in0000664000000000000000000000005412700600465013536 0ustar [type: gettext/rfc822deb] lightdm.templates lightdm-1.18.1/debian/po/en_GB.po0000664000000000000000000000550412700600465013300 0ustar # English (United Kingdom) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2015-04-13 10:29+0000\n" "Last-Translator: Andi Chandler \n" "Language-Team: English (United Kingdom) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Default display manager:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." #~ msgid "Large Font" #~ msgstr "Large Font" #~ msgid "Cancel" #~ msgstr "Cancel" #~ msgid "Hibernate" #~ msgstr "Hibernate" #~ msgid "Restart..." #~ msgstr "Restart..." #~ msgid "Shutdown..." #~ msgstr "Shutdown..." #~ msgid "Suspend" #~ msgstr "Suspend" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Are you sure you want to close all programs and restart the computer?" #~ msgid "Restart" #~ msgstr "Restart" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgid "Shutdown" #~ msgstr "Shutdown" lightdm-1.18.1/debian/po/fr_CA.po0000664000000000000000000000310012700600465013266 0ustar # French (Canada) translation for lightdm # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2014-01-31 22:19+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: French (Canada) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/nn.po0000664000000000000000000000310112700600465012730 0ustar # Norwegian Nynorsk translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-10-22 12:20+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Norwegian Nynorsk \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/nl.po0000664000000000000000000000570012700600465012735 0ustar # Dutch translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2013-10-01 15:52+0000\n" "Last-Translator: Pjotr12345 \n" "Language-Team: Dutch \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Standaardvensterbeheerder:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "Een vensterbeheerder is een programma dat grafische aanmeldmogelijkheden " "biedt voor het X-Venstersysteem." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Slechts één vensterbeheerder kan een bepaalde X-server beheren, maar er zijn " "meerdere vensterbeheerderpakketten geïnstalleerd. Kies a.u.b. welke " "vensterbeheerder er standaard moet draaien." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Er kunnen meerdere vensterbeheerders gelijktijdig draaien indien zij zijn " "ingesteld om verschillende servers te beheren; om dit te bereiken kunt u de " "vensterbeheerders dienovereenkomstig instellen, elk van hun init-scripts " "bewerken in /etc/init.d, en de controle uitschakelen op de aanwezigheid van " "een standaardvensterbeheerder." #~ msgid "Large Font" #~ msgstr "Groot lettertype" #~ msgid "Cancel" #~ msgstr "Annuleren" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Weet u zeker dat u alle programma's wilt afsluiten en de computer wilt " #~ "herstarten?" #~ msgid "Restart" #~ msgstr "Herstarten" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Weet u zeker dat u alle programma's wilt afsluiten en de computer wilt " #~ "uitschakelen?" #~ msgid "Shutdown" #~ msgstr "Uitschakelen" #~ msgid "Suspend" #~ msgstr "Pauzestand" #~ msgid "Hibernate" #~ msgstr "Slaapstand" #~ msgid "Restart..." #~ msgstr "Herstarten…" #~ msgid "Shutdown..." #~ msgstr "Afsluiten..." lightdm-1.18.1/debian/po/am.po0000664000000000000000000000305512700600465012722 0ustar # Amharic translation for lightdm # Copyright (c) 2015 Rosetta Contributors and Canonical Ltd 2015 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2015. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2015-01-11 23:24+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Amharic \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/mi.po0000664000000000000000000000305112700600465012726 0ustar # Maori translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-07-24 01:41+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Maori \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/hu.po0000664000000000000000000000450112700600465012736 0ustar # Hungarian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-05-12 10:25+0000\n" "Last-Translator: Richard Somlói \n" "Language-Team: Hungarian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "Nagy betűméret" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Biztos benne, hogy bezárja az összes programot, és újraindítja a " #~ "számítógépet?" #~ msgid "Restart" #~ msgstr "Újraindítás" #~ msgid "Shutdown" #~ msgstr "Leállítás" #~ msgid "Hibernate" #~ msgstr "Hibernálás" #~ msgid "Shutdown..." #~ msgstr "Leállítás…" #~ msgid "Suspend" #~ msgstr "Felfüggesztés" #~ msgid "Restart..." #~ msgstr "Újraindítás…" #~ msgid "Cancel" #~ msgstr "Mégse" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Biztos benne, hogy bezárja az összes programot, és leállítja a számítógépet?" lightdm-1.18.1/debian/po/eu.po0000664000000000000000000000434312700600465012737 0ustar # Basque translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-05-17 18:49+0000\n" "Last-Translator: Asier Sarasua Garmendia \n" "Language-Team: Basque \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "Letra-tipo handia" #~ msgid "Cancel" #~ msgstr "Utzi" #~ msgid "Restart" #~ msgstr "Berrabiarazi" #~ msgid "Shutdown" #~ msgstr "Itzali" #~ msgid "Hibernate" #~ msgstr "Hibernatu" #~ msgid "Restart..." #~ msgstr "Berrabiarazi..." #~ msgid "Shutdown..." #~ msgstr "Itzali..." #~ msgid "Suspend" #~ msgstr "Eseki" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Ziur programa guztiak itxi eta ordenagailua berrabiarazi nahi duzula?" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Ziur programa guztiak itxi eta ordenagailua itzali nahi duzula?" lightdm-1.18.1/debian/po/fo.po0000664000000000000000000000305512700600465012731 0ustar # Faroese translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-12-18 23:45+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Faroese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/ar.po0000664000000000000000000000536012700600465012730 0ustar # Arabic translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2014-03-31 17:33+0000\n" "Last-Translator: Ibrahim Saed \n" "Language-Team: Arabic \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "مدير العرض الافتراضي:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "مدير العرض هو برنامج يتيح لك إمكانية الولوج بطريقة عرض رسومية لنظام نوافذ X." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "مدير عرض واحد فقط يمكنه إدارة خادوم X المُعطى، ولكن يوجد حزم عديدة مُثبّتة " "من مدير العرض. رجاءً اختر أي مدير عرض ترغب بتشغيله افتراضيا." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "خط كبير" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "أمتأكد أنك ترغب في إغلاق كل البرامج وإعادة تشغيل الحاسوب؟" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "أمتأكد أنك ترغب في إغلاق كل البرامج وتوقيف الحاسوب؟" #~ msgid "Cancel" #~ msgstr "إلغاء" #~ msgid "Restart" #~ msgstr "إعادة تشغيل" #~ msgid "Shutdown" #~ msgstr "أطفئ" #~ msgid "Hibernate" #~ msgstr "إسبات" #~ msgid "Restart..." #~ msgstr "أعِد التشغيل..." #~ msgid "Shutdown..." #~ msgstr "أطفئ..." #~ msgid "Suspend" #~ msgstr "تعليق" lightdm-1.18.1/debian/po/es.po0000664000000000000000000000551712700600465012741 0ustar # Spanish translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2014-08-05 08:52+0000\n" "Last-Translator: Adolfo Jayme \n" "Language-Team: Spanish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Gestor de sesiones predeterminado:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "Un gestor de sesiones es un programa que provee al Sistema de ventanas X de " "una forma gráfica de iniciar una sesión." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Solo un gestor de sesiones puede gestionar un servidor X dado, pero hay " "varios gestores instalados. Elija cuál quiere ejecutar de manera " "predeterminada." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Se pueden ejecutar varios gestores de sesiones si se configuran para manejar " "servidores distintos. Para hacer esto, edite las secuencias de órdenes de " "init de cada gestor (en /etc/init.d) y desactive la comprobación de gestor " "de sesiones predeterminado." #~ msgid "Cancel" #~ msgstr "Cancelar" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "¿Está seguro de que quiere cerrar todos los programas y reiniciar el equipo?" #~ msgid "Restart" #~ msgstr "Reiniciar" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "¿Está seguro de que quiere cerrar todos los programas y apagar el equipo?" #~ msgid "Shutdown" #~ msgstr "Apagar" #~ msgid "Hibernate" #~ msgstr "Hibernar" #~ msgid "Restart..." #~ msgstr "Reiniciar..." #~ msgid "Shutdown..." #~ msgstr "Apagar..." #~ msgid "Suspend" #~ msgstr "Suspender" #~ msgid "Large Font" #~ msgstr "Tipografía grande" lightdm-1.18.1/debian/po/it.po0000664000000000000000000000431212700600465012736 0ustar # Italian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2010-12-15 18:29+0000\n" "Last-Translator: turnick \n" "Language-Team: Italian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Annulla" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "Chiudere veramente tutti i programmi e riavviare il computer?" #~ msgid "Restart" #~ msgstr "Riavvia" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Chiudere veramente tutti i programmi e arrestare il computer?" #~ msgid "Shutdown" #~ msgstr "Arresta" #~ msgid "Hibernate" #~ msgstr "Iberna" #~ msgid "Restart..." #~ msgstr "Riavvia..." #~ msgid "Shutdown..." #~ msgstr "Arresta..." #~ msgid "Suspend" #~ msgstr "Sospendi" #~ msgid "Large Font" #~ msgstr "Caratteri grandi" lightdm-1.18.1/debian/po/id.po0000664000000000000000000000425612700600465012725 0ustar # Indonesian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-10-07 06:56+0000\n" "Last-Translator: Dirgita \n" "Language-Team: Indonesian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Batal" #~ msgid "Restart" #~ msgstr "Nyalakan Ulang" #~ msgid "Shutdown" #~ msgstr "Matikan" #~ msgid "Hibernate" #~ msgstr "Hibernasi" #~ msgid "Shutdown..." #~ msgstr "Matikan..." #~ msgid "Large Font" #~ msgstr "Fonta Besar" #~ msgid "Suspend" #~ msgstr "Suspensi" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "Tutup semua program dan nyalakan ulang komputer?" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Tutup semua program dan matikan komputer?" #~ msgid "Restart..." #~ msgstr "Nyalakan Ulang..." lightdm-1.18.1/debian/po/th.po0000664000000000000000000000520212700600465012734 0ustar # Thai translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-07-19 14:52+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Thai \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "แบบตัวอักษรขนาดใหญ่" #~ msgid "Cancel" #~ msgstr "ยกเลิก" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "คุณแน่ใจหรือไม่ที่จะปิดโปรแกรมทั้งหมดและเริ่มเปิดเครื่องคอมพิวเตอร์ใหม่" #~ msgid "Hibernate" #~ msgstr "หยุดพักเครื่อง" #~ msgid "Restart..." #~ msgstr "เริ่มใหม่..." #~ msgid "Restart" #~ msgstr "เริ่มใหม่" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "คุณแน่ใจว่าต้องการปิดโปรแกรมทั้งหมดแล้วปิดเครื่อง" #~ msgid "Shutdown" #~ msgstr "ปิดเครื่อง" #~ msgid "Shutdown..." #~ msgstr "ปิดเครื่อง..." #~ msgid "Suspend" #~ msgstr "ปิดพักเครื่อง" lightdm-1.18.1/debian/po/pt.po0000664000000000000000000000570112700600465012750 0ustar # Portuguese translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2015-09-08 21:50+0000\n" "Last-Translator: Ivo Xavier \n" "Language-Team: Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Gerenciador de janelas padrão:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "O gerenciador de tela é um programa que fornece a capacidade de um login " "gráfico para o X Sistema de Janelas" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Apenas um gerenciador de janela pode gerenciar um determinado servidor X, " "mas vários pacotes de gerenciador de janelas estão instalados. Por favor, " "selecione qual gerenciador de janelas deve ser executado por padrão." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Múltiplos gerenciadores de telas podem correr em simultâneo, se estiverem " "configurados para gerir diferentes servidores; para que seja possível, " "configure o gerenciador de tela corretamente, edite cada um dos seus scripts " "de iniciação em /etc/init.d, e desative a opção de gerenciador de telas " "padrão." #~ msgid "Cancel" #~ msgstr "Cancelar" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Tem a certeza que deseja fechar todos os programas e reiniciar o computador?" #~ msgid "Restart" #~ msgstr "Reiniciar" #~ msgid "Shutdown" #~ msgstr "Encerrar" #~ msgid "Hibernate" #~ msgstr "Hibernar" #~ msgid "Restart..." #~ msgstr "Reiniciar..." #~ msgid "Shutdown..." #~ msgstr "Encerrar..." #~ msgid "Suspend" #~ msgstr "Suspender" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Tem certeza que quer fechar todos os programas e desligar o computador?" #~ msgid "Large Font" #~ msgstr "Fonte Grande" lightdm-1.18.1/debian/po/ur.po0000664000000000000000000000304712700600465012754 0ustar # Urdu translation for lightdm # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2014-09-08 15:19+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Urdu \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/sk.po0000664000000000000000000000561712700600465012750 0ustar # Slovak translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2016-01-30 13:59+0000\n" "Last-Translator: Dusan Kazik \n" "Language-Team: Slovak \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Predvolený správca zobrazenia:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "Správca zobrazenia je program, ktorý poskytuje možnosti grafického " "prihlásenia pre systém okien X." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Iba jeden správca zobrazenia môže spravovať daný server X, ale je " "nainštalovaných viacero balíkov správcov zobrazenia. Prosím, vyberte, ktorý " "správca zobrazenia by mal byť predvolene spustený." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Viacero správcov zobrazenia môže byť spustených naraz, ak sú nastavené, aby " "spravovali rozličné servery. Toto docielite adekvátnym nastavením správcov " "zobrazenia. Upravte každému inicializačný skript v /etc/init.d a zakážte " "kontrolu predvoleného správcu zobrazenia." #~ msgid "Shutdown" #~ msgstr "Vypnúť" #~ msgid "Large Font" #~ msgstr "Veľké písmo" #~ msgid "Cancel" #~ msgstr "Zrušiť" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Ste si istý, že chcete zavrieť všetky programy a reštartovať počítač?" #~ msgid "Restart" #~ msgstr "Reštartovať" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Ste si istý, že chcete zavrieť všetky programy a vypnúť počítač?" #~ msgid "Hibernate" #~ msgstr "Hibernovať" #~ msgid "Restart..." #~ msgstr "Reštartovať..." #~ msgid "Shutdown..." #~ msgstr "Vypnúť..." #~ msgid "Suspend" #~ msgstr "Uspať" lightdm-1.18.1/debian/po/sl.po0000664000000000000000000000445712700600465012752 0ustar # Slovenian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-10-31 17:34+0000\n" "Last-Translator: Matej Urbančič \n" "Language-Team: Slovenian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "Velika pisava" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Ali ste prepričani, da želite zapreti vse programe in ponovno zagnati " #~ "računalnik?" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Ali ste prepričani, da želite zapreti vse programe in izklopiti računalnik?" #~ msgid "Shutdown..." #~ msgstr "Izklopi ..." #~ msgid "Cancel" #~ msgstr "Prekliči" #~ msgid "Hibernate" #~ msgstr "V mirovanje" #~ msgid "Restart..." #~ msgstr "Ponovni zagon ..." #~ msgid "Restart" #~ msgstr "Ponovno zaženi" #~ msgid "Shutdown" #~ msgstr "Izklopi" #~ msgid "Suspend" #~ msgstr "V pripravljenost" lightdm-1.18.1/debian/po/si.po0000664000000000000000000000306112700600465012735 0ustar # Sinhalese translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-10-02 22:24+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Sinhalese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/nb.po0000664000000000000000000000556312700600465012732 0ustar # Norwegian Bokmal translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2016-01-20 07:48+0000\n" "Last-Translator: Åka Sikrom \n" "Language-Team: Norwegian Bokmal \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Standard skjermbehandler:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "En skjermbehandler er et program som gir deg mulighet til å logge inn i " "vindusystemet X via et grafisk grensesnitt." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Du kan bare håndtere en X-tjener med én skjermbehandler om gangen, men flere " "skjermbehandler-pakker er installert. Velg hvilken skjermbehandler som skal " "brukes som standard." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Flere skjermbehandlere kan kjøre samtidig hvis de er satt opp til å behandle " "ulike tjenere. For at dette skal fungere må du sette opp skjermbehandlerne " "deretter, redigere oppstartsskriptene deres under /etc/init.d og slå av " "funksjonen som ser etter en standard skjermbehandler." #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Ønsker du å lukke alle programmer og starte datamaskinen på nytt?" #~ msgid "Large Font" #~ msgstr "Stor skrift" #~ msgid "Cancel" #~ msgstr "Avbryt" #~ msgid "Restart..." #~ msgstr "Omstart..." #~ msgid "Shutdown..." #~ msgstr "Slå av..." #~ msgid "Suspend" #~ msgstr "Hvilemodus" #~ msgid "Hibernate" #~ msgstr "Dvalemodus" #~ msgid "Restart" #~ msgstr "Start på nytt" #~ msgid "Shutdown" #~ msgstr "Slå av" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Er du sikker på at du vil lukke alle programmer og starte datamaskinen på " #~ "nytt?" lightdm-1.18.1/debian/po/en_AU.po0000664000000000000000000000440512700600465013314 0ustar # English (Australia) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-12-19 13:08+0000\n" "Last-Translator: Joel Pickett \n" "Language-Team: English (Australia) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:37+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "Large Font" #~ msgid "Cancel" #~ msgstr "Cancel" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Are you sure you want to close all programs and restart the computer?" #~ msgid "Hibernate" #~ msgstr "Hibernate" #~ msgid "Restart" #~ msgstr "Restart" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Are you sure you want to close all programs and shut down the computer?" #~ msgid "Shutdown" #~ msgstr "Shutdown" #~ msgid "Restart..." #~ msgstr "Restart..." #~ msgid "Shutdown..." #~ msgstr "Shutdown..." #~ msgid "Suspend" #~ msgstr "Suspend" lightdm-1.18.1/debian/po/km.po0000664000000000000000000000305112700600465012730 0ustar # Khmer translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-10-20 02:55+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Khmer \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/ia.po0000664000000000000000000000375712700600465012727 0ustar # Interlingua translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-05-11 04:43+0000\n" "Last-Translator: Emilio Sepulveda \n" "Language-Team: Interlingua \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Cancellar" #~ msgid "Restart" #~ msgstr "Re-initiar" #~ msgid "Hibernate" #~ msgstr "Hibernar" #~ msgid "Restart..." #~ msgstr "Reinitiar..." #~ msgid "Suspend" #~ msgstr "Suspender" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Secur que tu vole clauder tote le programmas e reinitiar le computator?" #~ msgid "Shutdown..." #~ msgstr "Clauder omne..." lightdm-1.18.1/debian/po/ne.po0000664000000000000000000000305312700600465012725 0ustar # Nepali translation for lightdm # Copyright (c) 2015 Rosetta Contributors and Canonical Ltd 2015 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2015. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2015-11-05 06:07+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Nepali \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/shn.po0000664000000000000000000000305012700600465013110 0ustar # Shan translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-01-18 13:54+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Shan \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/ug.po0000664000000000000000000000450412700600465012740 0ustar # Uyghur translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-03-02 04:52+0000\n" "Last-Translator: Gheyret T.Kenji \n" "Language-Team: Uyghur \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Hibernate" #~ msgstr "ئۈچەك" #~ msgid "Restart..." #~ msgstr "قايتا قوزغات…" #~ msgid "Shutdown..." #~ msgstr "تاقا…" #~ msgid "Suspend" #~ msgstr "توڭلات" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "ھەممە پروگراممىنى ئېتىپ كومپيۇتېرنى قايتا قوزغامسىز؟" #~ msgid "Restart" #~ msgstr "قايتا قوزغات" #~ msgid "Shutdown" #~ msgstr "تاقا" #~ msgid "Cancel" #~ msgstr "ۋاز كەچ" #~ msgid "Large Font" #~ msgstr "چوڭ خەت نۇسخىسى" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "بارلىق پروگراممىنى يېپىپ، كومپيۇتېرنى تاقامسىز؟" lightdm-1.18.1/debian/po/sr.po0000664000000000000000000000726612700600465012761 0ustar # Serbian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # Мирослав Николић , 2011. msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2013-10-22 19:35+0000\n" "Last-Translator: Мирослав Николић \n" "Language-Team: Launchpad Serbian Translators\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" "Language: sr\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Основни управник приказа:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "Управник приказа је програм који обезбеђује могућности графичког " "пријављивања за систем прозора Икс." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Само један управник приказа може управљати датим Икс сервером, али је " "инсталирано неколико пакета управника приказа. Молим изаберите који ће " "управник приказа бити подразумевано покренут." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Више управника приказа може радити истовремено ако су подешени да управљају " "различитим серверима; да постигнете ово, подесите управнике приказа тако што " "ћете уредити сваку од њихових покретачких скрипти у „/etc/init.d“, и " "искључити проверу за подразумеваним управником приказа." #~ msgid "Cancel" #~ msgstr "Откажи" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Да ли сте сигурни да желите да затворите све програме и да поново покренете " #~ "рачунар?" #~ msgid "Large Font" #~ msgstr "Већи словни ликови" #~ msgid "Hibernate" #~ msgstr "Замрзни" #~ msgid "Restart" #~ msgstr "Поново покрени" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Да ли сте сигурни да желите да затворите све програме и да угасите рачунар?" #~ msgid "Shutdown" #~ msgstr "Угаси" #~ msgid "Shutdown..." #~ msgstr "Угаси..." #~ msgid "Suspend" #~ msgstr "Обустави" #~ msgid "Restart..." #~ msgstr "Поново покрени..." lightdm-1.18.1/debian/po/ga.po0000664000000000000000000000305112700600465012710 0ustar # Irish translation for lightdm # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2014-12-15 20:50+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Irish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/an.po0000664000000000000000000000306112700600465012720 0ustar # Aragonese translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-02-29 09:26+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Aragonese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/kn.po0000664000000000000000000000305512700600465012735 0ustar # Kannada translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-06-01 09:17+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Kannada \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/mr.po0000664000000000000000000000305512700600465012743 0ustar # Marathi translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-06-20 03:35+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Marathi \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/templates.pot0000664000000000000000000000272212700600465014507 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: lightdm@packages.debian.org\n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/oc.po0000664000000000000000000000310512700600465012722 0ustar # Occitan (post 1500) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-08-14 13:45+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Occitan (post 1500) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/ro.po0000664000000000000000000000445212700600465012747 0ustar # Romanian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2010-10-15 10:38+0000\n" "Last-Translator: Lucian Adrian Grijincu \n" "Language-Team: Romanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "Font mare" #~ msgid "Cancel" #~ msgstr "Renunță" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Sigur doriți să închideți toate aplicațiile și să reporniți calculatorul?" #~ msgid "Restart" #~ msgstr "Repornește" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Sigur doriți să închideți toate aplicațiile și să închideți calculatorul?" #~ msgid "Shutdown" #~ msgstr "Închide calculatorul" #~ msgid "Hibernate" #~ msgstr "Hibernare" #~ msgid "Restart..." #~ msgstr "Repornire..." #~ msgid "Shutdown..." #~ msgstr "Oprire..." #~ msgid "Suspend" #~ msgstr "Suspendare" lightdm-1.18.1/debian/po/bs.po0000664000000000000000000000443212700600465012731 0ustar # Bosnian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-03-16 12:36+0000\n" "Last-Translator: Kenan Dervišević \n" "Language-Team: Bosnian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Jeste li sigurni da želite zatvoriti sve programe i isključiti računar?" #~ msgid "Large Font" #~ msgstr "Veliki font" #~ msgid "Hibernate" #~ msgstr "Hibernacija" #~ msgid "Restart..." #~ msgstr "Ponovo pokreni..." #~ msgid "Shutdown..." #~ msgstr "Gašenje..." #~ msgid "Restart" #~ msgstr "Ponovo pokreni" #~ msgid "Suspend" #~ msgstr "Suspenduj" #~ msgid "Cancel" #~ msgstr "Odustani" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Da li ste sigurni da želite da zatvorite sve programe i da ponovo pokrenete " #~ "računar?" #~ msgid "Shutdown" #~ msgstr "Ugasi" lightdm-1.18.1/debian/po/en_CA.po0000664000000000000000000000310212700600465013263 0ustar # English (Canada) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-09-27 22:00+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: English (Canada) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:37+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/mhr.po0000664000000000000000000000307212700600465013112 0ustar # Mari (Meadow) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-10-16 13:52+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Mari (Meadow) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:37+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/te.po0000664000000000000000000000305312700600465012733 0ustar # Telugu translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-08-02 13:14+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Telugu \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/ru.po0000664000000000000000000000473312700600465012757 0ustar # Russian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-07-26 18:23+0000\n" "Last-Translator: Alexey Ivanov \n" "Language-Team: Russian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "Крупный шрифт" #~ msgid "Cancel" #~ msgstr "Отмена" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Вы действительно хотите закрыть все приложения и перезагрузить компьютер?" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Вы действительно хотите закрыть все приложения и выключить компьютер?" #~ msgid "Hibernate" #~ msgstr "Спящий режим" #~ msgid "Suspend" #~ msgstr "Ждущий режим" #~ msgid "Restart" #~ msgstr "Перезагрузить" #~ msgid "Shutdown" #~ msgstr "Выключить" #~ msgid "Restart..." #~ msgstr "Перезагрузить..." #~ msgid "Shutdown..." #~ msgstr "Выключить..." lightdm-1.18.1/debian/po/be.po0000664000000000000000000000306312700600465012712 0ustar # Belarusian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-07-27 04:54+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Belarusian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/el.po0000664000000000000000000000507012700600465012724 0ustar # Greek translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-02-19 23:40+0000\n" "Last-Translator: Simos Xenitellis  \n" "Language-Team: Greek \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Ακύρωση" #~ msgid "Hibernate" #~ msgstr "Αδρανοποίηση" #~ msgid "Restart" #~ msgstr "Επανεκκίνηση" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Είστε βέβαιοι ότι θέλετε να κλείσετε όλα τα προγράμματα και να " #~ "απενεργοποιήσετε τον υπολογιστή;" #~ msgid "Shutdown" #~ msgstr "Τερματισμός" #~ msgid "Suspend" #~ msgstr "Αναμονή" #~ msgid "Large Font" #~ msgstr "Μεγάλη γραμματοσειρά" #~ msgid "Restart..." #~ msgstr "Επανεκκίνηση..." #~ msgid "Shutdown..." #~ msgstr "Τερματισμός..." #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Είστε βέβαιοι ότι θέλετε να κλείσετε όλα τα προγράμματα και να " #~ "επανεκκινήσετε τον υπολογιστή;" lightdm-1.18.1/debian/po/vi.po0000664000000000000000000000446312700600465012747 0ustar # Vietnamese translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-09-07 16:33+0000\n" "Last-Translator: Lê Hoàng Phương \n" "Language-Team: Vietnamese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Hủy bỏ" #~ msgid "Hibernate" #~ msgstr "Ngủ đông" #~ msgid "Restart..." #~ msgstr "Khởi động lại..." #~ msgid "Shutdown..." #~ msgstr "Tắt máy..." #~ msgid "Suspend" #~ msgstr "Tạm ngưng" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "Bạn có chắc muốn đóng tất cả chương trình và khởi động lại máy tính?" #~ msgid "Restart" #~ msgstr "Khởi động lại" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Bạn có chắc muốn đóng tất cả chương trình và tắt máy tính?" #~ msgid "Shutdown" #~ msgstr "Tắt máy" #~ msgid "Large Font" #~ msgstr "Phông chữ lớn" lightdm-1.18.1/debian/po/sv.po0000664000000000000000000000436312700600465012760 0ustar # Swedish translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-03-09 23:25+0000\n" "Last-Translator: Daniel Nylander \n" "Language-Team: Swedish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Shutdown" #~ msgstr "Stäng av" #~ msgid "Large Font" #~ msgstr "Stort typsnitt" #~ msgid "Cancel" #~ msgstr "Avbryt" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "Är du säker på att du vill stänga alla program och starta om datorn?" #~ msgid "Restart" #~ msgstr "Starta om" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Är du säker på att du vill stänga alla program och stänga av datorn?" #~ msgid "Hibernate" #~ msgstr "Viloläge" #~ msgid "Restart..." #~ msgstr "Starta om..." #~ msgid "Shutdown..." #~ msgstr "Stäng av..." #~ msgid "Suspend" #~ msgstr "Vänteläge" lightdm-1.18.1/debian/po/ca.po0000664000000000000000000000440612700600465012711 0ustar # Catalan translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-10-05 21:13+0000\n" "Last-Translator: David Planella \n" "Language-Team: Catalan \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Cancel·la" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Esteu segur que voleu tancar tots els programes i reiniciar l'ordinador?" #~ msgid "Restart" #~ msgstr "Reinicia" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Esteu segur que voleu tancar tots els programes i aturar l'ordinador?" #~ msgid "Shutdown" #~ msgstr "Atura" #~ msgid "Hibernate" #~ msgstr "Hiberna" #~ msgid "Restart..." #~ msgstr "Reinicia..." #~ msgid "Shutdown..." #~ msgstr "Atura..." #~ msgid "Suspend" #~ msgstr "Atura temporalment" #~ msgid "Large Font" #~ msgstr "Mida de lletra gran" lightdm-1.18.1/debian/po/sd.po0000664000000000000000000000305312700600465012731 0ustar # Sindhi translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-10-15 16:41+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Sindhi \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/zh_TW.po0000664000000000000000000000412312700600465013355 0ustar # Chinese (Traditional) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2014-03-16 03:54+0000\n" "Last-Translator: Walter Cheuk \n" "Language-Team: Chinese (Traditional) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:37+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "預設顯示管理員:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "顯示管理員為 X 視窗系統提供圖像化登入。" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Hibernate" #~ msgstr "休眠" #~ msgid "Suspend" #~ msgstr "暫停" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "您確定要關閉所有程式,並重新啟動電腦?" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "您確定要關閉所有程式,並關閉電腦?" #~ msgid "Large Font" #~ msgstr "大字型" lightdm-1.18.1/debian/po/zh_CN.po0000664000000000000000000000430412700600465013324 0ustar # Chinese (Simplified) translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2010-12-28 10:03+0000\n" "Last-Translator: Wheat0r Hou \n" "Language-Team: Chinese (Simplified) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:37+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "大字体" #~ msgid "Cancel" #~ msgstr "取消" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "您确定要关闭所有程序并重新启动计算机?" #~ msgid "Restart" #~ msgstr "重启" #~ msgid "Shutdown" #~ msgstr "关机" #~ msgid "Hibernate" #~ msgstr "休眠" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "您确定要关闭所有程序并关闭计算机?" #~ msgid "Shutdown..." #~ msgstr "关闭..." #~ msgid "Restart..." #~ msgstr "重启..." #~ msgid "Suspend" #~ msgstr "待机" lightdm-1.18.1/debian/po/fy.po0000664000000000000000000000305512700600465012743 0ustar # Frisian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-08-21 11:54+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Frisian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/eo.po0000664000000000000000000000441312700600465012727 0ustar # Esperanto translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2015-08-10 08:25+0000\n" "Last-Translator: Adolfo Jayme \n" "Language-Team: Esperanto \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Defaŭlta ekranadministrilo:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Nuligi" #~ msgid "Shutdown" #~ msgstr "Elŝalti" #~ msgid "Suspend" #~ msgstr "Paŭzigi" #~ msgid "Shutdown..." #~ msgstr "Elŝalti..." #~ msgid "Hibernate" #~ msgstr "Pasivumigi" #~ msgid "Large Font" #~ msgstr "Granda tiparo" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "Ĉu vi certe volas fermi ĉiujn programojn kaj restarti la komputilon?" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Ĉu vi certe volas fermi ĉiujn programojn kaj elŝalti la komputilon?" #~ msgid "Restart" #~ msgstr "Restartigi" #~ msgid "Restart..." #~ msgstr "Restartigi..." lightdm-1.18.1/debian/po/uk.po0000664000000000000000000000466212700600465012751 0ustar # Ukrainian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2010-09-10 11:53+0000\n" "Last-Translator: Sergiy Gavrylov \n" "Language-Team: Ukrainian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "Великий шрифт" #~ msgid "Shutdown" #~ msgstr "Вимкнути" #~ msgid "Cancel" #~ msgstr "Скасувати" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "Ви дійсно бажаєте закрити всі програми та перезавантажити комп'ютер?" #~ msgid "Hibernate" #~ msgstr "Режим сну" #~ msgid "Restart..." #~ msgstr "Перезапустити..." #~ msgid "Shutdown..." #~ msgstr "Вимкнути..." #~ msgid "Restart" #~ msgstr "Перезапустити" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Ви дійсно бажаєте закрити всі програми та вимкнути комп'ютер?" #~ msgid "Suspend" #~ msgstr "Призупинити" lightdm-1.18.1/debian/po/lb.po0000664000000000000000000000447112700600465012725 0ustar # Luxembourgish translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-06-16 13:20+0000\n" "Last-Translator: Edson \n" "Language-Team: Luxembourgish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Ofbriechen" #~ msgid "Shutdown" #~ msgstr "Ausmaachen" #~ msgid "Hibernate" #~ msgstr "Wanterschlof" #~ msgid "Restart..." #~ msgstr "Nei starten..." #~ msgid "Shutdown..." #~ msgstr "Ausmaachen..." #~ msgid "Large Font" #~ msgstr "Grouss Schrëft" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Sidd Dir sécher, dass Dir all Programmer zoumaachen an de Computer nei " #~ "starte wëllt?" #~ msgid "Restart" #~ msgstr "Nei starten" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Sidd Dir sécher, dass Dir all Programmer zoumaachen an de Computer ausmaache " #~ "wëllt?" #~ msgid "Suspend" #~ msgstr "Schlofmodus" lightdm-1.18.1/debian/po/ast.po0000664000000000000000000000434212700600465013114 0ustar # Asturian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-07-19 15:39+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Asturian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "Fonte Grande" #~ msgid "Cancel" #~ msgstr "Encaboxar" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "¿Daveres que quies zarrar tolos programes y reaniciar l'equipu?" #~ msgid "Hibernate" #~ msgstr "Ivernar" #~ msgid "Restart..." #~ msgstr "Rearrancar..." #~ msgid "Restart" #~ msgstr "Rearrancar" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "¿Tas seguru de que quies colar de tolos programes y apagar l'ordenador?" #~ msgid "Shutdown" #~ msgstr "Apagar" #~ msgid "Shutdown..." #~ msgstr "Apagar..." #~ msgid "Suspend" #~ msgstr "Suspender" lightdm-1.18.1/debian/po/hi.po0000664000000000000000000000417712700600465012733 0ustar # Hindi translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-03-27 14:57+0000\n" "Last-Translator: Abhijeet Kumar Singh \n" "Language-Team: Hindi \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Shutdown..." #~ msgstr "कंप्यूटर बंद करें" #~ msgid "Cancel" #~ msgstr "रद्द करें" #~ msgid "Shutdown" #~ msgstr "बंद करें" #~ msgid "Hibernate" #~ msgstr "सुषुप्तावस्था मे डालें" #~ msgid "Restart..." #~ msgstr "पुनः आरंभ करें..." #~ msgid "Suspend" #~ msgstr "निलम्बित करें" #~ msgid "Large Font" #~ msgstr "बड़ा फ़ॉन्ट" #~ msgid "Restart" #~ msgstr "फिर से चालू करें" lightdm-1.18.1/debian/po/ce.po0000664000000000000000000000305512700600465012714 0ustar # Chechen translation for lightdm # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2014-08-11 10:28+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Chechen \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/ml.po0000664000000000000000000000420012700600465012726 0ustar # Malayalam translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-10-13 09:14+0000\n" "Last-Translator: gireesh kumar k m \n" "Language-Team: Malayalam \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "വലിയ ഫോണ്ട്" #~ msgid "Restart..." #~ msgstr "പുനരാരംഭിക്കുക" #~ msgid "Shutdown..." #~ msgstr "നിര്‍ത്തുക" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "എല്ലാ പ്രോഗ്രാമുകളും അടചിട്ട്‌ കംപ്യൂട്ടര്‍ നിര്‍ത്തട്ടെ?" #~ msgid "Cancel" #~ msgstr "വേണ്ട" #~ msgid "Hibernate" #~ msgstr "ശിശിര നിദ്ര" lightdm-1.18.1/debian/po/fi.po0000664000000000000000000000565212700600465012730 0ustar # Finnish translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2014-03-20 01:40+0000\n" "Last-Translator: Pasi Lallinaho \n" "Language-Team: Finnish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Oletusnäytönhallintasovellus:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "Näytönhallintasovellus tarjoaa graafisen kirjautumismahdollisuuden X-" "ikkunointijärjestelmälle." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Vain yksi näytönhallintasovellus voi olla käynnissä X-palvelinta kohden, " "mutta useampia näytönhallintasovelluksia voi olla asennettuna. Valitse mikä " "näytönhallintasovellus tulisi käynnistää oletuksena." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Useammat näytönhallintasovellukset voivat olla käynnistä samaan aikaan " "mikäli ne ovat asetettu hallitsemaan eri palvelimia; saavuttaaksesi tämän, " "muokkaa näytönhallintasovellusten käynnistysasetuksia hakemistossa " "/etc/init.d sekä poista valinta oletusnäytönhallintasovelluksen kohdalta." #~ msgid "Shutdown" #~ msgstr "Sammuta" #~ msgid "Large Font" #~ msgstr "Suuri kirjasin" #~ msgid "Cancel" #~ msgstr "Peru" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Haluatko todella sulkea kaikki ohjelmat ja käynnistää tietokoneen uudelleen?" #~ msgid "Restart" #~ msgstr "Käynnistä uudelleen" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Haluatko todella sulkea kaikki ohjelmat ja sammuttaa tietokoneen?" #~ msgid "Restart..." #~ msgstr "Käynnistä uudelleen..." #~ msgid "Shutdown..." #~ msgstr "Sammuta..." #~ msgid "Hibernate" #~ msgstr "Lepotila" #~ msgid "Suspend" #~ msgstr "Valmiustila" lightdm-1.18.1/debian/po/lv.po0000664000000000000000000000305512700600465012746 0ustar # Latvian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-08-23 20:41+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Latvian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/fr.po0000664000000000000000000000577112700600465012743 0ustar # French translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2015-06-14 15:29+0000\n" "Last-Translator: Anne \n" "Language-Team: French \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Gestionnaire d'affichage par défaut :" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "Un gestionnaire d'affichage est un programme qui propose un environnement " "graphique de(s) session(s) des utilisateurs pour le système X Window." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Seul un gestionnaire d'affichage peut gérer un serveur X donné. Cependant, " "plusieurs paquets de gestion de l'affichage sont installés. Veuillez " "sélectionner quel gestionnaire d'affichage devrait être utilisé par défaut." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Plusieurs gestionnaires d'affichage peuvent fonctionner simultanément s'ils " "sont configurés pour gérer différents serveurs. Pour ce faire, configurez " "les gestionnaires d'affichage en conséquence, modifiez chacun de leurs " "scripts d'initialisation dans /etc/init.d , et désactivez la vérification " "d'un gestionnaire d'affichage par défaut." #~ msgid "Large Font" #~ msgstr "Grande police" #~ msgid "Cancel" #~ msgstr "Annuler" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "Voulez-vous fermer tous les programmes et redémarrer l'ordinateur ?" #~ msgid "Restart" #~ msgstr "Redémarrer" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Voulez-vous fermer tous les programmes et éteindre l'ordinateur ?" #~ msgid "Hibernate" #~ msgstr "Hiberner" #~ msgid "Restart..." #~ msgstr "Redémarrer..." #~ msgid "Shutdown..." #~ msgstr "Éteindre..." #~ msgid "Suspend" #~ msgstr "Mettre en veille" #~ msgid "Shutdown" #~ msgstr "Éteindre" lightdm-1.18.1/debian/po/ht.po0000664000000000000000000000311512700600465012735 0ustar # Haitian; Haitian Creole translation for lightdm # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2014-09-13 23:01+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Haitian; Haitian Creole \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/uz.po0000664000000000000000000000460512700600465012765 0ustar # Uzbek translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-09-01 17:00+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Uzbek \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "Катта шрифт" #~ msgid "Cancel" #~ msgstr "Бекор қилиш" #~ msgid "Suspend" #~ msgstr "Кутиш усули" #~ msgid "Hibernate" #~ msgstr "Уйқуга кетиш" #~ msgid "Restart..." #~ msgstr "Ўчириб-ёқиш" #~ msgid "Shutdown..." #~ msgstr "Ўчириш" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "Ҳамма дастурларни ёпишга ва компьютерни ўчириб-ёқишга розимисиз?" #~ msgid "Restart" #~ msgstr "Ўчириб-ёқиш" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Барча дастурларни ёпишни ва компьютерни ўчиришни хоҳлайсизми?" #~ msgid "Shutdown" #~ msgstr "Ўчириш" lightdm-1.18.1/debian/po/de.po0000664000000000000000000000603412700600465012715 0ustar # German translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2015-08-20 12:56+0000\n" "Last-Translator: Tobias Bannert \n" "Language-Team: German \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Vorgegebene Anzeigenverwaltung:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "Eine Anzeigenverwaltung ist ein Programm, das eine grafische Anmeldefunktion " "für das X-Window-System bereitstellt." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Nur eine Anzeigenverwaltung kann einen bestimmten X-Server zu verwalten, " "aber mehrere Anzeigenverwaltungspakete sind installiert. Bitte die " "Anzeigenverwaltung auswählen, die standardmäßig ausgeführt werden soll." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Mehre Anzeigenverwaltungen können gleichzeitig ausgeführt werden, wenn sie " "so konfiguriert werden, um verschiedene Server zu verwalten; um das zu " "erreichen, bitte die Anzeigenverwaltungen entsprechend konfigurieren, bitte " "jedes ihrer Init-Skripte in /etc/init.d bearbeiten und das Überprüfen nach " "einer Standardanzeigenverwaltungs deaktivieren." #~ msgid "Large Font" #~ msgstr "Große Schrift" #~ msgid "Cancel" #~ msgstr "Abbrechen" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Sind Sie sicher, dass Sie alle Programme schließen und den Rechner neu " #~ "starten möchten?" #~ msgid "Restart" #~ msgstr "Neustart" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Sind Sie sicher, dass Sie alle Programme schließen und den Rechner " #~ "herunterfahren möchten?" #~ msgid "Shutdown..." #~ msgstr "Herunterfahren …" #~ msgid "Suspend" #~ msgstr "Energiesparmodus" #~ msgid "Hibernate" #~ msgstr "Ruhezustand" #~ msgid "Shutdown" #~ msgstr "Herunterfahren" #~ msgid "Restart..." #~ msgstr "Neu starten …" lightdm-1.18.1/debian/po/ckb.po0000664000000000000000000000310012700600465013053 0ustar # Kurdish (Sorani) translation for lightdm # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2013-04-14 06:40+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Kurdish (Sorani) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:37+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/gd.po0000664000000000000000000000441112700600465012714 0ustar # Gaelic; Scottish translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-08-16 22:47+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Gaelic; Scottish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Sguir dheth" #~ msgid "Hibernate" #~ msgstr "Dèan cadal-geamhraidh" #~ msgid "Restart..." #~ msgstr "Ath-thòisich..." #~ msgid "Suspend" #~ msgstr "Cuir dàil ann" #~ msgid "Shutdown" #~ msgstr "Dùin sìos" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "A bheil thu cinnteach gu bheil thu airson gach prògram a dhùnadh is an " #~ "coimpiutair ath-thòiseachadh?" #~ msgid "Restart" #~ msgstr "Ath-thòisich" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "A bheil thu cinnteach gu bheil thu airson gach prògram a dhùnadh agus an " #~ "coimpiutair a chur dheth?" lightdm-1.18.1/debian/po/cy.po0000664000000000000000000000305112700600465012734 0ustar # Welsh translation for lightdm # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2014-04-19 17:48+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Welsh \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/bo.po0000664000000000000000000000305512700600465012725 0ustar # Tibetan translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-11-09 02:38+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Tibetan \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/hr.po0000664000000000000000000000562212700600465012740 0ustar # Croatian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # gogo , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: gogo \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2016-02-04 20:43+0000\n" "Last-Translator: gogo \n" "Language-Team: Croatian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Zadani upravitelj zaslona:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "Upravitelj zaslona je program koji omogućuje grafičku prijavu za X sustav " "prozora." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Samo jedan upravitelj prozora može upravljati zadanim X poslužiteljem, dok " "je instalirano više upravitelja prozora. Odaberite koji upravitelj zaslona " "će se zadano pokretati." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Više upravitelja zaslona može se pokretati istovremeno ako su podešeni za " "upravljanjem različitim poslužiteljima; kako bi to postigli, podesite " "upravitelja zaslonom shodno tome, uredite svaku pojedinu datoteku njihove " "init skripte u /etc/init.d i onemogućite provjeru zadanog upravitelja " "zaslona." #~ msgid "Cancel" #~ msgstr "Otkaži" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Jeste li sigurni da želite zatvoriti sve programe i ponovno pokrenuti " #~ "računalo?" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Jeste li sigurni da želite zatvoriti sve programe i isključiti računalo?" #~ msgid "Shutdown..." #~ msgstr "Isključivanje..." #~ msgid "Hibernate" #~ msgstr "Hibernacija" #~ msgid "Restart" #~ msgstr "Ponovno pokretanje" #~ msgid "Shutdown" #~ msgstr "Isključivanje" #~ msgid "Restart..." #~ msgstr "Ponovno pokretanje..." #~ msgid "Suspend" #~ msgstr "Suspenzija" #~ msgid "Large Font" #~ msgstr "Velika slova" lightdm-1.18.1/debian/po/pl.po0000664000000000000000000000444012700600465012737 0ustar # Polish translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2015-12-28 11:13+0000\n" "Last-Translator: Piotr Strębski \n" "Language-Team: Polish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Domyślny menedżer wyświetlania:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "Duża czcionka" #~ msgid "Cancel" #~ msgstr "Anuluj" #~ msgid "Restart" #~ msgstr "Uruchom ponownie" #~ msgid "Shutdown" #~ msgstr "Wyłącz" #~ msgid "Restart..." #~ msgstr "Uruchom ponownie..." #~ msgid "Shutdown..." #~ msgstr "Wyłącz..." #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Zakończyć działanie wszystkich programów i ponownie uruchomić komputer?" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Zakończyć działanie wszystkich programów i wyłączyć komputer?" #~ msgid "Hibernate" #~ msgstr "Zahibernuj" #~ msgid "Suspend" #~ msgstr "Wstrzymaj" lightdm-1.18.1/debian/po/is.po0000664000000000000000000000306212700600465012736 0ustar # Icelandic translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-12-26 04:32+0000\n" "Last-Translator: Andri Thorlacius \n" "Language-Team: Icelandic \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/ku.po0000664000000000000000000000435612700600465012751 0ustar # Kurdish translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-10-03 23:00+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Kurdish \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "Curenivîsê mezin" #~ msgid "Cancel" #~ msgstr "Betal" #~ msgid "Shutdown..." #~ msgstr "Girtin..." #~ msgid "Hibernate" #~ msgstr "Xewa kûr" #~ msgid "Restart..." #~ msgstr "Dîsdestpêkirin..." #~ msgid "Suspend" #~ msgstr "Xew" #~ msgid "Restart" #~ msgstr "Dîsdestpêkirin" #~ msgid "Shutdown" #~ msgstr "Girtin" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Bi rastî dixwazî hemû bernameyan bigirî û komputerê dîsa bidî destpêkirin?" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Bi rastî dixwazî hemû bernameyan û komputerê bigirî?" lightdm-1.18.1/debian/po/pa.po0000664000000000000000000000305512700600465012725 0ustar # Punjabi translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-04-06 07:15+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Punjabi \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/sq.po0000664000000000000000000000441512700600465012751 0ustar # Albanian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-04-14 13:10+0000\n" "Last-Translator: Lulzim \n" "Language-Team: Albanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Anullo" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Jeni i sigurtë që dëshironi t'i mbyllni të gjitha programet dhe të rindizni " #~ "kompjuterin?" #~ msgid "Restart" #~ msgstr "Rindiz" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Jeni i sigurtë që dëshironi t'i mbyllni të gjitha programet dhe të fikni " #~ "kompjuterin?" #~ msgid "Shutdown" #~ msgstr "Fike" #~ msgid "Restart..." #~ msgstr "Rindiz..." #~ msgid "Shutdown..." #~ msgstr "Fike..." #~ msgid "Large Font" #~ msgstr "Gërma të Mëdha" #~ msgid "Hibernate" #~ msgstr "Hiberno" #~ msgid "Suspend" #~ msgstr "Pezullo" lightdm-1.18.1/debian/po/wae.po0000664000000000000000000000415212700600465013100 0ustar # Walser translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-05-17 18:24+0000\n" "Last-Translator: bortis \n" "Language-Team: Walser \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:37+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Abbräče" #~ msgid "Restart" #~ msgstr "Niwštart" #~ msgid "Restart..." #~ msgstr "Niwštart..." #~ msgid "Large Font" #~ msgstr "Groṣi šrift" #~ msgid "Shutdown..." #~ msgstr "Abšteḷe..." #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "Aḷi prograṃ gšlieṣe und de kompiuter niw štarte?" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Aḷi prograṃ gšlieṣe und de kompiuter abšteḷe?" #~ msgid "Shutdown" #~ msgstr "Abšteḷe" lightdm-1.18.1/debian/po/ta.po0000664000000000000000000000527312700600465012735 0ustar # Tamil translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-07-04 05:24+0000\n" "Last-Translator: Mel C \n" "Language-Team: Tamil \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Shutdown" #~ msgstr "முழுநிறுத்தம்" #~ msgid "Large Font" #~ msgstr "தடிமஎழுத்துரு" #~ msgid "Cancel" #~ msgstr "ரத்துசெய்" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "அனைத்து நிரல்களையும் மூடி கணினியை மீள்துவக்கம் செய்ய உறுதியாக உள்ளீர்களா?" #~ msgid "Restart" #~ msgstr "மீள்துவக்கு" #~ msgid "Hibernate" #~ msgstr "இடை உறக்கம்" #~ msgid "Restart..." #~ msgstr "மீள்துவக்கு" #~ msgid "Shutdown..." #~ msgstr "முழுநிறுத்தம்" #~ msgid "Suspend" #~ msgstr "ஒத்திப்போடு" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "அனைத்து நிரல்களையும் மூடி கணினியை முழுநிறுத்தம் செய்ய உறுதியாக உள்ளீர்களா?" lightdm-1.18.1/debian/po/fa.po0000664000000000000000000000305512700600465012713 0ustar # Persian translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-03-24 17:32+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Persian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/tg.po0000664000000000000000000000305112700600465012733 0ustar # Tajik translation for lightdm # Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2013. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2013-04-16 06:43+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Tajik \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/tl.po0000664000000000000000000000305512700600465012744 0ustar # Tagalog translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-11-06 07:32+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Tagalog \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/et.po0000664000000000000000000000437312700600465012741 0ustar # Estonian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-08-28 16:42+0000\n" "Last-Translator: Jalakas \n" "Language-Team: Estonian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Kas oled kindel, et tahad kõik programmid sulgeda ja arvuti taaskäivitada?" #~ msgid "Restart" #~ msgstr "Taaskäivita" #~ msgid "Shutdown" #~ msgstr "Lülita välja" #~ msgid "Large Font" #~ msgstr "Suur kiri" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Kas oled kindel, et tahad kõik programmid sulgeda ja arvuti välja lülitada?" #~ msgid "Suspend" #~ msgstr "Uinak" #~ msgid "Cancel" #~ msgstr "Loobu" #~ msgid "Hibernate" #~ msgstr "Talveuni" #~ msgid "Restart..." #~ msgstr "Taaskäivita..." #~ msgid "Shutdown..." #~ msgstr "Lülita välja..." lightdm-1.18.1/debian/po/my.po0000664000000000000000000000305512700600465012752 0ustar # Burmese translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-05-18 06:50+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Burmese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/cs.po0000664000000000000000000000546412700600465012740 0ustar # Czech translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2013-12-23 11:13+0000\n" "Last-Translator: Tadeáš Pařík \n" "Language-Team: Czech \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Výchozí zobrazovací manažer:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "Zobrazovací manažer je program, který zajišťuje grafické přihlašovací " "možnosti pro systém X Window." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Pouze jeden zobrazovací manažer může spravovat daný X server, je ovšem " "nainstalováno více zobrazovacích manažerů. Zvolte prosím výchozí zobrazovací " "manažer." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Jestliže je nastavena správa odlišných serverů, může běžet více " "zobrazovacích manažerů současně. Nastavení tohoto chování je možné docílit " "úpravou init skriptů v /etc/init.d a vypnutím kontroly výchozího " "zobrazovacího manažeru." #~ msgid "Large Font" #~ msgstr "Velké písmo" #~ msgid "Cancel" #~ msgstr "Storno" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "Opravdu chcete ukončit všechny programy a restartovat počítač?" #~ msgid "Restart" #~ msgstr "Restartovat" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Opravdu chcete ukončit všechny programy a vypnout počítač?" #~ msgid "Shutdown" #~ msgstr "Vypnout" #~ msgid "Hibernate" #~ msgstr "Hibernovat" #~ msgid "Restart..." #~ msgstr "Restartovat..." #~ msgid "Shutdown..." #~ msgstr "Vypnout..." #~ msgid "Suspend" #~ msgstr "Uspat" lightdm-1.18.1/debian/po/gl.po0000664000000000000000000000436412700600465012733 0ustar # Galician translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-08-24 14:34+0000\n" "Last-Translator: Fran Diéguez \n" "Language-Team: Galician \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Cancel" #~ msgstr "Cancelar" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Ten certeza de que desexa pechar todos os programas e reiniciar o computador?" #~ msgid "Large Font" #~ msgstr "Letras grandes" #~ msgid "Hibernate" #~ msgstr "Hibernar" #~ msgid "Restart" #~ msgstr "Reiniciar" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Ten certeza de que desexa pechar todos os programas e apagar o computador?" #~ msgid "Shutdown" #~ msgstr "Apagar" #~ msgid "Restart..." #~ msgstr "Reiniciar..." #~ msgid "Shutdown..." #~ msgstr "Apagar..." #~ msgid "Suspend" #~ msgstr "Suspender" lightdm-1.18.1/debian/po/ko.po0000664000000000000000000000412212700600465012732 0ustar # Korean translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-07-24 07:38+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Korean \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "큰 글꼴" #~ msgid "Cancel" #~ msgstr "취소" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "모든 프로그램을 닫고 컴퓨터를 다시 시작하겠습니까?" #~ msgid "Restart..." #~ msgstr "재시작..." #~ msgid "Hibernate" #~ msgstr "최대 절전 모드" #~ msgid "Restart" #~ msgstr "다시 시작" #~ msgid "Shutdown" #~ msgstr "컴퓨터 끄기" #~ msgid "Shutdown..." #~ msgstr "컴퓨터 끄기..." #~ msgid "Suspend" #~ msgstr "절전모드" lightdm-1.18.1/debian/po/zh_HK.po0000664000000000000000000000433112700600465013326 0ustar # Chinese (Hong Kong) translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-10-08 09:51+0000\n" "Last-Translator: Roy Chan \n" "Language-Team: Chinese (Hong Kong) \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "大字型" #~ msgid "Cancel" #~ msgstr "取消" #~ msgid "Restart..." #~ msgstr "重新啟動..." #~ msgid "Shutdown..." #~ msgstr "關機..." #~ msgid "Suspend" #~ msgstr "暫停" #~ msgid "Hibernate" #~ msgstr "休眠" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "您確定要關閉所有程式,並重新啟動電腦?" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "您確定要關閉所有程式,並關閉電腦?" #~ msgid "Shutdown" #~ msgstr "關機" #~ msgid "Restart" #~ msgstr "重新啟動" lightdm-1.18.1/debian/po/af.po0000664000000000000000000000306112700600465012710 0ustar # Afrikaans translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-07-24 11:54+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Afrikaans \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/hy.po0000664000000000000000000000305712700600465012747 0ustar # Armenian translation for lightdm # Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2014. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2014-10-27 11:23+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Armenian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/ms.po0000664000000000000000000000430412700600465012742 0ustar # Malay translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-07-21 02:26+0000\n" "Last-Translator: abuyop \n" "Language-Team: Malay \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "Fon Besar" #~ msgid "Cancel" #~ msgstr "Batal" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "Anda pasti ingin menutup semua perisian dan mulakan semula komputer?" #~ msgid "Hibernate" #~ msgstr "Hibernasi" #~ msgid "Restart..." #~ msgstr "Mula Semula..." #~ msgid "Restart" #~ msgstr "Mulakan Semula" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Anda pasti ingin menutup semua program dan matikan komputer?" #~ msgid "Shutdown" #~ msgstr "Matikan" #~ msgid "Shutdown..." #~ msgstr "Matikan..." #~ msgid "Suspend" #~ msgstr "Tangguh" lightdm-1.18.1/debian/po/lt.po0000664000000000000000000000556612700600465012755 0ustar # Lithuanian translation for lightdm # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2010. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2016-03-10 10:27+0000\n" "Last-Translator: Moo \n" "Language-Team: Lithuanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Numatytoji prisijungimo tvarkytuvė:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "Prisijungimo tvarkytuvė tai programa, kuri suteikia X langų sistemai " "grafines prisijungimo galimybes." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Pasirinktą X serverį tvarkyti gali tik viena prisijungimo tvarkytuvė, bet " "yra įdiegtos kelios prisijungimo tvarkytuvės. Pasirinkite kuri prisijungimo " "tvarkytuvė turėtų būti naudojama pagal nutylėjimą." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Vienu metu gali veikti kelios tvarkytuvės, jei jos sukonfigūruotos tvarkyti " "skirtingus serverius. Norėdami tokios veiksenos pakeiskite kiekvienos " "tvarkytuvės init scenarijus jų /etc/init.d ir išjunkite numatytosios " "tvarkytuvės aptikimą." #~ msgid "Large Font" #~ msgstr "Didelis šriftas" #~ msgid "Cancel" #~ msgstr "Atsisakyti" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Ar tikrai norite užverti visas programas ir paleisti kompiuterį iš naujo?" #~ msgid "Hibernate" #~ msgstr "Hibernuoti" #~ msgid "Restart" #~ msgstr "Paleisti iš naujo" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Ar tikrai norite užverti visas programas ir išjungti kompiuterį?" #~ msgid "Shutdown" #~ msgstr "Išjungti" #~ msgid "Shutdown..." #~ msgstr "Išjungti..." #~ msgid "Restart..." #~ msgstr "Paleisti iš naujo..." #~ msgid "Suspend" #~ msgstr "Sustabdyti" lightdm-1.18.1/debian/po/bg.po0000664000000000000000000000731712700600465012722 0ustar # Bulgarian translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2014-02-11 22:46+0000\n" "Last-Translator: Atanas Kovachki \n" "Language-Team: Bulgarian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Стандартен мениджър на дисплея:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "Мениджър на дисплея е програма, която осигурява графични възможности за " "влизане в X Window система." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "Само един мениджър на дисплея може да управлява даден X сървър, но множество " "пакети на мениджъри на дисплея са инсталирани. Моля, изберете кой мениджър " "на дисплея би трябвало стандартно да работи." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Множество мениджъри на дисплея могат да работят едновременно, ако те са " "конфигурирани за управление на различни сървъри, за да се постигне това " "конфигурирайте мениджърите на дисплея съответно, да редактират всеки един от " "техните инициализиращи скриптове в /etc/init.d и деактивирайте проверката за " "стандартния мениджър на дисплея." #~ msgid "Large Font" #~ msgstr "Голям шрифт" #~ msgid "Cancel" #~ msgstr "Отказ" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Сигурни ли сте, че искате да се затворят всички програми и компютърът да се " #~ "рестартира?" #~ msgid "Restart" #~ msgstr "Рестартиране" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "" #~ "Сигурни ли сте, че искате да се затворят всички програми и компютърът да се " #~ "изключи?" #~ msgid "Shutdown" #~ msgstr "Изключване" #~ msgid "Hibernate" #~ msgstr "Дълбоко заспиване" #~ msgid "Restart..." #~ msgstr "Рестартиране..." #~ msgid "Shutdown..." #~ msgstr "Изключване..." #~ msgid "Suspend" #~ msgstr "Приспиване" lightdm-1.18.1/debian/po/he.po0000664000000000000000000000447412700600465012727 0ustar # Hebrew translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-01-13 14:34+0000\n" "Last-Translator: Yaron \n" "Language-Team: Hebrew \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "גופן גדול" #~ msgid "Cancel" #~ msgstr "ביטול" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "האם אכן ברצונך לסגור את כל התכניות ולהפעיל מחדש את המחשב?" #~ msgid "Restart" #~ msgstr "הפעלה מחדש" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "האם אכן ברצונך לסגור את כל התבניות ולכבות את המחשב?" #~ msgid "Shutdown" #~ msgstr "כיבוי" #~ msgid "Hibernate" #~ msgstr "מצב שינה" #~ msgid "Restart..." #~ msgstr "הפעלה מחדש..." #~ msgid "Shutdown..." #~ msgstr "כיבוי..." #~ msgid "Suspend" #~ msgstr "השהיה" lightdm-1.18.1/debian/po/kk.po0000664000000000000000000000700412700600465012730 0ustar # Kazakh translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2013-08-31 05:52+0000\n" "Last-Translator: Baurzhan Muftakhidinov \n" "Language-Team: Kazakh \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Үнсіз келісім дисплей басқарушысы:" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" "Дисплей басқарушысы - X Window жүйесі үшін графикалық жүйеге кіру " "мүмкіндігін ұсынатын бағдарлама." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" "X серверін тек бір дисплей басқарушысы басқара алады, бірақ бірнеше дисплей " "басқарушысы дестелері орнатылған. Үнсіз келісім бойынша қайсысы " "қолданылатынын таңдаңыз." #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" "Бір уақытта бірнеше дисплей басқарушысы жұмыс істей алады, егер олар әр " "түрлі серверлерді басқаратын болса; осыған қол жеткізу үшін, дисплей " "басқарушыларын сәйкесінше баптаңыз, олардың init скриптерін /etc/init.d " "ішінде түзетіп, үнсіз келісім бойынша дисплей басқарушысын тексеруді " "сөндіріңіз." #~ msgid "Large Font" #~ msgstr "Үлкен қаріп" #~ msgid "Cancel" #~ msgstr "Бас тарту" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "Барлық бағдарламаларды жауып, компьютеріңізді қайта жүктеуді қалайсыз ба?" #~ msgid "Restart" #~ msgstr "Қайта жүктеу" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "Барлық бағдарламаларды жауып, компьютеріңізді сөндіруді қалайсыз ба?" #~ msgid "Shutdown" #~ msgstr "Сөндіру" #~ msgid "Shutdown..." #~ msgstr "Сөндіру..." #~ msgid "Hibernate" #~ msgstr "Гибернация" #~ msgid "Suspend" #~ msgstr "Ұйықтату" #~ msgid "Restart..." #~ msgstr "Қайта жүктеу..." lightdm-1.18.1/debian/po/bn.po0000664000000000000000000000517412700600465012730 0ustar # Bengali translation for lightdm # Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2011. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2011-08-31 16:20+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Bengali \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" #~ msgid "Large Font" #~ msgstr "বড় ফন্ট" #~ msgid "Cancel" #~ msgstr "বাতিল" #~ msgid "Hibernate" #~ msgstr "নিদ্রিত অবস্থায় রাখুন" #~ msgid "Restart..." #~ msgstr "পুনরায় আরম্ভ..." #~ msgid "Shutdown..." #~ msgstr "বন্ধ করুন..." #~ msgid "Suspend" #~ msgstr "স্থগিত করুন" #~ msgid "Are you sure you want to close all programs and restart the computer?" #~ msgstr "" #~ "আপনি কি নিশ্চিত আপনি সব প্রোগ্রাম বন্ধ করে কম্পিউটার পুনরায় আরম্ভ করতে চান?" #~ msgid "Restart" #~ msgstr "পুনরায় আরম্ভ" #~ msgid "" #~ "Are you sure you want to close all programs and shutdown the computer?" #~ msgstr "আপনি কি নিশ্চিত আপনি সব প্রোগ্রাম বন্ধ করে কম্পিউটার বন্ধ করতে চান?" #~ msgid "Shutdown" #~ msgstr "বন্ধ করুন" lightdm-1.18.1/debian/po/jv.po0000664000000000000000000000305712700600465012746 0ustar # Javanese translation for lightdm # Copyright (c) 2016 Rosetta Contributors and Canonical Ltd 2016 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2016. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2016-01-03 00:15+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Javanese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/po/az.po0000664000000000000000000000306512700600465012740 0ustar # Azerbaijani translation for lightdm # Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 # This file is distributed under the same license as the lightdm package. # FIRST AUTHOR , 2012. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2007-05-31 08:04+0200\n" "PO-Revision-Date: 2012-04-14 10:57+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Azerbaijani \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2016-03-30 05:36+0000\n" "X-Generator: Launchpad (build 17967)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "A display manager is a program that provides graphical login capabilities " "for the X Window System." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Only one display manager can manage a given X server, but multiple display " "manager packages are installed. Please select which display manager should " "run by default." msgstr "" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "" "Multiple display managers can run simultaneously if they are configured to " "manage different servers; to achieve this, configure the display managers " "accordingly, edit each of their init scripts in /etc/init.d, and disable the " "check for a default display manager." msgstr "" lightdm-1.18.1/debian/liblightdm-qt-3-0.install0000664000000000000000000000003712700600465015772 0ustar usr/lib/*/liblightdm-qt-*.so.* lightdm-1.18.1/debian/lightdm.init0000664000000000000000000000654712700600465013675 0ustar #!/bin/sh # Largely adapted from xdm's init script: # Copyright 1998-2002, 2004, 2005 Branden Robinson . # Copyright 2006 Eugene Konev # # This is free software; you may redistribute it and/or modify # it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2, # or (at your option) any later version. # # This is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License with # the Debian operating system, in /usr/share/common-licenses/GPL; if # not, write to the Free Software Foundation, Inc., 51 Franklin Street, # Fifth Floor, Boston, MA 02110-1301, USA. ### BEGIN INIT INFO # Provides: lightdm # Required-Start: $local_fs $remote_fs dbus # Required-Stop: $local_fs $remote_fs dbus # Should-Start: $named # Should-Stop: $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start lightdm ### END INIT INFO set -e HEED_DEFAULT_DISPLAY_MANAGER= # To start lightdm even if it is not the default display manager, change # HEED_DEFAULT_DISPLAY_MANAGER to "false." # Also overridable from command line like: # HEED_DEFAULT_DISPLAY_MANAGER=false /etc/init.d/lightdm start [ -z "$HEED_DEFAULT_DISPLAY_MANAGER" ] && HEED_DEFAULT_DISPLAY_MANAGER=true DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager PATH=/bin:/usr/bin:/sbin:/usr/sbin DAEMON=/usr/sbin/lightdm PIDFILE=/var/run/lightdm.pid if [ -r /etc/default/locale ]; then . /etc/default/locale export LANG LANGUAGE fi test -x $DAEMON || exit 0 . /lib/lsb/init-functions SSD_START_ARGS="--pidfile $PIDFILE --name $(basename $DAEMON) --startas $DAEMON -- -d" SSD_STOP_ARGS="--pidfile $PIDFILE --name $(basename $DAEMON) --retry TERM/5/TERM/5" case "$1" in start) if [ "$HEED_DEFAULT_DISPLAY_MANAGER" = "true" ] && [ -e $DEFAULT_DISPLAY_MANAGER_FILE ] && [ "$(cat $DEFAULT_DISPLAY_MANAGER_FILE)" != "/usr/bin/lightdm" -a "$(cat $DEFAULT_DISPLAY_MANAGER_FILE)" != "/usr/sbin/lightdm" ]; then echo "Not starting X display manager (lightdm); it is not the default" \ "display manager." else log_daemon_msg "Starting X display manager" "lightdm" start-stop-daemon --start --quiet $SSD_START_ARGS \ || log_progress_msg "already running" log_end_msg 0 fi ;; restart) [ -f $PIDFILE ] && /etc/init.d/lightdm stop [ -f $PIDFILE ] && exit 1 /etc/init.d/lightdm start ;; stop) log_daemon_msg "Stopping X display manager" "lightdm" if ! [ -f $PIDFILE ]; then log_progress_msg "not running ($PIDFILE not found)" else start-stop-daemon --stop --quiet $SSD_STOP_ARGS SSD_RES=$? if [ $SSD_RES -eq 1 ]; then log_progress_msg "not running" fi if [ $SSD_RES -eq 2 ]; then log_progress_msg "not responding to TERM signals" else if [ -f $PIDFILE ]; then log_progress_msg "(removing stale $PIDFILE)" rm $PIDFILE fi fi fi log_end_msg 0 ;; force-reload) /etc/init.d/lightdm restart ;; *) echo "Usage: /etc/init.d/lightdm {start|stop|restart|force-reload}" exit 1 ;; esac exit 0 lightdm-1.18.1/debian/lightdm.maintscript0000664000000000000000000000035312700600465015254 0ustar rm_conffile /etc/lightdm/lightdm.conf.d/50-xserver-command.conf 1.9.5-0ubuntu1 rm_conffile /etc/lightdm/lightdm.conf.d/50-greeter-wrapper.conf 1.9.5-0ubuntu1 rm_conffile /etc/lightdm/lightdm.conf.d/50-guest-wrapper.conf 1.9.5-0ubuntu1 lightdm-1.18.1/debian/liblightdm-qt-dev.install0000664000000000000000000000013512700600465016250 0ustar usr/include/lightdm-qt-* usr/lib/*/pkgconfig/liblightdm-qt-*.pc usr/lib/*/liblightdm-qt-*.so lightdm-1.18.1/debian/lightdm.lightdm-autologin.pam0000664000000000000000000000104712700600465017123 0ustar #%PAM-1.0 auth requisite pam_nologin.so auth required pam_permit.so @include common-account session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close #session required pam_loginuid.so session required pam_limits.so @include common-session session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open session required pam_env.so readenv=1 session required pam_env.so readenv=1 user_readenv=1 envfile=/etc/default/locale @include common-password lightdm-1.18.1/debian/config-error-dialog.sh0000664000000000000000000000176012700600465015535 0ustar # Copyright (C) 2014 Canonical Ltd # Author: Gunnar Hjalmarsson # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation, version 3 of the License. # # See http://www.gnu.org/copyleft/gpl.html the full text of the license. # This file may be sourced by the function source_with_error_check() in # /usr/sbin/lightdm-session export TEXTDOMAIN=lightdm . /usr/bin/gettext.sh PARA1=$(eval_gettext 'Error found when loading $CONFIG_FILE:') PARA2=$(gettext 'As a result the session will not be configured correctly. You should fix the problem as soon as feasible.') TEXT="$PARA1\n\n$(fold -s $ERR)\n\n$PARA2" if [ -x /usr/bin/kdialog ]; then TEXT_FILE=$(mktemp --tmpdir config-err-kdialog-XXXXXX) echo -n "$TEXT" > "$TEXT_FILE" kdialog --textbox "$TEXT_FILE" 500 300 rm -f "$TEXT_FILE" elif [ -x /usr/bin/zenity ]; then zenity --warning --no-wrap --text="$TEXT" fi lightdm-1.18.1/debian/gir1.2-lightdm-1.install0000664000000000000000000000004612700600465015522 0ustar debian/tmp/usr/lib/*/girepository-1.0 lightdm-1.18.1/debian/rules0000775000000000000000000000304112700600465012422 0ustar #!/usr/bin/make -f LDFLAGS+=-Wl,--as-needed %: dh $@ --with quilt,autoreconf,translations,systemd --parallel override_dh_autoreconf: NOCONFIGURE=1 dh_autoreconf ./autogen.sh # NOTE: Using GNOME for now, but we still need a proper configuration system # See https://launchpad.net/bugs/799754 override_dh_auto_configure: dh_auto_configure -- \ --libexecdir=/usr/lib/lightdm \ --with-greeter-user=lightdm \ --with-user-session=ubuntu \ --enable-gtk-doc \ --disable-libaudit override_dh_auto_test: #Disabled for now, are failing for some reason #DEBUG=1 dh_auto_test || { cat tests/test-suite.log; exit 1; } override_dh_install: rm -r debian/tmp/usr/share/help/C/ # we do install pam through installpam and init through installinit dh_install -X.a -X.la -Xpam.d -X'etc/init/lightdm.conf' --fail-missing install -D debian/guest-account.sh debian/lightdm/usr/sbin/guest-account install -D -m 755 debian/guest-session-setup.sh debian/lightdm/usr/share/lightdm/guest-session/setup.sh chmod +x debian/lightdm/usr/lib/lightdm/lightdm-greeter-session chmod +x debian/lightdm/usr/lib/lightdm/guest-session-auto.sh override_dh_installinit: dh_installinit --no-start override_dh_systemd_start: dh_systemd_start -plightdm --no-start -r lightdm.service override_dh_installpam: dh_installpam dh_installpam --name=lightdm-autologin dh_installpam --name=lightdm-greeter override_dh_makeshlibs: dh_makeshlibs -pliblightdm-gobject-1-0 -V'liblightdm-gobject-1-0 (>= 0.9.2)' -- -c4 dh_makeshlibs -Nliblightdm-gobject-1-0 lightdm-1.18.1/debian/lightdm.templates0000664000000000000000000000207612700600465014721 0ustar # These templates have been reviewed by the debian-l10n-english # team # # If modifications/additions/rewording are needed, please ask # for an advice to debian-l10n-english@lists.debian.org # # Even minor modifications require translation updates and such # changes should be coordinated with translators and reviewers. Template: lightdm/daemon_name Type: string Default: /usr/sbin/lightdm Description: for internal use only Template: shared/default-x-display-manager Type: select Choices: ${choices} _Description: Default display manager: A display manager is a program that provides graphical login capabilities for the X Window System. . Only one display manager can manage a given X server, but multiple display manager packages are installed. Please select which display manager should run by default. . Multiple display managers can run simultaneously if they are configured to manage different servers; to achieve this, configure the display managers accordingly, edit each of their init scripts in /etc/init.d, and disable the check for a default display manager. lightdm-1.18.1/debian/lightdm.postinst0000664000000000000000000000661312700600465014607 0ustar #!/bin/sh set -e if dpkg-maintscript-helper supports mv_conffile; then dpkg-maintscript-helper mv_conffile \ /etc/lightdm.conf \ /etc/lightdm/lightdm.conf \ 0.3.7-0ubuntu2 -- "$@" fi . /usr/share/debconf/confmodule THIS_PACKAGE=lightdm DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager # creating lightdm group if he isn't already there if ! getent group lightdm >/dev/null; then addgroup --system lightdm fi # creating lightdm user if he isn't already there if ! getent passwd lightdm >/dev/null; then adduser --system --ingroup lightdm --home /var/lib/lightdm lightdm usermod -c "Light Display Manager" lightdm usermod -d "/var/lib/lightdm" lightdm usermod -g "lightdm" lightdm usermod -s "/bin/false" lightdm fi # Creating nopasswdlogin group if he isn't already there. # That enables the password-less login feature in the users-admin # tool of the gnome-system-tools for users that belong to it, # and which is working thanks to LightDM's PAM policy. if ! getent group nopasswdlogin >/dev/null; then addgroup --system nopasswdlogin fi if [ -d /var/lib/lightdm ]; then chown -R lightdm:lightdm /var/lib/lightdm || true chmod 0750 /var/lib/lightdm fi # debconf is not a registry, so we only fiddle with the default file if it # does not exist if ! [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then DEFAULT_DISPLAY_MANAGER= if db_get shared/default-x-display-manager; then DEFAULT_DISPLAY_MANAGER="$RET" fi if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then DAEMON_NAME= if db_get "$DEFAULT_DISPLAY_MANAGER"/daemon_name; then DAEMON_NAME="$RET" fi if [ -z "$DAEMON_NAME" ]; then # if we were unable to determine the name of the selected daemon (for # instance, if the selected default display manager doesn't provide a # daemon_name question), guess DAEMON_NAME=$(which "$DEFAULT_DISPLAY_MANAGER" 2>/dev/null) fi if [ -n "$DAEMON_NAME" ]; then echo "$DAEMON_NAME" > "$DEFAULT_DISPLAY_MANAGER_FILE" fi fi fi # Registering the init scripts or starting the daemon may cause output to # stdout, which can confuse debconf. db_stop DEFAULT_SERVICE=/etc/systemd/system/display-manager.service # set default-display-manager systemd service link according to our config if [ "$1" = configure ] && [ -d /etc/systemd/system/ ]; then if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then SERVICE=/lib/systemd/system/$(basename $(cat "$DEFAULT_DISPLAY_MANAGER_FILE")).service if [ -h "$DEFAULT_SERVICE" ] && [ $(readlink "$DEFAULT_SERVICE") = /dev/null ]; then echo "Display manager service is masked" >&2 elif [ -e "$SERVICE" ]; then ln -sf "$SERVICE" "$DEFAULT_SERVICE" else echo "WARNING: $SERVICE is the selected default display manager but does not exist" >&2 rm -f "$DEFAULT_SERVICE" fi else rm -f "$DEFAULT_SERVICE" fi fi case "$1" in configure) # LP: #1189948 if dpkg --compare-versions "$2" lt "1.7.0-0ubuntu6" ; then if [ -f /etc/apparmor.d/abstractions/lightdm ]; then chmod 0644 /etc/apparmor.d/abstractions/lightdm || true fi if [ -f /etc/apparmor.d/abstractions/lightdm_chromium-browser ]; then chmod 0644 /etc/apparmor.d/abstractions/lightdm_chromium-browser || true fi fi ;; esac #DEBHELPER# exit 0 lightdm-1.18.1/debian/50-xserver-command.conf0000664000000000000000000000005512700600465015547 0ustar [Seat:*] # Dump core xserver-command=X -core lightdm-1.18.1/debian/lightdm.preinst0000664000000000000000000000033112700600465014377 0ustar #!/bin/sh set -e if dpkg-maintscript-helper supports mv_conffile; then dpkg-maintscript-helper mv_conffile \ /etc/lightdm.conf \ /etc/lightdm/lightdm.conf \ 0.3.7-0ubuntu2 -- "$@" fi #DEBHELPER# lightdm-1.18.1/debian/lightdm-session0000664000000000000000000000566012700600465014407 0ustar #!/bin/bash # # LightDM wrapper to run around X sessions. echo "Running X session wrapper" message () { # pretty-print messages of arbitrary length; use xmessage if it # is available and $DISPLAY is set MESSAGE="$PROGNAME: $*" echo "$MESSAGE" | fold -s -w ${COLUMNS:-80} >&2 if [ -n "$DISPLAY" ] && which xmessage > /dev/null 2>&1; then echo "$MESSAGE" | fold -s -w ${COLUMNS:-80} | xmessage -center -file - fi } errormsg () { # exit script with error message "$*" exit 1 } # temporary storage of error messages ERR=$(mktemp --tmpdir config-err-XXXXXX) source_with_error_check () { CONFIG_FILE="$1" echo "Loading $CONFIG_FILE" BASH_VERSION= . "$CONFIG_FILE" 2>"$ERR" if [ -s "$ERR" ]; then . /usr/lib/lightdm/config-error-dialog.sh fi cat "$ERR" >>/dev/stderr truncate -s 0 "$ERR" } # Load profile for file in "/etc/profile" "$HOME/.profile" "/etc/xprofile" "$HOME/.xprofile"; do if [ -f "$file" ]; then source_with_error_check "$file" fi done # Load resources if type xrdb >/dev/null 2>&1; then xresourcedir="/etc/X11/Xresources" if [ -d "$xresourcedir" ]; then for file in $xresourcedir/*; do echo "Loading resource: $file" xrdb -merge "$file" done fi xresourcefile="$HOME/.Xresources" if [ -f "$xresourcefile" ]; then echo "Loading resource: $xresourcefile" xrdb -merge "$xresourcefile" fi fi # Load keymaps if type setxkbmap >/dev/null 2>&1; then for file in "/etc/X11/Xkbmap" "$HOME/.Xkbmap"; do if [ -f "$file" ]; then echo "Loading keymap: $file" setxkbmap `cat "$file"` XKB_IN_USE=yes fi done fi # Load xmodmap if not using XKB if type xmodmap >/dev/null 2>&1; then if [ -z "$XKB_IN_USE" ]; then for file in "/etc/X11/Xmodmap" "$HOME/.Xmodmap"; do if [ -f "$file" ]; then echo "Loading modmap: $file" xmodmap "$file" fi done fi fi unset XKB_IN_USE # Run all system xinitrc shell scripts. xinitdir="/etc/X11/xinit/xinitrc.d" if [ -d "$xinitdir" ]; then for script in $xinitdir/*; do echo "Loading xinit script $script" if [ -x "$script" -a ! -d "$script" ]; then . "$script" fi done fi # Load Xsession scripts # OPTIONFILE, USERXSESSION, USERXSESSIONRC and ALTUSERXSESSION are required # by the scripts to work xsessionddir="/etc/X11/Xsession.d" OPTIONFILE=/etc/X11/Xsession.options USERXSESSION=$HOME/.xsession USERXSESSIONRC=$HOME/.xsessionrc ALTUSERXSESSION=$HOME/.Xsession if [ -d "$xsessionddir" ]; then for i in `ls $xsessionddir`; do script="$xsessionddir/$i" echo "Loading X session script $script" if [ -r "$script" -a -f "$script" ] && expr "$i" : '^[[:alnum:]_-]\+$' > /dev/null; then . "$script" fi done fi echo "X session wrapper complete, running session $@" exec $@ lightdm-1.18.1/debian/lightdm-greeter-session0000664000000000000000000000162512700600465016037 0ustar #!/bin/sh # -*- Mode: sh; indent-tabs-mode: nil; tab-width: 4 -*- # # Copyright (C) 2011 Canonical Ltd # Author: Michael Terry # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation, version 3 of the License. # # See http://www.gnu.org/copyleft/gpl.html the full text of the license. # This wrapper merely ensures that dbus-daemon lives only as long as this # script does. Otherwise, it's very easy for dbus-daemon to be autolaunched # and detached from the greeter. trap cleanup TERM EXIT cleanup() { trap - TERM EXIT if [ -n "$DBUS_SESSION_BUS_PID" ]; then kill "$DBUS_SESSION_BUS_PID" fi if [ -n "$CMD_PID" ]; then kill "$CMD_PID" fi exit 0 } eval `dbus-launch --sh-syntax` exec $@ & CMD_PID=$! wait $CMD_PID CMD_PID= lightdm-1.18.1/debian/compat0000664000000000000000000000000212700600465012542 0ustar 9 lightdm-1.18.1/debian/50-disable-log-backup.conf0000664000000000000000000000011412700600465016056 0ustar [LightDM] # Disable log backup - we use logrotate instead backup-logs=false lightdm-1.18.1/debian/changelog0000664000000000000000000027163712700603301013226 0ustar lightdm (1.18.1-0ubuntu1) xenial; urgency=medium * New upstream release: - Use /dev/tty0 instead of /dev/console for VT operations (LP: #1566073) -- Robert Ancell Tue, 05 Apr 2016 12:06:39 +1200 lightdm (1.18.0-0ubuntu2) xenial; urgency=medium * debian/control: - Set libaudit and plymouth dependencies to linux-any (LP: #1563036) -- Robert Ancell Tue, 29 Mar 2016 12:05:24 +1300 lightdm (1.18.0-0ubuntu1) xenial; urgency=medium * New upstream release: - Small documentation fixes * debian/guest-account.sh: - More forcibly remove guest sessions so they don't remain after logout (LP: #1556516) -- Robert Ancell Wed, 23 Mar 2016 15:09:54 +1300 lightdm (1.17.6-0ubuntu1) xenial; urgency=medium * New upstream release: - Don't write $DISPLAY into tty line in utmp/btmp. (LP: #1380364) * debian/guest-account.sh: * debian/guest-session.profile: * debian/rules: - Don't overwrite .profile file from skeleton session, append it instead -- Robert Ancell Tue, 15 Mar 2016 15:47:08 +1300 lightdm (1.17.5-0ubuntu2) xenial; urgency=medium * debian/control: - Fix liblightdm-qt5-3-dev to depend on qtbase5-dev, not libqt4-dev -- Michael Terry Wed, 03 Feb 2016 13:45:53 -0500 lightdm (1.17.5-0ubuntu1) xenial; urgency=medium * New upstream release: - Set XDG_RUNTIME_DIR for ConsoleKit sessions. This is a recent change in ConsoleKit2. * debian/lightdm.postrm: - Don't remove the lightdm user home directory on purge since we no longer remove the user account. (LP: #1540933) -- Robert Ancell Wed, 03 Feb 2016 12:55:04 +1300 lightdm (1.17.4-0ubuntu1) xenial; urgency=medium * New upstream release: - Add support for g_autoptr and liblightdm-gobject - Fix dm-tool add-local-seat not working because LightDM is trying to connect with TCP/IP (LP: #1529454) -- Robert Ancell Mon, 25 Jan 2016 17:13:18 +1300 lightdm (1.17.3-0ubuntu1) xenial; urgency=medium * New upstream release: - Don't enable the hardware cursor in Unity System Compositor anymore. Unity 8 now correctly provides its own cursor and other shells should too (LP: #1517615) * debian/guest-session.profile: - Fix guest session dialog sleep (LP: #1526004) -- Robert Ancell Thu, 17 Dec 2015 13:12:24 +1300 lightdm (1.17.2-0ubuntu1) xenial; urgency=medium * New upstream release: - Handle XDMCP Request packet with no addresses. (LP: #1516831) - Don't start LightDM if the XDMCP server is configured with a key that doesn't exist. (LP: #1517685) - Add IP addresses to XDMCP log messages. - Refactor XDMCP error handling. - Add more XDMCP tests. -- Robert Ancell Fri, 20 Nov 2015 15:34:08 +1300 lightdm (1.17.1-0ubuntu2) xenial; urgency=medium * debian/guest-session-setup.sh: - don't error out if there is no prefs.sh configuration, should fix the guest session not starting in xenial (lp: #1515704) -- Sebastien Bacher Fri, 13 Nov 2015 11:52:06 +0100 lightdm (1.17.1-0ubuntu1) xenial; urgency=medium * New upstream release: - Add a backup-logs option that can be used to disable existing logging files having a .old suffix added to them. - Add LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE, LC_MEASUREMENT and LC_IDENTIFICATION variables to the list of inherited locale variables. (LP: #1511259) - Implement XDMCP ForwardQuery. (LP: #1511545) - Fix small memory leak in XDMCP logging code. -- Robert Ancell Tue, 03 Nov 2015 16:28:54 +1300 lightdm (1.17.0-0ubuntu1) xenial; urgency=medium * New upstream release: - Disable log backups - this interferes with logrotate. - Support using libaudit to generate audit events. - Handle trailing whitespace on boolean values in configuration. - Update example configuration to more correctly match allowed options. - Fix unnecessary X server from being launched when locking seats. - Check the version of the X server we are running so we correctly pass -listen tcp when required. - Allow reading /proc//net/dev from within a guest session. (LP: #1442609) - Allow guest sessions to write in /{,var/}run/screen folder. (LP: #1442611) - Update guest-session AppArmor profile to be suitable for openSUSE. - Fix apparmor profiles for running Chromium in guest sessions. (LP: #1504049, LP: #1464958) - Fix configure failing without Vala installed. * Build with multi-arch * debian/lightdm.logrotate: - Use logrotate to handle log files placed in the default system log directory (/var/log/lightdm). * debian/guest*: - Optimize guest account creation, use OverlayFS of AuFS if available. -- Robert Ancell Wed, 28 Oct 2015 15:02:46 +1300 lightdm (1.16.0-0ubuntu1) wily; urgency=medium * New upstream release: - Update default configuration better explaining the seat configuration name matching and dropping references to the obsolete [SeatDefaults] section -- Robert Ancell Mon, 07 Sep 2015 10:52:54 +1200 lightdm (1.15.3-0ubuntu3) wily; urgency=medium * debian/lightdm.postrm: - Don't remove the lightdm user/group on package removal. This fails if the user is still in use and leaves the risk of another user being created with the same UID. (LP: #924224) -- Robert Ancell Wed, 26 Aug 2015 09:35:56 +0100 lightdm (1.15.3-0ubuntu2) wily; urgency=medium * debian/lightdm.lightdm-greeter.pam: * debian/lightdm.pam: - Load pam_kwallet5 in pam profile (kwallet and kwallet5 are distinct entities requiring sepreate unlocking) -- Harald Sitter Mon, 24 Aug 2015 12:50:00 +0200 lightdm (1.15.3-0ubuntu1) wily; urgency=medium * New upstream release: - Drop Xorg option -sharevts. It's no longer required for non-seat0 X servers since xorg-server release 1.16. * debian/patches/autologin-session-workaround.patch: - Workaround faulty setting from user-setup package (LP: #1484083) -- Robert Ancell Mon, 17 Aug 2015 10:39:27 +1200 lightdm (1.15.2-0ubuntu2) wily; urgency=medium * debian/control: - Add build-depends on valac -- Robert Ancell Mon, 10 Aug 2015 16:38:04 +1200 lightdm (1.15.2-0ubuntu1) wily; urgency=medium [ Robert Ancell ] * New upstream release: - Support Wayland sessions. (LP: #888391) - Implement autologin-session option. - Generate Vala bindings from GIR instead of manually writing them. This fixes some small bugs in both the Vala and GIR bindings. - Don't remove autotools generated files in distclean. * debian/control: - Use standards version 3.9.6 * debian/liblightdm-gobject-1-0.symbols: - Updated [ Gunnar Hjalmarsson ] * debian/lightdm-session: - Prevent ~/.bashrc from being sourced when ~/.profile is sourced. (LP: #1482641) -- Robert Ancell Mon, 10 Aug 2015 16:11:13 +1200 lightdm (1.15.1-0ubuntu2) wily; urgency=medium * debian/guest-session-auto.sh: - Disable screenlocks for guest sessions on MATE, XFCE, Pantheon (LP: #1481804) * debian/control: - Switch build-depends from transitional libgcrypt11-dev to libgcrypt20-dev -- Robert Ancell Fri, 07 Aug 2015 12:50:38 +1200 lightdm (1.15.1-0ubuntu1) wily; urgency=medium * New upstream release: - Fix default X server command set to XMir in 1.15.0. - Internally merge the [SeatDefaults] and [Seat:*] sections together. The previous method meant configuration snippets using a mix of old and new naming would not correctly override eachother. - Use IP address of XDMCP requests to contact X server if available. (LP: #1481561) - Add an option for XDMCP and VNC servers to only listen on one address. (LP: #1390808) - Fix configuration file warnings so they go to the log, not stderr. - Warn if deprecated options logind-load-seats or xdg-seat are in configuration. (LP: #1468057) - Improve IP addresses in XDMCP log messages. - Fix typo in dm-tool man page. (LP: #1470587) -- Robert Ancell Wed, 05 Aug 2015 16:53:39 +1200 lightdm (1.15.0-0ubuntu1) wily; urgency=medium * New upstream release: - Deprecate [SeatDefaults] in favour of [Seat:*] - Use new Xmir binary when running X under Unity System Compositor -- Robert Ancell Mon, 18 May 2015 13:38:23 +1200 lightdm (1.14.0-0ubuntu2) vivid; urgency=medium * Quiesce initctl errors when not running under upstart. (LP: #1414420) -- Martin Pitt Wed, 08 Apr 2015 14:37:17 +0200 lightdm (1.14.0-0ubuntu1) vivid; urgency=medium * New upstream release: - Initialize file descriptor handles so we don't attempt to close stdin by accident. - Fix small errors detected by scan-build (clang). -- Robert Ancell Tue, 24 Mar 2015 10:25:22 +1300 lightdm (1.13.2-0ubuntu1) vivid; urgency=medium * New upstream release: - Fix pipe file descriptor leak for each greeter session. (LP: #1190344) - Support active session changing via logind. (LP: #1371378) - Don't allow liblightdm-gobject to be disabled. It is required for liblightdm-qt and the tests so it's not worth supporting builds without it. - Add bash autocompletion support * debian/lightdm.install: - Install autocompletion configuration -- Robert Ancell Tue, 10 Mar 2015 14:54:29 +1300 lightdm (1.13.1-0ubuntu2) vivid; urgency=medium * debian/guest-account.sh: - Rename variables to make script compatible with Bash (LP: #1411100) * debian/control: - Set required version of bash -- Robert Ancell Wed, 21 Jan 2015 12:20:42 +1300 lightdm (1.13.1-0ubuntu1) vivid; urgency=medium * New upstream release: - Don't attempt generate D-Bus seat/session removal signals on shutdown. - Add missing method QLightDM::Greeter::cancelAutologin -- Robert Ancell Wed, 14 Jan 2015 14:00:02 +1300 lightdm (1.13.0-0ubuntu2) vivid; urgency=medium * debian/config-error-dialog.sh: * debian/lightdm-session: - Use bash for the session to improve error handling (LP: #678421) * debian/control: - Depend on bash -- Robert Ancell Tue, 25 Nov 2014 11:28:11 +1300 lightdm (1.13.0-0ubuntu1) vivid; urgency=medium * New upstream release: - Fix crash when having configuration keys defined in multiple places (LP: #1377373) - Fix pipe file descriptor leak for each session login / authentication (LP: #1190344) - Use correct syntax for DesktopNames key in session files (LP: #1383321) - Match seat configuration with globbing (LP: #1364911) - Allow user switching in multi-seat until bug stopping greeter showing on logout is fixed - Disable log message when AccountsService users change (LP: #1376357) - Update AppArmor scripts, requires AppArmor 2.9 - Update tests to run better on servers * debian/config-error-dialog.sh: - Show warning dialog instead of interrupted login if syntax error in ~/.profile etc (LP: #678421) -- Robert Ancell Thu, 13 Nov 2014 11:08:17 +1300 lightdm (1.12.0-0ubuntu2) utopic; urgency=medium * Restore 1.11.9-0ubuntu2, it was reverted by error in the previous upload -- Sebastien Bacher Tue, 30 Sep 2014 11:25:09 +0200 lightdm (1.12.0-0ubuntu1) utopic; urgency=medium * New upstream release: - Fix assumption that the display server is X when running scripts. (LP: #1305006) - Don't access .dmrc files until information from these files is required. (LP: #1370852) * debian/patches/01_transition_ubuntu2d_ubuntu_desktop.patch: - Dropped, Unity 2D doesn't exist and all users will have been migrated in 14.04 LTS -- Robert Ancell Tue, 30 Sep 2014 15:11:51 +1300 lightdm (1.11.9-0ubuntu2) utopic; urgency=medium * debian/patches/06_apparmor-unix.patch: update for addr= rules * debian/patches/07_apparmor-chrome.patch: - allow new path to Google Chrome (LP: #1361372) - allow read of @{PROC}/[0-9]*/statm * debian/patches/08_apparmor-updates.patch: - allow 'rw' on /etc/compizconfig/unity.ini (continue workaround for LP: 697678) - allow read of @{PROC}/sys/vm/overcommit_memory - allow write to /run/uuidd/request -- Jamie Strandboge Thu, 18 Sep 2014 12:18:12 -0500 lightdm (1.11.9-0ubuntu1) utopic; urgency=medium * New upstream release: - Don't check the logind CanGraphical seat property unless login-check-graphical option is set to true. There are too many cases of drivers that don't set the appropriate flags for this feature to work. (LP: #1365336) - Make socket writing code used between greeter and daemon more robust to errors. - Fix small memory leaks. - Improve logging messages. - Test improvements. -- Robert Ancell Wed, 10 Sep 2014 15:47:36 +1200 lightdm (1.11.8-0ubuntu2) utopic; urgency=medium * debian/patches/06_apparmor-unix.patch: updates for unix socket mediation (LP: #1362199) -- Jamie Strandboge Fri, 05 Sep 2014 17:34:03 -0500 lightdm (1.11.8-0ubuntu1) utopic; urgency=medium * New upstream release: - Rework logind code that gets session ID. The previous method was racy and a change in lightdm 1.11.7 led to a lockup when this race occurred. (LP: #1364725) - Handle CanGraphical property on logind seats -- Robert Ancell Wed, 03 Sep 2014 17:26:36 +1200 lightdm (1.11.7-0ubuntu1) utopic; urgency=medium * New upstream release: - Use logind to provide the list of seats to use. Deprecate the old method of manually defining seats. - Add --show-config option that shows combined configuration. - Drop the surfaceflinger seat type. This was a temporary solution while Ubuntu Phone was migrating to Mir. -- Robert Ancell Wed, 27 Aug 2014 16:25:53 +1200 lightdm (1.11.6-0ubuntu1) utopic; urgency=medium * New upstream release: * Add a seat option 'allow-user-switching' that can disable all user switching for that seat * Add a new session type 'mir-container' that allows the session to run inside a custom system compositor (LP: #1359332) * Only seat0 takes VT from Plymouth * Removed unused GAsyncResultIface.is_tagged as this attribute was not available in earlier versions of Glib I/O. * Abort autogen if yelp-tools not installed * Return correct errors for D-Bus calls -- Robert Ancell Fri, 22 Aug 2014 09:10:29 +1200 lightdm (1.11.5-0ubuntu1) utopic; urgency=medium * New upstream release: - Make PAM services configurable (LP: #1348251) * debian/guest-account: * debian/lightdm.install: * debian/rules: * debian/patches/05_translate_debian_files.patch: - Make the real name of a guest account translatable (LP: #1177713) -- Robert Ancell Mon, 28 Jul 2014 13:40:46 +1200 lightdm (1.11.4-0ubuntu1) utopic; urgency=medium * New upstream release: - Do timed autologin each time you are returned to the greeter - Fix tests failing with Qt 5.3 due to it checking getuid/geteuid which we are faking - dm-tool: Warn if trying to switch to user without username * debian/lightdm.service: - Don't test for specific installation path -- Robert Ancell Tue, 01 Jul 2014 15:50:16 +1200 lightdm (1.11.3-0ubuntu1) utopic; urgency=medium * New upstream release: - Fix Mir sessions broken with unity-system-compositor 0.3. - Add back Vala bindings for LightDM.Greeter.connect_sync - just mark as deprecated. - Put unity-system-compositor's mir_socket under /run rather than /tmp. (LP: #1325995) - Fix building with clang (3.5) and -Werror. - Correct section name in default users.conf file. -- Robert Ancell Thu, 05 Jun 2014 16:07:14 +1200 lightdm (1.11.2-0ubuntu3) utopic; urgency=high * No change rebuild against new dh_installinit, to call update-rc.d at postinst. -- Dimitri John Ledkov Wed, 28 May 2014 11:09:29 +0100 lightdm (1.11.2-0ubuntu2) utopic; urgency=medium * Integration plymouth systemd system job with plymouth services. -- Dimitri John Ledkov Sat, 17 May 2014 19:18:41 +0100 lightdm (1.11.2-0ubuntu1) utopic; urgency=medium * New upstream release: - Add liblightdm method to get user UID - DBus-activate logind - Check for libgcrypt at configure time -- Robert Ancell Fri, 16 May 2014 10:55:37 +1200 lightdm (1.11.1-0ubuntu1) utopic; urgency=medium * New upstream release: - Allow greeters to remain runing to reduce startup time when switching to a greeter - Add asynchronous methods to liblightdm * debian/lightdm.upstart: - Respawn lightdm daemon if it is unexpectedly closed -- Robert Ancell Tue, 06 May 2014 17:07:44 +1200 lightdm (1.11.0-0ubuntu1) utopic; urgency=medium * New upstream release: - When switching to an existing session refresh PAM credentials and end session cleanly so no resources leak. (LP: #1296276) - Support new standard DesktopNames field in session files - Set XDG_SESSION_TYPE and XDG_SESSION_DESKTOP as used by systemd - Emit DBus PropertiesChanged when Sessions/Seats properties change. Also add SessionAdded/SessionRemoved signals to Seat interface [ Harald Sitter ] * Add pam_kwallet to pam configs. (LP: #1305307) [ Martin Pitt ] * Add systemd integration -- Robert Ancell Mon, 28 Apr 2014 10:32:37 +1200 lightdm (1.10.0-0ubuntu3) trusty; urgency=medium * debian/patches/06_apparmor_chromium_updates.patch: allow oxide based browsers and Google Chrome to run in the guest session - LP: #1298021 - LP: #1306560 -- Jamie Strandboge Fri, 11 Apr 2014 09:24:09 -0500 lightdm (1.10.0-0ubuntu2) trusty; urgency=medium * Add pam_kwallet to pam configs. (LP: #1305307) -- Harald Sitter Thu, 10 Apr 2014 10:27:18 +0200 lightdm (1.10.0-0ubuntu1) trusty; urgency=medium * New upstream release: - Fix return value for Vala bindings to Greeter.start_session_sync - Fix logging when failing to find session -- Robert Ancell Tue, 08 Apr 2014 16:12:46 +1200 lightdm (1.9.15-0ubuntu1) trusty; urgency=medium * debian/patches/06_guest_signal_and_ptrace_aa_rules.patch, debian/patches/07_guest_proc_pid_stat_aa_rule.patch: Dropped, the fixes are upstream -- Tyler Hicks Mon, 07 Apr 2014 10:33:46 -0500 lightdm (1.9.14-0ubuntu2) trusty; urgency=medium * debian/patches/06_guest_signal_and_ptrace_aa_rules.patch: Grant permission for guest session processes to signal and ptrace each other (LP: #1298611) * debian/patches/07_guest_proc_pid_stat_aa_rule.patch: Grant permission for guest session processes to read /proc//stat. This prevents AppArmor denial messages caused by bamfdaemon and common utilities such as ps and killall. (LP: #1301625) -- Tyler Hicks Thu, 03 Apr 2014 02:48:51 -0500 lightdm (1.9.14-0ubuntu1) trusty; urgency=medium * New upstream release: - Pass --enable-hardware-greeter to unity-system-compositor for Mir sessions on xlocal seats (LP: #1289072) -- Robert Ancell Thu, 03 Apr 2014 09:07:39 +1300 lightdm (1.9.13-0ubuntu1) trusty; urgency=medium * New upstream release: - Handle not getting an X connection when attempting to get X layouts. (LP: #1235915) - Read config data from both XDG_DATA_DIRS and XDG_CONFIG_DIRS. -- Robert Ancell Tue, 25 Mar 2014 14:45:54 +1300 lightdm (1.9.12-0ubuntu1) trusty; urgency=medium [ Robert Ancell ] * New upstream release: - Ensure X authority is written before X server is started (LP: #1260220) - Activate after unlocking a logind session [ Gunnar Hjalmarsson ] * debian/guest-account: - Disable Unity shortcut hint. (LP: #1292178) -- Robert Ancell Mon, 17 Mar 2014 16:49:37 +1300 lightdm (1.9.11-0ubuntu2) trusty; urgency=medium * Rebuild against Qt 5.2.1. -- Timo Jyrinki Thu, 13 Mar 2014 07:41:22 +0200 lightdm (1.9.11-0ubuntu1) trusty; urgency=medium * New upstream release: - Don't use g_hash_table_get_keys_as_array, it's a glib 2.40 feature -- Robert Ancell Thu, 13 Mar 2014 13:42:04 +1300 lightdm (1.9.10-0ubuntu1) trusty; urgency=medium * New upstream release: - Honour session type requested by greeter for guest sessions (LP: #1285132) - Log to wtmp and btmp. (LP: #1027805) - Implement guest-session config option -- Robert Ancell Thu, 13 Mar 2014 11:50:38 +1300 lightdm (1.9.9-0ubuntu1) trusty; urgency=medium * New upstream release: - Handle signals being received in child processes instead of treating them like they are received in the daemon. - Set utmp ut_line to the display name (i.e. :0) to match what other programs expect (e.g. 'w'). - Fix lightdm_greeter_ensure_shared_data_dir_sync returning the wrong value. - Fix shared data tests so you can run test suite without root again. - Be extra careful not to call any non thread safe function after a fork. - Fix some small memory leaks detected by valgrind. - Fix process shutdown code to stop generating confusing warnings - Fix more double removal of source IDs. - Test improvements. [ Gunnar Hjalmarsson ] * debian/patches/04_language_handling.patch: - Make lightdm_get_language() return a language with a short form language code (LP: #1276072). -- Robert Ancell Tue, 11 Mar 2014 09:17:15 +1300 lightdm (1.9.8-0ubuntu1) trusty; urgency=medium * New upstream release: - Add support for shared user data directories between the greeter and user sessions. - Refactor LightDMUser and User classes to use the same code internally. -- Robert Ancell Thu, 20 Feb 2014 16:02:35 +1300 lightdm (1.9.7-0ubuntu2) trusty; urgency=medium * debian/lightdm.postinst: Guard the chown'ing of /var/lib/lightdm/, it might fail on the .gvfs mount. (LP: #1279428) -- Martin Pitt Wed, 12 Feb 2014 18:15:55 +0100 lightdm (1.9.7-0ubuntu1) trusty; urgency=medium * New upstream release: - Correctly invoke PAM to change authentication token. (LP: #1270118) - Make xdg-seat a core property of a seat and always pass it to X servers. - Qt bindings: properly hand over prompt and message type. - Add warning flags where they are missing and fix the resulting warnings. -- Robert Ancell Fri, 07 Feb 2014 15:40:20 +0000 lightdm (1.9.6-0ubuntu3) trusty; urgency=medium [ Gunnar Hjalmarsson ] * debian/guest-session-auto.sh: - Export gettext variables. * debian/guest-account: - Chown $HOME after /etc/guest-session/prefs.sh has been sourced. * debian/patches/05_translate_guest_session_dialog.patch: - Make the translatable strings in debian/guest-session-auto.sh end up in the PO files. -- Robert Ancell Wed, 05 Feb 2014 10:23:52 +0000 lightdm (1.9.6-0ubuntu2) trusty; urgency=medium * Clear default tty on lightdm shutdown, to avoid brief display of text messages on shutdown. (LP: #967229) -- Dimitri John Ledkov Tue, 04 Feb 2014 10:12:05 +0000 lightdm (1.9.6-0ubuntu1) trusty; urgency=medium * New upstream release: - Support Mir sessions in xlocal seats by starting a unity system compositor for each session. - Add --screen and --fullscreen options to "dm-tool add-nested-seat" - Don't try to compile liblightdm-qt if liblightdm-gobject will not be compiled. - Stop greeters warning if sessions directories not present or lightdm.conf doesn't exist - this is valid. - Fix log name for Mir display servers - Fix double removal of source IDs * debian/guest-account: * debian/guest-session-auto.sh: * debian/lightdm.install: * debian/rules: - Warn users about the temporary nature of a guest session. (LP: #435930) * debian/lightdm.install: * debian/lightdm.maintscript: - Move configuration from /etc to /usr/share so dpkg doesn't keep it around. -- Robert Ancell Wed, 22 Jan 2014 15:51:29 +1300 lightdm (1.9.5-0ubuntu1) trusty; urgency=low * New upstream release: - In the unity seat, if we don't have proper VT support, fake VT 0 instead of a real VT number. This matches what logind expects. -- Robert Ancell Thu, 05 Dec 2013 09:35:42 +1300 lightdm (1.9.4-0ubuntu1) trusty; urgency=low * New upstream release: - Fix issue where VTs are double used when switching sessions. (LP: #1256150) - Remove lightdm-set-defaults and gdmflexiserver. - Add new ability to specify a list of seat types to try, rather than just one. - Allow Mir sessions in the surfaceflinger seat. - Rename the guest session wrapper to have a simpler name. - Make sure sessions are associated with the display server before starting them. - Add a dm-tool man page. -- Robert Ancell Tue, 03 Dec 2013 19:07:28 +1300 lightdm (1.9.3-0ubuntu1) trusty; urgency=low * New upstream release: - Don't pass system user accounts from AccountsService to greeters. (LP: #1248541) - Fix crash if switching to greeter and it isn't installed. (LP: #1246529) -- Robert Ancell Thu, 07 Nov 2013 15:07:34 +1300 lightdm (1.9.2-0ubuntu1) trusty; urgency=low * New upstream release: - Implement missing guest-wrapper functionality and enable it for Ubuntu. - Update AppArmor scripts to work in Ubuntu 13.10. (LP: #1243339) -- Robert Ancell Wed, 30 Oct 2013 15:35:23 -0700 lightdm (1.9.1-0ubuntu1) trusty; urgency=low * New upstream release: - Correctly set $XDG_SESSION_CLASS for greeters. This was regressed in 1.7.5 for ConsoleKit and was never passed to logind. logind/ConsoleKit treat greeter sessions without this set as user sessions. This causes greeters to show the lightdm user able to be logged in with. (LP: #1242939) - Set $USER when running the session-setup-script. This is a regression from 1.7.5. (LP: #1245957) - Fix notification of sessions being logged out. This is a regression from 1.7.5 and caused greeters to show sessions logged in after they had been logged out. (LP: #1245295) - Refactor liblightdm user scanning to be simpler and more reliable. This fixes bugs where some properties wouldn't be updated when they changed in accounts service. - Add support for a "display-stopped-script" field in lightdm.conf. The "display-stopped-script" field allows us to run a script right after stopping the display server. - Allow dm-tool to run outside of a session if it doesn't need to be. - Set $MIR_SERVER_NAME to assign a name to launched sessions. Also use a "greeter-" prefix for greeter sessions for the benefit of unity-system-compositor. -- Robert Ancell Wed, 30 Oct 2013 14:11:16 -0700 lightdm (1.9.0-0ubuntu2) UNRELEASED; urgency=low * debian/50-guest-wrapper.conf: - Configure guest session wrapper to use -- Robert Ancell Sun, 27 Oct 2013 17:34:20 +1300 lightdm (1.9.0-0ubuntu1) trusty; urgency=low * New upstream release: - Fix crash when starting with existing X servers. This was introduced in rev 1651 (lightdm 1.7.0). (LP: #1231841) - Fix crash where Process objects are accessed after unref (LP: #1207935) -- Robert Ancell Tue, 22 Oct 2013 12:19:25 +1300 lightdm (1.8.0-0ubuntu1) saucy; urgency=low * debian/lightdm-session: - Handle xrdb, setxkbmap and xmodmap not being installed (LP: #1236317) -- Robert Ancell Wed, 09 Oct 2013 15:53:56 +1300 lightdm (1.7.18-0ubuntu1) saucy; urgency=low * New upstream release: - Set session environment variables for guest sessions (1.7 regression). (LP: #1214504) - Don't fail writing X authority if reading it had an error. (LP: #1234400) - Update environment variables that we pass to Mir. -- Robert Ancell Mon, 07 Oct 2013 11:57:02 +1300 lightdm (1.7.17-0ubuntu1) saucy; urgency=low * New upstream release: - surfaceflinger: Set XDG_VTNR=0 if VTs are not available - Allow compiling of liblightdm-qt without liblightdm-gobject - Add missing documentation for xremote seat options. -- Robert Ancell Wed, 25 Sep 2013 12:06:25 +1200 lightdm (1.7.16-0ubuntu1) saucy; urgency=low * New upstream release: - Fix ConsoleKit support broken in 1.7.5 - Fix --test-mode (LP: #1226544) - Add support for running Surfaceflinger sessions -- Robert Ancell Thu, 19 Sep 2013 17:42:48 -0400 lightdm (1.7.15-0ubuntu1) saucy; urgency=low [ Jeremy Bicha ] * Have liblightdm-gobject-1.0 suggest not recommend lightdm (LP: #1222155) [ Michael Terry ] * Set XDG_VTNR=1 as a fallback if using SeatUnity without a functioning compositor or working VT switching, so that logind will recognize the VT as active. -- Michael Terry Wed, 11 Sep 2013 11:27:51 -0400 lightdm (1.7.14-0ubuntu1) saucy; urgency=low * New upstream release: - Correctly set permissions on Xauthority file. -- Robert Ancell Wed, 11 Sep 2013 13:06:28 +1200 lightdm (1.7.13-0ubuntu1) saucy; urgency=low * New upstream release: - Correctly set $XDG_CURRENT_DESKTOP for non-autologin sessions (LP: #1221803) - Fix overallocation of array for strings from greeter. - Fix truncation writing card32 in XDMCP server. -- Robert Ancell Mon, 09 Sep 2013 16:08:55 +1200 lightdm (1.7.12-0ubuntu1) saucy; urgency=low * New upstream release: - Add xdg-seat config setting - Notify Unity System Compositor of the session being authenticated -- Robert Ancell Thu, 29 Aug 2013 12:59:39 +1200 lightdm (1.7.11-0ubuntu1) saucy; urgency=low * New upstream release: [ 1.7.11 ] - Fix crash when greeter quits due to read watch not being removed - Correctly setup Unity System Compositor environment - Improve log messages [ 1.7.10 ] - Fix session locking broken in 1.7.5 - Load lightdm.conf after lightdm.conf.d/*.conf - Also support loading config from /usr/share - When switching sessions show a greeter if authentication required - Set $XDG_CURRENT_DESKTOP if specified in the xsession file (LP: #1212408) - Change logging prefixes to make it easier to troubleshoot multiseat setups - Bring Ubuntu packaging in-tree -- Robert Ancell Mon, 26 Aug 2013 14:48:55 +1200 lightdm (1.7.9-0ubuntu1) saucy; urgency=low * New upstream release: - Correctly set XDG_VTNR for unity sessions that are not autologin. -- Robert Ancell Tue, 30 Jul 2013 18:35:21 +0100 lightdm (1.7.8-0ubuntu1) saucy; urgency=low * New upstream release: - Add support for Mir sessions and greeters. - Set XDG_VTNR for unity sessions. - Fix desktop-session-start upstart signal not being emitted since 1.7.5. - Fix greeter log broken in 1.7.5. * debian/liblightdm-gobject-1-0.symbols: - Updated -- Robert Ancell Tue, 30 Jul 2013 15:27:58 +0100 lightdm (1.7.7-0ubuntu2) saucy; urgency=low * debian/lightdm.init: - Use correct path to daemon (LP: #1204713) -- Robert Ancell Thu, 25 Jul 2013 14:25:48 +1200 lightdm (1.7.7-0ubuntu1) saucy; urgency=low * New upstream release: - Fix uninitialized pointer introduced in 1.7.3 - Enable compile warnings and fix code generating warnings * debian/patches/50_ubuntu_fix_uninitialised_pointer.patch: - Applied upstream: -- Robert Ancell Tue, 23 Jul 2013 11:23:47 +1200 lightdm (1.7.6-0ubuntu2) saucy; urgency=low * src/main.c: fix up an unitialised pointer in configuration directory handling. (LP: #1203711) -- Andy Whitcroft Mon, 22 Jul 2013 11:36:05 +0100 lightdm (1.7.6-0ubuntu1) saucy; urgency=low * New upstream release: [ 1.7.6 ] - Restore greeter hints that were regressed in 1.7.5. - Don't run greeters through session wrapper - regression in 1.7.5 [ 1.7.5 ] - Quit Plymouth correctly when using the unity seat type (LP: #1192051) - Release the VT when the system compositor fails to start - Load sessions and greeters from /usr/share/lightdm/sessions and /usr/share/lightdm/greeters. The existing directories are checked if the sessions are not in these directories. - Refactor the Display class so that it merges with the Seat class - Support running the greeter and session in different display servers instead of re-using the same one during a login. - Add more regression tests - Documentation fixes -- Robert Ancell Mon, 22 Jul 2013 17:13:19 +1200 lightdm (1.7.4-0ubuntu1) saucy; urgency=low * New upstream release: - Set XDG_SEAT and XDG_VTNR environment variables. - Add initial support for Unity (i.e. Mir based) seats. - Add a greeter wrapper option. * debian/50-xserver-command.conf: * debian/patches/05_add_xserver_core_option.patch: - Use a conf file to replace X server core patch * debian/50-greeter-wrapper.conf * debian/patches/03_launch_dbus.patch - Use a conf file to greeter wrapper patch -- Robert Ancell Mon, 01 Jul 2013 15:47:21 +1200 lightdm (1.7.3-0ubuntu2) saucy; urgency=low * debian/guest-account: disable screen locking in a more reliable way. Rather than trying to write a key for another user, while setting up the guest user account, just set up an autostart desktop that will set it during the login (lp: #951000) -- Sebastien Bacher Tue, 25 Jun 2013 22:30:04 +0200 lightdm (1.7.3-0ubuntu1) saucy; urgency=low * New upstream release: - Load configuration from /etc/lightdm/lightdm.conf.d. (LP: #1190425) - Fix compile warnings - Fix tests not running from install directory inside checkout. -- Robert Ancell Fri, 21 Jun 2013 14:39:27 +1200 lightdm (1.7.2-0ubuntu1) saucy; urgency=low * New upstream release: - Fix .pc file for liblightdm-qt5-3 - Add a new option "autologin-in-background" which lets an autologin happen in a second display while still showing the greeter. - Stop if fail to create default seat - Add option to set seat type in lightdm-set-defaults - Stop using g_file_set_contents - it can leave intermediate files around - Make tests work without installing them - Fix distcheck * debian/patches/06_fix_qt_pcfiles.patch: * debian/patches/07_lp1189948.patch: - Applied upstream -- Robert Ancell Mon, 17 Jun 2013 14:08:46 +1200 lightdm (1.7.0-0ubuntu6) saucy; urgency=low * install apparmor abstractions as 064 (LP: #1189948) - debian/patches/07_lp1189948.patch: adjust Makefile.am and Makefile.in to use install --mode=0644 - debian/lightdm.postinst: chmod apparmor abstractions to 0644 on upgrade -- Jamie Strandboge Tue, 11 Jun 2013 14:11:34 -0500 lightdm (1.7.0-0ubuntu5) saucy; urgency=low * Drop XS-Testsuite header. We don't actually have any autopkgtests right now (they are commented out in debian/tests/control and are broken). -- Martin Pitt Thu, 06 Jun 2013 06:58:11 +0200 lightdm (1.7.0-0ubuntu4) saucy; urgency=low * Install some files in liblightdm-qt-dev, so it's somewhat useful. -- Adam Conrad Fri, 24 May 2013 00:31:31 -0600 lightdm (1.7.0-0ubuntu3) saucy; urgency=low * Switch to unversioned -dev package for liblightdm-qt to match Debian and avoid having to change other packages synced from Debian * Swtich Conflicts to Breaks and add liblightdm-qt-3-dev to Breaks/Replaces -- Scott Kitterman Fri, 24 May 2013 00:37:06 -0400 lightdm (1.7.0-0ubuntu2) saucy; urgency=low * Cherry-pick patches from upstream to fix liblightdm-qt{,5} pcfiles. * Refresh patches to apply cleanly -- Iain Lane Tue, 07 May 2013 17:36:29 +0100 lightdm (1.7.0-0ubuntu1) saucy; urgency=low [ Robert Ancell ] * New upstream release: - Use logind instead of ConsoleKit if it is available - Use Q_SLOTS and Q_SIGNALS instead of slots and signals. - Ignore stale X server locks - Pass through system locale or set locale from AccountsService/.dmrc - Fix bug where seat failure before D-Bus acquired would not stop daemon * debian/control: - liblightdm-qt-2 -> liblightdm-qt-3 * debian/patches/06_qt_no_keywords.patch: - Applied upstream [ Gunnar Hjalmarsson ] * debian/patches/04_language_options.patch: - Applied upstream * debian/patches/04_language_handling.patch: - Set LANGUAGE instead of LANG, since the Language property in accountsservice as patched for Ubuntu does not contain a valid locale name. -- Robert Ancell Thu, 02 May 2013 10:20:02 -0700 lightdm (1.6.0-0ubuntu2.1) raring-proposed; urgency=low * lightdm.upstart: Add a start condition on plymouth-ready, and drop conditions already handled by plymouth-splash (LP: #982889). * control: Depend on the new plymouth version that provides plymouth-ready. -- Timo Aaltonen Tue, 23 Apr 2013 12:10:28 +0300 lightdm (1.6.0-0ubuntu2) raring; urgency=low * debian/patches/06_qt_no_keywords.patch: - Don't use Qt keywords like slots and signals in headers. Instead, use Q_SLOTS and Q_SIGNALS. This avoids breaking builds of projects that define QT_NO_KEYWORDS. -- Michael Terry Mon, 15 Apr 2013 11:31:15 -0400 lightdm (1.6.0-0ubuntu1) raring; urgency=low * New upstream bugfix release: - Allow VNC command to be specified in lightdm.conf - Register enums with QObject meta type system. * debian/watch: - Watch for .xz releases -- Robert Ancell Mon, 15 Apr 2013 11:01:22 +1200 lightdm (1.5.3-0ubuntu1) raring; urgency=low * New upstream bugfix release: - Fix build with gobject-introspection 1.35.9 - Fix authentication cancel regression caused in 1.5.2 (LP: #1163456) * debian/patches/fix-ftbfs-gir-scanner.patch: - Applied upstream -- Robert Ancell Wed, 03 Apr 2013 15:55:16 +1300 lightdm (1.5.2-0ubuntu2) raring; urgency=low * Pass --symbol-prefix via LightDM_1_gir_SCANNERFLAGS rather than LightDM_1_gir_CFLAGS, fixing build failure with gobject-introspection >= 1.35.9. -- Dmitrijs Ledkovs Tue, 02 Apr 2013 12:51:14 +0100 lightdm (1.5.2-0ubuntu1) raring; urgency=low * New upstream bugfix release: * Fix stale X server being left behind when using LockSession D-Bus API (LP: #1005813) * Adjust AppArmor profile to also work with logind * Don't use GIO to access X authority files - it uses GVFS which is unnecessary overhead/complexity * Handle over/underflows when reading from greeter * Improve warning message when XDMCP packet has length mismatch * Only report test command line if it fails * Add more regression tests -- Robert Ancell Wed, 27 Mar 2013 14:44:44 +1300 lightdm (1.5.1-0ubuntu2) raring; urgency=low * debian/lightdm.upstart: Clear the virtual terminal after starting lightdm so startup messages are not displayed when switching users or when suspending (LP: #967229) -- Brian Murray Thu, 21 Mar 2013 14:33:46 -0700 lightdm (1.5.1-0ubuntu1) raring; urgency=low * New upstream release: [ 1.5.0 ] - Add man page for lightdm-set-defaults (LP: #1044485) - Use xzip for distribution, don't distribute old metadata - Correctly check if display is active when session quits - Relicense liblightdm to LGPL-2/LGPL-3 so GPL-2 code can link against it - Selectively lock memory rather than calling mlockall for main daemon [ 1.5.1 ] - QLightDM: Add Qt5 version of the library: liblightdm-qt5-2 (LP: #1117355) - QLightDM: Add some missing role names in UsersModel - QLightDM: Add a backgroundPath role to UsersModel - QLightDM: Fix potential crash in QLightDM::UsersModel closedown. - Improve guest session apparmor - Run each test in its own /tmp dir so they can't interfere with eachother - Fix script hooks no longer working with latest glib (LP: #1128474) - Fix display clean up code * debian/control: - Use standards version 3.9.4 - Drop bzr branch - Build-depend on qtbase5-dev - Add new Qt 5 packages * debian/patches/08_lp1059510.patch: * debian/patches/09_lp577919-fix-chromium-launch.patch: * debian/patches/10_selective_mlock.patch: * debian/patches/11_runtime_dir_access.patch: - Applied upstream * debian/source/format: - Use 3.0 -- Robert Ancell Fri, 08 Mar 2013 11:06:52 +1300 lightdm (1.4.0-0ubuntu5) raring; urgency=low * Add 11_runtime_dir_access.patch: Allow guest session to write /run/user//. (LP: #1131139) -- Martin Pitt Mon, 25 Feb 2013 14:44:18 +0100 lightdm (1.4.0-0ubuntu4) raring; urgency=low * Update pam configs to call pam_env last and use user_readenv=1 explicitly, so that ~/.pam_environment can always be read even when home directories are encrypted with ecryptfs. LP: #952185. -- Steve Langasek Tue, 12 Feb 2013 12:57:29 -0800 lightdm (1.4.0-0ubuntu3) raring; urgency=low [ Michael Terry ] * debian/02_disable_tests.patch, debian/rules: - Drop patch, disable test suite during build by just overriding dh_auto_test. This way we can still manually run tests * debian/control, debian/tests: - Add dep8 tests to run upstream test suite. The suite only works once lightdm is installed into PREFIX. So we must run via dep8. Disabled for now until the next upstream release. * debian/patches/05_add_xserver_core_option.patch: - Modify test X server to also accept -core * debian/patches/10_selective_mlock.patch: - Backport patch from upstream to not use mlockall for the daemon (LP: #1074279) * debian/rules: - Use ./autogen.sh when running dh_autoreconf [ Matt Fischer ] * debian/lightdm.install: - Remove duplicate entry /usr/share/man - Install apport hook * debian/lightdm.postinst: - Fix ownership of /var/lib/lightdm * debian/lightdm.postrm: - Correctly remove /var/lib/lightdm on uninstall * debian/source_lightdm.py: - Update apport hook -- Michael Terry Thu, 31 Jan 2013 11:05:23 -0500 lightdm (1.4.0-0ubuntu2) quantal; urgency=low * debian/patches/01_transition_ubuntu2d_ubuntu_desktop.patch: - Fix 2d->3d transition to handle new support for accountsservice LP: #1059137 -- Michael Terry Tue, 09 Oct 2012 10:26:43 -0400 lightdm (1.4.0-0ubuntu1) quantal; urgency=low * New upstream stable release. * debian/liblightdm-gobject-1-0.symbols: - Updated * debian/patches/06_add_remote_login_hint.patch: * debian/patches/07_fix_types_in_vapi.patch: - Applied upstream -- Robert Ancell Fri, 05 Oct 2012 17:33:21 +1300 lightdm (1.3.3-0ubuntu5) quantal; urgency=low * debian/patches/08_lp1059510.patch: allow owner 'rw' access to /{,var/}run/user/guest-*/dconf/user. Also allow owner writes to sockets in /{,var/}run/user/guest-*/keyring-*/. (LP: #1059510) * debian/patches/09_lp577919-fix-chromium-launch.patch: allow launch of chromium-browser from guest session. (LP: #577919) -- Jamie Strandboge Mon, 01 Oct 2012 10:15:51 -0500 lightdm (1.3.3-0ubuntu4) quantal; urgency=low * debian/patches/06_add_remote_login_hint.patch, debian/liblightdm-gobject-1-0.symbols: - Add a greeter hint to disable remote login support, and turn it on by default. -- Michael Terry Tue, 11 Sep 2012 11:42:17 -0400 lightdm (1.3.3-0ubuntu3) quantal; urgency=low * debian/patches/06_disable_remote_login.patch: - Drop patch, thereby enabling Remote Login support (LP: #1040221) -- Michael Terry Fri, 07 Sep 2012 11:40:01 -0400 lightdm (1.3.3-0ubuntu2) quantal; urgency=low * debian/patches/07_fix_types_in_vapi.patch: - Patch from upstream to fix a broken vapi when trying to use a couple enums -- Michael Terry Thu, 06 Sep 2012 17:26:01 -0400 lightdm (1.3.3-0ubuntu1) quantal; urgency=low [ Robert Ancell ] * New upstream release: - Add a new remote session type. These sessions create a temporary local account and authenticate against a remote server. The session is an application that accesses that remote session (e.g. VNC, RDP etc) - Support multiple simultaneous PAM prompts (LP: #1043593) - Set utmp ut_host field to the X display address (LP: #1027760) - Correctly reap unused authentication sessions (LP: #990661) * debian/liblightdm-gobject-1-0.symbols: - Updated [ Michael Terry ] * debian/patches/06_disable_remote_login.patch: - Always return an error when trying to log in to remote sessions, until the FFe is granted (which is bug 1040221) -- Robert Ancell Thu, 30 Aug 2012 10:15:16 +1200 lightdm (1.3.2-0ubuntu3) quantal; urgency=low [ Christopher James Halse Rogers ] * debian/patches/05_add_xserver_core_option.patch: - Pass '-core' to the X server, which will cause it to dump core when crashing. This will trigger apport, so we'll get more reliable crash reports from X server crashes. [ Didier Roche ] * debian/patches/01_transition_ubuntu2d_ubuntu_desktop.patch: - unity-2d is not supported anymore and won't be port to gsettings, transition people using the 2d session to the 3d one. llvmpipe will be use if no hardware acceleration is available (LP: #1035261) * debian/patches/01_transition_gnome_ubuntu_desktop.patch: - removed, not needed anymore [ Scott Kitterman ] * Add lightdm-kde-greeter as an alternate recommends for lightdm -- Didier Roche Wed, 15 Aug 2012 08:41:55 +0200 lightdm (1.3.2-0ubuntu2) quantal; urgency=low * Update guest-account script to not depend on Gnome and to set various KDE settings LP: #1028552 -- Jonathan Riddell Tue, 07 Aug 2012 16:37:49 +0100 lightdm (1.3.2-0ubuntu1) quantal; urgency=low * New upstream release: - Handle clearenv() not being defined - Fix compilation with GCC 4.7 - Expose remaining properties in QLightDM::Greeter - Fix utmp records being written before child process created -- Robert Ancell Tue, 17 Jul 2012 18:44:05 +1200 lightdm (1.3.1-0ubuntu2) quantal; urgency=low * debian/control: - Add build-depends on yelp-tools -- Robert Ancell Thu, 21 Jun 2012 15:22:59 +1200 lightdm (1.3.1-0ubuntu1) quantal; urgency=low * New upstream release: - Don't set PAM_XDISPLAY or PAM_XAUTHDATA if not supported - Add lock-memory option, enabled by default, to prevent paging memory to disk. - Write utmp records for sessions - Install PAM configuration - Run greeters inside the "lightdm-greeter" PAM service - Handle setresgid and setresuid not being available - Use xsession directory from lightdm.conf in liblightdm * debian/rules: - Install lightdm-greeter PAM config * debian/lightdm.lightdm-greeter.pam: - PAM configuration for greeters -- Robert Ancell Thu, 21 Jun 2012 11:47:33 +1200 lightdm (1.2.1-0ubuntu1) precise-proposed; urgency=low * New upstream release: - Fix wrapper path in AppArmor profile (broken since 1.1.1) - Add show-manual-login and allow-guest options to lightdm-set-defaults -- Robert Ancell Wed, 18 Apr 2012 18:37:47 +1000 lightdm (1.2.0-0ubuntu2) precise; urgency=low * Fix wrapper path in AppArmor profile. This got broken in 1.1.1. Patch also committed upstream, and cherry-picked (r1487) (LP: #975901) -- Martin Pitt Tue, 10 Apr 2012 11:06:03 +0200 lightdm (1.2.0-0ubuntu1) precise; urgency=low * New upstream release. - Backup .xsession-errors on login (LP: #951597) - Handle failures in pam_setcred - Open log files in append mode (LP: #951597) - Add extra checks in liblightdm so that it doesn't send invalid messages to the daemon (LP: #969023) - Fix gdmflexiserver not being added to the path (broken since 1.1.4) (LP: #953554) - Fix PAM conversations after authentication from locking up sessions (LP: #956848) - Fix PAM informational messages locking up autologin - Change XDMCP manage timeout from 10ms to 126s (maximum specified in the XDMCP specification) - Fix greeter-show-guest example (LP: #972711) -- Robert Ancell Thu, 05 Apr 2012 17:26:50 +1000 lightdm (1.1.9-0ubuntu2) precise; urgency=low * debian/lightdm-session: - include some Xsession macros used by Xsession.d scripts (lp: #900221) -- Sebastien Bacher Thu, 29 Mar 2012 12:52:34 +0200 lightdm (1.1.9-0ubuntu1) precise; urgency=low [ Gunnar Hjalmarsson ] * debian/guest-account: Add trailing '/' to the line "gs_skel=/etc/guest-session/skel" (LP: #956152). [ Robert Ancell ] * New upstream release: * Add --show-users/--hide-users to lightdm-set-defaults * Call initgroups before pam_setcred - this allows pam_setcred to change group membership correctly (LP: #880104) -- Robert Ancell Thu, 22 Mar 2012 16:48:59 +1100 lightdm (1.1.8-0ubuntu1) precise; urgency=low * New upstream release: - Handle PAM interactions that have more than one message in one callback (LP: #951460) -- Robert Ancell Thu, 15 Mar 2012 12:57:30 +1100 lightdm (1.1.7-0ubuntu2) precise; urgency=low * debian/guest-account: Fix arbitrary file deletion in removal of guest files in /tmp. Use find/xargs with 0 separators instead of spaces. (LP: #953044, CVE-2012-0943) -- Martin Pitt Tue, 13 Mar 2012 14:53:10 +0100 lightdm (1.1.7-0ubuntu1) precise; urgency=low * New upstream release. -- Robert Ancell Fri, 09 Mar 2012 15:28:40 +1100 lightdm (1.1.6-0ubuntu1) precise; urgency=low * Upload the new version to Ubuntu * Reshuffle a bit the vcs to use merge upstream correctly [ Robert Ancell ] * New upstream release: - Fix session wrapper working the same as it did in 1.1.3 (lp: #944736) - Stop file descriptors leaking into the session processes (lp: #927060) [ Martin Pitt ] * debian/control: Fix liblightdm-gobject-1-doc architecture to "all". -- Sebastien Bacher Tue, 06 Mar 2012 13:45:29 +0100 lightdm (1.1.4.is.1.1.3-0ubuntu3) precise; urgency=low * debian/lightdm.postinst: Drop the disable-while-typing gsettings call again. The Unity greeter already disables the mouse plugin these days, and other known greeters do not use g-s-d. * debian/lightdm.dirs: Really add /etc/X11/, revision 1077 did not actually do it. (LP: #921169) -- Martin Pitt Mon, 05 Mar 2012 13:10:46 +0100 lightdm (1.1.4.is.1.1.3-0ubuntu2) precise; urgency=low [ Matt Fischer ] * debian/lightdm.dirs: - Add /etc/X11/ so lightdm.postinst doesn't fail on systems without X installed (LP: #921169) [ Martin Pitt ] * debian/lightdm.postinst: Disable disable-while-typing touchpad setting for GNOME; we do not really need this feature in lightdm, and multiple syndaemon instances cause the touchpad to stop working sometimes. Add libglib2.0-bin dependency for this. (LP: #868400) -- Martin Pitt Mon, 05 Mar 2012 12:36:04 +0100 lightdm (1.1.4.is.1.1.3-0ubuntu1) precise; urgency=low * Revert to 1.1.3 until we can figure out proper solution to bug 944736 -- Michael Terry Fri, 02 Mar 2012 15:03:26 -0500 lightdm (1.1.4-0ubuntu1) precise; urgency=low * New upstream release. - Change session directory once user permissions are set so it works on NFS filesystems that don't allow root to access files. (LP: #877766) - Restructure session code so the PAM authentication is run in its own process. (LP: #881466) - Set PAM_XDISPLAY and PAM_XAUTHDATA pam items (LP: #862559) - Don't send session stdout to .xsession-errors - Fix Qt bindings crash when removing a user -- Robert Ancell Thu, 01 Mar 2012 20:54:07 +1100 lightdm (1.1.3-0ubuntu1) precise; urgency=low * New upstream release: - Actually return the system default keyboard layout, not just 'us' - Add keyboard layout variants to list of keyboard layouts - Check accountsservice as well as .dmrc for users' layouts - Add lightdm_user_get_layouts() to query the configured list of layouts on a per-user basis - Add Lock D-Bus method that locks the seat and provides a hint to the greeter to be in lock mode. - Automatically lock sessions when switching away from them - Add a has-messages property to liblightdm - Add regression tests for PAM modules changing usernames - Don't use g_key_file_unref, it requires glib 2.32 -- Robert Ancell Wed, 15 Feb 2012 20:15:08 +1100 lightdm (1.1.2-0ubuntu3) precise; urgency=low * debian/patches/05_keyboard_indicator.patch: - Backported patch from trunk to fix various keyboard layout issues preventing greeter keyboard indicators from working. LP: #919199, LP: #919200, LP: #915468 -- Michael Terry Sun, 12 Feb 2012 19:37:51 -0500 lightdm (1.1.2-0ubuntu2) precise; urgency=low * Redo the previous update using merge-upstream in the package vcs so the new version is not reverted in the diff.gz... * 00upstream_set-defaults_autologin_support.patch: - dropped, the fix is in the new version -- Sebastien Bacher Sun, 12 Feb 2012 13:01:15 +0100 lightdm (1.1.2-0ubuntu1) precise; urgency=low * New upstream release: - Add regression tests for getting the user language and layout - Stop accidentally distributing libsystem - Fix introspection bindings not containing any methods (LP: #920810) - lightdm-set-defaults can now set the autologin user - Add Python greeter regression tests (representative of all introspection based greeters) - Wait for the VT to become active when switching to avoid a suspected race condition somewhere between LightDM, X, ConsoleKit and the kernel. (LP: #851612) - Stop lightdm_greeter_start_session_sync() blocking on success. * debian/lightdm.prerm: - Fix incorrect location of lightdm binary (found by Rolf Anders) -- Robert Ancell Fri, 10 Feb 2012 17:32:47 +1100 lightdm (1.1.1-0ubuntu4) precise; urgency=low * Add 00upstream_set-defaults_autologin_support.patch: Add support for setting autologin-user in lightdm-set-defaults. Committed to and backported from trunk. * debian/lightdm.postinst: Migrate autologin configuration from gdm on first installation. (LP: #854431) -- Martin Pitt Mon, 30 Jan 2012 08:25:03 +0100 lightdm (1.1.1-0ubuntu3) precise; urgency=low [ Aurélien Gâteau ] * debian/control, liblightdm-qt*.install: - Rename liblightdm-qt packages to match upstream changes - Conflicts, Replaces with the buggy version -- Sebastien Bacher Thu, 19 Jan 2012 11:34:41 +0100 lightdm (1.1.1-0ubuntu2) precise; urgency=low * debian/patches/04_language_options.patch: - Replace 'locale -a' output with accountsservice's list of language options (LP: #918225). -- Gunnar Hjalmarsson Wed, 18 Jan 2012 16:10:29 +0100 lightdm (1.1.1-0ubuntu1) precise; urgency=low * New upstream release: * Support PAM requesting a change of password (lp: #911597) * Support for reading users' backgrounds from Accounts Service (lp: #844081) * Switching to a user without a password bypasses the greeter (lp: #861177) * Move the GTK+ and Qt greeters into their own projects * Drop the gtk and qt greeters packaging files from this source * debian/liblightdm-gobject-1-0.symbols: - list new lightdm_user_get_background symbol * debian/patches/04_CVE-2011-4105.patch, debian/patches/05_CVE-2011-3153.patch, debian/patches/09_show_lang_chooser_option.patch, debian/patches/10_available_languages.patch, debian/patches/11_set_language_in_accountsservice.patch: - dropped, those issues are fixed in the new version or apply to the gtk greeter which is moved to its own source * debian/rules: - install lightdm-set-defaults back to its previous location -- Sebastien Bacher Wed, 18 Jan 2012 11:10:03 +0100 lightdm (1.0.6-0ubuntu4) precise; urgency=low [ Gunnar Hjalmarsson ] * debian/lightdm-gtk-greeter-ubuntu.conf and debian/patches/09_show_lang_chooser_option.patch: - Disclose the option to enable the language chooser. * debian/patches/10_available_languages.patch: - If available, show a list of installed translations in the language chooser instead of a 'locale -a' list (LP: #868346). - Use nl_langinfo() to get language and country names for the language chooser labels. - Translate language and country names. - Handle @variants properly. * debian/patches/11_set_language_in_accountsservice.patch: - Save item that is selected from the language chooser also when AccountsService is in use (LP: #868346). -- Robert Ancell Tue, 22 Nov 2011 12:41:43 +1100 lightdm (1.0.6-0ubuntu3) precise; urgency=low * SECURITY UPDATE: file contents disclosure via hard link - debian/patches/04_CVE-2011-4105.patch: make sure file isn't a symlink or a hard link before doing the chown on it. - CVE-2011-4105 * SECURITY UPDATE: file contents disclosure via links (LP: #883865) - debian/patches/05_CVE-2011-3153.patch: drop privileges before accessing file. - CVE-2011-3153 -- Marc Deslauriers Tue, 15 Nov 2011 14:23:53 -0500 lightdm (1.0.6-0ubuntu2) precise; urgency=low * Upload to precise. -- Martin Pitt Thu, 10 Nov 2011 07:19:12 +0100 lightdm (1.0.6-0ubuntu1) oneiric-proposed; urgency=low [ Martin Pitt ] * debian/lightdm.upstart: Put back check for "text" in kernel command line, for inhibiting automatic lightdm start. Check $JOB to still allow a manual "start lightdm" command to work. (LP: #873334) [ Robert Ancell ] * New upstream release: - Use lchown for correcting ownership of ~/.Xauthority instead of chown -- Robert Ancell Wed, 02 Nov 2011 11:37:43 -0400 lightdm (1.0.5-0ubuntu1) oneiric-proposed; urgency=low * New upstream release. [1.0.5] - Relax AppArmor guest profile to allow compiz to start - Connect up VNC settings for width, height, depth [1.0.4] - Fix --enable-gtk-greeter=yes not working - Fix X sessions with arguments in Exec not working - Use previous session for automatic login or if greeter does not request one. (LP: #834515) - Correct ownership of ~/.Xauthority if upgrading from buggy version of LightDM that had it root owned. (LP: #871667) - Set default resolution of VNC to 1024x768, add settings for width, height, depth into lightdm.conf. - AppArmor profile: Fix broken gnome-keyring and dbus/gwibber, and quiesce annoying kernel audit messages for privileges that we definitively do not want to grant. (LP: #877736) (LP: #874635) - Set LOGNAME environment variable (LP: #875705) - Mark strings as translatable in GTK greeter (LP: #868613) [ 1.0.3] - Fix reference counting issue in ConsoleKit code - Really add the lightdm-guest-session-wrapper [ 1.0.2 ] - Fix daemon from blocking if Accounts Service does not exist - Fix greeter log file not being written - Don't set LANG environment variable if using Accounts Service. - Fix gdmflexiserver not working due to it not being in PATH - Don't authenticate the greeter user - Allow greeters to be disabled in configure flags - Fix over allocation of read buffer in greeter protocol - Make sure objects are cleaned up on exit - Fix minor memory leaks - Fix hugely oversized allocation in greeter buffer. Can trigger crashes when entering very long passwords. * debian/patches/00bzr_guest_session_wrapper.diff: * debian/patches/07_long_password_crash.patch: * debian/patches/08_correct_ck_ref.patch: - Applied upstream * New upstream release. -- Robert Ancell Wed, 26 Oct 2011 12:45:17 -0400 lightdm (1.0.1-0ubuntu6) oneiric; urgency=low * debian/patches/08_correct_ck_ref.patch: - backported fix from Mikkel Kamstrup Erlandsen for a refcounting issue which leads to sessions where unity can't start (lp: #851345) -- Sebastien Bacher Fri, 07 Oct 2011 13:57:44 +0200 lightdm (1.0.1-0ubuntu5) oneiric; urgency=low * Add debian/patches/00bzr_guest_session_wrapper.diff: Add back the guest session wrapper part that was uploaded in 1.0.0-0ubuntu4. The patch was correctly merged into trunk, but the 1.0 branch backport missed this wrapper part and thus broke AppArmor protection entirely. (LP: #849027) -- Martin Pitt Fri, 07 Oct 2011 11:47:36 +0200 lightdm (1.0.1-0ubuntu4) oneiric; urgency=low * debian/patches/04_language_not_to_LANG.patch: * debian/patches/04_dmrc_set_LANG_only.patch: - Replace LANG disabling code with proper fix (LP: #868149) * debian/patches/03_launch_dbus.patch: * debian/patches/05_gdmflexiserver_not_in_PATH.patch: - Refreshed * debian/patches/06_accounts_service_timeout.patch: - Fix D-Bus timeout when accounts service not installed (LP: #866035) * debian/patches/07_long_password_crash.patch: - Fix crash with long passwords (LP: #817186) -- Robert Ancell Thu, 06 Oct 2011 15:45:21 +1100 lightdm (1.0.1-0ubuntu3) oneiric; urgency=low * debian/patches/05_gdmflexiserver_not_in_PATH.patch: - Make sure to insert our own utility path into PATH after PAM sets PATH, not before. This ensures gdmflexiserver is present in PATH and can be found by gnome-screensaver, gnome-shell, etc. -- Michael Terry Wed, 05 Oct 2011 09:05:31 -0400 lightdm (1.0.1-0ubuntu2) oneiric; urgency=low * debian/patches/04_language_not_to_LANG.patch: Locale names based on AccountsService's "Language" key may not go to $LANG, as that property is a language name, not a locale. (LP: #864618). -- Gunnar Hjalmarsson Wed, 05 Oct 2011 09:49:15 +0200 lightdm (1.0.1-0ubuntu1) oneiric; urgency=low * New upstream release: - GTK greeter now remembers last user - GTK greeter now initializes i18n (LP: #862427) - Start authentication for automatically selected user in GTK greeter - Link liblightdm-qt against QtGui - Fix liblightdm-qt crashing when face images are installed (LP: #850095) - Set correct permissions on session log files (LP: #863119) - Prefer a locale with a codeset over one without for setting LANG (LP: #864618) - Introduce a lightdm-guest-session-wrapper session command which MAC systems like AppArmor and SELinux can use for attaching a restrictive policy to guest sessions. - Provide an AppArmor profile for guest session lockdown. * debian/patches/01_guest_session_lockdown.patch: - Applied upstream -- Robert Ancell Tue, 04 Oct 2011 19:58:25 +1100 lightdm (1.0.0-0ubuntu4) oneiric; urgency=low * Add 01_guest_session_lockdown.patch: Lock down guest session with an AppArmor profile. This uses the very same approach as gdm-guest-session, and copies the profile from it. (LP: #849027) * 03_launch_dbus.patch: Refresh. * debian/lightdm.install: Install AppArmor profile. -- Martin Pitt Fri, 30 Sep 2011 17:30:56 +0200 lightdm (1.0.0-0ubuntu3) oneiric; urgency=low * debian/patches/03_launch_dbus.patch: - Fix patch applying in the wrong place -- Robert Ancell Thu, 29 Sep 2011 16:08:20 +1000 lightdm (1.0.0-0ubuntu2) oneiric; urgency=low * debian/lightdm-gtk-greeter.postinst, debian/lightdm-gtk-greeter.postrm, debian/lightdm-gtk-greeter.preinst: - move the gtk-greeter conffile starting from 1.0.0-0ubuntu1 and not 0.9.7-0ubuntu1 (the patch using 0.9.7-0ubuntu1 as a reference has been integrated in 1.0.0-0ubuntu1 without being updated even if 0.9.7-0ubuntu2 was already released). Ensure we do it now (LP: #861316) -- Didier Roche Wed, 28 Sep 2011 13:40:40 +0200 lightdm (1.0.0-0ubuntu1) oneiric; urgency=low [ Steve Langasek ] * don't start on graphics-device-added; reintroducing this reverted the fix for bug #615549 from maverick without explanation. * clean up the completely illegible start rule for debian/lightdm.upstart, killing off the unnecessary parentheses * debian/lightdm.upstart: when lightdm is shut down by a runlevel call, emit an upstart event that can be caught by plymouth so it can distinguish between the DM shutting down for a runlevel change vs. other causes. LP: #854329. [ Robert Ancell ] * New upstream release. [ 0.9.8 ] - GetSeatForCookie and GetSessionForCookie are now deprecated. They remain for now but use the XDG_SEAT_PATH and XDG_SESSION_PATH environment variables instead. - Change log filenames to be unique across different display types. - Fix up script hooks, add regression tests for them - Complete removal of X code from the core of LightDM, so it can better support various display types - Add ability to set the language of a user from the greeter (LP: #803858) - Set LANG variable based on the user language - Add language selector into GTK greeter (disabled by default) - Allow TCP/IP connections if xserver-allow-tcp is true - Allow lightdm --version to be run as non-root - Automatically respond to PAM messages without prompts (LP: #783598) - Create 'AddLocalXSeat' D-Bus method, and require root to use 'AddSeat' - Fix multi-seat configuration picking the same display number (LP: #851362) - Use correct D-Bus and power interface in liblightdm-qt (LP: #852803) - Run pam_setcred inside the session process so pam_group works (LP: #851347) - Make sure one session is always selected in the GTK greeter (LP: #819177) [ 1.0.0 ] - Explicitly grab keyboard focus in GTK greeter - Fix removed power and a11y menu items in GTK greeter - Put system binary directory into path when running in test mode (LP: #860003) - Call pam_getenvlist after pam_setcred [ Lionel Le Folgoc ] * Make the gtk greeter easily themable by derivatives: (LP: #845549) - rename lightdm-gtk-greeter.conf to lightdm-gtk-greeter-ubuntu.conf, and handle the move in maintainer scripts. - manage /etc/lightdm/lightdm-gtk-greeter.conf with update-alternatives, by default it uses /etc/lightdm/lightdm-gtk-greeter-ubuntu.conf with a very low priority. * debian/control: lightdm-gtk-greeter provides lightdm-gtk-greeter-config. -- Robert Ancell Wed, 28 Sep 2011 16:00:20 +1000 lightdm (0.9.7-0ubuntu2) oneiric; urgency=low * don't start on graphics-device-added; reintroducing this reverted the fix for bug #615549 from maverick without explanation. * clean up the completely illegible start rule for debian/lightdm.upstart, killing off the unnecessary parentheses * debian/lightdm.upstart: when lightdm is shut down by a runlevel call, emit an upstart event that can be caught by plymouth so it can distinguish between the DM shutting down for a runlevel change vs. other causes. LP: #854329. -- Steve Langasek Sun, 25 Sep 2011 22:22:38 -0700 lightdm (0.9.7-0ubuntu1) oneiric; urgency=low * New upstream release. - Set PAM_TTY to the display name, not the tty device (LP: #851055) -- Robert Ancell Fri, 16 Sep 2011 09:39:22 +1000 lightdm (0.9.6-0ubuntu1) oneiric; urgency=low * New upstream release: - Only unlock displays if switched to from greeter - Make log file not system readable - Write ~/.Xauthority inside the session process so it cannot be hijacked - Set PAM_TTY and PAM_XDISPLAY when opening PAM session - Add VNC server support - Do not write ~/.dmrc and ~/.Xauthority as root. [CVE-2011-3349] * debian/patches/00upstream_unlock_fix.patch: * debian/patches/04_dont_write_files_as_root.patch: - Applied upstream -- Robert Ancell Thu, 15 Sep 2011 17:32:25 +1000 lightdm (0.9.5-0ubuntu2) oneiric; urgency=low * debian/lightdm.config: When installing from scratch as part of a release upgrade, default to lightdm, otherwise ask. (LP: #806559) * Add 04_dont_write_files_as_root.patch: Do not write ~/.dmrc and ~/.Xauthority as root. [CVE-2011-3349] * Add 00upstream_unlock_fix.patch: Only unlock displays if switched to from greeter. Cherrypicked from upstream r1137. (LP: #844274) -- Martin Pitt Thu, 15 Sep 2011 08:52:24 +0200 lightdm (0.9.5-0ubuntu1) oneiric; urgency=low [ Steve Langasek ] * Update upstart job to use current start condition lifted from gdm, and to check runlevels instead of /proc/cmdline so it's possible to start lightdm after switching out of recovery mode. LP: #803513. [ Didier Roche ] * debian/patches/01_transition_gnome_ubuntu_desktop.patch: natty-oneiric session name upgrade: - transition from unity-2d -> ubuntu-2d - transition from gnome-2d -> gnome-fallback [ Robert Ancell ] * New upstream release: [0.9.5] - Use accounts service in the daemon if it is available - Correctly load seat type in multi seat configuration - Add display-setup, session-setup and session-cleanup scripting hooks - Fix cancel button in GTK greeter (LP: #819240) - Fix line through GTK greeter menu items - Exit daemon if a seat fails which has exit-on-failure set to true - Add HasGuestAccount property to seat D-Bus interface (LP: #835084) - Fix XDMCP authorization - Update man file - Emit upstart events (LP: #715094) [0.9.4] - lightdm-set-defaults enables tweaking the default session and chosen greeter for lightdm. This is useful for derivatives waiting to not ship the whole configuration file of lightdm - Fix crash in GTK+ greeter when a user is added - Move xsessions-directory and xgreeters-directory from [SeatDefaults] to [LightDM]. This is a configuration break, but making it on the assumption that these settings are not likely to have been overridden. - Fix fallback from org.freedesktop.Accounts to passwd format - Fix duplicate user entries being shown when using passwd file - Add AddSeat D-Bus method for adding dynamic seats - Added a dm-tool program that allows user switching and adding seats - Allow remote X servers, e.g. launched using dm-tool add-nested-seat - Fix bug where sessions were started when the greeter quit and the user hadn't been authorized. - Fix bug where sessions used the seat bus name - Don't allow autologin-username to be set to empty - Fix bug where PAM session was not opened before writing to home directory - Fix crash when failing to write X authority -- Robert Ancell Wed, 07 Sep 2011 16:09:53 +1000 lightdm (0.9.3-0ubuntu8) oneiric; urgency=low * debian/patches/series: - Add patch from last commit to actually apply. Ahem. * debian/rules: - Make greeter wrapper executable -- Michael Terry Thu, 25 Aug 2011 16:20:00 -0400 lightdm (0.9.3-0ubuntu7) oneiric; urgency=low * debian/install, debian/lightdm-greeter-session, debian/patches/03_launch_dbus.patch: - Add patch and wrapper script to launch dbus for the greeter so that we can safely kill it when the greeter ends. -- Michael Terry Wed, 24 Aug 2011 15:34:07 -0400 lightdm (0.9.3-0ubuntu6) oneiric; urgency=low * Backport r1065 to use account service instead of .dmrc (lp: #823718), should fix the session not being correct remembered (lp: #818201) -- Sebastien Bacher Tue, 23 Aug 2011 16:21:59 +0200 lightdm (0.9.3-0ubuntu5) oneiric; urgency=low * Backport potfiles.in fix from trunk * debian/lightdm.install: install dm-tool (seat management utility) -- Sebastien Bacher Thu, 18 Aug 2011 15:59:45 +0200 lightdm (0.9.3-0ubuntu4) oneiric; urgency=low * Updated to current trunk, that's a candidate version version for the next update, it fixes those issues: - login doesn't work for ecryptfs users (lp: #823775, #824594) - "lightdm-gtk-greeter segfaults in get_user_iter when adding a new user" (lp: #822470) - fix fallback from org.freedesktop.Accounts to passwd format (lp: #817835) - empty autologin-user should not be passed to pam (lp: #817581) * debian/control.in: - build-depends on quilt, it's needed with source v1 - don't build-depends on valac, vala is not used in the current version * debian/lightdm.install: - install the manpages as well * debian/lightdm.manpages: - dropped, it's installed by the upstream make install * debian/rules: - use the quilt rule * debian/source/format: - use source v1, it works better with vcs workflows -- Sebastien Bacher Thu, 18 Aug 2011 15:29:42 +0200 lightdm (0.9.3-0ubuntu3) oneiric; urgency=low * debian/control: stop forcing the unity-greeter recommends (lp: #824299) -- Sebastien Bacher Thu, 11 Aug 2011 23:21:51 +0200 lightdm (0.9.3-0ubuntu2) oneiric; urgency=low * Backport mterry's changes to the gdmflexiserver functionnality * debian/control: default to the unity greeter (lp: #809710) * debian/lightdm.install: install the new files [ Didier Roche ] * Cherry-pick from upstream: - lightdm-set-defaults enables tweaking the default session and chosen greeter for lightdm. This is useful for derivatives waiting to not ship the whole configuration file of lightdm - refreshed translations * debian/rules: - set "ubuntu" as the default session (unable to login for people who don't have a .dmrc, sorry for the kittens…) -- Sebastien Bacher Wed, 10 Aug 2011 18:34:03 +0200 lightdm (0.9.3-0ubuntu1) oneiric; urgency=low [ Sebastien Bacher ] * New upstream version * debian/control: - build-depends on dh-translations - build with the current vala - demote the greeter depends back to a recommend, lightdm can be use to connect to remote displays and doesn't need a local greeter - lightdm depends on dbus (lp: #822824) - liblightdm-gobject recommends accountsservice (lp: #822863) * debian/liblightdm-gobject-1-0.symbols: - track library symbols * debian/lightdm.install: - ship the translations * debian/lightdm.preinst: - fix missing dh token * debian/rules: - reorder rules to work with new dh versions - stop the build if the liblightdm-gobject symbols are outdated - use dh-translations to generate the translations template * debian/source_lightdm.py: - get bug informations for apport, thanks Pedro Villavicencio (lp: #819954) [ Didier Roche ] * debian/watch: - fix debian/watch to get lightdm * debian/patches/01_transition_gnome_ubuntu_desktop.patch: - transition so that gnome.desktop is now move to ubuntu.desktop as the main session. We need that for transitionning to the next step (post LTS) where gnome-shell.desktop will be renamed to gnome.desktop -- Sebastien Bacher Tue, 09 Aug 2011 18:21:07 +0200 lightdm (0.9.2-0ubuntu4) oneiric; urgency=low * debian/control: depends on the greeters rather than recommends, seems some users still get no greeter after upgrade otherwise -- Sebastien Bacher Wed, 27 Jul 2011 19:10:47 +0200 lightdm (0.9.2-0ubuntu3) oneiric; urgency=low * Fix lightdm to conflict liblightdm-gobject-0-0 and liblightdm-qt-0-0, so that old greeters are removed on upgrade - update debian/control -- Chris Coulson Tue, 26 Jul 2011 23:26:49 +0100 lightdm (0.9.2-0ubuntu2) oneiric; urgency=low * debian/control: - recommends the preferred greeter before a virtual one - let the new gtk greeter provide the old example named one for easier upgrade -- Sebastien Bacher Tue, 26 Jul 2011 21:38:25 +0200 lightdm (0.9.2-0ubuntu1) oneiric; urgency=low * New upstream release [0.9.0] - Fix invalid XAUTHORITY variable being set for second X server. - Fix bug where switching users created X servers without VTs - Release a VT when the X server on it stops - Greeters are now just standard X sessions that are stored in /usr/share/xgreeters. - Drop most of the configure options, they aren't necessary - Config changes: - Major reorginisation of configuration to make it easier to configure and understand. Users should set [SeatDefaults] section with settings for all seats, and can override each setting in a per seat configuration. - Default seats are now specified using a [Seat:] section. If no seats are specified then one is started. This can be overridden by setting start-default-seat=false in [LightDM]. - Support setting autologin user to guest account - Split the user accounts configuration into /etc/lightdm/users.conf so the main config can be private. - The default user session is now "default". Distributions should put a symlink to their chosen default or set one in lightdm.conf. - XDMCP keys now stored in keys.conf - liblightdm API changes: - Both libraries are now version 1 and have API and ABI guarantees. - Face images are now local paths not URIs - liblightdm-gobject now uses lightdm_ prefix instead of ldm_ - Non-greeter functions are now moved out of the Greeter class - connect_to_server() is now called connect_sync and blocks until completion. - start_session() is now called start_session_sync and blocks until completion. The quit signal is removed, and the greeter should quit if this method returns TRUE. - login() is now called authenticate() - Greeters now have hints instead of configuration (greeters should load their own configuration from /etc/lightdm if they need it). - liblightdm-gobject uses AccountsService if it is available - Added regression tests for liblightdm-qt - D-Bus API changes: - Expose Seats and Sessions on org.freedesktop.DisplayManager - Add a CanSwitch property - Rename ShowGreeter() to SwitchToGreeter() - Greeter changes: - Drop "example" from the name of the GTK+ and Qt greeters and make them official default greeters. - Use GTK3 for GTK+ greeter. - Removed the Vala and Python GTK+ greeters, they weren't being well maintained. [0.9.1] - Fix up translation build system - Add a --with-greeter-user configure option - Fix greeter-user configuration not being used - Abort greeter if attempted to be run as root and greeter-user set - Fix setting session in GTK+ greeter [0.9.2] - Fix annotation and Vala bindings for getting the UserList singleton - Fix GTK+ greeter error label not being shown - Don't set SIGQUIT to ignore in child processes - Reworked the PAM code as ecryptfs users weren't able to log in. They can now but not sure what changed to fix that!? * debian/control: - Build depend on libgtk3.0-dev, not libgtk2.0-dev - Drop obsolete greeters, use new ones - lightdm conflicts with liblightdm-gobject-1 and liblightdm-qt-1 so old greeters will be removed. - Update versions of libraries * debian/lightdm.conf: - Removed, no longer needs configuration * debian/patches/01_resize_grip.patch: - Dropped, not required anymore -- Robert Ancell Tue, 26 Jul 2011 19:19:00 +1000 lightdm (0.4.4-0ubuntu1) oneiric; urgency=low * New upstream release - Fix failure to accept XDMCP connections due to invalid assert. - Allow minimum-display-number to be set in lightdm.conf and on the command line. - Session X authority now written to ~/.Xauthority by default. It can be configured to run from the system location by setting user-authority-in-system-dir=true in lightdm.conf. - When using system authority the authority can be updated by the user. (LP: #795046) - Written X authority files now checks hostname and display number. - Enironment is no longer passed through to X servers and sessions, this is no longer required now PAM works correctly. - liblightdm API changes: - Drop ldm_greeter_get_is_first() - it was added for testing and doesn't work well. - Fix more errors where authentication messages from previous sessions could be confused with new sessions. - Added XDMCP regression tests. * debian/lightdm.conf: - Updated to latest format -- Robert Ancell Fri, 15 Jul 2011 13:35:49 +1000 lightdm (0.4.3-0ubuntu1) oneiric; urgency=low * New upstream release -- Robert Ancell Wed, 13 Jul 2011 15:06:13 +1000 lightdm (0.4.2-0ubuntu2) oneiric; urgency=low * debian/Xsession: - Correctly load ~/.Xresource -- Robert Ancell Wed, 06 Jul 2011 09:29:15 +1000 lightdm (0.4.2-0ubuntu1) oneiric; urgency=low * New upstream release - Fixes (LP: #798277) * debian/lightdm.upstart: - Don't source /etc/environment or /etc/default/locale - this is done in PAM * debian/Xsession: - Handle X resource directory being empty (LP: #800193) -- Robert Ancell Tue, 05 Jul 2011 15:22:12 +1000 lightdm (0.4.1-0ubuntu1) oneiric; urgency=low * New upstream release - Fixes (LP: #793366) * debian/lightdm.conf: * debian/guest-session-cleanup.sh: * debian/guest-session-setup.sh: - Enable guest session -- Robert Ancell Thu, 30 Jun 2011 17:04:25 +0100 lightdm (0.4.0-0ubuntu7) oneiric; urgency=low * debian/Xsession: - Correctly load Xresources (LP: #800193) -- Robert Ancell Mon, 27 Jun 2011 09:43:49 +0100 lightdm (0.4.0-0ubuntu6) oneiric; urgency=low * debian/Xsession: - Set required variables to make Xsession.d scripts work (LP: #800192) -- Robert Ancell Mon, 27 Jun 2011 00:03:12 +1000 lightdm (0.4.0-0ubuntu5) oneiric; urgency=low * debian/lightdm.lightdm-autologin.pam, debian/rules: - Actually install autologin PAM configuration (LP: #797669). -- Colin Watson Fri, 17 Jun 2011 12:52:33 +0100 lightdm (0.4.0-0ubuntu4) oneiric; urgency=low * debian/control: don't depends on gnome-icon-theme-full, the purpose of the binary is to not be installed by default, icons should be moved rather -- Sebastien Bacher Fri, 17 Jun 2011 11:28:05 +0200 lightdm (0.4.0-0ubuntu3) oneiric; urgency=low * debian/control: - Make GTK greeters depend on gnome-icon-theme-full (LP: #796793) * debian/Xsession: * debian/lightdm.conf: - Load profile and X resources when running session (LP: #794315) (LP: #795083) -- Robert Ancell Fri, 17 Jun 2011 15:26:59 +1000 lightdm (0.4.0-0ubuntu2) oneiric; urgency=low * debian/copyright: - Drop copyright reference to obsolete ck-connector.[ch] * debian/patches/02_disable_tests.patch: - Disable regression tests as they're not running on the buildd's correctly -- Robert Ancell Fri, 17 Jun 2011 13:55:12 +1000 lightdm (0.4.0-0ubuntu1) oneiric; urgency=low * New upstream release * debian/control: - Add build-depends on dbus for regression tests - lightdm pre-depends on dpkg (>= 1.15.7.2) to get dpkg-maintscript-helper support - Drop build-depends on libdbus-glib-1-dev, libck-connector-dev * debian/lightdm.conf: - Update to latest format * debian/lightdm.postinst: * debian/lightdm.postrm: * debian/lightdm.preinst: - Move config file from /etc/lightdm.conf to /etc/lightdm/lightdm.conf * debian/lightdm-autologin.pam: - Add autologin PAM session * debian/patches/01_resize_grip.patch: - Don't show resize grip on window * debian/patches/01_handle_all_signals.patch: * debian/patches/02_process_exit.patch: - Applied upstream -- Robert Ancell Fri, 17 Jun 2011 12:31:14 +1000 lightdm (0.3.7-0ubuntu2) oneiric; urgency=low * debian/control: - Add ${python:Depends} and required dependencies for lightdm-greeter-example-python-gtk package (LP: #787409) * debian/patches/01_handle_all_signals.patch: - Correctly handle signals from external processes (LP: #789389) * debian/patches/02_process_exit.patch: - Fix crash when child processes quit (LP: #795050) -- Robert Ancell Fri, 10 Jun 2011 16:24:56 +1000 lightdm (0.3.7-0ubuntu1) oneric; urgency=low * New upstream release -- Robert Ancell Mon, 30 May 2011 20:22:39 +1000 lightdm (0.3.6-0ubuntu1) oneiric; urgency=low * New upstream release * debian/lightdm.conf: - Start display on active VT -- Robert Ancell Mon, 30 May 2011 16:43:37 +1000 lightdm (0.3.5-0ubuntu1) oneiric; urgency=low * New upstream release -- Robert Ancell Tue, 24 May 2011 15:38:04 +1000 lightdm (0.3.4-0ubuntu1) oneiric; urgency=low * New upstream release -- Robert Ancell Fri, 20 May 2011 14:56:09 +1000 lightdm (0.3.3-0ubuntu1) natty; urgency=low * New upstream release * debian/lightdm-greeter-example-gtk.install: - Install .ui file -- Robert Ancell Tue, 10 May 2011 17:45:50 +0200 lightdm (0.3.2-0ubuntu1) natty; urgency=low * New upstream release: * debian/lightdm-greeter-*.install: - Use new binary names * debian/lightdm.conf: - Start display on VT 7 -- Robert Ancell Thu, 21 Apr 2011 15:31:24 +1000 lightdm (0.3.0-0ubuntu1) natty; urgency=low * New upstream release * debian/control: - Add build-depends on valac - Drop build-depends on libwebkitgtk-dev - Rename gir1.0-lightdm-0 to gir1.2-lightdm-0 - Webkit engine and theme dropped - Merge theme and engines into one package - Add vala-gtk, python-gtk and qt greeters -- Robert Ancell Sat, 16 Apr 2011 18:22:50 +1000 lightdm (0.2.3-0ubuntu2) natty; urgency=low * debian/control: - Fix Vcs-Bzr link -- Robert Ancell Fri, 14 Jan 2011 14:44:48 -0600 lightdm (0.2.3-0ubuntu1) natty; urgency=low * New upstream release * debian/control: - Build depend on libwebkitgtk-dev -- Robert Ancell Fri, 14 Jan 2011 14:39:15 -0600 lightdm (0.2.2-0ubuntu2) natty; urgency=low * debian/copyright: - Update copyright for liblightdm-gobject and liblightdm-qt -- Robert Ancell Wed, 15 Dec 2010 10:16:16 +1100 lightdm (0.2.2-0ubuntu1) natty; urgency=low * New upstream release * debian/copyright: - Update copyright for src/ck-connector.[ch] * debian/liblightdm-gobject-0-dev: - .vapi file has moved location * debian/lightdm.upstart: - Tidy up upstart config * debian/rules: - Compile with --with-greeter-user=lightdm -- Robert Ancell Thu, 09 Dec 2010 11:45:44 +1100 lightdm (0.2.1-0ubuntu1) natty; urgency=low [ Julien Lavergne ] * debian/lightdm.{config,pam,postinst,postrm,prerm,upstart,init} - Add configuration based on gdm and xdm ones. * debian/rules: - Use dh_installinit --no-start - Remove .la and .a files. - Pass --list-missing to dh_install. - Don't use --with quilt with format 3.0. - Use with autoreconf. * debian/control: - Add myself to Uploaders, and use ubuntu address for Maintainer. - Build-depends on dh-autoreconf and gtk-doc-tools - Improve the description. - Add depends on libpam-runtime (>= 0.76-14) and libpam-modules for pam support. - Add depends on adduser. - Provides x-display-manager. - Add depends on libglib2.0-dev, libdbus-glib-1-dev and libxklavier-dev for libldmgreeter-dev. * debian/libldmgreeter-dev.install: - Install .so * debian/lightdm.install - Install conf file for DBus. * debian/lightdm.dirs - Add /var directories for logs, and cache. * debian/po & debian/lightdm.template: - Add translations for display manager switch. * debian/copyright: - Update address for source code and copyright for debian/. * debian/lightdm.conf: - Sync with upstream modification. * debian/lightdm.manpages - Add the upstream manpage. [ Robert Ancell ] * New upstream release * Rename from libldmgreeter to liblightdm * debian/control: - Use ubuntu-desktop Bzr link * debian/gir1.0-lightdm-0.install: - Install typelib into correct package * debian/lightdm.postinst: * debian/lightdm.postrm: - Create lightdm user -- Robert Ancell Wed, 01 Dec 2010 08:40:37 +1100 lightdm (0.2.0-0ubuntu1) maverick; urgency=low * New upstream release * debian/control: - Use standards version 3.9.1 * debian/lightdm.conf: * debian/rules: - Make an Ubuntu specific default config file -- Robert Ancell Fri, 12 Nov 2010 13:58:43 +1100 lightdm (0.1.2-0ubuntu2) maverick; urgency=low * debian/lightdm-theme-gnome.install: * debian/lightdm-theme-webkit.install: - Fix install location of themes -- Robert Ancell Tue, 12 Oct 2010 15:52:24 +1100 lightdm (0.1.2-0ubuntu1) maverick; urgency=low * New upstream release -- Robert Ancell Fri, 10 Sep 2010 16:57:49 +1000 lightdm (0.1.1-0ubuntu1) maverick; urgency=low * New upstream release -- Robert Ancell Sat, 14 Aug 2010 22:06:43 +1000 lightdm (0.1.0-0ubuntu2) maverick; urgency=low * debian/lightdm-theme-gnome.install: - Install gnome theme data -- Robert Ancell Thu, 22 Jul 2010 22:17:46 +0200 lightdm (0.1.0-0ubuntu1) maverick; urgency=low * New upstream release -- Robert Ancell Thu, 22 Jul 2010 21:57:35 +0200 lightdm (0.0.4-0ubuntu1) maverick; urgency=low * New upstream release * debian/control: - Build-depend on libxdmcp-dev, libxcb1-dev - Use standards-version 3.9.0 -- Robert Ancell Fri, 16 Jul 2010 10:12:40 +1000 lightdm (0.0.3-0ubuntu2) maverick; urgency=low * debian/control: - Build-depend on libxklavier-dev -- Robert Ancell Sat, 10 Jul 2010 15:33:57 +1000 lightdm (0.0.3-0ubuntu1) maverick; urgency=low * New upstream release - Wait for signal from X server before starting session - Add language API - Add keyboard layout API - Add gettext support to the WebKit greeter -- Robert Ancell Sat, 10 Jul 2010 14:07:26 +1000 lightdm (0.0.2-0ubuntu1maverick1) maverick; urgency=low * New upstream release: - Fix installation of D-Bus service file - Allow DISPLAY env variable to be passed to X server so can run Xephyr - Handle no automatic login in webkit theme * debian/control: - Remove invalid ${shlibs:Depends} lines on binary free packages * debian/watch: - Update watch location -- Robert Ancell Thu, 01 Jul 2010 11:47:58 +1000 lightdm (0.0.1-0ubuntu1) maverick; urgency=low * Initial release -- Robert Ancell Sun, 27 Jun 2010 11:14:01 +1000 lightdm-1.18.1/debian/guest-session-auto.sh0000664000000000000000000000434312700600465015462 0ustar #!/bin/sh # # Copyright (C) 2013 Canonical Ltd # Author: Gunnar Hjalmarsson # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation, version 3 of the License. # # See http://www.gnu.org/copyleft/gpl.html the full text of the license. # This script is run via autostart at the launch of a guest session. export TEXTDOMAINDIR=/usr/share/locale-langpack export TEXTDOMAIN=lightdm # disable screen locking (GNOME, Unity) gsettings set org.gnome.desktop.lockdown disable-lock-screen true # disable screen locking (MATE) gsettings set org.mate.screensaver lock-enabled false # disable screenlocking (XFCE, Pantheon) gsettings set apps.light-locker light-locker-enabled false gsettings set apps.light-locker late-locking false gsettings set apps.light-locker lock-on-lid false gsettings set apps.light-locker lock-on-suspend false # info dialog about the temporary nature of a guest session dialog_content () { TITLE=$(gettext 'Temporary Guest Session') TEXT=$(gettext 'All data created during this guest session will be deleted when you log out, and settings will be reset to defaults. Please save files on some external device, for instance a USB stick, if you would like to access them again later.') para2=$(gettext 'Another alternative is to save files in the /var/guest-data folder.') test -w /var/guest-data && TEXT="$TEXT\n\n$para2" } test -f "$HOME"/.skip-guest-warning-dialog || { if [ "$KDE_FULL_SESSION" = true ] && [ -x /usr/bin/kdialog ]; then dialog_content TEXT_FILE="$HOME"/.guest-session-kdialog echo -n "$TEXT" > $TEXT_FILE { # Sleep to wait for the the info dialog to start. # This way the window will likely become focused. sleep $DIALOG_SLEEP kdialog --title "$TITLE" --textbox $TEXT_FILE 450 250 rm -f $TEXT_FILE } & elif [ -x /usr/bin/zenity ]; then dialog_content { # Sleep to wait for the the info dialog to start. # This way the window will likely become focused. sleep $DIALOG_SLEEP zenity --warning --no-wrap --title="$TITLE" --text="$TEXT" } & fi } # run possible local startup commands test -f /etc/guest-session/auto.sh && . /etc/guest-session/auto.sh lightdm-1.18.1/debian/control0000664000000000000000000001167312700600465012757 0ustar Source: lightdm Section: x11 Priority: optional Maintainer: Robert Ancell Uploaders: Julien Lavergne Standards-Version: 3.9.6 Build-Depends: debhelper (>= 9), gnome-common, intltool (>= 0.35.0), quilt, libgcrypt20-dev, libglib2.0-dev, libpam0g-dev, libxdmcp-dev, libxcb1-dev, libxklavier-dev, libgtk-3-dev, gobject-introspection, libgirepository1.0-dev, gobject-introspection, valac, libqt4-dev, qtbase5-dev, dh-autoreconf, dh-translations, dh-systemd (>= 1.14), gtk-doc-tools, yelp-tools, dbus, libaudit-dev [linux-any] Homepage: https://launchpad.net/lightdm # If you aren't a member of ~lightdm-team but need to upload packaging changes, # just go ahead. ~lightdm-team will notice and sync up the code again. Vcs-Bzr: https://code.launchpad.net/~lightdm-team/lightdm/trunk Package: lightdm Architecture: any Pre-Depends: dpkg (>= 1.15.7.2), Depends: ${misc:Depends}, ${shlibs:Depends}, libpam-runtime (>= 0.76-14), libpam-modules, adduser, libglib2.0-bin, dbus, plymouth (>= 0.8.8-0ubuntu18) [linux-any], bash (>= 4.3), Recommends: xserver-xorg, unity-greeter | lightdm-greeter | lightdm-kde-greeter, Suggests: bindfs Conflicts: liblightdm-gobject-0-0, liblightdm-qt-0-0, Provides: x-display-manager Description: Display Manager LightDM is a X display manager that: * Has a lightweight codebase * Is standards compliant (PAM, ConsoleKit, etc) * Has a well defined interface between the server and user interface * Cross-desktop (greeters can be written in any toolkit) Package: liblightdm-gobject-1-0 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, Recommends: accountsservice Suggests: lightdm Description: LightDM GObject client library A GObject based library for LightDM clients to use to interface with LightDM. Package: gir1.2-lightdm-1 Section: libs Architecture: any Multi-Arch: same Depends: ${misc:Depends}, liblightdm-gobject-1-0 (= ${binary:Version}), Description: Typelib file for liblightdm-1 A GObject based library for LightDM clients to use to interface with LightDM. Package: liblightdm-qt-3-0 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, Recommends: lightdm Conflicts: liblightdm-qt-1-0 (>= 1.1.1) Replaces: liblightdm-qt-1-0 (>= 1.1.1) Description: LightDM Qt client library A Qt based library for LightDM clients to use to interface with LightDM. Package: liblightdm-qt5-3-0 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, Recommends: lightdm, Description: LightDM Qt 5 client library A Qt 5 based library for LightDM clients to use to interface with LightDM. Package: liblightdm-gobject-1-dev Section: libdevel Architecture: any Multi-Arch: same Depends: ${misc:Depends}, liblightdm-gobject-1-0 (= ${binary:Version}), libglib2.0-dev, libdbus-glib-1-dev, libxklavier-dev, Description: LightDM GObject client library (development files) A GObject based library for LightDM clients to use to interface with LightDM. . This package contains header files and development information, which is useful for building LightDM greeters and user switchers. Package: liblightdm-qt-dev Section: libdevel Architecture: any Multi-Arch: same Depends: ${misc:Depends}, liblightdm-qt-3-0 (= ${binary:Version}), libqt4-dev, Breaks: liblightdm-qt-1-dev (>= 1.1.1), liblightdm-qt-3-dev Replaces: liblightdm-qt-1-dev (>= 1.1.1), liblightdm-qt-3-dev Description: LightDM Qt client library (development files) A Qt based library for LightDM clients to use to interface with LightDM. . This package contains header files and development information, which is useful for building LightDM greeters and user switchers. Package: liblightdm-qt5-3-dev Section: libdevel Architecture: any Multi-Arch: same Depends: ${misc:Depends}, liblightdm-qt5-3-0 (= ${binary:Version}), qtbase5-dev, Description: LightDM Qt 5 client library (development files) A Qt 5 based library for LightDM clients to use to interface with LightDM. . This package contains header files and development information, which is useful for building LightDM greeters and user switchers. Package: liblightdm-gobject-1-doc Section: doc Architecture: all Depends: ${misc:Depends}, Description: LightDM client library (documentation) A GObject based library for LightDM clients to use to interface with LightDM. . This package contains HTML documentation. lightdm-1.18.1/debian/guest-session-setup.sh0000664000000000000000000000262512700600465015653 0ustar #!/bin/sh HOME=${HOME:-$(getent passwd $(whoami) | cut -f6 -d:)} site_gs=${site_gs:-/etc/guest-session} # disable some services that are unnecessary for the guest session services="jockey-kde.desktop jockey-gtk.desktop update-notifier.desktop user-dirs-update-gtk.desktop" for service in ${services}; do if [ -e /etc/xdg/autostart/${service} ]; then [ -f ${HOME}/.config/autostart/${service} ] || cp /etc/xdg/autostart/${service} ${HOME}/.config/autostart echo "X-GNOME-Autostart-enabled=false" >> ${HOME}/.config/autostart/${service} fi done # disable Unity shortcut hint [ -d ${HOME}/.cache/unity ] || mkdir -p ${HOME}/.cache/unity touch ${HOME}/.cache/unity/first_run.stamp [ -d ${HOME}/.kde/share/config ] || mkdir -p ${HOME}/.kde/share/config echo "[Basic Settings]" >> ${HOME}/.kde/share/config/nepomukserverrc echo "Start Nepomuk=false" >> ${HOME}/.kde/share/config/nepomukserverrc echo "[Event]" >> ${HOME}/.kde/share/config/notificationhelper echo "hideHookNotifier=true" >> ${HOME}/.kde/share/config/notificationhelper echo "hideInstallNotifier=true" >> ${HOME}/.kde/share/config/notificationhelper echo "hideRestartNotifier=true" >> ${HOME}/.kde/share/config/notificationhelper # Load restricted session #dmrc='[Desktop]\nSession=guest-restricted' #/bin/echo -e ${dmrc} > ${HOME}/.dmrc # set possible local guest session preferences if [ -f ${site_gs}/prefs.sh ]; then . ${site_gs}/prefs.sh fi lightdm-1.18.1/debian/lightdm.lightdm-greeter.pam0000664000000000000000000000132712700600465016560 0ustar #%PAM-1.0 auth required pam_permit.so auth optional pam_gnome_keyring.so auth optional pam_kwallet.so auth optional pam_kwallet5.so @include common-account session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close session required pam_limits.so @include common-session session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open session optional pam_gnome_keyring.so auto_start session optional pam_kwallet.so auto_start session optional pam_kwallet5.so auto_start session required pam_env.so readenv=1 session required pam_env.so readenv=1 user_readenv=1 envfile=/etc/default/locale lightdm-1.18.1/debian/source_lightdm.py0000664000000000000000000000226212700600465014730 0ustar import os import re from apport.hookutils import * def add_info(report, ui): if ui: display_manager_files = {} if os.path.lexists('/var/log/lightdm'): display_manager_files['LightdmLog'] = \ 'cat /var/log/lightdm/lightdm.log' display_manager_files['LightdmDisplayLog'] = \ 'cat /var/log/lightdm/x-0.log' display_manager_files['LightdmGreeterLog'] = \ 'cat /var/log/lightdm/x-0-greeter.log' display_manager_files['LightdmGreeterLogOld'] = \ 'cat /var/log/lightdm/x-0-greeter.log.old' display_manager_files['LightdmConfig'] = \ 'cat /etc/lightdm/lightdm.conf' display_manager_files['LightdmUsersConfig'] = \ 'cat /etc/lightdm/users.conf' if ui.yesno("Your display manager log files may help developers"\ " diagnose the bug, but may contain sensitive information"\ " such as your hostname or username. Do you want to"\ " include these logs in your bug report?") == True: attach_root_command_outputs(report, display_manager_files) lightdm-1.18.1/debian/lightdm.postrm0000664000000000000000000000111312700600465014236 0ustar #!/bin/sh set -e if dpkg-maintscript-helper supports mv_conffile; then dpkg-maintscript-helper mv_conffile \ /etc/lightdm.conf \ /etc/lightdm/lightdm.conf \ 0.3.7-0ubuntu2 -- "$@" fi if [ "$1" = "purge" ] ; then rm -f /etc/lightdm.conf if [ -d /var/log/lightdm ]; then rm -r /var/log/lightdm fi if [ -d /var/cache/lightdm ]; then rm -r /var/cache/lightdm fi if [ -d /var/run/lightdm/authority ]; then rm -r /var/run/lightdm/authority fi fi #DEBHELPER# exit 0 lightdm-1.18.1/debian/liblightdm-qt5-3-0.install0000664000000000000000000000004012700600465016051 0ustar usr/lib/*/liblightdm-qt5-*.so.* lightdm-1.18.1/debian/lightdm.service0000664000000000000000000000077212700600465014364 0ustar [Unit] Description=Light Display Manager Documentation=man:lightdm(1) Conflicts=getty@tty7.service plymouth-quit.service After=systemd-user-sessions.service getty@tty7.service plymouth-quit.service [Service] # temporary safety check until all DMs are converted to correct # display-manager.service symlink handling ExecStartPre=/bin/sh -c '[ "$(basename $(cat /etc/X11/default-display-manager 2>/dev/null))" = "lightdm" ]' ExecStart=/usr/sbin/lightdm Restart=always BusName=org.freedesktop.DisplayManager lightdm-1.18.1/debian/liblightdm-gobject-1-dev.install0000664000000000000000000000024012700600465017374 0ustar usr/share/gir-1.0/LightDM-*.gir usr/include/lightdm-gobject-* usr/lib/*/pkgconfig/liblightdm-gobject-*.pc usr/lib/*/liblightdm-gobject-*.so usr/share/vala/vapi lightdm-1.18.1/debian/lightdm.install0000664000000000000000000000146012700600465014365 0ustar usr/sbin/lightdm usr/share/man usr/share/locale usr/share/bash-completion usr/lib/lightdm usr/bin etc/dbus-1/ etc/lightdm/users.conf etc/lightdm/lightdm.conf usr/share/doc/lightdm/ etc/lightdm/keys.conf usr/share/doc/lightdm/ etc/apparmor.d debian/lightdm-session usr/sbin debian/config-error-dialog.sh usr/lib/lightdm debian/guest-session-auto.sh usr/lib/lightdm debian/guest-session-startup.desktop usr/share/lightdm/guest-session/skel/.config/autostart debian/lightdm-greeter-session usr/lib/lightdm debian/source_lightdm.py usr/share/apport/package-hooks debian/50-xserver-command.conf usr/share/lightdm/lightdm.conf.d debian/50-greeter-wrapper.conf usr/share/lightdm/lightdm.conf.d debian/50-guest-wrapper.conf usr/share/lightdm/lightdm.conf.d debian/50-disable-log-backup.conf usr/share/lightdm/lightdm.conf.d lightdm-1.18.1/debian/lightdm.config0000664000000000000000000000407712700600465014173 0ustar #!/bin/sh # Debian lightdm package configuration script # based on xdm script # Copyright 2000-2001 Branden Robinson. # Licensed under the GNU General Public License, version 2. See the file # /usr/share/common-licenses/GPL or . set -e # source debconf library . /usr/share/debconf/confmodule # set default display manager DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager OWNERS= if db_metaget shared/default-x-display-manager owners; then OWNERS="$RET" fi CHOICES= if db_metaget shared/default-x-display-manager choices; then CHOICES="$RET" fi if [ "$OWNERS" != "$CHOICES" ]; then db_subst shared/default-x-display-manager choices "$OWNERS" || : db_fset shared/default-x-display-manager seen false || : fi # debconf is not a registry; use the current contents of the default display # manager file to pre-answer the question if possible if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then CURRENT_DEFAULT=$(basename "$(grep -v '^[[:space:]]*#' \ "$DEFAULT_DISPLAY_MANAGER_FILE" | head -n 1)") if [ -n "$CURRENT_DEFAULT" ]; then db_set shared/default-x-display-manager "$CURRENT_DEFAULT" fi else CURRENT_DEFAULT= if db_get shared/default-x-display-manager; then CURRENT_DEFAULT="$RET" fi fi # when installing from scratch as part of a release upgrade, default to # lightdm, otherwise ask if [ -z "$2" -a -n "$RELEASE_UPGRADE_IN_PROGRESS" ]; then db_set shared/default-x-display-manager lightdm db_fset shared/default-x-display-manager seen true else db_input high shared/default-x-display-manager || : db_go || : fi # using this display manager? NEW_DEFAULT= if db_get shared/default-x-display-manager; then NEW_DEFAULT="$RET" fi # move the default display manager file if we are going to change it if [ -n "$NEW_DEFAULT" ]; then if [ "$NEW_DEFAULT" != "$CURRENT_DEFAULT" ]; then if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then mv "$DEFAULT_DISPLAY_MANAGER_FILE" \ "${DEFAULT_DISPLAY_MANAGER_FILE}.dpkg-tmp" fi fi fi lightdm-1.18.1/debian/lightdm.prerm0000664000000000000000000000370212700600465014045 0ustar #!/bin/bash # Debian lightdm package pre-removal script # based on xdm script # Copyright 2001 Branden Robinson. # Licensed under the GNU General Public License, version 2. See the file # /usr/share/common-licenses/GPL or . # Acknowlegements to Stephen Early, Mark Eichin, and Manoj Srivastava. # based on gdm pre-removal script set -e THIS_PACKAGE=lightdm DAEMON=/usr/sbin/lightdm DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then if [ -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule # disown this question db_unregister shared/default-x-display-manager # does the question still exist? if db_get shared/default-x-display-manager; then db_metaget shared/default-x-display-manager owners db_subst shared/default-x-display-manager choices "$RET" db_get shared/default-x-display-manager # are we removing the currently selected display manager? if [ "$THIS_PACKAGE" = "$RET" ]; then if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then if db_get "$RET"/daemon_name; then if [ "$(cat $DEFAULT_DISPLAY_MANAGER_FILE)" = "$RET" ]; then rm "$DEFAULT_DISPLAY_MANAGER_FILE" fi else if [ "$(cat $DEFAULT_DISPLAY_MANAGER_FILE)" = "$DAEMON" ]; then rm "$DEFAULT_DISPLAY_MANAGER_FILE" fi fi fi # ask the user to choose a new default db_fset shared/default-x-display-manager seen false db_input critical shared/default-x-display-manager || true db_go # if the display manager file doesn't exist, write it with the path # to the new default display manager if [ ! -e $DEFAULT_DISPLAY_MANAGER_FILE ]; then db_get shared/default-x-display-manager db_get "$RET"/daemon_name echo "$RET" > "$DEFAULT_DISPLAY_MANAGER_FILE" fi fi fi fi fi #DEBHELPER# exit 0 lightdm-1.18.1/debian/liblightdm-qt5-3-dev.install0000664000000000000000000000014012700600465016471 0ustar usr/include/lightdm-qt5-* usr/lib/*/pkgconfig/liblightdm-qt5-*.pc usr/lib/*/liblightdm-qt5-*.so lightdm-1.18.1/debian/patches/0000775000000000000000000000000012700603563012775 5ustar lightdm-1.18.1/debian/patches/05_translate_debian_files.patch0000664000000000000000000000113012700600465020774 0ustar Description: Grab translatable strings from debian/* files This is done as an Ubuntu patch, since debian/* files are not included upstream. Forwarded: not-needed Author: Gunnar Hjalmarsson --- lightdm.orig/po/POTFILES.in 2014-09-30 05:00:39.000000000 +0200 +++ lightdm/po/POTFILES.in 2014-10-19 18:08:09.576134427 +0200 @@ -1,5 +1,8 @@ # List of source files containing translatable strings. # Please keep this file sorted alphabetically. [encoding: UTF-8] +debian/config-error-dialog.sh +debian/guest-account.sh +debian/guest-session-auto.sh src/lightdm.c src/dm-tool.c lightdm-1.18.1/debian/patches/04_language_handling.patch0000664000000000000000000000523712700600465017755 0ustar Description: Adjustments due to handling of languages Forwarded: not-needed Author: Gunnar Hjalmarsson Index: trunk/liblightdm-gobject/language.c =================================================================== --- trunk.orig/liblightdm-gobject/language.c +++ trunk/liblightdm-gobject/language.c @@ -40,7 +40,7 @@ static GList *languages = NULL; static void update_languages (void) { - gchar *command = "locale -a"; + gchar *command = "/usr/share/language-tools/language-options"; gchar *stdout_text = NULL, *stderr_text = NULL; gint exit_status; gboolean result; @@ -161,15 +161,39 @@ lightdm_get_language (void) { const gchar *lang; GList *link; + static const gchar *short_lang = NULL; + + if (short_lang) + goto match; lang = g_getenv ("LANG"); if (!lang) return NULL; + /* Convert to a short form language code */ + gchar *command = g_strconcat ("/usr/share/language-tools/language-validate ", lang, NULL); + gchar *out; + GError *error = NULL; + if (g_spawn_command_line_sync (command, &out, NULL, NULL, &error)) + { + short_lang = g_strdup (g_strchomp (out)); + g_free (out); + g_free (command); + } + else + { + g_warning ("Failed to run '%s': %s", command, error->message); + g_error_free (error); + g_free (command); + return NULL; + } + +match: + for (link = lightdm_get_languages (); link; link = link->next) { LightDMLanguage *language = link->data; - if (lightdm_language_matches (language, lang)) + if (lightdm_language_matches (language, short_lang)) return language; } Index: trunk/tests/scripts/language-env.conf =================================================================== --- trunk.orig/tests/scripts/language-env.conf +++ trunk/tests/scripts/language-env.conf @@ -24,8 +24,8 @@ user-session=default #?SESSION-X-0 CONNECT-XSERVER # Check environment variables -#?*SESSION-X-0 READ-ENV NAME=LANG -#?SESSION-X-0 READ-ENV NAME=LANG VALUE=en_AU +#?*SESSION-X-0 READ-ENV NAME=LANGUAGE +#?SESSION-X-0 READ-ENV NAME=LANGUAGE VALUE=en_AU #?*SESSION-X-0 READ-ENV NAME=GDM_LANG #?SESSION-X-0 READ-ENV NAME=GDM_LANG VALUE=en_AU Index: trunk/src/seat.c =================================================================== --- trunk.orig/src/seat.c +++ trunk/src/seat.c @@ -1020,7 +1020,7 @@ configure_session (Session *session, Ses } if (language && language[0] != '\0') { - session_set_env (session, "LANG", language); + session_set_env (session, "LANGUAGE", language); session_set_env (session, "GDM_LANG", language); } } lightdm-1.18.1/debian/patches/series0000664000000000000000000000013612700600465014210 0ustar 04_language_handling.patch 05_translate_debian_files.patch autologin-session-workaround.patch lightdm-1.18.1/debian/patches/autologin-session-workaround.patch0000664000000000000000000000170412700600465021671 0ustar Description: Workaround faulty setting from Ubuntu user-setup package Author: Robert Ancell Bug: https://bugs.launchpad.net/bugs/1484083 Index: trunk/src/seat.c =================================================================== --- trunk.orig/src/seat.c +++ trunk/src/seat.c @@ -1050,7 +1050,12 @@ create_user_session (Seat *seat, const g if (autostart) { const gchar *autologin_session_name = seat_get_string_property (seat, "autologin-session"); - if (autologin_session_name) + /* Workaround faulty setting from Ubuntu user-setup package + * See https://bugs.launchpad.net/bugs/1484083 + */ + if (autologin_session_name && strcmp (autologin_session_name, "lightdm-autologin") == 0) + l_debug (seat, "Ignoring invalid autologin-session option (LP: #1484083)"); + else if (autologin_session_name) session_name = autologin_session_name; } lightdm-1.18.1/debian/tests/0000775000000000000000000000000012700603563012510 5ustar lightdm-1.18.1/debian/tests/upstream-tests0000664000000000000000000000026312700600465015432 0ustar #!/bin/sh set -e set -x # We use 'ubuntu' as the default xsession, so make sure it exists cp tests/data/xsessions/default.desktop tests/data/xsessions/ubuntu.desktop make check lightdm-1.18.1/debian/tests/control0000664000000000000000000000013412700600465014107 0ustar #Tests: upstream-tests #Depends: @, python-gi, xauth #Restrictions: build-needed needs-root lightdm-1.18.1/debian/watch0000664000000000000000000000012112700600465012367 0ustar version=3 https://launchpad.net/lightdm/+download .*/lightdm-([0-9.]+)\.tar\.xz lightdm-1.18.1/debian/lightdm.dirs0000664000000000000000000000010312700600465013651 0ustar /etc/X11 /var/cache/lightdm /var/lib/lightdm-data /var/log/lightdm lightdm-1.18.1/debian/guest-account.sh0000664000000000000000000001431012700600465014460 0ustar #!/bin/sh -e # (C) 2008 Canonical Ltd. # Author: Martin Pitt # License: GPL v2 or later # modified by David D Lowe and Thomas Detoux # # Setup user and temporary home directory for guest session. # If this succeeds, this script needs to print the username as the last line to # stdout. export TEXTDOMAINDIR=/usr/share/locale-langpack export TEXTDOMAIN=lightdm # set the system wide locale for gettext calls if [ -f /etc/default/locale ]; then . /etc/default/locale LANGUAGE= export LANG LANGUAGE fi is_system_user () { UID_MIN=$(cat /etc/login.defs | grep UID_MIN | awk '{print $2}') SYS_UID_MIN=$(cat /etc/login.defs | grep SYS_UID_MIN | awk '{print $2}') SYS_UID_MAX=$(cat /etc/login.defs | grep SYS_UID_MAX | awk '{print $2}') SYS_UID_MIN=${SYS_UID_MIN:-101} SYS_UID_MAX=${SYS_UID_MAX:-$(( UID_MIN - 1 ))} [ ${1} -ge ${SYS_UID_MIN} ] && [ ${1} -le ${SYS_UID_MAX} ] } add_account () { temp_home=$(mktemp -td guest-XXXXXX) GUEST_HOME=$(echo ${temp_home} | tr '[:upper:]' '[:lower:]') GUEST_USER=${GUEST_HOME#/tmp/} [ ${GUEST_HOME} != ${temp_home} ] && mv ${temp_home} ${GUEST_HOME} # if ${GUEST_USER} already exists, it must be a locked system account with no existing # home directory if PWSTAT=$(passwd -S ${GUEST_USER}) 2>/dev/null; then if [ $(echo ${PWSTAT} | cut -f2 -d' ') != L ]; then echo "User account ${GUEST_USER} already exists and is not locked" exit 1 fi PWENT=$(getent passwd ${GUEST_USER}) || { echo "getent passwd ${GUEST_USER} failed" exit 1 } GUEST_UID=$(echo ${PWENT} | cut -f3 -d:) if ! is_system_user ${GUEST_UID}; then echo "Account ${GUEST_USER} is not a system user" exit 1 fi GUEST_HOME=$(echo ${PWENT} | cut -f6 -d:) if [ ${GUEST_HOME} != / ] && [ ${GUEST_HOME#/tmp} = ${GUEST_HOME} ] && [ -d ${GUEST_HOME} ]; then echo "Home directory of ${GUEST_USER} already exists" exit 1 fi else # does not exist, so create it useradd --system --home-dir ${GUEST_HOME} --comment $(gettext "Guest") --user-group --shell /bin/bash ${GUEST_USER} || { rm -rf ${GUEST_HOME} exit 1 } fi dist_gs=/usr/share/lightdm/guest-session site_gs=/etc/guest-session # create temporary home directory mount -t tmpfs -o mode=700,uid=${GUEST_USER} none ${GUEST_HOME} || { rm -rf ${GUEST_HOME} exit 1 } if [ -d ${site_gs}/skel ] && [ "$(ls -A ${site_gs}/skel)" ]; then # Only perform union-mounting if BindFS is available if [ -x /usr/bin/bindfs ]; then bindfs_mount=true # Try OverlayFS first if modinfo -n overlay >/dev/null 2>&1; then mkdir ${GUEST_HOME}/upper ${GUEST_HOME}/work chown ${GUEST_USER}:${GUEST_USER} ${GUEST_HOME}/upper ${GUEST_HOME}/work mount -t overlay -o lowerdir=${dist_gs}/skel:${site_gs}/skel,upperdir=${GUEST_HOME}/upper,workdir=${GUEST_HOME}/work overlay ${GUEST_HOME} || { umount ${GUEST_HOME} rm -rf ${GUEST_HOME} exit 1 } # If OverlayFS is not available, try AuFS elif [ -x /sbin/mount.aufs ]; then mount -t aufs -o br=${GUEST_HOME}:${dist_gs}/skel:${site_gs}/skel none ${GUEST_HOME} || { umount ${GUEST_HOME} rm -rf ${GUEST_HOME} exit 1 } # If none of them is available, fall back to copy over else cp -rT ${site_gs}/skel/ ${GUEST_HOME} cp -rT ${dist_gs}/skel/ ${GUEST_HOME} chown -R ${GUEST_USER}:${GUEST_USER} ${GUEST_HOME} bindfs_mount=false fi if ${bindfs_mount}; then # Wrap ${GUEST_HOME} in a BindFS mount, so that # ${GUEST_USER} will be seen as the owner of ${GUEST_HOME}'s contents. bindfs -u ${GUEST_USER} -g ${GUEST_USER} ${GUEST_HOME} ${GUEST_HOME} || { umount ${GUEST_HOME} # union mount umount ${GUEST_HOME} # tmpfs mount rm -rf ${GUEST_HOME} exit 1 } fi # If BindFS is not available, just fall back to copy over else cp -rT ${site_gs}/skel/ ${GUEST_HOME} cp -rT ${dist_gs}/skel/ ${GUEST_HOME} chown -R ${GUEST_USER}:${GUEST_USER} ${GUEST_HOME} fi else cp -rT /etc/skel/ ${GUEST_HOME} cp -rT ${dist_gs}/skel/ ${GUEST_HOME} chown -R ${GUEST_USER}:${GUEST_USER} ${GUEST_HOME} fi # delay the launch of info dialog echo "export DIALOG_SLEEP=4" >> ${GUEST_HOME}/.profile # setup session su ${GUEST_USER} -c "env HOME=${GUEST_HOME} site_gs=${site_gs} ${dist_gs}/setup.sh" echo ${GUEST_USER} } remove_account () { GUEST_USER=${1} PWENT=$(getent passwd ${GUEST_USER}) || { echo "Error: invalid user ${GUEST_USER}" exit 1 } GUEST_UID=$(echo ${PWENT} | cut -f3 -d:) if ! is_system_user ${GUEST_UID}; then echo "Error: user ${GUEST_USER} is not a system user." exit 1 fi GUEST_HOME=$(echo ${PWENT} | cut -f6 -d:) # kill all remaining processes if [ -x /bin/loginctl ] || [ -x /usr/bin/loginctl ]; then loginctl --signal=9 kill-user ${GUEST_USER} >/dev/null || true else while ps h -u ${GUEST_USER} >/dev/null do killall -9 -u ${GUEST_USER} || true sleep 0.2; done fi if [ ${GUEST_HOME} = ${GUEST_HOME#/tmp/} ]; then echo "Warning: home directory ${GUEST_HOME} is not in /tmp/. It won't be removed." else umount ${GUEST_HOME} || umount -l ${GUEST_HOME} || true # BindFS mount umount ${GUEST_HOME} || umount -l ${GUEST_HOME} || true # union mount umount ${GUEST_HOME} || umount -l ${GUEST_HOME} || true # tmpfs mount rm -rf ${GUEST_HOME} fi # remove leftovers in /tmp find /tmp -mindepth 1 -maxdepth 1 -uid ${GUEST_UID} -print0 | xargs -0 rm -rf || true # remove possible {/run,}/media/guest-XXXXXX folder for media_dir in /run/media/${GUEST_USER} /media/${GUEST_USER}; do if [ -d ${media_dir} ]; then for dir in $(find ${media_dir} -mindepth 1 -maxdepth 1); do umount ${dir} || true done rmdir ${media_dir} || true fi done userdel --force ${GUEST_USER} } case ${1} in add) add_account ;; remove) if [ -z ${2} ] ; then echo "Usage: ${0} remove [account]" exit 1 fi remove_account ${2} ;; *) echo "Usage: ${0} add" echo " ${0} remove [account]" exit 1 esac lightdm-1.18.1/debian/liblightdm-gobject-1-0.install0000664000000000000000000000004412700600465016757 0ustar usr/lib/*/liblightdm-gobject-*.so.* lightdm-1.18.1/debian/lightdm.logrotate0000664000000000000000000000017512700600465014721 0ustar /var/log/lightdm/*.log { daily missingok rotate 7 compress notifempty maxsize 10M copytruncate } lightdm-1.18.1/debian/copyright0000664000000000000000000000620012700600465013275 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=59 Name: LightDM Maintainer: Robert Ancell Source: https://launchpad.net/lightdm Files: * Copyright: 2010, Robert Ancell License: GPL-3+ Files: liblightdm-gobject/* liblightdm-qt/* Copyright: 2010, Robert Ancell License: LGPL-3+ Files: debian/* Copyright: 2010, Robert Ancell 2010, Julien Lavergne License: GPL-3+ Files: debian/*.config debian/*.init Copyright: 1998-2002, 2004, 2005 Branden Robinson . 2006 Eugene Konev License: GPL-2+ License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . X-Comment: On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-3’. License: LGPL-3+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA X-Comment: On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-3’. License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. X-Comment: On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2’. lightdm-1.18.1/debian/lightdm.pam0000664000000000000000000000156412700600465013501 0ustar #%PAM-1.0 auth requisite pam_nologin.so auth sufficient pam_succeed_if.so user ingroup nopasswdlogin @include common-auth auth optional pam_gnome_keyring.so auth optional pam_kwallet.so auth optional pam_kwallet5.so @include common-account session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close #session required pam_loginuid.so session required pam_limits.so @include common-session session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open session optional pam_gnome_keyring.so auto_start session optional pam_kwallet.so auto_start session optional pam_kwallet5.so auto_start session required pam_env.so readenv=1 session required pam_env.so readenv=1 user_readenv=1 envfile=/etc/default/locale @include common-password lightdm-1.18.1/debian/lightdm.upstart0000664000000000000000000000264412700600465014426 0ustar # LightDM - light Display Manager # # The display manager service manages the X servers running on the # system, providing login and auto-login services # # based on gdm upstart script description "LightDM Display Manager" author "Robert Ancell " start on ((filesystem and runlevel [!06] and started dbus and plymouth-ready) or runlevel PREVLEVEL=S) stop on runlevel [016] respawn respawn limit 2 15 emits login-session-start emits desktop-session-start emits desktop-shutdown script if [ -n "$UPSTART_EVENTS" ] then # Check kernel command-line for inhibitors, unless we are being called # manually for ARG in $(cat /proc/cmdline); do if [ "$ARG" = "text" ]; then plymouth quit || : stop exit 0 fi done [ ! -f /etc/X11/default-display-manager -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/bin/lightdm" -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lightdm" ] || { stop; exit 0; } if [ "$RUNLEVEL" = S -o "$RUNLEVEL" = 1 ] then # Single-user mode plymouth quit || : exit 0 fi fi exec lightdm end script post-start script sleep 5 clear > /dev/tty7 end script post-stop script clear > /dev/tty7 sleep 1 if [ "$UPSTART_STOP_EVENTS" = runlevel ]; then initctl emit desktop-shutdown fi end script lightdm-1.18.1/src/0000775000000000000000000000000012700603563010713 5ustar lightdm-1.18.1/src/Makefile.am0000664000000000000000000000442612700600465012753 0ustar sbin_PROGRAMS = lightdm bin_PROGRAMS = dm-tool lightdm_SOURCES = \ accounts.c \ accounts.h \ console-kit.c \ console-kit.h \ display-manager.c \ display-manager.h \ display-server.c \ display-server.h \ greeter.c \ greeter.h \ guest-account.c \ guest-account.h \ lightdm.c \ logger.c \ logger.h \ login1.c \ login1.h \ log-file.c \ log-file.h \ mir-server.c \ mir-server.h \ plymouth.c \ plymouth.h \ process.c \ process.h \ seat.c \ seat.h \ seat-unity.c \ seat-unity.h \ seat-xdmcp-session.c \ seat-xdmcp-session.h \ seat-xlocal.c \ seat-xlocal.h \ seat-xremote.c \ seat-xremote.h \ seat-xvnc.c \ seat-xvnc.h \ session.c \ session.h \ session-child.c \ session-child.h \ session-config.c \ session-config.h \ shared-data-manager.c \ shared-data-manager.h \ unity-system-compositor.c \ unity-system-compositor.h \ vnc-server.c \ vnc-server.h \ vt.c \ vt.h \ wayland-session.c \ wayland-session.h \ x-authority.c \ x-authority.h \ x-server-local.c \ x-server-local.h \ x-server-remote.c \ x-server-remote.h \ x-server-xvnc.c \ x-server-xvnc.h \ x-server.c \ x-server.h \ xdmcp-protocol.c \ xdmcp-protocol.h \ xdmcp-server.c \ xdmcp-server.h \ xdmcp-session.c \ xdmcp-session.h \ xdmcp-session-private.h lightdm_CFLAGS = \ $(WARN_CFLAGS) \ $(LIGHTDM_CFLAGS) \ -I"$(top_srcdir)/common" \ -DSBIN_DIR=\"$(sbindir)\" \ -DUSERS_DIR=\"$(localstatedir)/lib/lightdm-data\" \ -DLOG_DIR=\"$(localstatedir)/log/lightdm\" \ -DRUN_DIR=\"$(localstatedir)/run/lightdm\" \ -DCACHE_DIR=\"$(localstatedir)/cache/lightdm\" \ -DSESSIONS_DIR=\"$(pkgdatadir)/sessions:$(datadir)/xsessions:$(datadir)/wayland-sessions\" \ -DWAYLAND_SESSIONS_DIR=\"$(datadir)/wayland-sessions\" \ -DREMOTE_SESSIONS_DIR=\"$(pkgdatadir)/remote-sessions\" \ -DGREETERS_DIR=\"$(pkgdatadir)/greeters:$(datadir)/xgreeters\" lightdm_LDADD = \ $(LIGHTDM_LIBS) \ $(top_builddir)/common/libcommon.la \ -lgcrypt \ -lpam dm_tool_SOURCES = \ dm-tool.c dm_tool_CFLAGS = \ $(WARN_CFLAGS) \ $(LIGHTDM_CFLAGS) \ -DLOCALE_DIR=\"$(datadir)/locale\" dm_tool_LDADD = \ $(LIGHTDM_LIBS) libexec_PROGRAMS = lightdm-guest-session lightdm_guest_session_SOURCES = lightdm-guest-session.c lightdm_guest_session_CFLAGS = \ $(WARN_CFLAGS) \ $(LIGHTDM_CFLAGS) EXTRA_DIST = \ display-manager.xml lightdm-1.18.1/src/display-server.h0000664000000000000000000000476612700600465014050 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef DISPLAY_SERVER_H_ #define DISPLAY_SERVER_H_ #include typedef struct DisplayServer DisplayServer; #include "logger.h" #include "session.h" G_BEGIN_DECLS #define DISPLAY_SERVER_TYPE (display_server_get_type()) #define DISPLAY_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DISPLAY_SERVER_TYPE, DisplayServer)) #define DISPLAY_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DISPLAY_SERVER_TYPE, DisplayServerClass)) #define DISPLAY_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DISPLAY_SERVER_TYPE, DisplayServerClass)) #define DISPLAY_SERVER_SIGNAL_READY "ready" #define DISPLAY_SERVER_SIGNAL_STOPPED "stopped" typedef struct DisplayServerPrivate DisplayServerPrivate; struct DisplayServer { GObject parent_instance; DisplayServerPrivate *priv; }; typedef struct { GObjectClass parent_class; void (*ready)(DisplayServer *server); void (*stopped)(DisplayServer *server); const gchar *(*get_session_type)(DisplayServer *server); gboolean (*get_can_share)(DisplayServer *server); gint (*get_vt)(DisplayServer *server); gboolean (*start)(DisplayServer *server); void (*connect_session)(DisplayServer *server, Session *session); void (*disconnect_session)(DisplayServer *server, Session *session); void (*stop)(DisplayServer *server); } DisplayServerClass; GType display_server_get_type (void); void display_server_set_name (DisplayServer *server, const gchar *name); const gchar *display_server_get_name (DisplayServer *server); const gchar *display_server_get_session_type (DisplayServer *server); gboolean display_server_get_can_share (DisplayServer *server); gint display_server_get_vt (DisplayServer *server); gboolean display_server_start (DisplayServer *server); void display_server_connect_session (DisplayServer *server, Session *session); void display_server_disconnect_session (DisplayServer *server, Session *session); void display_server_stop (DisplayServer *server); gboolean display_server_get_is_stopping (DisplayServer *server); G_END_DECLS #endif /* DISPLAY_SERVER_H_ */ lightdm-1.18.1/src/greeter.c0000664000000000000000000011055212700600465012516 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include #include #include "greeter.h" #include "configuration.h" #include "shared-data-manager.h" enum { PROP_0, PROP_ACTIVE_USERNAME, }; enum { CONNECTED, CREATE_SESSION, START_SESSION, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; struct GreeterPrivate { /* PAM service to authenticate with */ gchar *pam_service; gchar *autologin_pam_service; /* Buffer for data read from greeter */ guint8 *read_buffer; gsize n_read; gboolean use_secure_memory; /* Hints for the greeter */ GHashTable *hints; /* Default session to use */ gchar *default_session; /* Sequence number of current PAM session */ guint32 authentication_sequence_number; /* Remote session name */ gchar *remote_session; /* Currently selected user */ gchar *active_username; /* PAM session being constructed by the greeter */ Session *authentication_session; /* TRUE if a the greeter can handle a reset; else we will just kill it instead */ gboolean resettable; /* TRUE if a user has been authenticated and the session requested to start */ gboolean start_session; /* TRUE if can log into guest accounts */ gboolean allow_guest; /* TRUE if logging into guest session */ gboolean guest_account_authenticated; /* Communication channels to communicate with */ int to_greeter_input; int from_greeter_output; GIOChannel *to_greeter_channel; GIOChannel *from_greeter_channel; guint from_greeter_watch; }; G_DEFINE_TYPE (Greeter, greeter, SESSION_TYPE); /* Messages from the greeter to the server */ typedef enum { GREETER_MESSAGE_CONNECT = 0, GREETER_MESSAGE_AUTHENTICATE, GREETER_MESSAGE_AUTHENTICATE_AS_GUEST, GREETER_MESSAGE_CONTINUE_AUTHENTICATION, GREETER_MESSAGE_START_SESSION, GREETER_MESSAGE_CANCEL_AUTHENTICATION, GREETER_MESSAGE_SET_LANGUAGE, GREETER_MESSAGE_AUTHENTICATE_REMOTE, GREETER_MESSAGE_ENSURE_SHARED_DIR, } GreeterMessage; /* Messages from the server to the greeter */ typedef enum { SERVER_MESSAGE_CONNECTED = 0, SERVER_MESSAGE_PROMPT_AUTHENTICATION, SERVER_MESSAGE_END_AUTHENTICATION, SERVER_MESSAGE_SESSION_RESULT, SERVER_MESSAGE_SHARED_DIR_RESULT, SERVER_MESSAGE_IDLE, SERVER_MESSAGE_RESET, } ServerMessage; static gboolean read_cb (GIOChannel *source, GIOCondition condition, gpointer data); Greeter * greeter_new (void) { return g_object_new (GREETER_TYPE, NULL); } void greeter_set_pam_services (Greeter *greeter, const gchar *pam_service, const gchar *autologin_pam_service) { g_free (greeter->priv->pam_service); greeter->priv->pam_service = g_strdup (pam_service); g_free (greeter->priv->autologin_pam_service); greeter->priv->autologin_pam_service = g_strdup (autologin_pam_service); } void greeter_set_allow_guest (Greeter *greeter, gboolean allow_guest) { greeter->priv->allow_guest = allow_guest; } void greeter_clear_hints (Greeter *greeter) { g_hash_table_remove_all (greeter->priv->hints); } void greeter_set_hint (Greeter *greeter, const gchar *name, const gchar *value) { g_hash_table_insert (greeter->priv->hints, g_strdup (name), g_strdup (value)); } static void * secure_malloc (Greeter *greeter, size_t n) { if (greeter->priv->use_secure_memory) return gcry_malloc_secure (n); else return g_malloc (n); } static void * secure_realloc (Greeter *greeter, void *ptr, size_t n) { if (greeter->priv->use_secure_memory) return gcry_realloc (ptr, n); else return g_realloc (ptr, n); } static void secure_free (Greeter *greeter, void *ptr) { if (greeter->priv->use_secure_memory) return gcry_free (ptr); else return g_free (ptr); } static guint32 int_length (void) { return 4; } #define HEADER_SIZE (sizeof (guint32) * 2) #define MAX_MESSAGE_LENGTH 1024 static void write_message (Greeter *greeter, guint8 *message, gsize message_length) { gchar *data; gsize data_length; GError *error = NULL; data = (gchar *) message; data_length = message_length; while (data_length > 0) { GIOStatus status; gsize n_written; status = g_io_channel_write_chars (greeter->priv->to_greeter_channel, data, data_length, &n_written, &error); if (error) l_warning (greeter, "Error writing to greeter: %s", error->message); g_clear_error (&error); if (status != G_IO_STATUS_NORMAL) return; data_length -= n_written; data += n_written; } g_io_channel_flush (greeter->priv->to_greeter_channel, &error); if (error) l_warning (greeter, "Failed to flush data to greeter: %s", error->message); g_clear_error (&error); } static void write_int (guint8 *buffer, gint buffer_length, guint32 value, gsize *offset) { if (*offset + 4 >= buffer_length) return; buffer[*offset] = value >> 24; buffer[*offset+1] = (value >> 16) & 0xFF; buffer[*offset+2] = (value >> 8) & 0xFF; buffer[*offset+3] = value & 0xFF; *offset += 4; } static void write_string (guint8 *buffer, gint buffer_length, const gchar *value, gsize *offset) { gint length; if (value) length = strlen (value); else length = 0; write_int (buffer, buffer_length, length, offset); if (*offset + length >= buffer_length) return; if (length > 0) { memcpy (buffer + *offset, value, length); *offset += length; } } static void write_header (guint8 *buffer, gint buffer_length, guint32 id, guint32 length, gsize *offset) { write_int (buffer, buffer_length, id, offset); write_int (buffer, buffer_length, length, offset); } static guint32 string_length (const gchar *value) { if (value == NULL) return int_length (); else return int_length () + strlen (value); } static void handle_connect (Greeter *greeter, const gchar *version, gboolean resettable) { guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; guint32 length; GHashTableIter iter; gpointer key, value; l_debug (greeter, "Greeter connected version=%s resettable=%s", version, resettable ? "true" : "false"); greeter->priv->resettable = resettable; length = string_length (VERSION); g_hash_table_iter_init (&iter, greeter->priv->hints); while (g_hash_table_iter_next (&iter, &key, &value)) length += string_length (key) + string_length (value); write_header (message, MAX_MESSAGE_LENGTH, SERVER_MESSAGE_CONNECTED, length, &offset); write_string (message, MAX_MESSAGE_LENGTH, VERSION, &offset); g_hash_table_iter_init (&iter, greeter->priv->hints); while (g_hash_table_iter_next (&iter, &key, &value)) { write_string (message, MAX_MESSAGE_LENGTH, key, &offset); write_string (message, MAX_MESSAGE_LENGTH, value, &offset); } write_message (greeter, message, offset); g_signal_emit (greeter, signals[CONNECTED], 0); } static void pam_messages_cb (Session *session, Greeter *greeter) { int i; guint32 size; guint8 message[MAX_MESSAGE_LENGTH]; const struct pam_message *messages; int messages_length; gsize offset = 0; int n_prompts = 0; messages = session_get_messages (session); messages_length = session_get_messages_length (session); /* Respond to d-bus query with messages */ l_debug (greeter, "Prompt greeter with %d message(s)", messages_length); size = int_length () + string_length (session_get_username (session)) + int_length (); for (i = 0; i < messages_length; i++) size += int_length () + string_length (messages[i].msg); write_header (message, MAX_MESSAGE_LENGTH, SERVER_MESSAGE_PROMPT_AUTHENTICATION, size, &offset); write_int (message, MAX_MESSAGE_LENGTH, greeter->priv->authentication_sequence_number, &offset); write_string (message, MAX_MESSAGE_LENGTH, session_get_username (session), &offset); write_int (message, MAX_MESSAGE_LENGTH, messages_length, &offset); for (i = 0; i < messages_length; i++) { write_int (message, MAX_MESSAGE_LENGTH, messages[i].msg_style, &offset); write_string (message, MAX_MESSAGE_LENGTH, messages[i].msg, &offset); if (messages[i].msg_style == PAM_PROMPT_ECHO_OFF || messages[i].msg_style == PAM_PROMPT_ECHO_ON) n_prompts++; } write_message (greeter, message, offset); /* Continue immediately if nothing to respond with */ // FIXME: Should probably give the greeter a chance to ack the message if (n_prompts == 0) { struct pam_response *response; response = calloc (messages_length, sizeof (struct pam_response)); session_respond (greeter->priv->authentication_session, response); free (response); } } static void send_end_authentication (Greeter *greeter, guint32 sequence_number, const gchar *username, int result) { guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; write_header (message, MAX_MESSAGE_LENGTH, SERVER_MESSAGE_END_AUTHENTICATION, int_length () + string_length (username) + int_length (), &offset); write_int (message, MAX_MESSAGE_LENGTH, sequence_number, &offset); write_string (message, MAX_MESSAGE_LENGTH, username, &offset); write_int (message, MAX_MESSAGE_LENGTH, result, &offset); write_message (greeter, message, offset); } void greeter_idle (Greeter *greeter) { guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; write_header (message, MAX_MESSAGE_LENGTH, SERVER_MESSAGE_IDLE, 0, &offset); write_message (greeter, message, offset); } void greeter_reset (Greeter *greeter) { guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; guint32 length = 0; GHashTableIter iter; gpointer key, value; g_hash_table_iter_init (&iter, greeter->priv->hints); while (g_hash_table_iter_next (&iter, &key, &value)) length += string_length (key) + string_length (value); write_header (message, MAX_MESSAGE_LENGTH, SERVER_MESSAGE_RESET, length, &offset); g_hash_table_iter_init (&iter, greeter->priv->hints); while (g_hash_table_iter_next (&iter, &key, &value)) { write_string (message, MAX_MESSAGE_LENGTH, key, &offset); write_string (message, MAX_MESSAGE_LENGTH, value, &offset); } write_message (greeter, message, offset); } static void authentication_complete_cb (Session *session, Greeter *greeter) { int result; l_debug (greeter, "Authenticate result for user %s: %s", session_get_username (session), session_get_authentication_result_string (session)); result = session_get_authentication_result (session); if (session_get_is_authenticated (session)) { if (session_get_user (session)) l_debug (greeter, "User %s authorized", session_get_username (session)); else { l_debug (greeter, "User %s authorized, but no account of that name exists", session_get_username (session)); result = PAM_USER_UNKNOWN; } } send_end_authentication (greeter, greeter->priv->authentication_sequence_number, session_get_username (session), result); } static void reset_session (Greeter *greeter) { g_free (greeter->priv->remote_session); greeter->priv->remote_session = NULL; if (greeter->priv->authentication_session) { g_signal_handlers_disconnect_matched (greeter->priv->authentication_session, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, greeter); session_stop (greeter->priv->authentication_session); g_clear_object (&greeter->priv->authentication_session); } greeter->priv->guest_account_authenticated = FALSE; } static void handle_login (Greeter *greeter, guint32 sequence_number, const gchar *username) { const gchar *autologin_username, *service; gboolean is_interactive; if (username[0] == '\0') { l_debug (greeter, "Greeter start authentication"); username = NULL; } else l_debug (greeter, "Greeter start authentication for %s", username); reset_session (greeter); if (greeter->priv->active_username) g_free (greeter->priv->active_username); greeter->priv->active_username = g_strdup (username); g_object_notify (G_OBJECT (greeter), GREETER_PROPERTY_ACTIVE_USERNAME); greeter->priv->authentication_sequence_number = sequence_number; g_signal_emit (greeter, signals[CREATE_SESSION], 0, &greeter->priv->authentication_session); if (!greeter->priv->authentication_session) { send_end_authentication (greeter, sequence_number, "", PAM_USER_UNKNOWN); return; } g_signal_connect (G_OBJECT (greeter->priv->authentication_session), SESSION_SIGNAL_GOT_MESSAGES, G_CALLBACK (pam_messages_cb), greeter); g_signal_connect (G_OBJECT (greeter->priv->authentication_session), SESSION_SIGNAL_AUTHENTICATION_COMPLETE, G_CALLBACK (authentication_complete_cb), greeter); /* Use non-interactive service for autologin user */ autologin_username = g_hash_table_lookup (greeter->priv->hints, "autologin-user"); if (autologin_username != NULL && g_strcmp0 (username, autologin_username) == 0) { service = greeter->priv->autologin_pam_service; is_interactive = FALSE; } else { service = greeter->priv->pam_service; is_interactive = TRUE; } /* Run the session process */ session_set_pam_service (greeter->priv->authentication_session, service); session_set_username (greeter->priv->authentication_session, username); session_set_do_authenticate (greeter->priv->authentication_session, TRUE); session_set_is_interactive (greeter->priv->authentication_session, is_interactive); session_start (greeter->priv->authentication_session); } static void handle_login_as_guest (Greeter *greeter, guint32 sequence_number) { l_debug (greeter, "Greeter start authentication for guest account"); reset_session (greeter); if (!greeter->priv->allow_guest) { l_debug (greeter, "Guest account is disabled"); send_end_authentication (greeter, sequence_number, "", PAM_USER_UNKNOWN); return; } greeter->priv->guest_account_authenticated = TRUE; send_end_authentication (greeter, sequence_number, "", PAM_SUCCESS); } static gchar * get_remote_session_service (const gchar *session_name) { GKeyFile *session_desktop_file; gboolean result; const gchar *c; gchar *remote_sessions_dir, *filename, *path, *service = NULL; GError *error = NULL; /* Validate session name doesn't contain directory separators */ for (c = session_name; *c; c++) { if (*c == '/') return NULL; } /* Load the session file */ session_desktop_file = g_key_file_new (); filename = g_strdup_printf ("%s.desktop", session_name); remote_sessions_dir = config_get_string (config_get_instance (), "LightDM", "remote-sessions-directory"); path = g_build_filename (remote_sessions_dir, filename, NULL); g_free (remote_sessions_dir); g_free (filename); result = g_key_file_load_from_file (session_desktop_file, path, G_KEY_FILE_NONE, &error); if (error) g_debug ("Failed to load session file %s: %s", path, error->message); g_free (path); g_clear_error (&error); if (result) service = g_key_file_get_string (session_desktop_file, G_KEY_FILE_DESKTOP_GROUP, "X-LightDM-PAM-Service", NULL); g_key_file_free (session_desktop_file); return service; } static void handle_login_remote (Greeter *greeter, const gchar *session_name, const gchar *username, guint32 sequence_number) { gchar *service; if (username[0] == '\0') { l_debug (greeter, "Greeter start authentication for remote session %s", session_name); username = NULL; } else l_debug (greeter, "Greeter start authentication for remote session %s as user %s", session_name, username); reset_session (greeter); service = get_remote_session_service (session_name); if (!service) { send_end_authentication (greeter, sequence_number, "", PAM_SYSTEM_ERR); return; } greeter->priv->authentication_sequence_number = sequence_number; greeter->priv->remote_session = g_strdup (session_name); g_signal_emit (greeter, signals[CREATE_SESSION], 0, &greeter->priv->authentication_session); if (greeter->priv->authentication_session) { g_signal_connect (G_OBJECT (greeter->priv->authentication_session), SESSION_SIGNAL_GOT_MESSAGES, G_CALLBACK (pam_messages_cb), greeter); g_signal_connect (G_OBJECT (greeter->priv->authentication_session), SESSION_SIGNAL_AUTHENTICATION_COMPLETE, G_CALLBACK (authentication_complete_cb), greeter); /* Run the session process */ session_set_pam_service (greeter->priv->authentication_session, service); session_set_username (greeter->priv->authentication_session, username); session_set_do_authenticate (greeter->priv->authentication_session, TRUE); session_set_is_interactive (greeter->priv->authentication_session, TRUE); session_set_is_guest (greeter->priv->authentication_session, TRUE); session_start (greeter->priv->authentication_session); } g_free (service); if (!greeter->priv->authentication_session) { send_end_authentication (greeter, sequence_number, "", PAM_USER_UNKNOWN); return; } } static void handle_continue_authentication (Greeter *greeter, gchar **secrets) { int messages_length; const struct pam_message *messages; struct pam_response *response; int i, j, n_prompts = 0; /* Not in authentication */ if (greeter->priv->authentication_session == NULL) return; messages_length = session_get_messages_length (greeter->priv->authentication_session); messages = session_get_messages (greeter->priv->authentication_session); /* Check correct number of responses */ for (i = 0; i < messages_length; i++) { int msg_style = messages[i].msg_style; if (msg_style == PAM_PROMPT_ECHO_OFF || msg_style == PAM_PROMPT_ECHO_ON) n_prompts++; } if (g_strv_length (secrets) != n_prompts) { session_respond_error (greeter->priv->authentication_session, PAM_CONV_ERR); return; } l_debug (greeter, "Continue authentication"); /* Build response */ response = calloc (messages_length, sizeof (struct pam_response)); for (i = 0, j = 0; i < messages_length; i++) { int msg_style = messages[i].msg_style; if (msg_style == PAM_PROMPT_ECHO_OFF || msg_style == PAM_PROMPT_ECHO_ON) { size_t secret_length = strlen (secrets[j]) + 1; response[i].resp = secure_malloc (greeter, secret_length); memcpy (response[i].resp, secrets[j], secret_length); // FIXME: Need to convert from UTF-8 j++; } } session_respond (greeter->priv->authentication_session, response); for (i = 0; i < messages_length; i++) secure_free (greeter, response[i].resp); free (response); } static void handle_cancel_authentication (Greeter *greeter) { /* Not in authentication */ if (greeter->priv->authentication_session == NULL) return; l_debug (greeter, "Cancel authentication"); reset_session (greeter); } static void handle_start_session (Greeter *greeter, const gchar *session) { gboolean result; guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; SessionType session_type = SESSION_TYPE_LOCAL; if (strcmp (session, "") == 0) session = NULL; /* Use session type chosen in remote session */ if (greeter->priv->remote_session) { session_type = SESSION_TYPE_REMOTE; session = greeter->priv->remote_session; } if (greeter->priv->guest_account_authenticated || session_get_is_authenticated (greeter->priv->authentication_session)) { if (session) l_debug (greeter, "Greeter requests session %s", session); else l_debug (greeter, "Greeter requests default session"); greeter->priv->start_session = TRUE; g_signal_emit (greeter, signals[START_SESSION], 0, session_type, session, &result); } else { l_debug (greeter, "Ignoring start session request, user is not authorized"); result = FALSE; } write_header (message, MAX_MESSAGE_LENGTH, SERVER_MESSAGE_SESSION_RESULT, int_length (), &offset); write_int (message, MAX_MESSAGE_LENGTH, result ? 0 : 1, &offset); write_message (greeter, message, offset); } static void handle_set_language (Greeter *greeter, const gchar *language) { User *user; if (!greeter->priv->guest_account_authenticated && !session_get_is_authenticated (greeter->priv->authentication_session)) { l_debug (greeter, "Ignoring set language request, user is not authorized"); return; } // FIXME: Could use this if (greeter->priv->guest_account_authenticated) { l_debug (greeter, "Ignoring set language request for guest user"); return; } l_debug (greeter, "Greeter sets language %s", language); user = session_get_user (greeter->priv->authentication_session); user_set_language (user, language); } static void handle_ensure_shared_dir (Greeter *greeter, const gchar *username) { gchar *dir; guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; l_debug (greeter, "Greeter requests data directory for user %s", username); dir = shared_data_manager_ensure_user_dir (shared_data_manager_get_instance (), username); write_header (message, MAX_MESSAGE_LENGTH, SERVER_MESSAGE_SHARED_DIR_RESULT, string_length (dir), &offset); write_string (message, MAX_MESSAGE_LENGTH, dir, &offset); write_message (greeter, message, offset); g_free (dir); } static guint32 read_int (Greeter *greeter, gsize *offset) { guint32 value; guint8 *buffer; if (greeter->priv->n_read - *offset < sizeof (guint32)) { l_warning (greeter, "Not enough space for int, need %zu, got %zu", sizeof (guint32), greeter->priv->n_read - *offset); return 0; } buffer = greeter->priv->read_buffer + *offset; value = buffer[0] << 24 | buffer[1] << 16 | buffer[2] << 8 | buffer[3]; *offset += int_length (); return value; } static int get_message_length (Greeter *greeter) { gsize offset; int payload_length; offset = int_length (); payload_length = read_int (greeter, &offset); if (HEADER_SIZE + payload_length < HEADER_SIZE) { l_warning (greeter, "Payload length of %u octets too long", payload_length); return HEADER_SIZE; } return HEADER_SIZE + payload_length; } static gchar * read_string_full (Greeter *greeter, gsize *offset, void* (*alloc_fn)(size_t n)) { guint32 length; gchar *value; length = read_int (greeter, offset); if (greeter->priv->n_read - *offset < length) { l_warning (greeter, "Not enough space for string, need %u, got %zu", length, greeter->priv->n_read - *offset); return g_strdup (""); } value = (*alloc_fn) (sizeof (gchar) * (length + 1)); memcpy (value, greeter->priv->read_buffer + *offset, length); value[length] = '\0'; *offset += length; return value; } static gchar * read_string (Greeter *greeter, gsize *offset) { return read_string_full (greeter, offset, g_malloc); } static gchar * read_secret (Greeter *greeter, gsize *offset) { if (greeter->priv->use_secure_memory) return read_string_full (greeter, offset, gcry_malloc_secure); else return read_string_full (greeter, offset, g_malloc); } static gboolean read_cb (GIOChannel *source, GIOCondition condition, gpointer data) { Greeter *greeter = data; gsize n_to_read, n_read, offset; GIOStatus status; int id, length, i; guint32 sequence_number, n_secrets, max_secrets; gchar *version, *username, *session_name, *language; gchar **secrets; gboolean resettable = FALSE; GError *error = NULL; if (condition == G_IO_HUP) { l_debug (greeter, "Greeter closed communication channel"); greeter->priv->from_greeter_watch = 0; return FALSE; } n_to_read = HEADER_SIZE; if (greeter->priv->n_read >= HEADER_SIZE) { n_to_read = get_message_length (greeter); if (n_to_read <= HEADER_SIZE) { greeter->priv->from_greeter_watch = 0; return FALSE; } } status = g_io_channel_read_chars (greeter->priv->from_greeter_channel, (gchar *) greeter->priv->read_buffer + greeter->priv->n_read, n_to_read - greeter->priv->n_read, &n_read, &error); if (error) l_warning (greeter, "Error reading from greeter: %s", error->message); g_clear_error (&error); if (status != G_IO_STATUS_NORMAL) return TRUE; greeter->priv->n_read += n_read; if (greeter->priv->n_read != n_to_read) return TRUE; /* If have header, rerun for content */ if (greeter->priv->n_read == HEADER_SIZE) { n_to_read = get_message_length (greeter); if (n_to_read > HEADER_SIZE) { greeter->priv->read_buffer = secure_realloc (greeter, greeter->priv->read_buffer, n_to_read); read_cb (source, condition, greeter); return TRUE; } } offset = 0; id = read_int (greeter, &offset); length = HEADER_SIZE + read_int (greeter, &offset); switch (id) { case GREETER_MESSAGE_CONNECT: version = read_string (greeter, &offset); if (offset < length) resettable = read_int (greeter, &offset) != 0; handle_connect (greeter, version, resettable); g_free (version); break; case GREETER_MESSAGE_AUTHENTICATE: sequence_number = read_int (greeter, &offset); username = read_string (greeter, &offset); handle_login (greeter, sequence_number, username); g_free (username); break; case GREETER_MESSAGE_AUTHENTICATE_AS_GUEST: sequence_number = read_int (greeter, &offset); handle_login_as_guest (greeter, sequence_number); break; case GREETER_MESSAGE_AUTHENTICATE_REMOTE: sequence_number = read_int (greeter, &offset); session_name = read_string (greeter, &offset); username = read_string (greeter, &offset); handle_login_remote (greeter, session_name, username, sequence_number); break; case GREETER_MESSAGE_CONTINUE_AUTHENTICATION: n_secrets = read_int (greeter, &offset); max_secrets = (G_MAXUINT32 - 1) / sizeof (gchar *); if (n_secrets > max_secrets) { l_warning (greeter, "Array length of %u elements too long", n_secrets); greeter->priv->from_greeter_watch = 0; return FALSE; } secrets = g_malloc (sizeof (gchar *) * (n_secrets + 1)); for (i = 0; i < n_secrets; i++) secrets[i] = read_secret (greeter, &offset); secrets[i] = NULL; handle_continue_authentication (greeter, secrets); for (i = 0; i < n_secrets; i++) secure_free (greeter, secrets[i]); g_free (secrets); break; case GREETER_MESSAGE_CANCEL_AUTHENTICATION: handle_cancel_authentication (greeter); break; case GREETER_MESSAGE_START_SESSION: session_name = read_string (greeter, &offset); handle_start_session (greeter, session_name); g_free (session_name); break; case GREETER_MESSAGE_SET_LANGUAGE: language = read_string (greeter, &offset); handle_set_language (greeter, language); g_free (language); break; case GREETER_MESSAGE_ENSURE_SHARED_DIR: username = read_string (greeter, &offset); handle_ensure_shared_dir (greeter, username); g_free (username); break; default: l_warning (greeter, "Unknown message from greeter: %d", id); break; } greeter->priv->n_read = 0; return TRUE; } gboolean greeter_get_guest_authenticated (Greeter *greeter) { g_return_val_if_fail (greeter != NULL, FALSE); return greeter->priv->guest_account_authenticated; } Session * greeter_get_authentication_session (Greeter *greeter) { g_return_val_if_fail (greeter != NULL, NULL); return greeter->priv->authentication_session; } gboolean greeter_get_resettable (Greeter *greeter) { g_return_val_if_fail (greeter != NULL, FALSE); return greeter->priv->resettable; } gboolean greeter_get_start_session (Greeter *greeter) { g_return_val_if_fail (greeter != NULL, FALSE); return greeter->priv->start_session; } const gchar * greeter_get_active_username (Greeter *greeter) { g_return_val_if_fail (greeter != NULL, NULL); return greeter->priv->active_username; } static gboolean greeter_start (Session *session) { Greeter *greeter = GREETER (session); int to_greeter_pipe[2], from_greeter_pipe[2]; int to_greeter_output, from_greeter_input; gboolean result = FALSE; gchar *value; GError *error = NULL; /* Create a pipe to talk with the greeter */ if (pipe (to_greeter_pipe) != 0 || pipe (from_greeter_pipe) != 0) { g_warning ("Failed to create pipes: %s", strerror (errno)); return FALSE; } to_greeter_output = to_greeter_pipe[0]; greeter->priv->to_greeter_input = to_greeter_pipe[1]; greeter->priv->to_greeter_channel = g_io_channel_unix_new (greeter->priv->to_greeter_input); g_io_channel_set_encoding (greeter->priv->to_greeter_channel, NULL, &error); if (error) g_warning ("Failed to set encoding on to greeter channel to binary: %s\n", error->message); g_clear_error (&error); greeter->priv->from_greeter_output = from_greeter_pipe[0]; from_greeter_input = from_greeter_pipe[1]; greeter->priv->from_greeter_channel = g_io_channel_unix_new (greeter->priv->from_greeter_output); g_io_channel_set_encoding (greeter->priv->from_greeter_channel, NULL, &error); if (error) g_warning ("Failed to set encoding on from greeter channel to binary: %s\n", error->message); g_clear_error (&error); g_io_channel_set_buffered (greeter->priv->from_greeter_channel, FALSE); greeter->priv->from_greeter_watch = g_io_add_watch (greeter->priv->from_greeter_channel, G_IO_IN | G_IO_HUP, read_cb, greeter); /* Let the greeter session know how to communicate with the daemon */ value = g_strdup_printf ("%d", from_greeter_input); session_set_env (SESSION (greeter), "LIGHTDM_TO_SERVER_FD", value); g_free (value); value = g_strdup_printf ("%d", to_greeter_output); session_set_env (SESSION (greeter), "LIGHTDM_FROM_SERVER_FD", value); g_free (value); /* Don't allow the daemon end of the pipes to be accessed in child processes */ fcntl (greeter->priv->to_greeter_input, F_SETFD, FD_CLOEXEC); fcntl (greeter->priv->from_greeter_output, F_SETFD, FD_CLOEXEC); result = SESSION_CLASS (greeter_parent_class)->start (session); /* Close the session ends of the pipe */ close (to_greeter_output); close (from_greeter_input); return result; } static Session * greeter_real_create_session (Greeter *greeter) { return NULL; } static gboolean greeter_real_start_session (Greeter *greeter, SessionType type, const gchar *session) { return FALSE; } static void greeter_stop (Session *session) { Greeter *greeter = GREETER (session); /* Stop any events occurring after we've stopped */ if (greeter->priv->authentication_session) g_signal_handlers_disconnect_matched (greeter->priv->authentication_session, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, greeter); SESSION_CLASS (greeter_parent_class)->stop (session); } static void greeter_init (Greeter *greeter) { greeter->priv = G_TYPE_INSTANCE_GET_PRIVATE (greeter, GREETER_TYPE, GreeterPrivate); greeter->priv->read_buffer = secure_malloc (greeter, HEADER_SIZE); greeter->priv->hints = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); greeter->priv->use_secure_memory = config_get_boolean (config_get_instance (), "LightDM", "lock-memory"); greeter->priv->to_greeter_input = -1; greeter->priv->from_greeter_output = -1; } static void greeter_finalize (GObject *object) { Greeter *self = GREETER (object); g_free (self->priv->pam_service); g_free (self->priv->autologin_pam_service); secure_free (self, self->priv->read_buffer); g_hash_table_unref (self->priv->hints); g_free (self->priv->remote_session); g_free (self->priv->active_username); if (self->priv->authentication_session) { g_signal_handlers_disconnect_matched (self->priv->authentication_session, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, self); g_object_unref (self->priv->authentication_session); } close (self->priv->to_greeter_input); close (self->priv->from_greeter_output); if (self->priv->to_greeter_channel) g_io_channel_unref (self->priv->to_greeter_channel); if (self->priv->from_greeter_channel) g_io_channel_unref (self->priv->from_greeter_channel); if (self->priv->from_greeter_watch) g_source_remove (self->priv->from_greeter_watch); G_OBJECT_CLASS (greeter_parent_class)->finalize (object); } static void greeter_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); } static void greeter_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { Greeter *greeter = GREETER (object); switch (prop_id) { case PROP_ACTIVE_USERNAME: g_value_set_string (value, greeter_get_active_username (greeter)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void greeter_class_init (GreeterClass *klass) { SessionClass *session_class = SESSION_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass); klass->create_session = greeter_real_create_session; klass->start_session = greeter_real_start_session; session_class->start = greeter_start; session_class->stop = greeter_stop; object_class->finalize = greeter_finalize; object_class->get_property = greeter_get_property; object_class->set_property = greeter_set_property; signals[CONNECTED] = g_signal_new (GREETER_SIGNAL_CONNECTED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GreeterClass, connected), NULL, NULL, NULL, G_TYPE_NONE, 0); signals[CREATE_SESSION] = g_signal_new (GREETER_SIGNAL_CREATE_SESSION, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GreeterClass, create_session), g_signal_accumulator_first_wins, NULL, NULL, SESSION_TYPE, 0); signals[START_SESSION] = g_signal_new (GREETER_SIGNAL_START_SESSION, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GreeterClass, start_session), g_signal_accumulator_true_handled, NULL, NULL, G_TYPE_BOOLEAN, 2, G_TYPE_INT, G_TYPE_STRING); g_object_class_install_property (object_class, PROP_ACTIVE_USERNAME, g_param_spec_string (GREETER_PROPERTY_ACTIVE_USERNAME, GREETER_PROPERTY_ACTIVE_USERNAME, "Active username", NULL, G_PARAM_READABLE)); g_type_class_add_private (klass, sizeof (GreeterPrivate)); } lightdm-1.18.1/src/login1.c0000664000000000000000000004525112700600465012255 0ustar /* -*- Mode: C; indent-tabs-mode: nil; tab-width: 4 -*- * * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include "login1.h" #define LOGIN1_SERVICE_NAME "org.freedesktop.login1" #define LOGIN1_OBJECT_NAME "/org/freedesktop/login1" #define LOGIN1_MANAGER_INTERFACE_NAME "org.freedesktop.login1.Manager" enum { SEAT_ADDED, SEAT_REMOVED, LAST_SERVICE_SIGNAL }; static guint service_signals[LAST_SERVICE_SIGNAL] = { 0 }; struct Login1ServicePrivate { /* Connection to bus service is running on */ GDBusConnection *connection; /* TRUE if have connected to service */ gboolean connected; /* Seats the service is reporting */ GList *seats; /* Handle to signal subscription */ guint signal_id; }; enum { CAN_GRAPHICAL_CHANGED, ACTIVE_SESSION_CHANGED, LAST_SEAT_SIGNAL }; static guint seat_signals[LAST_SEAT_SIGNAL] = { 0 }; struct Login1SeatPrivate { /* Connection to bus seat is running on */ GDBusConnection *connection; /* Seat Id */ gchar *id; /* D-Bus path for this seat */ gchar *path; /* Handle to signal subscription */ guint signal_id; /* TRUE if can run a graphical display on this seat */ gboolean can_graphical; /* TRUE if can do session switching */ gboolean can_multi_session; }; G_DEFINE_TYPE (Login1Service, login1_service, G_TYPE_OBJECT); G_DEFINE_TYPE (Login1Seat, login1_seat, G_TYPE_OBJECT); static Login1Service *singleton = NULL; Login1Service * login1_service_get_instance (void) { if (!singleton) singleton = g_object_new (LOGIN1_SERVICE_TYPE, NULL); return singleton; } static void update_property (Login1Seat *seat, const gchar *name, GVariant *value) { if (strcmp (name, "CanGraphical") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)) { seat->priv->can_graphical = g_variant_get_boolean (value); g_signal_emit (seat, seat_signals[CAN_GRAPHICAL_CHANGED], 0); } else if (strcmp (name, "ActiveSession") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE ("(so)"))) { const gchar *login1_session_id; g_variant_get (value, "(&so)", &login1_session_id, NULL); g_signal_emit (seat, seat_signals[ACTIVE_SESSION_CHANGED], 0, login1_session_id); } } static void seat_properties_changed_cb (GDBusConnection *connection, const gchar *sender_name, const gchar *object_path, const gchar *interface_name, const gchar *signal_name, GVariant *parameters, gpointer user_data) { Login1Seat *seat = user_data; GVariantIter *iter; GVariantIter *invalidated_properties; const gchar *name; GVariant *value; g_variant_get (parameters, "(sa{sv}as)", NULL, &iter, &invalidated_properties); while (g_variant_iter_loop (iter, "{&sv}", &name, &value)) update_property (seat, name, value); g_variant_iter_free (iter); while (g_variant_iter_loop (invalidated_properties, "&s", &name)) { GVariant *result; GError *error = NULL; result = g_dbus_connection_call_sync (connection, LOGIN1_SERVICE_NAME, seat->priv->path, "org.freedesktop.DBus.Properties", "Get", g_variant_new ("(ss)", "org.freedesktop.login1.Seat", name), G_VARIANT_TYPE ("(v)"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Error updating seat property %s: %s", name, error->message); g_clear_error (&error); if (result) { g_variant_get (result, "(v)", &value); update_property (seat, name, value); g_variant_unref (value); g_variant_unref (result); } } g_variant_iter_free (invalidated_properties); } static Login1Seat * add_seat (Login1Service *service, const gchar *id, const gchar *path) { Login1Seat *seat; GVariant *result; GError *error = NULL; seat = g_object_new (LOGIN1_SEAT_TYPE, NULL); seat->priv->connection = g_object_ref (service->priv->connection); seat->priv->id = g_strdup (id); seat->priv->path = g_strdup (path); seat->priv->signal_id = g_dbus_connection_signal_subscribe (seat->priv->connection, LOGIN1_SERVICE_NAME, "org.freedesktop.DBus.Properties", "PropertiesChanged", path, "org.freedesktop.login1.Seat", G_DBUS_SIGNAL_FLAGS_NONE, seat_properties_changed_cb, g_object_ref (seat), g_object_unref); /* Get properties for this seat */ result = g_dbus_connection_call_sync (seat->priv->connection, LOGIN1_SERVICE_NAME, path, "org.freedesktop.DBus.Properties", "GetAll", g_variant_new ("(s)", "org.freedesktop.login1.Seat"), G_VARIANT_TYPE ("(a{sv})"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Failed to get seat properties: %s", error->message); g_clear_error (&error); if (result) { GVariantIter *properties; const gchar *name; GVariant *value; g_variant_get (result, "(a{sv})", &properties); while (g_variant_iter_loop (properties, "{&sv}", &name, &value)) { if (strcmp (name, "CanGraphical") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)) seat->priv->can_graphical = g_variant_get_boolean (value); else if (strcmp (name, "CanMultiSession") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)) seat->priv->can_multi_session = g_variant_get_boolean (value); } g_variant_iter_free (properties); g_variant_unref (result); } service->priv->seats = g_list_append (service->priv->seats, seat); return seat; } static void signal_cb (GDBusConnection *connection, const gchar *sender_name, const gchar *object_path, const gchar *interface_name, const gchar *signal_name, GVariant *parameters, gpointer user_data) { Login1Service *service = user_data; if (strcmp (signal_name, "SeatNew") == 0) { const gchar *id, *path; Login1Seat *seat; g_variant_get (parameters, "(&s&o)", &id, &path); seat = login1_service_get_seat (service, id); if (!seat) { seat = add_seat (service, id, path); g_signal_emit (service, service_signals[SEAT_ADDED], 0, seat); } } else if (strcmp (signal_name, "SeatRemoved") == 0) { const gchar *id, *path; Login1Seat *seat; g_variant_get (parameters, "(&s&o)", &id, &path); seat = login1_service_get_seat (service, id); if (seat) { service->priv->seats = g_list_remove (service->priv->seats, seat); g_signal_emit (service, service_signals[SEAT_REMOVED], 0, seat); g_object_unref (seat); } } } gboolean login1_service_connect (Login1Service *service) { GVariant *result; GVariantIter *seat_iter; const gchar *id, *path; GError *error = NULL; g_return_val_if_fail (service != NULL, FALSE); if (service->priv->connected) return TRUE; service->priv->connection = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); g_clear_error (&error); if (!service->priv->connection) return FALSE; service->priv->signal_id = g_dbus_connection_signal_subscribe (service->priv->connection, LOGIN1_SERVICE_NAME, LOGIN1_MANAGER_INTERFACE_NAME, NULL, LOGIN1_OBJECT_NAME, NULL, G_DBUS_SIGNAL_FLAGS_NONE, signal_cb, g_object_ref (service), g_object_unref); result = g_dbus_connection_call_sync (service->priv->connection, LOGIN1_SERVICE_NAME, LOGIN1_OBJECT_NAME, LOGIN1_MANAGER_INTERFACE_NAME, "ListSeats", g_variant_new ("()"), G_VARIANT_TYPE ("(a(so))"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Failed to get list of logind seats: %s", error->message); g_clear_error (&error); if (!result) return FALSE; g_variant_get (result, "(a(so))", &seat_iter); while (g_variant_iter_loop (seat_iter, "(&s&o)", &id, &path)) add_seat (service, id, path); g_variant_iter_free (seat_iter); g_variant_unref (result); service->priv->connected = TRUE; return TRUE; } gboolean login1_service_get_is_connected (Login1Service *service) { g_return_val_if_fail (service != NULL, FALSE); return service->priv->connected; } GList * login1_service_get_seats (Login1Service *service) { g_return_val_if_fail (service != NULL, NULL); return service->priv->seats; } Login1Seat * login1_service_get_seat (Login1Service *service, const gchar *id) { GList *link; g_return_val_if_fail (service != NULL, NULL); for (link = service->priv->seats; link; link = link->next) { Login1Seat *seat = link->data; if (strcmp (seat->priv->id, id) == 0) return seat; } return NULL; } void login1_service_lock_session (Login1Service *service, const gchar *session_id) { GError *error = NULL; g_return_if_fail (service != NULL); g_return_if_fail (session_id != NULL); g_debug ("Locking login1 session %s", session_id); if (session_id) { GVariant *result; result = g_dbus_connection_call_sync (service->priv->connection, LOGIN1_SERVICE_NAME, LOGIN1_OBJECT_NAME, LOGIN1_MANAGER_INTERFACE_NAME, "LockSession", g_variant_new ("(s)", session_id), G_VARIANT_TYPE ("()"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Error locking login1 session: %s", error->message); g_clear_error (&error); if (result) g_variant_unref (result); } } void login1_service_unlock_session (Login1Service *service, const gchar *session_id) { GError *error = NULL; g_return_if_fail (service != NULL); g_return_if_fail (session_id != NULL); g_debug ("Unlocking login1 session %s", session_id); if (session_id) { GVariant *result; result = g_dbus_connection_call_sync (service->priv->connection, LOGIN1_SERVICE_NAME, LOGIN1_OBJECT_NAME, LOGIN1_MANAGER_INTERFACE_NAME, "UnlockSession", g_variant_new ("(s)", session_id), G_VARIANT_TYPE ("()"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Error unlocking login1 session: %s", error->message); g_clear_error (&error); if (result) g_variant_unref (result); } } void login1_service_activate_session (Login1Service *service, const gchar *session_id) { GError *error = NULL; g_return_if_fail (service != NULL); g_return_if_fail (session_id != NULL); g_debug ("Activating login1 session %s", session_id); if (session_id) { GVariant *result; result = g_dbus_connection_call_sync (service->priv->connection, LOGIN1_SERVICE_NAME, LOGIN1_OBJECT_NAME, LOGIN1_MANAGER_INTERFACE_NAME, "ActivateSession", g_variant_new ("(s)", session_id), G_VARIANT_TYPE ("()"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Error activating login1 session: %s", error->message); g_clear_error (&error); if (result) g_variant_unref (result); } } static void login1_service_init (Login1Service *service) { service->priv = G_TYPE_INSTANCE_GET_PRIVATE (service, LOGIN1_SERVICE_TYPE, Login1ServicePrivate); } static void login1_service_finalize (GObject *object) { Login1Service *self = LOGIN1_SERVICE (object); g_list_free_full (self->priv->seats, g_object_unref); g_dbus_connection_signal_unsubscribe (self->priv->connection, self->priv->signal_id); g_clear_object (&self->priv->connection); G_OBJECT_CLASS (login1_service_parent_class)->finalize (object); } static void login1_service_class_init (Login1ServiceClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = login1_service_finalize; g_type_class_add_private (klass, sizeof (Login1ServicePrivate)); service_signals[SEAT_ADDED] = g_signal_new (LOGIN1_SERVICE_SIGNAL_SEAT_ADDED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (Login1ServiceClass, seat_added), NULL, NULL, NULL, G_TYPE_NONE, 1, LOGIN1_SEAT_TYPE); service_signals[SEAT_REMOVED] = g_signal_new (LOGIN1_SERVICE_SIGNAL_SEAT_REMOVED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (Login1ServiceClass, seat_removed), NULL, NULL, NULL, G_TYPE_NONE, 1, LOGIN1_SEAT_TYPE); } const gchar * login1_seat_get_id (Login1Seat *seat) { g_return_val_if_fail (seat != NULL, NULL); return seat->priv->id; } gboolean login1_seat_get_can_graphical (Login1Seat *seat) { g_return_val_if_fail (seat != NULL, FALSE); return seat->priv->can_graphical; } gboolean login1_seat_get_can_multi_session (Login1Seat *seat) { g_return_val_if_fail (seat != NULL, FALSE); return seat->priv->can_multi_session; } static void login1_seat_init (Login1Seat *seat) { seat->priv = G_TYPE_INSTANCE_GET_PRIVATE (seat, LOGIN1_SEAT_TYPE, Login1SeatPrivate); } static void login1_seat_finalize (GObject *object) { Login1Seat *self = LOGIN1_SEAT (object); g_free (self->priv->id); g_free (self->priv->path); g_dbus_connection_signal_unsubscribe (self->priv->connection, self->priv->signal_id); g_object_unref (self->priv->connection); G_OBJECT_CLASS (login1_seat_parent_class)->finalize (object); } static void login1_seat_class_init (Login1SeatClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = login1_seat_finalize; g_type_class_add_private (klass, sizeof (Login1SeatPrivate)); seat_signals[CAN_GRAPHICAL_CHANGED] = g_signal_new (LOGIN1_SEAT_SIGNAL_CAN_GRAPHICAL_CHANGED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (Login1SeatClass, can_graphical_changed), NULL, NULL, NULL, G_TYPE_NONE, 0); seat_signals[ACTIVE_SESSION_CHANGED] = g_signal_new (LOGIN1_SIGNAL_ACTIVE_SESION_CHANGED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (Login1SeatClass, active_session_changed), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_STRING); } lightdm-1.18.1/src/vnc-server.h0000664000000000000000000000261112700600465013154 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef VNC_SERVER_H_ #define VNC_SERVER_H_ #include G_BEGIN_DECLS #define VNC_SERVER_TYPE (vnc_server_get_type()) #define VNC_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VNC_SERVER_TYPE, VNCServer)); #define VNC_SERVER_SIGNAL_NEW_CONNECTION "new-connection" typedef struct VNCServerPrivate VNCServerPrivate; typedef struct { GObject parent_instance; VNCServerPrivate *priv; } VNCServer; typedef struct { GObjectClass parent_class; gboolean (*new_connection)(VNCServer *server, GSocket *socket); } VNCServerClass; GType vnc_server_get_type (void); VNCServer *vnc_server_new (void); void vnc_server_set_port (VNCServer *server, guint port); guint vnc_server_get_port (VNCServer *server); void vnc_server_set_listen_address (VNCServer *server, const gchar *listen_address); const gchar *vnc_server_get_listen_address (VNCServer *server); gboolean vnc_server_start (VNCServer *server); G_END_DECLS #endif /* VNC_SERVER_H_ */ lightdm-1.18.1/src/xdmcp-session.h0000664000000000000000000000272212700600465013661 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef XDMCP_SESSION_H_ #define XDMCP_SESSION_H_ #include #include #include "x-authority.h" G_BEGIN_DECLS #define XDMCP_SESSION_TYPE (xdmcp_session_get_type()) #define XDMCP_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XDMCP_SESSION_TYPE, XDMCPSession)); typedef struct XDMCPSessionPrivate XDMCPSessionPrivate; typedef struct { GObject parent_instance; XDMCPSessionPrivate *priv; } XDMCPSession; typedef struct { GObjectClass parent_class; } XDMCPSessionClass; GType xdmcp_session_get_type (void); XDMCPSession *xdmcp_session_new (guint16 id); guint16 xdmcp_session_get_id (XDMCPSession *session); const gchar *xdmcp_session_get_manufacturer_display_id (XDMCPSession *session); GInetAddress *xdmcp_session_get_address (XDMCPSession *session); XAuthority *xdmcp_session_get_authority (XDMCPSession *session); guint16 xdmcp_session_get_display_number (XDMCPSession *session); const gchar *xdmcp_session_get_display_class (XDMCPSession *session); G_END_DECLS #endif /* XDMCP_SESSION_H_ */ lightdm-1.18.1/src/session.c0000664000000000000000000007211212700600465012543 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include #include #include #include #include #include #include "session.h" #include "configuration.h" #include "console-kit.h" #include "login1.h" #include "guest-account.h" #include "shared-data-manager.h" enum { GOT_MESSAGES, AUTHENTICATION_COMPLETE, STOPPED, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; struct SessionPrivate { /* Configuration for this session */ SessionConfig *config; /* Display server running on */ DisplayServer *display_server; /* PID of child process */ GPid pid; /* Pipes to talk to child */ int to_child_input; int from_child_output; GIOChannel *from_child_channel; guint from_child_watch; guint child_watch; /* User to authenticate as */ gchar *username; /* TRUE if is a guest account */ gboolean is_guest; /* User object that matches the current username */ User *user; /* PAM service to use */ gchar *pam_service; /* TRUE if should run PAM authentication phase */ gboolean do_authenticate; /* TRUE if can handle PAM prompts */ gboolean is_interactive; /* Messages being requested by PAM */ int messages_length; struct pam_message *messages; /* Authentication result from PAM */ gboolean authentication_started; gboolean authentication_complete; int authentication_result; gchar *authentication_result_string; /* File to log to */ gchar *log_filename; LogMode log_mode; /* tty this session is running on */ gchar *tty; /* X display connected to */ gchar *xdisplay; XAuthority *x_authority; gboolean x_authority_use_system_location; /* Remote host this session is being controlled from */ gchar *remote_host_name; /* Console kit cookie */ gchar *console_kit_cookie; /* login1 session ID */ gchar *login1_session_id; /* Environment to set in child */ GList *env; /* Command to run in child */ gchar **argv; /* True if have run command */ gboolean command_run; /* TRUE if stopping this session */ gboolean stopping; }; /* Maximum length of a string to pass between daemon and session */ #define MAX_STRING_LENGTH 65535 static void session_logger_iface_init (LoggerInterface *iface); G_DEFINE_TYPE_WITH_CODE (Session, session, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE ( LOGGER_TYPE, session_logger_iface_init)); Session * session_new (void) { return g_object_new (SESSION_TYPE, NULL); } void session_set_config (Session *session, SessionConfig *config) { g_return_if_fail (session != NULL); g_clear_object (&session->priv->config); session->priv->config = g_object_ref (config); } SessionConfig * session_get_config (Session *session) { g_return_val_if_fail (session != NULL, NULL); return session->priv->config; } const gchar * session_get_session_type (Session *session) { g_return_val_if_fail (session != NULL, NULL); return session_config_get_session_type (session_get_config (session)); } void session_set_pam_service (Session *session, const gchar *pam_service) { g_return_if_fail (session != NULL); g_free (session->priv->pam_service); session->priv->pam_service = g_strdup (pam_service); } void session_set_username (Session *session, const gchar *username) { g_return_if_fail (session != NULL); g_free (session->priv->username); session->priv->username = g_strdup (username); } void session_set_do_authenticate (Session *session, gboolean do_authenticate) { g_return_if_fail (session != NULL); session->priv->do_authenticate = do_authenticate; } void session_set_is_interactive (Session *session, gboolean is_interactive) { g_return_if_fail (session != NULL); session->priv->is_interactive = is_interactive; } void session_set_is_guest (Session *session, gboolean is_guest) { g_return_if_fail (session != NULL); session->priv->is_guest = is_guest; } gboolean session_get_is_guest (Session *session) { g_return_val_if_fail (session != NULL, FALSE); return session->priv->is_guest; } void session_set_log_file (Session *session, const gchar *filename, LogMode log_mode) { g_return_if_fail (session != NULL); g_free (session->priv->log_filename); session->priv->log_filename = g_strdup (filename); session->priv->log_mode = log_mode; } void session_set_display_server (Session *session, DisplayServer *display_server) { g_return_if_fail (session != NULL); g_return_if_fail (display_server != NULL); if (session->priv->display_server) { display_server_disconnect_session (session->priv->display_server, session); g_object_unref (session->priv->display_server); } session->priv->display_server = g_object_ref (display_server); } DisplayServer * session_get_display_server (Session *session) { g_return_val_if_fail (session != NULL, NULL); return session->priv->display_server; } void session_set_tty (Session *session, const gchar *tty) { g_return_if_fail (session != NULL); g_free (session->priv->tty); session->priv->tty = g_strdup (tty); } void session_set_xdisplay (Session *session, const gchar *xdisplay) { g_return_if_fail (session != NULL); g_free (session->priv->xdisplay); session->priv->xdisplay = g_strdup (xdisplay); } void session_set_x_authority (Session *session, XAuthority *authority, gboolean use_system_location) { g_return_if_fail (session != NULL); g_clear_object (&session->priv->x_authority); if (authority) session->priv->x_authority = g_object_ref (authority); session->priv->x_authority_use_system_location = use_system_location; } void session_set_remote_host_name (Session *session, const gchar *remote_host_name) { g_return_if_fail (session != NULL); g_free (session->priv->remote_host_name); session->priv->remote_host_name = g_strdup (remote_host_name); } static GList * find_env_entry (Session *session, const gchar *name) { GList *link; for (link = session->priv->env; link; link = link->next) { const gchar *entry = link->data; if (g_str_has_prefix (entry, name) && entry[strlen (name)] == '=') return link; } return NULL; } void session_set_env (Session *session, const gchar *name, const gchar *value) { GList *link; gchar *entry; g_return_if_fail (session != NULL); g_return_if_fail (value != NULL); entry = g_strdup_printf ("%s=%s", name, value); link = find_env_entry (session, name); if (link) { g_free (link->data); link->data = entry; } else session->priv->env = g_list_append (session->priv->env, entry); } const gchar * session_get_env (Session *session, const gchar *name) { GList *link; gchar *entry; link = find_env_entry (session, name); if (!link) return NULL; entry = link->data; return entry + strlen (name) + 1; } void session_unset_env (Session *session, const gchar *name) { GList *link; g_return_if_fail (session != NULL); link = find_env_entry (session, name); if (!link) return; g_free (link->data); session->priv->env = g_list_delete_link (session->priv->env, link); } void session_set_argv (Session *session, gchar **argv) { g_return_if_fail (session != NULL); session->priv->argv = g_strdupv (argv); } User * session_get_user (Session *session) { g_return_val_if_fail (session != NULL, NULL); if (session->priv->username == NULL) return NULL; if (!session->priv->user) session->priv->user = accounts_get_user_by_name (session->priv->username); return session->priv->user; } static void write_data (Session *session, const void *buf, size_t count) { if (write (session->priv->to_child_input, buf, count) != count) l_warning (session, "Error writing to session: %s", strerror (errno)); } static void write_string (Session *session, const char *value) { int length; length = value ? strlen (value) : -1; write_data (session, &length, sizeof (length)); if (value) write_data (session, value, sizeof (char) * length); } static void write_xauth (Session *session, XAuthority *x_authority) { guint16 family; gsize length; if (!x_authority) { write_string (session, NULL); return; } write_string (session, x_authority_get_authorization_name (session->priv->x_authority)); family = x_authority_get_family (session->priv->x_authority); write_data (session, &family, sizeof (family)); length = x_authority_get_address_length (session->priv->x_authority); write_data (session, &length, sizeof (length)); write_data (session, x_authority_get_address (session->priv->x_authority), length); write_string (session, x_authority_get_number (session->priv->x_authority)); length = x_authority_get_authorization_data_length (session->priv->x_authority); write_data (session, &length, sizeof (length)); write_data (session, x_authority_get_authorization_data (session->priv->x_authority), length); } static ssize_t read_from_child (Session *session, void *buf, size_t count) { ssize_t n_read; n_read = read (session->priv->from_child_output, buf, count); if (n_read < 0) l_warning (session, "Error reading from session: %s", strerror (errno)); return n_read; } static gchar * read_string_from_child (Session *session) { int length; char *value; if (read_from_child (session, &length, sizeof (length)) <= 0) return NULL; if (length < 0) return NULL; if (length > MAX_STRING_LENGTH) { l_warning (session, "Invalid string length %d from child", length); return NULL; } value = g_malloc (sizeof (char) * (length + 1)); read_from_child (session, value, length); value[length] = '\0'; return value; } static void session_watch_cb (GPid pid, gint status, gpointer data) { Session *session = data; session->priv->child_watch = 0; if (WIFEXITED (status)) l_debug (session, "Exited with return value %d", WEXITSTATUS (status)); else if (WIFSIGNALED (status)) l_debug (session, "Terminated with signal %d", WTERMSIG (status)); /* do this as late as possible for log messages prefix */ session->priv->pid = 0; /* If failed during authentication then report this as an authentication failure */ if (session->priv->authentication_started && !session->priv->authentication_complete) { l_debug (session, "Failed during authentication"); session->priv->authentication_complete = TRUE; session->priv->authentication_result = PAM_CONV_ERR; g_free (session->priv->authentication_result_string); session->priv->authentication_result_string = g_strdup ("Authentication stopped before completion"); g_signal_emit (G_OBJECT (session), signals[AUTHENTICATION_COMPLETE], 0); } g_signal_emit (G_OBJECT (session), signals[STOPPED], 0); /* Delete account if it is a guest one */ if (session->priv->is_guest) guest_account_cleanup (session->priv->username); /* Drop our reference on the child process, it has terminated */ g_object_unref (session); } static gboolean from_child_cb (GIOChannel *source, GIOCondition condition, gpointer data) { Session *session = data; gchar *username; ssize_t n_read; gboolean auth_complete; /* Remote end gone */ if (condition == G_IO_HUP) { session->priv->from_child_watch = 0; return FALSE; } /* Get the username currently being authenticated (may change during authentication) */ username = read_string_from_child (session); if (g_strcmp0 (username, session->priv->username) != 0) { g_free (session->priv->username); session->priv->username = username; g_clear_object (&session->priv->user); } else g_free (username); /* Check if authentication completed */ n_read = read_from_child (session, &auth_complete, sizeof (auth_complete)); if (n_read < 0) l_debug (session, "Error reading from child: %s", strerror (errno)); if (n_read <= 0) { session->priv->from_child_watch = 0; return FALSE; } if (auth_complete) { session->priv->authentication_complete = TRUE; read_from_child (session, &session->priv->authentication_result, sizeof (session->priv->authentication_result)); g_free (session->priv->authentication_result_string); session->priv->authentication_result_string = read_string_from_child (session); l_debug (session, "Authentication complete with return value %d: %s", session->priv->authentication_result, session->priv->authentication_result_string); /* No longer expect any more messages */ session->priv->from_child_watch = 0; g_signal_emit (G_OBJECT (session), signals[AUTHENTICATION_COMPLETE], 0); return FALSE; } else { int i; session->priv->messages_length = 0; read_from_child (session, &session->priv->messages_length, sizeof (session->priv->messages_length)); session->priv->messages = calloc (session->priv->messages_length, sizeof (struct pam_message)); for (i = 0; i < session->priv->messages_length; i++) { struct pam_message *m = &session->priv->messages[i]; read_from_child (session, &m->msg_style, sizeof (m->msg_style)); m->msg = read_string_from_child (session); } l_debug (session, "Got %d message(s) from PAM", session->priv->messages_length); g_signal_emit (G_OBJECT (session), signals[GOT_MESSAGES], 0); } return TRUE; } gboolean session_start (Session *session) { g_return_val_if_fail (session != NULL, FALSE); return SESSION_GET_CLASS (session)->start (session); } gboolean session_get_is_started (Session *session) { return session->priv->pid != 0; } static gboolean session_real_start (Session *session) { int version; int to_child_pipe[2], from_child_pipe[2]; int to_child_output, from_child_input; gchar *arg0, *arg1; g_return_val_if_fail (session->priv->pid == 0, FALSE); if (session->priv->display_server) display_server_connect_session (session->priv->display_server, session); /* Create pipes to talk to the child */ if (pipe (to_child_pipe) < 0 || pipe (from_child_pipe) < 0) { g_warning ("Failed to create pipe to communicate with session process: %s", strerror (errno)); return FALSE; } to_child_output = to_child_pipe[0]; session->priv->to_child_input = to_child_pipe[1]; session->priv->from_child_output = from_child_pipe[0]; from_child_input = from_child_pipe[1]; session->priv->from_child_channel = g_io_channel_unix_new (session->priv->from_child_output); session->priv->from_child_watch = g_io_add_watch (session->priv->from_child_channel, G_IO_IN | G_IO_HUP, from_child_cb, session); /* Don't allow the daemon end of the pipes to be accessed in child processes */ fcntl (session->priv->to_child_input, F_SETFD, FD_CLOEXEC); fcntl (session->priv->from_child_output, F_SETFD, FD_CLOEXEC); /* Create the guest account if it is one */ if (session->priv->is_guest && session->priv->username == NULL) { session->priv->username = guest_account_setup (); if (!session->priv->username) return FALSE; } /* Run the child */ arg0 = g_strdup_printf ("%d", to_child_output); arg1 = g_strdup_printf ("%d", from_child_input); session->priv->pid = fork (); if (session->priv->pid == 0) { /* Run us again in session child mode */ execlp ("lightdm", "lightdm", "--session-child", arg0, arg1, NULL); _exit (EXIT_FAILURE); } g_free (arg0); g_free (arg1); if (session->priv->pid < 0) { g_debug ("Failed to fork session child process: %s", strerror (errno)); return FALSE; } /* Hold a reference on this object until the child process terminates so we * can handle the watch callback even if it is no longer used. Otherwise a * zombie process will remain */ g_object_ref (session); /* Listen for session termination */ session->priv->authentication_started = TRUE; session->priv->child_watch = g_child_watch_add (session->priv->pid, session_watch_cb, session); /* Close the ends of the pipes we don't need */ close (to_child_output); close (from_child_input); /* Indicate what version of the protocol we are using */ version = 3; write_data (session, &version, sizeof (version)); /* Send configuration */ write_string (session, session->priv->pam_service); write_string (session, session->priv->username); write_data (session, &session->priv->do_authenticate, sizeof (session->priv->do_authenticate)); write_data (session, &session->priv->is_interactive, sizeof (session->priv->is_interactive)); write_string (session, NULL); /* Used to be class, now we just use the environment variable */ write_string (session, session->priv->tty); write_string (session, session->priv->remote_host_name); write_string (session, session->priv->xdisplay); write_xauth (session, session->priv->x_authority); l_debug (session, "Started with service '%s', username '%s'", session->priv->pam_service, session->priv->username); return TRUE; } const gchar * session_get_username (Session *session) { g_return_val_if_fail (session != NULL, NULL); return session->priv->username; } const gchar * session_get_login1_session_id (Session *session) { g_return_val_if_fail (session != NULL, NULL); return session->priv->login1_session_id; } const gchar * session_get_console_kit_cookie (Session *session) { g_return_val_if_fail (session != NULL, NULL); return session->priv->console_kit_cookie; } void session_respond (Session *session, struct pam_response *response) { int error = PAM_SUCCESS; int i; g_return_if_fail (session != NULL); write_data (session, &error, sizeof (error)); for (i = 0; i < session->priv->messages_length; i++) { write_string (session, response[i].resp); write_data (session, &response[i].resp_retcode, sizeof (response[i].resp_retcode)); } /* Delete the old messages */ for (i = 0; i < session->priv->messages_length; i++) g_free ((char *) session->priv->messages[i].msg); g_free (session->priv->messages); session->priv->messages = NULL; session->priv->messages_length = 0; } void session_respond_error (Session *session, int error) { g_return_if_fail (session != NULL); g_return_if_fail (error != PAM_SUCCESS); write_data (session, &error, sizeof (error)); } int session_get_messages_length (Session *session) { g_return_val_if_fail (session != NULL, 0); return session->priv->messages_length; } const struct pam_message * session_get_messages (Session *session) { g_return_val_if_fail (session != NULL, NULL); return session->priv->messages; } gboolean session_get_is_authenticated (Session *session) { g_return_val_if_fail (session != NULL, FALSE); return session->priv->authentication_complete && session->priv->authentication_result == PAM_SUCCESS; } int session_get_authentication_result (Session *session) { g_return_val_if_fail (session != NULL, 0); return session->priv->authentication_result; } const gchar * session_get_authentication_result_string (Session *session) { g_return_val_if_fail (session != NULL, NULL); return session->priv->authentication_result_string; } void session_run (Session *session) { g_return_if_fail (session->priv->display_server != NULL); return SESSION_GET_CLASS (session)->run (session); } static void session_real_run (Session *session) { gsize i, argc; gchar *command, *x_authority_filename; GList *link; g_return_if_fail (session != NULL); g_return_if_fail (!session->priv->command_run); g_return_if_fail (session_get_is_authenticated (session)); g_return_if_fail (session->priv->argv != NULL); g_return_if_fail (session->priv->pid != 0); display_server_connect_session (session->priv->display_server, session); session->priv->command_run = TRUE; command = g_strjoinv (" ", session->priv->argv); l_debug (session, "Running command %s", command); g_free (command); /* Create authority location */ if (session->priv->x_authority_use_system_location) { gchar *run_dir, *dir; run_dir = config_get_string (config_get_instance (), "LightDM", "run-directory"); dir = g_build_filename (run_dir, session->priv->username, NULL); g_free (run_dir); if (g_mkdir_with_parents (dir, S_IRWXU) < 0) l_warning (session, "Failed to set create system authority dir %s: %s", dir, strerror (errno)); if (getuid () == 0) { if (chown (dir, user_get_uid (session_get_user (session)), user_get_gid (session_get_user (session))) < 0) l_warning (session, "Failed to set ownership of user authority dir: %s", strerror (errno)); } x_authority_filename = g_build_filename (dir, "xauthority", NULL); g_free (dir); } else x_authority_filename = g_build_filename (user_get_home_directory (session_get_user (session)), ".Xauthority", NULL); /* Make sure shared user directory for this user exists */ if (!session->priv->remote_host_name) { gchar *data_dir = shared_data_manager_ensure_user_dir (shared_data_manager_get_instance (), session->priv->username); if (data_dir) { session_set_env (session, "XDG_GREETER_DATA_DIR", data_dir); g_free (data_dir); } } if (session->priv->log_filename) l_debug (session, "Logging to %s", session->priv->log_filename); write_string (session, session->priv->log_filename); write_data (session, &session->priv->log_mode, sizeof (session->priv->log_mode)); write_string (session, session->priv->tty); write_string (session, x_authority_filename); g_free (x_authority_filename); write_string (session, session->priv->xdisplay); write_xauth (session, session->priv->x_authority); argc = g_list_length (session->priv->env); write_data (session, &argc, sizeof (argc)); for (link = session->priv->env; link; link = link->next) write_string (session, (gchar *) link->data); argc = g_strv_length (session->priv->argv); write_data (session, &argc, sizeof (argc)); for (i = 0; i < argc; i++) write_string (session, session->priv->argv[i]); session->priv->login1_session_id = read_string_from_child (session); session->priv->console_kit_cookie = read_string_from_child (session); } void session_lock (Session *session) { g_return_if_fail (session != NULL); if (getuid () == 0) { if (session->priv->login1_session_id) login1_service_lock_session (login1_service_get_instance (), session->priv->login1_session_id); else if (session->priv->console_kit_cookie) ck_lock_session (session->priv->console_kit_cookie); } } void session_unlock (Session *session) { g_return_if_fail (session != NULL); if (getuid () == 0) { if (session->priv->login1_session_id) login1_service_unlock_session (login1_service_get_instance (), session->priv->login1_session_id); else if (session->priv->console_kit_cookie) ck_unlock_session (session->priv->console_kit_cookie); } } void session_activate (Session *session) { g_return_if_fail (session != NULL); if (getuid () == 0) { if (session->priv->login1_session_id) login1_service_activate_session (login1_service_get_instance (), session->priv->login1_session_id); else if (session->priv->console_kit_cookie) ck_activate_session (session->priv->console_kit_cookie); } } void session_stop (Session *session) { g_return_if_fail (session != NULL); /* If can cleanly stop then do that */ if (session_get_is_authenticated (session) && !session->priv->command_run) { gsize n = 0; LogMode log_mode = LOG_MODE_INVALID; session->priv->command_run = TRUE; write_string (session, NULL); // log filename write_data (session, &log_mode, sizeof (log_mode)); // log mode write_string (session, NULL); // tty write_string (session, NULL); // xauth filename write_string (session, NULL); // xdisplay write_xauth (session, NULL); // xauth write_data (session, &n, sizeof (n)); // environment write_data (session, &n, sizeof (n)); // command return; } if (session->priv->stopping) return; session->priv->stopping = TRUE; return SESSION_GET_CLASS (session)->stop (session); } static void session_real_stop (Session *session) { g_return_if_fail (session != NULL); if (session->priv->pid > 0) { l_debug (session, "Sending SIGTERM"); kill (session->priv->pid, SIGTERM); // FIXME: Handle timeout } else g_signal_emit (G_OBJECT (session), signals[STOPPED], 0); } gboolean session_get_is_stopping (Session *session) { g_return_val_if_fail (session != NULL, FALSE); return session->priv->stopping; } static void session_init (Session *session) { session->priv = G_TYPE_INSTANCE_GET_PRIVATE (session, SESSION_TYPE, SessionPrivate); session->priv->log_filename = g_strdup (".xsession-errors"); session->priv->log_mode = LOG_MODE_BACKUP_AND_TRUNCATE; session->priv->to_child_input = -1; session->priv->from_child_output = -1; } static void session_finalize (GObject *object) { Session *self = SESSION (object); int i; g_clear_object (&self->priv->config); g_clear_object (&self->priv->display_server); if (self->priv->pid) kill (self->priv->pid, SIGKILL); close (self->priv->to_child_input); close (self->priv->from_child_output); if (self->priv->from_child_channel) g_io_channel_unref (self->priv->from_child_channel); if (self->priv->from_child_watch) g_source_remove (self->priv->from_child_watch); if (self->priv->child_watch) g_source_remove (self->priv->child_watch); g_free (self->priv->username); g_clear_object (&self->priv->user); g_free (self->priv->pam_service); for (i = 0; i < self->priv->messages_length; i++) g_free ((char *) self->priv->messages[i].msg); g_free (self->priv->messages); g_free (self->priv->authentication_result_string); g_free (self->priv->log_filename); g_free (self->priv->tty); g_free (self->priv->xdisplay); g_clear_object (&self->priv->x_authority); g_free (self->priv->remote_host_name); g_free (self->priv->login1_session_id); g_free (self->priv->console_kit_cookie); g_list_free_full (self->priv->env, g_free); g_strfreev (self->priv->argv); G_OBJECT_CLASS (session_parent_class)->finalize (object); } static void session_class_init (SessionClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); klass->start = session_real_start; klass->run = session_real_run; klass->stop = session_real_stop; object_class->finalize = session_finalize; g_type_class_add_private (klass, sizeof (SessionPrivate)); signals[GOT_MESSAGES] = g_signal_new (SESSION_SIGNAL_GOT_MESSAGES, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SessionClass, got_messages), NULL, NULL, NULL, G_TYPE_NONE, 0); signals[AUTHENTICATION_COMPLETE] = g_signal_new (SESSION_SIGNAL_AUTHENTICATION_COMPLETE, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SessionClass, authentication_complete), NULL, NULL, NULL, G_TYPE_NONE, 0); signals[STOPPED] = g_signal_new (SESSION_SIGNAL_STOPPED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SessionClass, stopped), NULL, NULL, NULL, G_TYPE_NONE, 0); } static gint session_real_logprefix (Logger *self, gchar *buf, gulong buflen) { Session *session = SESSION (self); if (session->priv->pid != 0) return g_snprintf (buf, buflen, "Session pid=%d: ", session->priv->pid); else return g_snprintf (buf, buflen, "Session: "); } static void session_logger_iface_init (LoggerInterface *iface) { iface->logprefix = &session_real_logprefix; } lightdm-1.18.1/src/session-config.c0000664000000000000000000000757312700600465014017 0ustar /* * Copyright (C) 2013 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include "session-config.h" struct SessionConfigPrivate { /* Session type */ gchar *session_type; /* Desktop names */ gchar **desktop_names; /* Command to run */ gchar *command; /* Compositor command to run (for type mir-container) */ gchar *compositor_command; }; G_DEFINE_TYPE (SessionConfig, session_config, G_TYPE_OBJECT); SessionConfig * session_config_new_from_file (const gchar *filename, const gchar *default_session_type, GError **error) { GKeyFile *desktop_file; SessionConfig *config; gchar *command; desktop_file = g_key_file_new (); if (!g_key_file_load_from_file (desktop_file, filename, G_KEY_FILE_NONE, error)) return NULL; command = g_key_file_get_string (desktop_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_EXEC, NULL); if (!command) { g_set_error (error, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_KEY_NOT_FOUND, "No Exec option in session file: %s", filename); return NULL; } config = g_object_new (SESSION_CONFIG_TYPE, NULL); config->priv->command = command; config->priv->session_type = g_key_file_get_string (desktop_file, G_KEY_FILE_DESKTOP_GROUP, "X-LightDM-Session-Type", NULL); if (!config->priv->session_type) config->priv->session_type = g_strdup (default_session_type); config->priv->desktop_names = g_key_file_get_string_list (desktop_file, G_KEY_FILE_DESKTOP_GROUP, "DesktopNames", NULL, NULL); if (!config->priv->desktop_names) { gchar *name; name = g_key_file_get_string (desktop_file, G_KEY_FILE_DESKTOP_GROUP, "X-LightDM-DesktopName", NULL); if (name) { config->priv->desktop_names = g_malloc (sizeof (gchar *) * 2); config->priv->desktop_names[0] = name; config->priv->desktop_names[1] = NULL; } } config->priv->compositor_command = g_key_file_get_string (desktop_file, G_KEY_FILE_DESKTOP_GROUP, "X-LightDM-System-Compositor-Command", NULL); g_key_file_free (desktop_file); return config; } const gchar * session_config_get_command (SessionConfig *config) { g_return_val_if_fail (config != NULL, NULL); return config->priv->command; } const gchar * session_config_get_session_type (SessionConfig *config) { g_return_val_if_fail (config != NULL, NULL); return config->priv->session_type; } gchar ** session_config_get_desktop_names (SessionConfig *config) { g_return_val_if_fail (config != NULL, NULL); return config->priv->desktop_names; } const gchar * session_config_get_compositor_command (SessionConfig *config) { g_return_val_if_fail (config != NULL, NULL); return config->priv->compositor_command; } static void session_config_init (SessionConfig *config) { config->priv = G_TYPE_INSTANCE_GET_PRIVATE (config, SESSION_CONFIG_TYPE, SessionConfigPrivate); } static void session_config_finalize (GObject *object) { SessionConfig *self = SESSION_CONFIG (object); g_free (self->priv->session_type); g_strfreev (self->priv->desktop_names); g_free (self->priv->command); g_free (self->priv->compositor_command); G_OBJECT_CLASS (session_config_parent_class)->finalize (object); } static void session_config_class_init (SessionConfigClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = session_config_finalize; g_type_class_add_private (klass, sizeof (SessionConfigPrivate)); } lightdm-1.18.1/src/console-kit.h0000664000000000000000000000153312700600465013313 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef CONSOLE_KIT_H_ #define CONSOLE_KIT_H_ #include G_BEGIN_DECLS gchar *ck_open_session (GVariantBuilder *parameters); void ck_lock_session (const gchar *cookie); void ck_unlock_session (const gchar *cookie); void ck_activate_session (const gchar *cookie); void ck_close_session (const gchar *cookie); gchar *ck_get_xdg_runtime_dir (const gchar *cookie); G_END_DECLS #endif /* CONSOLE_KIT_H_ */ lightdm-1.18.1/src/x-server-xvnc.h0000664000000000000000000000312412700600465013611 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef X_SERVER_XVNC_H_ #define X_SERVER_XVNC_H_ #include "x-server.h" G_BEGIN_DECLS #define X_SERVER_XVNC_TYPE (x_server_xvnc_get_type()) #define X_SERVER_XVNC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), X_SERVER_XVNC_TYPE, XServerXVNC)) #define IS_X_SERVER_XVNC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), X_SERVER_XVNC_TYPE)) typedef struct XServerXVNCPrivate XServerXVNCPrivate; typedef struct { XServer parent_instance; XServerXVNCPrivate *priv; } XServerXVNC; typedef struct { XServerClass parent_class; void (*ready)(XServerXVNC *server); } XServerXVNCClass; GType x_server_xvnc_get_type (void); gboolean x_server_xvnc_check_available (void); XServerXVNC *x_server_xvnc_new (void); void x_server_xvnc_set_command (XServerXVNC *server, const gchar *command); void x_server_xvnc_set_socket (XServerXVNC *server, int fd); int x_server_xvnc_get_socket (XServerXVNC *server); void x_server_xvnc_set_geometry (XServerXVNC *server, gint width, gint height); void x_server_xvnc_set_depth (XServerXVNC *server, gint depth); const gchar *x_server_xvnc_get_authority_file_path (XServerXVNC *server); G_END_DECLS #endif /* X_SERVER_XVNC_H_ */ lightdm-1.18.1/src/greeter.h0000664000000000000000000000455312700600465012526 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef GREETER_H_ #define GREETER_H_ #include "session.h" G_BEGIN_DECLS #define GREETER_TYPE (greeter_get_type()) #define GREETER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_TYPE, Greeter)) #define GREETER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GREETER_TYPE, GreeterClass)) #define GREETER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GREETER_TYPE, GreeterClass)) #define IS_GREETER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_TYPE)) #define GREETER_SIGNAL_CONNECTED "connected" #define GREETER_SIGNAL_CREATE_SESSION "create-session" #define GREETER_SIGNAL_START_SESSION "start-session" #define GREETER_PROPERTY_ACTIVE_USERNAME "active-username" #define GREETER_SIGNAL_ACTIVE_USERNAME_CHANGED "notify::" GREETER_PROPERTY_ACTIVE_USERNAME typedef struct GreeterPrivate GreeterPrivate; typedef struct { Session parent_instance; GreeterPrivate *priv; } Greeter; typedef struct { SessionClass parent_class; void (*connected)(Greeter *greeter); Session *(*create_session)(Greeter *greeter); gboolean (*start_session)(Greeter *greeter, SessionType type, const gchar *session); } GreeterClass; GType greeter_get_type (void); Greeter *greeter_new (void); void greeter_set_pam_services (Greeter *greeter, const gchar *pam_service, const gchar *autologin_pam_service); void greeter_set_allow_guest (Greeter *greeter, gboolean allow_guest); void greeter_clear_hints (Greeter *greeter); void greeter_set_hint (Greeter *greeter, const gchar *name, const gchar *value); void greeter_idle (Greeter *greeter); void greeter_reset (Greeter *greeter); gboolean greeter_get_guest_authenticated (Greeter *greeter); Session *greeter_get_authentication_session (Greeter *greeter); gboolean greeter_get_start_session (Greeter *greeter); gboolean greeter_get_resettable (Greeter *greeter); const gchar *greeter_get_active_username (Greeter *greeter); G_END_DECLS #endif /* GREETER_H_ */ lightdm-1.18.1/src/plymouth.c0000664000000000000000000000464112700600465012743 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include "plymouth.h" static gboolean have_pinged = FALSE; static gboolean have_checked_active_vt = FALSE; static gboolean is_running = FALSE; static gboolean is_active = FALSE; static gboolean has_active_vt = FALSE; static gboolean plymouth_run_command (const gchar *command, gint *exit_status) { gchar *command_line; gboolean result; GError *error = NULL; command_line = g_strdup_printf ("plymouth %s", command); result = g_spawn_command_line_sync (command_line, NULL, NULL, exit_status, &error); if (error) g_debug ("Could not run %s: %s", command_line, error->message); g_clear_error (&error); g_free (command_line); return result; } static gboolean plymouth_command_returns_true (gchar *command) { gint exit_status; if (!plymouth_run_command (command, &exit_status)) return FALSE; return WIFEXITED (exit_status) && WEXITSTATUS (exit_status) == 0; } gboolean plymouth_get_is_running (void) { if (!have_pinged) { have_pinged = TRUE; is_running = plymouth_command_returns_true ("--ping"); is_active = is_running; } return is_running; } gboolean plymouth_get_is_active (void) { return plymouth_get_is_running () && is_active; } gboolean plymouth_has_active_vt (void) { if (!have_checked_active_vt) { have_checked_active_vt = TRUE; has_active_vt = plymouth_command_returns_true ("--has-active-vt"); } return has_active_vt; } void plymouth_deactivate (void) { g_debug ("Deactivating Plymouth"); is_active = FALSE; plymouth_run_command ("deactivate", NULL); } void plymouth_quit (gboolean retain_splash) { if (retain_splash) g_debug ("Quitting Plymouth; retaining splash"); else g_debug ("Quitting Plymouth"); have_pinged = TRUE; is_running = FALSE; if (retain_splash) plymouth_run_command ("quit --retain-splash", NULL); else plymouth_run_command ("quit", NULL); } lightdm-1.18.1/src/unity-system-compositor.h0000664000000000000000000000401412700600465015747 0ustar /* * Copyright (C) 2013 Canonical Ltd. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef UNITY_SYSTEM_COMPOSITOR_H_ #define UNITY_SYSTEM_COMPOSITOR_H_ #include #include "display-server.h" G_BEGIN_DECLS #define UNITY_SYSTEM_COMPOSITOR_TYPE (unity_system_compositor_get_type()) #define UNITY_SYSTEM_COMPOSITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_SYSTEM_COMPOSITOR_TYPE, UnitySystemCompositor)) #define IS_UNITY_SYSTEM_COMPOSITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_SYSTEM_COMPOSITOR_TYPE)) typedef struct UnitySystemCompositorPrivate UnitySystemCompositorPrivate; typedef struct { DisplayServer parent_instance; UnitySystemCompositorPrivate *priv; } UnitySystemCompositor; typedef struct { DisplayServerClass parent_class; void (*ready)(UnitySystemCompositor *compositor); } UnitySystemCompositorClass; GType unity_system_compositor_get_type (void); UnitySystemCompositor *unity_system_compositor_new (void); void unity_system_compositor_set_command (UnitySystemCompositor *compositor, const gchar *command); void unity_system_compositor_set_socket (UnitySystemCompositor *compositor, const gchar *socket); const gchar *unity_system_compositor_get_socket (UnitySystemCompositor *compositor); void unity_system_compositor_set_vt (UnitySystemCompositor *compositor, gint vt); void unity_system_compositor_set_timeout (UnitySystemCompositor *compositor, gint timeout); void unity_system_compositor_set_active_session (UnitySystemCompositor *compositor, const gchar *id); void unity_system_compositor_set_next_session (UnitySystemCompositor *compositor, const gchar *id); G_END_DECLS #endif /* UNITY_SYSTEM_COMPOSITOR_H_ */ lightdm-1.18.1/src/x-server-xvnc.c0000664000000000000000000002332112700600465013605 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include #include #include #include "x-server-xvnc.h" #include "configuration.h" #include "x-server-local.h" #include "process.h" struct XServerXVNCPrivate { /* X server process */ Process *x_server_process; /* Command to run the X server */ gchar *command; /* Authority file */ gchar *authority_file; /* File descriptor to use for standard input */ gint socket_fd; /* Geometry and colour depth */ gint width, height, depth; /* TRUE when received ready signal */ gboolean got_signal; }; G_DEFINE_TYPE (XServerXVNC, x_server_xvnc, X_SERVER_TYPE); XServerXVNC * x_server_xvnc_new (void) { XServerXVNC *self = g_object_new (X_SERVER_XVNC_TYPE, NULL); gchar *name; x_server_set_display_number (X_SERVER (self), x_server_local_get_unused_display_number ()); name = g_strdup_printf ("xvnc-%d", x_server_get_display_number (X_SERVER (self))); display_server_set_name (DISPLAY_SERVER (self), name); g_free (name); return self; } void x_server_xvnc_set_command (XServerXVNC *server, const gchar *command) { g_return_if_fail (server != NULL); g_free (server->priv->command); server->priv->command = g_strdup (command); } void x_server_xvnc_set_socket (XServerXVNC *server, int fd) { g_return_if_fail (server != NULL); server->priv->socket_fd = fd; } int x_server_xvnc_get_socket (XServerXVNC *server) { g_return_val_if_fail (server != NULL, 0); return server->priv->socket_fd; } void x_server_xvnc_set_geometry (XServerXVNC *server, gint width, gint height) { g_return_if_fail (server != NULL); server->priv->width = width; server->priv->height = height; } void x_server_xvnc_set_depth (XServerXVNC *server, gint depth) { g_return_if_fail (server != NULL); server->priv->depth = depth; } const gchar * x_server_xvnc_get_authority_file_path (XServerXVNC *server) { g_return_val_if_fail (server != NULL, 0); return server->priv->authority_file; } static gchar * get_absolute_command (const gchar *command) { gchar **tokens; gchar *absolute_binary, *absolute_command = NULL; tokens = g_strsplit (command, " ", 2); absolute_binary = g_find_program_in_path (tokens[0]); if (absolute_binary) { if (tokens[1]) absolute_command = g_strjoin (" ", absolute_binary, tokens[1], NULL); else absolute_command = g_strdup (absolute_binary); } g_strfreev (tokens); return absolute_command; } static void run_cb (Process *process, gpointer user_data) { XServerXVNC *server = user_data; /* Connect input */ dup2 (server->priv->socket_fd, STDIN_FILENO); dup2 (server->priv->socket_fd, STDOUT_FILENO); close (server->priv->socket_fd); /* Set SIGUSR1 to ignore so the X server can indicate it when it is ready */ signal (SIGUSR1, SIG_IGN); } static void got_signal_cb (Process *process, int signum, XServerXVNC *server) { if (signum == SIGUSR1 && !server->priv->got_signal) { server->priv->got_signal = TRUE; l_debug (server, "Got signal from Xvnc server :%d", x_server_get_display_number (X_SERVER (server))); // FIXME: Check return value DISPLAY_SERVER_CLASS (x_server_xvnc_parent_class)->start (DISPLAY_SERVER (server)); } } static void stopped_cb (Process *process, XServerXVNC *server) { l_debug (server, "Xvnc server stopped"); g_clear_object (&server->priv->x_server_process); x_server_local_release_display_number (x_server_get_display_number (X_SERVER (server))); l_debug (server, "Removing X server authority %s", server->priv->authority_file); g_unlink (server->priv->authority_file); g_free (server->priv->authority_file); server->priv->authority_file = NULL; DISPLAY_SERVER_CLASS (x_server_xvnc_parent_class)->stop (DISPLAY_SERVER (server)); } static gboolean x_server_xvnc_get_can_share (DisplayServer *server) { return TRUE; } static gboolean x_server_xvnc_start (DisplayServer *display_server) { XServerXVNC *server = X_SERVER_XVNC (display_server); XAuthority *authority; gboolean result, backup_logs; gchar *filename, *run_dir, *dir, *log_file, *absolute_command; GString *command; gchar hostname[1024], *number; GError *error = NULL; g_return_val_if_fail (server->priv->x_server_process == NULL, FALSE); server->priv->got_signal = FALSE; server->priv->x_server_process = process_new (run_cb, server); process_set_clear_environment (server->priv->x_server_process, TRUE); g_signal_connect (server->priv->x_server_process, PROCESS_SIGNAL_GOT_SIGNAL, G_CALLBACK (got_signal_cb), server); g_signal_connect (server->priv->x_server_process, PROCESS_SIGNAL_STOPPED, G_CALLBACK (stopped_cb), server); /* Setup logging */ filename = g_strdup_printf ("%s.log", display_server_get_name (display_server)); dir = config_get_string (config_get_instance (), "LightDM", "log-directory"); log_file = g_build_filename (dir, filename, NULL); backup_logs = config_get_boolean (config_get_instance (), "LightDM", "backup-logs"); process_set_log_file (server->priv->x_server_process, log_file, FALSE, backup_logs ? LOG_MODE_BACKUP_AND_TRUNCATE : LOG_MODE_APPEND); l_debug (display_server, "Logging to %s", log_file); g_free (log_file); g_free (filename); g_free (dir); absolute_command = get_absolute_command (server->priv->command); if (!absolute_command) { l_debug (display_server, "Can't launch X server %s, not found in path", server->priv->command); stopped_cb (server->priv->x_server_process, X_SERVER_XVNC (server)); return FALSE; } gethostname (hostname, 1024); number = g_strdup_printf ("%d", x_server_get_display_number (X_SERVER (server))); authority = x_authority_new_cookie (XAUTH_FAMILY_LOCAL, (guint8*) hostname, strlen (hostname), number); x_server_set_authority (X_SERVER (server), authority); run_dir = config_get_string (config_get_instance (), "LightDM", "run-directory"); dir = g_build_filename (run_dir, "root", NULL); g_free (run_dir); if (g_mkdir_with_parents (dir, S_IRWXU) < 0) l_warning (display_server, "Failed to make authority directory %s: %s", dir, strerror (errno)); server->priv->authority_file = g_build_filename (dir, x_server_get_address (X_SERVER (server)), NULL); g_free (dir); l_debug (display_server, "Writing X server authority to %s", server->priv->authority_file); x_authority_write (authority, XAUTH_WRITE_MODE_REPLACE, server->priv->authority_file, &error); if (error) l_warning (display_server, "Failed to write authority: %s", error->message); g_clear_error (&error); command = g_string_new (absolute_command); g_free (absolute_command); g_string_append_printf (command, " :%d", x_server_get_display_number (X_SERVER (server))); g_string_append_printf (command, " -auth %s", server->priv->authority_file); g_string_append (command, " -inetd -nolisten tcp"); if (server->priv->width > 0 && server->priv->height > 0) g_string_append_printf (command, " -geometry %dx%d", server->priv->width, server->priv->height); if (server->priv->depth > 0) g_string_append_printf (command, " -depth %d", server->priv->depth); process_set_command (server->priv->x_server_process, command->str); g_string_free (command, TRUE); l_debug (display_server, "Launching Xvnc server"); /* Variable required for regression tests */ if (g_getenv ("LIGHTDM_TEST_ROOT")) { process_set_env (server->priv->x_server_process, "LIGHTDM_TEST_ROOT", g_getenv ("LIGHTDM_TEST_ROOT")); process_set_env (server->priv->x_server_process, "LD_LIBRARY_PATH", g_getenv ("LD_LIBRARY_PATH")); } result = process_start (server->priv->x_server_process, FALSE); if (result) l_debug (display_server, "Waiting for ready signal from Xvnc server :%d", x_server_get_display_number (X_SERVER (server))); if (!result) stopped_cb (server->priv->x_server_process, X_SERVER_XVNC (server)); return result; } static void x_server_xvnc_stop (DisplayServer *server) { process_stop (X_SERVER_XVNC (server)->priv->x_server_process); } static void x_server_xvnc_init (XServerXVNC *server) { server->priv = G_TYPE_INSTANCE_GET_PRIVATE (server, X_SERVER_XVNC_TYPE, XServerXVNCPrivate); server->priv->command = g_strdup ("Xvnc"); server->priv->width = 1024; server->priv->height = 768; server->priv->depth = 8; } static void x_server_xvnc_finalize (GObject *object) { XServerXVNC *self = X_SERVER_XVNC (object); g_clear_object (&self->priv->x_server_process); g_free (self->priv->command); g_free (self->priv->authority_file); G_OBJECT_CLASS (x_server_xvnc_parent_class)->finalize (object); } static void x_server_xvnc_class_init (XServerXVNCClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); DisplayServerClass *display_server_class = DISPLAY_SERVER_CLASS (klass); display_server_class->get_can_share = x_server_xvnc_get_can_share; display_server_class->start = x_server_xvnc_start; display_server_class->stop = x_server_xvnc_stop; object_class->finalize = x_server_xvnc_finalize; g_type_class_add_private (klass, sizeof (XServerXVNCPrivate)); } lightdm-1.18.1/src/seat.h0000664000000000000000000000746112700600465012026 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef SEAT_H_ #define SEAT_H_ #include #include "display-server.h" #include "greeter.h" #include "session.h" #include "process.h" #include "logger.h" G_BEGIN_DECLS #define SEAT_TYPE (seat_get_type()) #define SEAT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEAT_TYPE, Seat)) #define SEAT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEAT_TYPE, SeatClass)) #define SEAT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEAT_TYPE, SeatClass)) #define SEAT_SIGNAL_SESSION_ADDED "session-added" #define SEAT_SIGNAL_RUNNING_USER_SESSION "running-user-session" #define SEAT_SIGNAL_SESSION_REMOVED "session-removed" #define SEAT_SIGNAL_STOPPED "stopped" typedef struct SeatPrivate SeatPrivate; typedef struct { GObject parent_instance; SeatPrivate *priv; } Seat; typedef struct { GObjectClass parent_class; void (*setup)(Seat *seat); gboolean (*start)(Seat *seat); DisplayServer *(*create_display_server) (Seat *seat, Session *session); gboolean (*display_server_supports_session_type) (Seat *seat, DisplayServer *display_server, const gchar *session_type); Greeter *(*create_greeter_session) (Seat *seat); Session *(*create_session) (Seat *seat); void (*set_active_session)(Seat *seat, Session *session); void (*set_next_session)(Seat *seat, Session *session); Session *(*get_active_session)(Seat *seat); void (*run_script)(Seat *seat, DisplayServer *display_server, Process *script); void (*stop)(Seat *seat); void (*session_added)(Seat *seat, Session *session); void (*running_user_session)(Seat *seat, Session *session); void (*session_removed)(Seat *seat, Session *session); void (*stopped)(Seat *seat); } SeatClass; GType seat_get_type (void); void seat_register_module (const gchar *name, GType type); Seat *seat_new (const gchar *module_name, const gchar *name); void seat_set_property (Seat *seat, const gchar *name, const gchar *value); const gchar *seat_get_string_property (Seat *seat, const gchar *name); gchar **seat_get_string_list_property (Seat *seat, const gchar *name); gboolean seat_get_boolean_property (Seat *seat, const gchar *name); gint seat_get_integer_property (Seat *seat, const gchar *name); const gchar *seat_get_name (Seat *seat); void seat_set_supports_multi_session (Seat *seat, gboolean supports_multi_session); void seat_set_share_display_server (Seat *seat, gboolean share_display_server); gboolean seat_start (Seat *seat); GList *seat_get_sessions (Seat *seat); void seat_set_active_session (Seat *seat, Session *session); Session *seat_get_active_session (Seat *seat); Session *seat_get_next_session (Seat *seat); void seat_set_externally_activated_session (Seat *seat, Session *session); Session *seat_get_expected_active_session (Seat *seat); Session *seat_find_session_by_login1_id (Seat *seat, const gchar *login1_session_id); gboolean seat_get_can_switch (Seat *seat); gboolean seat_get_allow_guest (Seat *seat); gboolean seat_get_greeter_allow_guest (Seat *seat); gboolean seat_switch_to_greeter (Seat *seat); gboolean seat_switch_to_user (Seat *seat, const gchar *username, const gchar *session_name); gboolean seat_switch_to_guest (Seat *seat, const gchar *session_name); gboolean seat_lock (Seat *seat, const gchar *username); void seat_stop (Seat *seat); gboolean seat_get_is_stopping (Seat *seat); G_END_DECLS #endif /* SEAT_H_ */ lightdm-1.18.1/src/display-manager.xml0000664000000000000000000000106512700600465014512 0ustar lightdm-1.18.1/src/display-manager.h0000664000000000000000000000332212700600465014137 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef DISPLAY_MANAGER_H_ #define DISPLAY_MANAGER_H_ #include #include "seat.h" G_BEGIN_DECLS #define DISPLAY_MANAGER_TYPE (display_manager_get_type()) #define DISPLAY_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DISPLAY_MANAGER_TYPE, DisplayManager)); #define DISPLAY_MANAGER_SIGNAL_SEAT_ADDED "seat-added" #define DISPLAY_MANAGER_SIGNAL_SEAT_REMOVED "seat-removed" #define DISPLAY_MANAGER_SIGNAL_STOPPED "stopped" typedef struct DisplayManagerPrivate DisplayManagerPrivate; typedef struct { GObject parent_instance; DisplayManagerPrivate *priv; } DisplayManager; typedef struct { GObjectClass parent_class; void (*seat_added)(DisplayManager *manager, Seat *seat); void (*seat_removed)(DisplayManager *manager, Seat *seat); void (*stopped)(DisplayManager *manager); } DisplayManagerClass; GType display_manager_get_type (void); DisplayManager *display_manager_new (void); gboolean display_manager_add_seat (DisplayManager *manager, Seat *seat); GList *display_manager_get_seats (DisplayManager *manager); Seat *display_manager_get_seat (DisplayManager *manager, const gchar *name); void display_manager_start (DisplayManager *manager); void display_manager_stop (DisplayManager *manager); G_END_DECLS #endif /* DISPLAY_MANAGER_H_ */ lightdm-1.18.1/src/seat-xdmcp-session.h0000664000000000000000000000217212700600465014612 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef SEAT_XDMCP_SESSION_H_ #define SEAT_XDMCP_SESSION_H_ #include "seat.h" #include "xdmcp-session.h" G_BEGIN_DECLS #define SEAT_XDMCP_SESSION_TYPE (seat_xdmcp_session_get_type()) #define SEAT_XDMCP_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEAT_XDMCP_SESSION_TYPE, SeatXDMCPSession)) typedef struct SeatXDMCPSessionPrivate SeatXDMCPSessionPrivate; typedef struct { Seat parent_instance; SeatXDMCPSessionPrivate *priv; } SeatXDMCPSession; typedef struct { SeatClass parent_class; } SeatXDMCPSessionClass; GType seat_xdmcp_session_get_type (void); SeatXDMCPSession *seat_xdmcp_session_new (XDMCPSession *session); G_END_DECLS #endif /* SEAT_XDMCP_SESSION_H_ */ lightdm-1.18.1/src/display-server.c0000664000000000000000000001256312700600465014035 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include "display-server.h" enum { READY, STOPPED, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; struct DisplayServerPrivate { /* Unique name for this display server */ gchar *name; /* TRUE when being stopped */ gboolean stopping; /* TRUE when the display server has stopped */ gboolean stopped; }; static void display_server_logger_iface_init (LoggerInterface *iface); G_DEFINE_TYPE_WITH_CODE (DisplayServer, display_server, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE ( LOGGER_TYPE, display_server_logger_iface_init)); void display_server_set_name (DisplayServer *server, const gchar *name) { g_return_if_fail (server != NULL); g_free (server->priv->name); server->priv->name = g_strdup (name); } const gchar * display_server_get_name (DisplayServer *server) { g_return_val_if_fail (server != NULL, NULL); return server->priv->name; } const gchar * display_server_get_session_type (DisplayServer *server) { return DISPLAY_SERVER_GET_CLASS (server)->get_session_type (server); } gboolean display_server_get_can_share (DisplayServer *server) { return DISPLAY_SERVER_GET_CLASS (server)->get_can_share (server); } static gboolean display_server_real_get_can_share (DisplayServer *server) { return FALSE; } gint display_server_get_vt (DisplayServer *server) { g_return_val_if_fail (server != NULL, -1); return DISPLAY_SERVER_GET_CLASS (server)->get_vt (server); } static gint display_server_real_get_vt (DisplayServer *server) { return -1; } gboolean display_server_start (DisplayServer *server) { g_return_val_if_fail (server != NULL, FALSE); return DISPLAY_SERVER_GET_CLASS (server)->start (server); } static gboolean display_server_real_start (DisplayServer *server) { g_signal_emit (server, signals[READY], 0); return TRUE; } void display_server_connect_session (DisplayServer *server, Session *session) { return DISPLAY_SERVER_GET_CLASS (server)->connect_session (server, session); } static void display_server_real_connect_session (DisplayServer *server, Session *session) { } void display_server_disconnect_session (DisplayServer *server, Session *session) { return DISPLAY_SERVER_GET_CLASS (server)->disconnect_session (server, session); } static void display_server_real_disconnect_session (DisplayServer *server, Session *session) { } void display_server_stop (DisplayServer *server) { g_return_if_fail (server != NULL); if (server->priv->stopping) return; server->priv->stopping = TRUE; DISPLAY_SERVER_GET_CLASS (server)->stop (server); } gboolean display_server_get_is_stopping (DisplayServer *server) { g_return_val_if_fail (server != NULL, FALSE); return server->priv->stopping; } static void display_server_real_stop (DisplayServer *server) { g_signal_emit (server, signals[STOPPED], 0); } static void display_server_init (DisplayServer *server) { server->priv = G_TYPE_INSTANCE_GET_PRIVATE (server, DISPLAY_SERVER_TYPE, DisplayServerPrivate); } static void display_server_finalize (GObject *object) { DisplayServer *self = DISPLAY_SERVER (object); g_free (self->priv->name); G_OBJECT_CLASS (display_server_parent_class)->finalize (object); } static void display_server_class_init (DisplayServerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); klass->get_can_share = display_server_real_get_can_share; klass->get_vt = display_server_real_get_vt; klass->start = display_server_real_start; klass->connect_session = display_server_real_connect_session; klass->disconnect_session = display_server_real_disconnect_session; klass->stop = display_server_real_stop; object_class->finalize = display_server_finalize; g_type_class_add_private (klass, sizeof (DisplayServerPrivate)); signals[READY] = g_signal_new (DISPLAY_SERVER_SIGNAL_READY, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DisplayServerClass, ready), NULL, NULL, NULL, G_TYPE_NONE, 0); signals[STOPPED] = g_signal_new (DISPLAY_SERVER_SIGNAL_STOPPED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DisplayServerClass, stopped), NULL, NULL, NULL, G_TYPE_NONE, 0); } static gint display_server_real_logprefix (Logger *self, gchar *buf, gulong buflen) { DisplayServer *server = DISPLAY_SERVER (self); const gchar *name = display_server_get_name (server); if (name) return g_snprintf (buf, buflen, "DisplayServer %s: ", name); else return g_snprintf (buf, buflen, "DisplayServer: "); } static void display_server_logger_iface_init (LoggerInterface *iface) { iface->logprefix = &display_server_real_logprefix; } lightdm-1.18.1/src/vt.c0000664000000000000000000000665712700600465011524 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include #include #include #ifdef __linux__ #include #endif #include "vt.h" #include "configuration.h" static GList *used_vts = NULL; static gint open_tty (void) { int fd; fd = g_open ("/dev/tty0", O_RDONLY | O_NOCTTY, 0); if (fd < 0) g_warning ("Error opening /dev/tty0: %s", strerror (errno)); return fd; } gboolean vt_can_multi_seat (void) { /* Quick check to see if we can multi seat. This is intentionally the same check logind does, just without actually reading from the files. Existence will prove whether we have CONFIG_VT built into the kernel. */ return access ("/dev/tty0", F_OK) == 0 && access ("/sys/class/tty/tty0/active", F_OK) == 0; } gint vt_get_active (void) { #ifdef __linux__ gint tty_fd; gint active = -1; /* Pretend always active */ if (getuid () != 0) return 1; tty_fd = open_tty (); if (tty_fd >= 0) { struct vt_stat vt_state = { 0 }; if (ioctl (tty_fd, VT_GETSTATE, &vt_state) < 0) g_warning ("Error using VT_GETSTATE on /dev/tty0: %s", strerror (errno)); else active = vt_state.v_active; close (tty_fd); } return active; #else return -1; #endif } void vt_set_active (gint number) { #ifdef __linux__ gint tty_fd; g_debug ("Activating VT %d", number); /* Pretend always active */ if (getuid () != 0) return; tty_fd = open_tty (); if (tty_fd >= 0) { int n = number; if (ioctl (tty_fd, VT_ACTIVATE, n) < 0) g_warning ("Error using VT_ACTIVATE %d on /dev/tty0: %s", n, strerror (errno)); /* Wait for the VT to become active to avoid a suspected * race condition somewhere between LightDM, X, ConsoleKit and the kernel. * See https://bugs.launchpad.net/bugs/851612 */ if (ioctl (tty_fd, VT_WAITACTIVE) < 0) g_warning ("Error using VT_WAITACTIVE %d on /dev/tty0: %s", n, strerror (errno)); close (tty_fd); } #endif } static gboolean vt_is_used (gint number) { GList *link; for (link = used_vts; link; link = link->next) { int n = GPOINTER_TO_INT (link->data); if (n == number) return TRUE; } return FALSE; } gint vt_get_min (void) { gint number; number = config_get_integer (config_get_instance (), "LightDM", "minimum-vt"); if (number < 1) number = 1; return number; } gint vt_get_unused (void) { gint number; if (getuid () != 0) return -1; number = vt_get_min (); while (vt_is_used (number)) number++; return number; } void vt_ref (gint number) { g_debug ("Using VT %d", number); used_vts = g_list_append (used_vts, GINT_TO_POINTER (number)); } void vt_unref (gint number) { g_debug ("Releasing VT %d", number); used_vts = g_list_remove (used_vts, GINT_TO_POINTER (number)); } lightdm-1.18.1/src/session-config.h0000664000000000000000000000317012700600465014011 0ustar /* * Copyright (C) 2013 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef SESSION_CONFIG_H_ #define SESSION_CONFIG_H_ #include G_BEGIN_DECLS #define SESSION_CONFIG_TYPE (session_config_get_type()) #define SESSION_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SESSION_CONFIG_TYPE, SessionConfig)) #define SESSION_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SESSION_CONFIG_TYPE, SessionConfigClass)) #define SESSION_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SESSION_CONFIG_TYPE, SessionConfigClass)) typedef struct SessionConfigPrivate SessionConfigPrivate; typedef struct { GObject parent_instance; SessionConfigPrivate *priv; } SessionConfig; typedef struct { GObjectClass parent_class; } SessionConfigClass; GType session_config_get_type (void); SessionConfig *session_config_new_from_file (const gchar *filename, const gchar *default_session_type, GError **error); const gchar *session_config_get_command (SessionConfig *config); const gchar *session_config_get_session_type (SessionConfig *config); gchar **session_config_get_desktop_names (SessionConfig *config); const gchar *session_config_get_compositor_command (SessionConfig *config); G_END_DECLS #endif /* SESSION_CONFIG_H_ */ lightdm-1.18.1/src/xdmcp-server.c0000664000000000000000000006443712700600465013512 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #define HASXDMAUTH #include #include #include "xdmcp-server.h" #include "xdmcp-protocol.h" #include "xdmcp-session-private.h" #include "x-authority.h" enum { NEW_SESSION, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; struct XDMCPServerPrivate { /* Port to listen on */ guint port; /* Address to listen on */ gchar *listen_address; /* Listening sockets */ GSocket *socket, *socket6; /* Hostname to report to client */ gchar *hostname; /* Status to report to clients */ gchar *status; /* XDM-AUTHENTICATION-1 key */ gchar *key; /* Active XDMCP sessions */ GHashTable *sessions; }; G_DEFINE_TYPE (XDMCPServer, xdmcp_server, G_TYPE_OBJECT); /* Maximum number of milliseconds client will resend manage requests before giving up */ #define MANAGE_TIMEOUT 126000 XDMCPServer * xdmcp_server_new (void) { return g_object_new (XDMCP_SERVER_TYPE, NULL); } void xdmcp_server_set_port (XDMCPServer *server, guint port) { g_return_if_fail (server != NULL); server->priv->port = port; } guint xdmcp_server_get_port (XDMCPServer *server) { g_return_val_if_fail (server != NULL, 0); return server->priv->port; } void xdmcp_server_set_listen_address (XDMCPServer *server, const gchar *listen_address) { g_return_if_fail (server != NULL); g_free (server->priv->listen_address); server->priv->listen_address = g_strdup (listen_address); } const gchar * xdmcp_server_get_listen_address (XDMCPServer *server) { g_return_val_if_fail (server != NULL, NULL); return server->priv->listen_address; } void xdmcp_server_set_hostname (XDMCPServer *server, const gchar *hostname) { g_return_if_fail (server != NULL); g_free (server->priv->hostname); server->priv->hostname = g_strdup (hostname); } const gchar * xdmcp_server_get_hostname (XDMCPServer *server) { g_return_val_if_fail (server != NULL, NULL); return server->priv->hostname; } void xdmcp_server_set_status (XDMCPServer *server, const gchar *status) { g_return_if_fail (server != NULL); g_free (server->priv->status); server->priv->status = g_strdup (status); } const gchar * xdmcp_server_get_status (XDMCPServer *server) { g_return_val_if_fail (server != NULL, NULL); return server->priv->status; } void xdmcp_server_set_key (XDMCPServer *server, const gchar *key) { g_return_if_fail (server != NULL); g_free (server->priv->key); server->priv->key = g_strdup (key); } static gboolean session_timeout_cb (XDMCPSession *session) { session->priv->inactive_timeout = 0; g_debug ("Timing out unmanaged session %d", session->priv->id); g_hash_table_remove (session->priv->server->priv->sessions, GINT_TO_POINTER ((gint) session->priv->id)); return FALSE; } static XDMCPSession * add_session (XDMCPServer *server) { XDMCPSession *session; guint16 id; do { id = g_random_int () & 0xFFFFFFFF; } while (g_hash_table_lookup (server->priv->sessions, GINT_TO_POINTER ((gint) id))); session = xdmcp_session_new (id); session->priv->server = server; g_hash_table_insert (server->priv->sessions, GINT_TO_POINTER ((gint) id), g_object_ref (session)); session->priv->inactive_timeout = g_timeout_add (MANAGE_TIMEOUT, (GSourceFunc) session_timeout_cb, session); return session; } static XDMCPSession * get_session (XDMCPServer *server, guint16 id) { return g_hash_table_lookup (server->priv->sessions, GINT_TO_POINTER ((gint) id)); } static gchar * socket_address_to_string (GSocketAddress *address) { gchar *inet_text, *text; inet_text = g_inet_address_to_string (g_inet_socket_address_get_address (G_INET_SOCKET_ADDRESS (address))); text = g_strdup_printf ("%s:%d", inet_text, g_inet_socket_address_get_port (G_INET_SOCKET_ADDRESS (address))); g_free (inet_text); return text; } static void send_packet (GSocket *socket, GSocketAddress *address, XDMCPPacket *packet) { gchar *address_string; guint8 data[1024]; gssize n_written; address_string = socket_address_to_string (address); g_debug ("Send %s to %s", xdmcp_packet_tostring (packet), address_string); g_free (address_string); n_written = xdmcp_packet_encode (packet, data, 1024); if (n_written < 0) g_critical ("Failed to encode XDMCP packet"); else { GError *error = NULL; g_socket_send_to (socket, address, (gchar *) data, n_written, NULL, &error); if (error) g_warning ("Error sending packet: %s", error->message); g_clear_error (&error); } } static const gchar * get_authentication_name (XDMCPServer *server) { if (server->priv->key) return "XDM-AUTHENTICATION-1"; else return ""; } static void handle_query (XDMCPServer *server, GSocket *socket, GSocketAddress *address, gchar **authentication_names) { XDMCPPacket *response; gchar **i; gchar *authentication_name = NULL; /* If no authentication requested and we are configured for none then allow */ if (authentication_names[0] == NULL && server->priv->key == NULL) authentication_name = ""; for (i = authentication_names; *i; i++) { if (strcmp (*i, get_authentication_name (server)) == 0 && server->priv->key != NULL) { authentication_name = *i; break; } } if (authentication_name) { response = xdmcp_packet_alloc (XDMCP_Willing); response->Willing.authentication_name = g_strdup (authentication_name); response->Willing.hostname = g_strdup (server->priv->hostname); response->Willing.status = g_strdup (server->priv->status); } else { response = xdmcp_packet_alloc (XDMCP_Unwilling); response->Unwilling.hostname = g_strdup (server->priv->hostname); if (server->priv->key) response->Unwilling.status = g_strdup_printf ("No matching authentication, server requires %s", get_authentication_name (server)); else response->Unwilling.status = g_strdup ("No matching authentication"); } send_packet (socket, address, response); xdmcp_packet_free (response); } static void handle_forward_query (XDMCPServer *server, GSocket *socket, GSocketAddress *address, XDMCPPacket *packet) { GSocketFamily family; GInetAddress *client_inet_address; GSocketAddress *client_address; gint i; guint16 port = 0; family = g_socket_get_family (socket); switch (family) { case G_SOCKET_FAMILY_IPV4: if (packet->ForwardQuery.client_address.length != 4) { g_warning ("Ignoring IPv4 XDMCP ForwardQuery with client address of length %d", packet->ForwardQuery.client_address.length); return; } break; case G_SOCKET_FAMILY_IPV6: if (packet->ForwardQuery.client_address.length != 16) { g_warning ("Ignoring IPv6 XDMCP ForwardQuery with client address of length %d", packet->ForwardQuery.client_address.length); return; } break; default: g_warning ("Unknown socket family %d", family); return; } for (i = 0; i < packet->ForwardQuery.client_port.length; i++) port = port << 8 | packet->ForwardQuery.client_port.data[i]; client_inet_address = g_inet_address_new_from_bytes (packet->ForwardQuery.client_address.data, family); client_address = g_inet_socket_address_new (client_inet_address, port); g_object_unref (client_inet_address); handle_query (server, socket, client_address, packet->ForwardQuery.authentication_names); g_object_unref (client_address); } static guint8 atox (char c) { if (c >= '0' && c <= '9') return c - '0'; if (c >= 'a' && c <= 'f') return c - 'a' + 10; if (c >= 'A' && c <= 'F') return c - 'A' + 10; return 0; } static void decode_key (const gchar *key, guint8 *data) { gint i; memset (data, 0, 8); if (strncmp (key, "0x", 2) == 0 || strncmp (key, "0X", 2) == 0) { for (i = 0; i < 8; i++) { if (key[i*2] == '\0') break; data[i] |= atox (key[i*2]) << 8; if (key[i*2+1] == '\0') break; data[i] |= atox (key[i*2+1]); } } else { for (i = 1; i < 8 && key[i-1]; i++) data[i] = key[i-1]; } } static GInetAddress * connection_to_address (XDMCPConnection *connection) { switch (connection->type) { case XAUTH_FAMILY_INTERNET: if (connection->address.length == 4) return g_inet_address_new_from_bytes (connection->address.data, G_SOCKET_FAMILY_IPV4); else return NULL; case XAUTH_FAMILY_INTERNET6: if (connection->address.length == 16) return g_inet_address_new_from_bytes (connection->address.data, G_SOCKET_FAMILY_IPV6); else return NULL; default: return NULL; } } static gssize find_address (GInetAddress **addresses, gsize length, GSocketFamily family) { int i; for (i = 0; i < length; i++) { GInetAddress *address = addresses[i]; if (address && g_inet_address_get_family (address) == family) return i; } return -1; } static XDMCPConnection * choose_connection (XDMCPPacket *packet, GInetAddress *source_address) { GInetAddress **addresses; gsize addresses_length, i; gssize index = -1; addresses_length = packet->Request.n_connections; if (addresses_length == 0) return NULL; addresses = malloc (sizeof (GInetAddress *) * addresses_length); for (i = 0; i < addresses_length; i++) addresses[i] = connection_to_address (&packet->Request.connections[i]); /* Use the address the request came in on as this is the least likely to have firewall / routing issues */ for (i = 0; i < addresses_length && index < 0; i++) if (g_inet_address_equal (source_address, addresses[i])) index = i; /* Otherwise try and find an address that matches the incoming type */ if (index < 0) index = find_address (addresses, addresses_length, g_inet_address_get_family (source_address)); /* Otherwise use the first available */ if (index < 0) index = 0; for (i = 0; i < addresses_length; i++) g_object_unref (addresses[i]); g_free (addresses); return &packet->Request.connections[index]; } static gboolean has_string (gchar **list, const gchar *text) { gchar **i; for (i = list; *i; i++) if (strcmp (*i, text) == 0) return TRUE; return FALSE; } static void handle_request (XDMCPServer *server, GSocket *socket, GSocketAddress *address, XDMCPPacket *packet) { XDMCPPacket *response; XDMCPSession *session; gchar *authentication_name = NULL, *decline_status = NULL, *authorization_name, *display_number; guint8 *authentication_data = NULL, *authorization_data = NULL, *session_authorization_data = NULL; gsize authentication_data_length = 0, authorization_data_length = 0, session_authorization_data_length = 0; XDMCPConnection *connection; XdmAuthKeyRec rho; /* Check authentication */ if (strcmp (packet->Request.authentication_name, "") == 0) { if (!server->priv->key) { if (!has_string (packet->Request.authorization_names, "MIT-MAGIC-COOKIE-1")) decline_status = g_strdup ("No matching authorization, server requires MIT-MAGIC-COOKIE-1"); } else decline_status = g_strdup ("No matching authentication, server requires XDM-AUTHENTICATION-1"); } else if (strcmp (packet->Request.authentication_name, "XDM-AUTHENTICATION-1") == 0 && server->priv->key) { if (packet->Request.authentication_data.length == 8) { guint8 input[8], key[8]; memcpy (input, packet->Request.authentication_data.data, packet->Request.authentication_data.length); /* Setup key */ decode_key (server->priv->key, key); /* Decode message from server */ authentication_name = g_strdup ("XDM-AUTHENTICATION-1"); authentication_data = g_malloc (sizeof (guint8) * 8); authentication_data_length = 8; XdmcpUnwrap (input, key, rho.data, authentication_data_length); XdmcpIncrementKey (&rho); XdmcpWrap (rho.data, key, authentication_data, authentication_data_length); if (!has_string (packet->Request.authorization_names, "XDM-AUTHORIZATION-1")) decline_status = g_strdup ("No matching authorization, server requires XDM-AUTHORIZATION-1"); } else decline_status = g_strdup ("Invalid XDM-AUTHENTICATION-1 data provided"); } else { if (strcmp (packet->Request.authentication_name, "") == 0) decline_status = g_strdup_printf ("No matching authentication, server does not support unauthenticated connections"); else if (server->priv->key) decline_status = g_strdup ("No matching authentication, server requires XDM-AUTHENTICATION-1"); else decline_status = g_strdup ("No matching authentication, server only supports unauthenticated connections"); } /* Choose an address to connect back on */ connection = choose_connection (packet, g_inet_socket_address_get_address (G_INET_SOCKET_ADDRESS (address))); if (!connection && !decline_status) decline_status = g_strdup ("No valid address found"); if (!authentication_name) authentication_name = g_strdup (""); /* Decline if request was not valid */ if (decline_status) { response = xdmcp_packet_alloc (XDMCP_Decline); response->Decline.status = decline_status; response->Decline.authentication_name = authentication_name; response->Decline.authentication_data.data = authentication_data; response->Decline.authentication_data.length = authentication_data_length; send_packet (socket, address, response); xdmcp_packet_free (response); return; } /* Generate authorization data */ if (server->priv->key) { gint i; guint8 key[8], session_key[8]; /* Setup key */ decode_key (server->priv->key, key); /* Generate a private session key */ // FIXME: Pick a good DES key? session_key[0] = 0; for (i = 1; i < 8; i++) session_key[i] = g_random_int () & 0xFF; /* Encrypt the session key and send it to the server */ authorization_data = g_malloc (8); authorization_data_length = 8; XdmcpWrap (session_key, key, authorization_data, authorization_data_length); /* Authorization data is the number received from the client followed by the private session key */ authorization_name = g_strdup ("XDM-AUTHORIZATION-1"); session_authorization_data = g_malloc (16); session_authorization_data_length = 16; XdmcpDecrementKey (&rho); memcpy (session_authorization_data, rho.data, 8); memcpy (session_authorization_data + 8, session_key, 8); } else { XAuthority *auth; /* Data is the cookie */ auth = x_authority_new_cookie (XAUTH_FAMILY_WILD, NULL, 0, ""); authorization_data = x_authority_copy_authorization_data (auth); authorization_data_length = x_authority_get_authorization_data_length (auth); authorization_name = g_strdup ("MIT-MAGIC-COOKIE-1"); session_authorization_data = x_authority_copy_authorization_data (auth); session_authorization_data_length = x_authority_get_authorization_data_length (auth); g_object_unref (auth); } session = add_session (server); session->priv->address = connection_to_address (connection); session->priv->display_number = packet->Request.display_number; display_number = g_strdup_printf ("%d", packet->Request.display_number); /* We need to check if this is the loopback address and set the authority * for a local connection if this is so as XCB treats "127.0.0.1" as local * always */ if (g_inet_address_get_is_loopback (session->priv->address)) { gchar hostname[1024]; gethostname (hostname, 1024); session->priv->authority = x_authority_new (XAUTH_FAMILY_LOCAL, (guint8 *) hostname, strlen (hostname), display_number, authorization_name, session_authorization_data, session_authorization_data_length); } else session->priv->authority = x_authority_new (connection->type, connection->address.data, connection->address.length, display_number, authorization_name, session_authorization_data, session_authorization_data_length); g_free (display_number); response = xdmcp_packet_alloc (XDMCP_Accept); response->Accept.session_id = xdmcp_session_get_id (session); response->Accept.authentication_name = authentication_name; response->Accept.authentication_data.data = authentication_data; response->Accept.authentication_data.length = authentication_data_length; response->Accept.authorization_name = authorization_name; response->Accept.authorization_data.data = authorization_data; response->Accept.authorization_data.length = authorization_data_length; send_packet (socket, address, response); xdmcp_packet_free (response); } static void handle_manage (XDMCPServer *server, GSocket *socket, GSocketAddress *address, XDMCPPacket *packet) { XDMCPSession *session; gboolean result; session = get_session (server, packet->Manage.session_id); if (!session) { XDMCPPacket *response; response = xdmcp_packet_alloc (XDMCP_Refuse); response->Refuse.session_id = packet->Manage.session_id; send_packet (socket, address, response); xdmcp_packet_free (response); return; } /* Ignore duplicate requests */ if (session->priv->started) { if (session->priv->display_number != packet->Manage.display_number || strcmp (session->priv->display_class, packet->Manage.display_class) != 0) g_debug ("Ignoring duplicate Manage with different data"); return; } /* Reject if has changed display number */ if (packet->Manage.display_number != session->priv->display_number) { XDMCPPacket *response; g_debug ("Received Manage for display number %d, but Request was %d", packet->Manage.display_number, session->priv->display_number); response = xdmcp_packet_alloc (XDMCP_Refuse); response->Refuse.session_id = packet->Manage.session_id; send_packet (socket, address, response); xdmcp_packet_free (response); } session->priv->display_class = g_strdup (packet->Manage.display_class); g_signal_emit (server, signals[NEW_SESSION], 0, session, &result); if (result) { /* Cancel the inactive timer */ if (session->priv->inactive_timeout) g_source_remove (session->priv->inactive_timeout); session->priv->started = TRUE; } else { XDMCPPacket *response; response = xdmcp_packet_alloc (XDMCP_Failed); response->Failed.session_id = packet->Manage.session_id; response->Failed.status = g_strdup_printf ("Failed to connect to display :%d", packet->Manage.display_number); send_packet (socket, address, response); xdmcp_packet_free (response); } } static void handle_keep_alive (XDMCPServer *server, GSocket *socket, GSocketAddress *address, XDMCPPacket *packet) { XDMCPPacket *response; XDMCPSession *session; gboolean alive = FALSE; session = get_session (server, packet->KeepAlive.session_id); if (session) alive = TRUE; // FIXME: xdmcp_session_get_alive (session); response = xdmcp_packet_alloc (XDMCP_Alive); response->Alive.session_running = alive; response->Alive.session_id = alive ? packet->KeepAlive.session_id : 0; send_packet (socket, address, response); xdmcp_packet_free (response); } static gboolean read_cb (GSocket *socket, GIOCondition condition, XDMCPServer *server) { GSocketAddress *address; gchar data[1024]; GError *error = NULL; gssize n_read; n_read = g_socket_receive_from (socket, &address, data, 1024, NULL, &error); if (error) g_warning ("Failed to read from XDMCP socket: %s", error->message); g_clear_error (&error); if (n_read > 0) { XDMCPPacket *packet; packet = xdmcp_packet_decode ((guint8 *)data, n_read); if (packet) { gchar *packet_string, *address_string; packet_string = xdmcp_packet_tostring (packet); address_string = socket_address_to_string (address); g_debug ("Got %s from %s", packet_string, address_string); g_free (packet_string); g_free (address_string); switch (packet->opcode) { case XDMCP_BroadcastQuery: case XDMCP_Query: case XDMCP_IndirectQuery: handle_query (server, socket, address, packet->Query.authentication_names); break; case XDMCP_ForwardQuery: handle_forward_query (server, socket, address, packet); break; case XDMCP_Request: handle_request (server, socket, address, packet); break; case XDMCP_Manage: handle_manage (server, socket, address, packet); break; case XDMCP_KeepAlive: handle_keep_alive (server, socket, address, packet); break; default: g_warning ("Got unexpected XDMCP packet %d", packet->opcode); break; } xdmcp_packet_free (packet); } } return TRUE; } static GSocket * open_udp_socket (GSocketFamily family, guint port, const gchar *listen_address, GError **error) { GSocket *socket; GSocketAddress *address; gboolean result; socket = g_socket_new (family, G_SOCKET_TYPE_DATAGRAM, G_SOCKET_PROTOCOL_UDP, error); if (!socket) return NULL; if (listen_address) { GList *addresses; addresses = g_resolver_lookup_by_name (g_resolver_get_default (), listen_address, NULL, error); if (!addresses) { g_object_unref (socket); return NULL; } address = g_inet_socket_address_new (addresses->data, port); g_resolver_free_addresses (addresses); } else address = g_inet_socket_address_new (g_inet_address_new_any (family), port); result = g_socket_bind (socket, address, TRUE, error); if (!result) { g_object_unref (socket); return NULL; } return socket; } gboolean xdmcp_server_start (XDMCPServer *server) { GSource *source; GError *error = NULL; g_return_val_if_fail (server != NULL, FALSE); server->priv->socket = open_udp_socket (G_SOCKET_FAMILY_IPV4, server->priv->port, server->priv->listen_address, &error); if (error) g_warning ("Failed to create IPv4 XDMCP socket: %s", error->message); g_clear_error (&error); if (server->priv->socket) { source = g_socket_create_source (server->priv->socket, G_IO_IN, NULL); g_source_set_callback (source, (GSourceFunc) read_cb, server, NULL); g_source_attach (source, NULL); } server->priv->socket6 = open_udp_socket (G_SOCKET_FAMILY_IPV6, server->priv->port, server->priv->listen_address, &error); if (error) g_warning ("Failed to create IPv6 XDMCP socket: %s", error->message); g_clear_error (&error); if (server->priv->socket6) { source = g_socket_create_source (server->priv->socket6, G_IO_IN, NULL); g_source_set_callback (source, (GSourceFunc) read_cb, server, NULL); g_source_attach (source, NULL); } if (!server->priv->socket && !server->priv->socket6) return FALSE; return TRUE; } static void xdmcp_server_init (XDMCPServer *server) { server->priv = G_TYPE_INSTANCE_GET_PRIVATE (server, XDMCP_SERVER_TYPE, XDMCPServerPrivate); server->priv->port = XDM_UDP_PORT; server->priv->hostname = g_strdup (""); server->priv->status = g_strdup (""); server->priv->sessions = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, g_object_unref); } static void xdmcp_server_finalize (GObject *object) { XDMCPServer *self = XDMCP_SERVER (object); g_clear_object (&self->priv->socket); g_clear_object (&self->priv->socket6); g_free (self->priv->listen_address); g_free (self->priv->hostname); g_free (self->priv->status); g_free (self->priv->key); g_hash_table_unref (self->priv->sessions); G_OBJECT_CLASS (xdmcp_server_parent_class)->finalize (object); } static void xdmcp_server_class_init (XDMCPServerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = xdmcp_server_finalize; g_type_class_add_private (klass, sizeof (XDMCPServerPrivate)); signals[NEW_SESSION] = g_signal_new (XDMCP_SERVER_SIGNAL_NEW_SESSION, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (XDMCPServerClass, new_session), g_signal_accumulator_true_handled, NULL, NULL, G_TYPE_BOOLEAN, 1, XDMCP_SESSION_TYPE); } lightdm-1.18.1/src/xdmcp-protocol.h0000664000000000000000000000636312700600465014044 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef XDMCP_PROTOCOL_H_ #define XDMCP_PROTOCOL_H_ #include #define XDMCP_VERSION 1 typedef enum { XDMCP_BroadcastQuery = 1, XDMCP_Query = 2, XDMCP_IndirectQuery = 3, XDMCP_ForwardQuery = 4, XDMCP_Willing = 5, XDMCP_Unwilling = 6, XDMCP_Request = 7, XDMCP_Accept = 8, XDMCP_Decline = 9, XDMCP_Manage = 10, XDMCP_Refuse = 11, XDMCP_Failed = 12, XDMCP_KeepAlive = 13, XDMCP_Alive = 14 } XDMCPOpcode; typedef struct { guint16 length; guchar *data; } XDMCPData; typedef struct { guint16 type; XDMCPData address; } XDMCPConnection; typedef struct { XDMCPOpcode opcode; union { struct { gchar **authentication_names; } Query; struct { XDMCPData client_address; XDMCPData client_port; gchar **authentication_names; } ForwardQuery; struct { gchar *authentication_name; gchar *hostname; gchar *status; } Willing; struct { gchar *hostname; gchar *status; } Unwilling; struct { guint16 display_number; guint8 n_connections; XDMCPConnection *connections; gchar *authentication_name; XDMCPData authentication_data; gchar **authorization_names; gchar *manufacturer_display_id; } Request; struct { guint32 session_id; gchar *authentication_name; XDMCPData authentication_data; gchar *authorization_name; XDMCPData authorization_data; } Accept; struct { gchar *status; gchar *authentication_name; XDMCPData authentication_data; } Decline; struct { guint32 session_id; guint16 display_number; gchar *display_class; } Manage; struct { guint32 session_id; } Refuse; struct { guint32 session_id; gchar *status; } Failed; struct { guint16 display_number; guint32 session_id; } KeepAlive; struct { gboolean session_running; guint32 session_id; } Alive; }; } XDMCPPacket; XDMCPPacket *xdmcp_packet_alloc (XDMCPOpcode opcode); XDMCPPacket *xdmcp_packet_decode (const guchar *data, gsize length); gssize xdmcp_packet_encode (XDMCPPacket *packet, guchar *data, gsize length); gchar *xdmcp_packet_tostring (XDMCPPacket *packet); void xdmcp_packet_free (XDMCPPacket *packet); #endif /* XDMCP_PROTOCOL_H_ */ lightdm-1.18.1/src/x-server.c0000664000000000000000000001447312700600465012641 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include "x-server.h" #include "configuration.h" struct XServerPrivate { /* Host running the server */ gchar *hostname; /* Display number */ guint number; /* Cached server address */ gchar *address; /* Authority */ XAuthority *authority; /* Connection to this X server */ xcb_connection_t *connection; }; G_DEFINE_TYPE (XServer, x_server, DISPLAY_SERVER_TYPE); void x_server_set_hostname (XServer *server, const gchar *hostname) { g_return_if_fail (server != NULL); g_free (server->priv->hostname); server->priv->hostname = g_strdup (hostname); g_free (server->priv->address); server->priv->address = NULL; } gchar * x_server_get_hostname (XServer *server) { g_return_val_if_fail (server != NULL, NULL); return server->priv->hostname; } void x_server_set_display_number (XServer *server, guint number) { g_return_if_fail (server != NULL); server->priv->number = number; g_free (server->priv->address); server->priv->address = NULL; } guint x_server_get_display_number (XServer *server) { g_return_val_if_fail (server != NULL, 0); return server->priv->number; } const gchar * x_server_get_address (XServer *server) { g_return_val_if_fail (server != NULL, NULL); if (!server->priv->address) { if (server->priv->hostname) server->priv->address = g_strdup_printf("%s:%d", server->priv->hostname, server->priv->number); else server->priv->address = g_strdup_printf(":%d", server->priv->number); } return server->priv->address; } void x_server_set_authority (XServer *server, XAuthority *authority) { g_return_if_fail (server != NULL); g_clear_object (&server->priv->authority); if (authority) server->priv->authority = g_object_ref (authority); } XAuthority * x_server_get_authority (XServer *server) { g_return_val_if_fail (server != NULL, NULL); return server->priv->authority; } static const gchar * x_server_get_session_type (DisplayServer *server) { return "x"; } static gboolean x_server_get_can_share (DisplayServer *server) { return TRUE; } static gboolean x_server_start (DisplayServer *display_server) { XServer *server = X_SERVER (display_server); xcb_auth_info_t *auth = NULL, a; if (server->priv->authority) { a.namelen = strlen (x_authority_get_authorization_name (server->priv->authority)); a.name = (char *) x_authority_get_authorization_name (server->priv->authority); a.datalen = x_authority_get_authorization_data_length (server->priv->authority); a.data = (char *) x_authority_get_authorization_data (server->priv->authority); auth = &a; } /* Open connection */ l_debug (server, "Connecting to XServer %s", x_server_get_address (server)); server->priv->connection = xcb_connect_to_display_with_auth_info (x_server_get_address (server), auth, NULL); if (xcb_connection_has_error (server->priv->connection)) { l_debug (server, "Error connecting to XServer %s", x_server_get_address (server)); return FALSE; } return DISPLAY_SERVER_CLASS (x_server_parent_class)->start (display_server); } static void x_server_connect_session (DisplayServer *display_server, Session *session) { gint vt; session_set_env (session, "XDG_SESSION_TYPE", "x11"); display_server = session_get_display_server (session); vt = display_server_get_vt (display_server); if (vt > 0) { gchar *t; t = g_strdup_printf ("/dev/tty%d", vt); session_set_tty (session, t); g_free (t); t = g_strdup_printf ("%d", vt); session_set_env (session, "XDG_VTNR", t); g_free (t); } else l_debug (session, "Not setting XDG_VTNR"); session_set_env (session, "DISPLAY", x_server_get_address (X_SERVER (display_server))); session_set_xdisplay (session, x_server_get_address (X_SERVER (display_server))); session_set_remote_host_name (session, x_server_get_hostname (X_SERVER (display_server))); session_set_x_authority (session, x_server_get_authority (X_SERVER (display_server)), config_get_boolean (config_get_instance (), "LightDM", "user-authority-in-system-dir")); } static void x_server_disconnect_session (DisplayServer *display_server, Session *session) { gint vt; session_unset_env (session, "XDG_SESSION_TYPE"); vt = display_server_get_vt (display_server); if (vt > 0) { session_set_tty (session, NULL); session_unset_env (session, "XDG_VTNR"); } session_unset_env (session, "DISPLAY"); session_set_xdisplay (session, NULL); session_set_remote_host_name (session, NULL); session_set_x_authority (session, NULL, FALSE); } void x_server_init (XServer *server) { server->priv = G_TYPE_INSTANCE_GET_PRIVATE (server, X_SERVER_TYPE, XServerPrivate); } static void x_server_finalize (GObject *object) { XServer *self = X_SERVER (object); g_free (self->priv->hostname); g_free (self->priv->address); g_clear_object (&self->priv->authority); if (self->priv->connection) xcb_disconnect (self->priv->connection); G_OBJECT_CLASS (x_server_parent_class)->finalize (object); } static void x_server_class_init (XServerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); DisplayServerClass *display_server_class = DISPLAY_SERVER_CLASS (klass); display_server_class->get_session_type = x_server_get_session_type; display_server_class->get_can_share = x_server_get_can_share; display_server_class->start = x_server_start; display_server_class->connect_session = x_server_connect_session; display_server_class->disconnect_session = x_server_disconnect_session; object_class->finalize = x_server_finalize; g_type_class_add_private (klass, sizeof (XServerPrivate)); } lightdm-1.18.1/src/login1.h0000664000000000000000000000516612700600465012263 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef _LOGIN1_H_ #define _LOGIN1_H_ #include G_BEGIN_DECLS #define LOGIN1_SEAT_TYPE (login1_seat_get_type()) #define LOGIN1_SEAT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LOGIN1_SEAT_TYPE, Login1Seat)); #define LOGIN1_SERVICE_TYPE (login1_service_get_type()) #define LOGIN1_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LOGIN1_SERVICE_TYPE, Login1Service)); #define LOGIN1_SERVICE_SIGNAL_SEAT_ADDED "seat-added" #define LOGIN1_SERVICE_SIGNAL_SEAT_REMOVED "seat-removed" #define LOGIN1_SEAT_SIGNAL_CAN_GRAPHICAL_CHANGED "can-graphical-changed" #define LOGIN1_SIGNAL_ACTIVE_SESION_CHANGED "active-session-changed" typedef struct Login1SeatPrivate Login1SeatPrivate; typedef struct { GObject parent_instance; Login1SeatPrivate *priv; } Login1Seat; typedef struct { GObjectClass parent_class; void (*can_graphical_changed)(Login1Seat *seat); void (*active_session_changed)(Login1Seat *seat, const gchar *login1_session_id); } Login1SeatClass; typedef struct Login1ServicePrivate Login1ServicePrivate; typedef struct { GObject parent_instance; Login1ServicePrivate *priv; } Login1Service; typedef struct { GObjectClass parent_class; void (*seat_added)(Login1Service *service, Login1Seat *seat); void (*seat_removed)(Login1Service *service, Login1Seat *seat); } Login1ServiceClass; GType login1_service_get_type (void); GType login1_seat_get_type (void); Login1Service *login1_service_get_instance (void); gboolean login1_service_connect (Login1Service *service); gboolean login1_service_get_is_connected (Login1Service *service); GList *login1_service_get_seats (Login1Service *service); Login1Seat *login1_service_get_seat (Login1Service *service, const gchar *id); void login1_service_lock_session (Login1Service *service, const gchar *session_id); void login1_service_unlock_session (Login1Service *service, const gchar *session_id); void login1_service_activate_session (Login1Service *service, const gchar *session_id); const gchar *login1_seat_get_id (Login1Seat *seat); gboolean login1_seat_get_can_graphical (Login1Seat *seat); gboolean login1_seat_get_can_multi_session (Login1Seat *seat); G_END_DECLS #endif /* _LOGIN1_H_ */ lightdm-1.18.1/src/logger.h0000664000000000000000000000346412700600465012350 0ustar #ifndef LOGGER_H_ #define LOGGER_H_ #include #ifdef __cplusplus #include /* for va_list */ #else #include /* for va_list */ #endif G_BEGIN_DECLS #define LOGGER_TYPE (logger_get_type ()) #define LOGGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LOGGER_TYPE, Logger)) #define IS_LOGGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LOGGER_TYPE)) #define LOGGER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), LOGGER_TYPE, LoggerInterface)) typedef struct Logger Logger; typedef struct { GTypeInterface parent; gint (*logprefix) (Logger *self, gchar *buf, gulong buflen); void (*logv) (Logger *self, GLogLevelFlags log_level, const gchar *format, va_list ap); } LoggerInterface; GType logger_get_type (void); /*! * \brief instruct \c self to generate a log message prefix * * the semantics of the \c buf and \c buflen arguments and the return * value are the same as g_snprintf() * * there is no default implementation */ gint logger_logprefix (Logger *self, gchar *buf, gulong buflen); /*! * \brief instruct \c self to log the given message * * the default implementation prefixes the log message with the * output of logger_logprefix() and then passes the result to * g_log() */ void logger_logv (Logger *self, GLogLevelFlags log_level, const gchar *format, va_list ap) __attribute__ ((format (printf, 3, 0))); /*! \brief convenience wrapper around \c logger_logv() */ void logger_log (Logger *self, GLogLevelFlags log_level, const gchar *format, ...) __attribute__ ((format (printf, 3, 4))); /* convenience wrappers around logger_log() */ #define l_debug(self, ...) \ logger_log (LOGGER (self), G_LOG_LEVEL_DEBUG, __VA_ARGS__) #define l_warning(self, ...) \ logger_log (LOGGER (self), G_LOG_LEVEL_WARNING, __VA_ARGS__) G_END_DECLS #endif /* !LOGGER_H_ */ lightdm-1.18.1/src/x-server.h0000664000000000000000000000351412700600465012640 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef X_SERVER_H_ #define X_SERVER_H_ #include #include "display-server.h" #include "x-authority.h" G_BEGIN_DECLS #define X_SERVER_TYPE (x_server_get_type()) #define X_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), X_SERVER_TYPE, XServer)) #define X_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), X_SERVER_TYPE, XServerClass)) #define X_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), X_SERVER_TYPE, XServerClass)) #define IS_X_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), X_SERVER_TYPE)) typedef struct XServerPrivate XServerPrivate; typedef struct { DisplayServer parent_instance; XServerPrivate *priv; } XServer; typedef struct { DisplayServerClass parent_class; } XServerClass; GType x_server_get_type (void); void x_server_set_hostname (XServer *server, const gchar *hostname); gchar *x_server_get_hostname (XServer *server); void x_server_set_display_number (XServer *server, guint number); guint x_server_get_display_number (XServer *server); const gchar *x_server_get_address (XServer *server); const gchar *x_server_get_authentication_name (XServer *server); const guint8 *x_server_get_authentication_data (XServer *server); gsize x_server_get_authentication_data_length (XServer *server); void x_server_set_authority (XServer *server, XAuthority *authority); XAuthority *x_server_get_authority (XServer *server); G_END_DECLS #endif /* X_SERVER_H_ */ lightdm-1.18.1/src/guest-account.c0000664000000000000000000000653112700600465013643 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include "guest-account.h" #include "configuration.h" static gchar * get_setup_script (void) { gchar *script; static gchar *setup_script = NULL; if (setup_script) return setup_script; script = config_get_string (config_get_instance (), "LightDM", "guest-account-script"); if (!script) return NULL; setup_script = g_find_program_in_path (script); g_free (script); return setup_script; } gboolean guest_account_is_installed (void) { return get_setup_script () != NULL; } static gboolean run_script (const gchar *script, gchar **stdout_text, gint *exit_status, GError **error) { gint argc; gchar **argv; gboolean result; if (!g_shell_parse_argv (script, &argc, &argv, error)) return FALSE; result = g_spawn_sync (NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, stdout_text, NULL, exit_status, error); g_strfreev (argv); return result; } gchar * guest_account_setup (void) { gchar *command, *stdout_text, *username, **lines; gint exit_status; gboolean result; GError *error = NULL; command = g_strdup_printf ("%s add", get_setup_script ()); g_debug ("Opening guest account with command '%s'", command); result = run_script (command, &stdout_text, &exit_status, &error); g_free (command); if (error) g_warning ("Error running guest account setup script '%s': %s", get_setup_script (), error->message); g_clear_error (&error); if (!result) return NULL; if (exit_status != 0) { g_debug ("Guest account setup script returns %d: %s", exit_status, stdout_text); g_free (stdout_text); return NULL; } /* Use the last line and trim whitespace */ lines = g_strsplit (g_strstrip (stdout_text), "\n", -1); if (lines) username = g_strdup (g_strstrip (lines[g_strv_length (lines) - 1])); else username = g_strdup (""); g_free (stdout_text); if (strcmp (username, "") == 0) { g_free (username); g_debug ("Guest account setup script didn't return a username"); return NULL; } g_debug ("Guest account %s setup", username); return username; } void guest_account_cleanup (const gchar *username) { gchar *command; gboolean result; gint exit_status; GError *error = NULL; command = g_strdup_printf ("%s remove %s", get_setup_script (), username); g_debug ("Closing guest account %s with command '%s'", username, command); result = run_script (command, NULL, &exit_status, &error); g_free (command); if (error) g_warning ("Error running guest account cleanup script '%s': %s", get_setup_script (), error->message); g_clear_error (&error); if (result && exit_status != 0) g_debug ("Guest account cleanup script returns %d", exit_status); } lightdm-1.18.1/src/x-server-remote.c0000664000000000000000000000225512700600465014125 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include "x-server-remote.h" G_DEFINE_TYPE (XServerRemote, x_server_remote, X_SERVER_TYPE); XServerRemote * x_server_remote_new (const gchar *hostname, guint number, XAuthority *authority) { XServerRemote *self = g_object_new (X_SERVER_REMOTE_TYPE, NULL); gchar *name; x_server_set_hostname (X_SERVER (self), hostname); x_server_set_display_number (X_SERVER (self), number); x_server_set_authority (X_SERVER (self), authority); name = g_strdup_printf ("x-%s-%d", hostname, number); display_server_set_name (DISPLAY_SERVER (self), name); g_free (name); return self; } static void x_server_remote_init (XServerRemote *server) { } static void x_server_remote_class_init (XServerRemoteClass *klass) { } lightdm-1.18.1/src/wayland-session.c0000664000000000000000000000545212700600465014203 0ustar /* * Copyright (C) 2015 Canonical Ltd. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include "wayland-session.h" #include "vt.h" struct WaylandSessionPrivate { /* VT to run on */ gint vt; gboolean have_vt_ref; }; G_DEFINE_TYPE (WaylandSession, wayland_session, DISPLAY_SERVER_TYPE); WaylandSession * wayland_session_new (void) { return g_object_new (WAYLAND_SESSION_TYPE, NULL); } void wayland_session_set_vt (WaylandSession *session, gint vt) { g_return_if_fail (session != NULL); if (session->priv->have_vt_ref) vt_unref (session->priv->vt); session->priv->have_vt_ref = FALSE; session->priv->vt = vt; if (vt > 0) { vt_ref (vt); session->priv->have_vt_ref = TRUE; } } static gint wayland_session_get_vt (DisplayServer *server) { g_return_val_if_fail (server != NULL, 0); return WAYLAND_SESSION (server)->priv->vt; } static void wayland_session_connect_session (DisplayServer *display_server, Session *session) { WaylandSession *wayland_session = WAYLAND_SESSION (display_server); session_set_env (session, "XDG_SESSION_TYPE", "wayland"); if (wayland_session->priv->vt >= 0) { gchar *value = g_strdup_printf ("%d", wayland_session->priv->vt); session_set_env (session, "XDG_VTNR", value); g_free (value); } } static void wayland_session_disconnect_session (DisplayServer *display_server, Session *session) { session_unset_env (session, "XDG_SESSION_TYPE"); session_unset_env (session, "XDG_VTNR"); } static void wayland_session_init (WaylandSession *session) { session->priv = G_TYPE_INSTANCE_GET_PRIVATE (session, WAYLAND_SESSION_TYPE, WaylandSessionPrivate); } static void wayland_session_finalize (GObject *object) { WaylandSession *self = WAYLAND_SESSION (object); if (self->priv->have_vt_ref) vt_unref (self->priv->vt); G_OBJECT_CLASS (wayland_session_parent_class)->finalize (object); } static void wayland_session_class_init (WaylandSessionClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); DisplayServerClass *display_server_class = DISPLAY_SERVER_CLASS (klass); display_server_class->get_vt = wayland_session_get_vt; display_server_class->connect_session = wayland_session_connect_session; display_server_class->disconnect_session = wayland_session_disconnect_session; object_class->finalize = wayland_session_finalize; g_type_class_add_private (klass, sizeof (WaylandSessionPrivate)); } lightdm-1.18.1/src/dm-tool.c0000664000000000000000000004620312700600465012435 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include static GBusType bus_type = G_BUS_TYPE_SYSTEM; static GDBusProxy *dm_proxy, *seat_proxy = NULL; static gint xephyr_display_number; static GPid xephyr_pid; static void usage (void) { g_printerr (/* Text printed out when an unknown command-line argument provided */ _("Run 'dm-tool --help' to see a full list of available command line options.")); g_printerr ("\n"); } static void xephyr_setup_cb (gpointer user_data) { signal (SIGUSR1, SIG_IGN); } static void xephyr_signal_cb (int signum) { gchar *path; GVariant *result; GError *error = NULL; result = g_dbus_proxy_call_sync (dm_proxy, "AddLocalXSeat", g_variant_new ("(i)", xephyr_display_number), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (!result) { g_printerr ("Unable to add seat: %s\n", error->message); kill (xephyr_pid, SIGQUIT); exit (EXIT_FAILURE); } if (!g_variant_is_of_type (result, G_VARIANT_TYPE ("(o)"))) { g_printerr ("Unexpected response to AddSeat: %s\n", g_variant_get_type_string (result)); exit (EXIT_FAILURE); } g_variant_get (result, "(&o)", &path); g_print ("%s\n", path); exit (EXIT_SUCCESS); } static GDBusProxy * get_seat_proxy (void) { GError *error = NULL; if (seat_proxy) return seat_proxy; if (!g_getenv ("XDG_SEAT_PATH")) { g_printerr ("Not running inside a display manager, XDG_SEAT_PATH not defined\n"); exit (EXIT_FAILURE); } seat_proxy = g_dbus_proxy_new_for_bus_sync (bus_type, G_DBUS_PROXY_FLAGS_NONE, NULL, "org.freedesktop.DisplayManager", g_getenv ("XDG_SEAT_PATH"), "org.freedesktop.DisplayManager.Seat", NULL, &error); if (!seat_proxy) { g_printerr ("Unable to contact display manager: %s\n", error->message); exit (EXIT_FAILURE); } g_clear_error (&error); return seat_proxy; } int main (int argc, char **argv) { gchar *command; gint n_options; gchar **options; GError *error = NULL; gint arg_index; #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif for (arg_index = 1; arg_index < argc; arg_index++) { gchar *arg = argv[arg_index]; if (!g_str_has_prefix (arg, "-")) break; if (strcmp (arg, "-h") == 0 || strcmp (arg, "--help") == 0) { g_printerr ("Usage:\n" " dm-tool [OPTION...] COMMAND [ARGS...] - Display Manager tool\n" "\n" "Options:\n" " -h, --help Show help options\n" " -v, --version Show release version\n" " --session-bus Use session D-Bus\n" "\n" "Commands:\n" " switch-to-greeter Switch to the greeter\n" " switch-to-user USERNAME [SESSION] Switch to a user session\n" " switch-to-guest [SESSION] Switch to a guest session\n" " lock Lock the current seat\n" " list-seats List the active seats\n" " add-nested-seat [--fullscreen|--screen DIMENSIONS] Start a nested display\n" " add-local-x-seat DISPLAY_NUMBER Add a local X seat\n" " add-seat TYPE [NAME=VALUE...] Add a dynamic seat\n"); return EXIT_SUCCESS; } else if (strcmp (arg, "-v") == 0 || strcmp (arg, "--version") == 0) { /* NOTE: Is not translated so can be easily parsed */ g_printerr ("lightdm %s\n", VERSION); return EXIT_SUCCESS; } else if (strcmp (arg, "--session-bus") == 0) bus_type = G_BUS_TYPE_SESSION; else { g_printerr ("Unknown option %s\n", arg); usage (); return EXIT_FAILURE; } } if (arg_index >= argc) { g_printerr ("Missing command\n"); usage (); return EXIT_FAILURE; } dm_proxy = g_dbus_proxy_new_for_bus_sync (bus_type, G_DBUS_PROXY_FLAGS_NONE, NULL, "org.freedesktop.DisplayManager", "/org/freedesktop/DisplayManager", "org.freedesktop.DisplayManager", NULL, &error); if (!dm_proxy) { g_printerr ("Unable to contact display manager: %s\n", error->message); return EXIT_FAILURE; } g_clear_error (&error); command = argv[arg_index]; arg_index++; n_options = argc - arg_index; options = argv + arg_index; if (strcmp (command, "switch-to-greeter") == 0) { if (n_options != 0) { g_printerr ("Usage switch-to-greeter\n"); usage (); return EXIT_FAILURE; } if (!g_dbus_proxy_call_sync (get_seat_proxy (), "SwitchToGreeter", g_variant_new ("()"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error)) { g_printerr ("Unable to switch to greeter: %s\n", error->message); return EXIT_FAILURE; } return EXIT_SUCCESS; } else if (strcmp (command, "switch-to-user") == 0) { gchar *username, *session = ""; if (n_options < 1 || n_options > 2) { g_printerr ("Usage switch-to-user USERNAME [SESSION]\n"); usage (); return EXIT_FAILURE; } username = options[0]; if (n_options == 2) session = options[1]; if (!g_dbus_proxy_call_sync (get_seat_proxy (), "SwitchToUser", g_variant_new ("(ss)", username, session), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error)) { g_printerr ("Unable to switch to user %s: %s\n", username, error->message); return EXIT_FAILURE; } return EXIT_SUCCESS; } else if (strcmp (command, "switch-to-guest") == 0) { gchar *session = ""; if (n_options > 1) { g_printerr ("Usage switch-to-guest [SESSION]\n"); usage (); return EXIT_FAILURE; } if (n_options == 1) session = options[0]; if (!g_dbus_proxy_call_sync (get_seat_proxy (), "SwitchToGuest", g_variant_new ("(s)", session), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error)) { g_printerr ("Unable to switch to guest: %s\n", error->message); return EXIT_FAILURE; } return EXIT_SUCCESS; } else if (strcmp (command, "lock") == 0) { if (n_options != 0) { g_printerr ("Usage lock\n"); usage (); return EXIT_FAILURE; } if (!g_dbus_proxy_call_sync (get_seat_proxy (), "Lock", g_variant_new ("()"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error)) { g_printerr ("Unable to lock seat: %s\n", error->message); return EXIT_FAILURE; } return EXIT_SUCCESS; } else if (strcmp (command, "list-seats") == 0) { GVariant *seats; GVariantIter *seat_iter; gchar *seat_path; if (!g_dbus_proxy_get_name_owner (dm_proxy)) { g_printerr ("Unable to contact display manager\n"); return EXIT_FAILURE; } seats = g_dbus_proxy_get_cached_property (dm_proxy, "Seats"); g_variant_get (seats, "ao", &seat_iter); while (g_variant_iter_loop (seat_iter, "&o", &seat_path)) { gchar *seat_name; GDBusProxy *proxy; gchar **property_names; GVariant *sessions; GVariantIter *session_iter; gchar *session_path; gint i; if (g_str_has_prefix (seat_path, "/org/freedesktop/DisplayManager/")) seat_name = seat_path + strlen ("/org/freedesktop/DisplayManager/"); else seat_name = seat_path; proxy = g_dbus_proxy_new_sync (g_dbus_proxy_get_connection (dm_proxy), G_DBUS_PROXY_FLAGS_NONE, NULL, "org.freedesktop.DisplayManager", seat_path, "org.freedesktop.DisplayManager.Seat", NULL, NULL); if (!proxy || !g_dbus_proxy_get_name_owner (proxy)) continue; g_print ("%s\n", seat_name); property_names = g_dbus_proxy_get_cached_property_names (proxy); for (i = 0; property_names[i]; i++) { GVariant *value; if (strcmp (property_names[i], "Sessions") == 0) continue; value = g_dbus_proxy_get_cached_property (proxy, property_names[i]); g_print (" %s=%s\n", property_names[i], g_variant_print (value, FALSE)); g_variant_unref (value); } sessions = g_dbus_proxy_get_cached_property (proxy, "Sessions"); if (!sessions) continue; g_variant_get (sessions, "ao", &session_iter); while (g_variant_iter_loop (session_iter, "&o", &session_path)) { GDBusProxy *session_proxy; gchar *session_name; if (g_str_has_prefix (session_path, "/org/freedesktop/DisplayManager/")) session_name = session_path + strlen ("/org/freedesktop/DisplayManager/"); else session_name = session_path; session_proxy = g_dbus_proxy_new_sync (g_dbus_proxy_get_connection (dm_proxy), G_DBUS_PROXY_FLAGS_NONE, NULL, "org.freedesktop.DisplayManager", session_path, "org.freedesktop.DisplayManager.Session", NULL, NULL); if (!session_proxy || !g_dbus_proxy_get_name_owner (session_proxy)) continue; g_print (" %s\n", session_name); property_names = g_dbus_proxy_get_cached_property_names (session_proxy); for (i = 0; property_names[i]; i++) { GVariant *value; if (strcmp (property_names[i], "Seat") == 0) continue; value = g_dbus_proxy_get_cached_property (session_proxy, property_names[i]); g_print (" %s=%s\n", property_names[i], g_variant_print (value, FALSE)); g_variant_unref (value); } g_object_unref (session_proxy); } g_variant_iter_free (session_iter); g_object_unref (proxy); } g_variant_iter_free (seat_iter); return EXIT_SUCCESS; } else if (strcmp (command, "add-nested-seat") == 0) { gchar *path, *xephyr_command, **xephyr_argv; gchar *dimensions = NULL; GMainLoop *loop; path = g_find_program_in_path ("Xephyr"); if (!path) { g_printerr ("Unable to find Xephyr, please install it\n"); return EXIT_FAILURE; } if (n_options > 0) { /* Parse the given options */ if (strcmp (options[0], "--fullscreen") == 0 && n_options == 1) { dimensions = "fullscreen"; } else if (strcmp (options[0], "--screen") == 0 && n_options == 2) { dimensions = options[1]; } else { g_printerr ("Usage add-nested-seat [--fullscreen|--screen DIMENSIONS]\n"); usage (); return EXIT_FAILURE; } } /* Get a unique display number. It's racy, but the only reliable method to get one */ xephyr_display_number = 0; while (TRUE) { gchar *lock_name; gboolean has_lock; lock_name = g_strdup_printf ("/tmp/.X%d-lock", xephyr_display_number); has_lock = g_file_test (lock_name, G_FILE_TEST_EXISTS); g_free (lock_name); if (has_lock) xephyr_display_number++; else break; } /* Wait for signal from Xephyr is ready */ signal (SIGUSR1, xephyr_signal_cb); if (dimensions == NULL) { xephyr_command = g_strdup_printf ("Xephyr :%d ", xephyr_display_number); } else if (strcmp (dimensions, "fullscreen") == 0) { xephyr_command = g_strdup_printf ("Xephyr :%d -fullscreen", xephyr_display_number); } else { xephyr_command = g_strdup_printf ("Xephyr :%d -screen %s", xephyr_display_number, dimensions); } if (!g_shell_parse_argv (xephyr_command, NULL, &xephyr_argv, &error) || !g_spawn_async (NULL, xephyr_argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_SEARCH_PATH | G_SPAWN_STDOUT_TO_DEV_NULL | G_SPAWN_STDERR_TO_DEV_NULL, xephyr_setup_cb, NULL, &xephyr_pid, &error)) { g_printerr ("Error running Xephyr: %s\n", error->message); exit (EXIT_FAILURE); } g_clear_error (&error); /* Block until ready */ loop = g_main_loop_new (NULL, FALSE); g_main_loop_run (loop); } else if (strcmp (command, "add-local-x-seat") == 0) { GVariant *result; gint display_number; const gchar *path; if (n_options != 1) { g_printerr ("Usage add-seat DISPLAY_NUMBER\n"); usage (); return EXIT_FAILURE; } display_number = atoi (options[0]); result = g_dbus_proxy_call_sync (dm_proxy, "AddLocalXSeat", g_variant_new ("(i)", display_number), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (!result) { g_printerr ("Unable to add local X seat: %s\n", error->message); return EXIT_FAILURE; } if (!g_variant_is_of_type (result, G_VARIANT_TYPE ("(o)"))) { g_printerr ("Unexpected response to AddLocalXSeat: %s\n", g_variant_get_type_string (result)); return EXIT_FAILURE; } g_variant_get (result, "(&o)", &path); g_print ("%s\n", path); return EXIT_SUCCESS; } else if (strcmp (command, "add-seat") == 0) { GVariant *result; gchar *type, *path; GVariantBuilder *properties; gint i; if (n_options < 1) { g_printerr ("Usage add-seat TYPE [NAME=VALUE...]\n"); usage (); return EXIT_FAILURE; } type = options[0]; properties = g_variant_builder_new (G_VARIANT_TYPE ("a(ss)")); for (i = 1; i < n_options; i++) { gchar *property, *name, *value; property = g_strdup (options[i]); name = property; value = strchr (property, '='); if (value) { *value = '\0'; value++; } else value = ""; g_variant_builder_add_value (properties, g_variant_new ("(ss)", name, value)); g_free (property); } result = g_dbus_proxy_call_sync (dm_proxy, "AddSeat", g_variant_new ("(sa(ss))", type, properties), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); g_variant_builder_unref (properties); if (!result) { g_printerr ("Unable to add seat: %s\n", error->message); return EXIT_FAILURE; } if (!g_variant_is_of_type (result, G_VARIANT_TYPE ("(o)"))) { g_printerr ("Unexpected response to AddSeat: %s\n", g_variant_get_type_string (result)); return EXIT_FAILURE; } g_variant_get (result, "(&o)", &path); g_print ("%s\n", path); return EXIT_SUCCESS; } g_printerr ("Unknown command %s\n", command); usage (); return EXIT_FAILURE; } lightdm-1.18.1/src/accounts.c0000664000000000000000000000626312700600465012703 0ustar /* -*- Mode: C; indent-tabs-mode: nil; tab-width: 4 -*- * * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include "accounts.h" #include "user-list.h" struct UserPrivate { /* Internal user object */ CommonUser *common_user; }; G_DEFINE_TYPE (User, user, G_TYPE_OBJECT); User * accounts_get_user_by_name (const gchar *username) { User *user = NULL; CommonUser *common_user; g_return_val_if_fail (username != NULL, NULL); common_user = common_user_list_get_user_by_name (common_user_list_get_instance (), username); if (common_user != NULL) { user = g_object_new (USER_TYPE, NULL); user->priv->common_user = common_user; } return user; } User * accounts_get_current_user () { struct passwd *entry = getpwuid (getuid ()); if (entry != NULL) return accounts_get_user_by_name (entry->pw_name); else return NULL; } const gchar * user_get_name (User *user) { g_return_val_if_fail (user != NULL, NULL); return common_user_get_name (user->priv->common_user); } uid_t user_get_uid (User *user) { g_return_val_if_fail (user != NULL, 0); return common_user_get_uid (user->priv->common_user); } gid_t user_get_gid (User *user) { g_return_val_if_fail (user != NULL, 0); return common_user_get_gid (user->priv->common_user); } const gchar * user_get_home_directory (User *user) { g_return_val_if_fail (user != NULL, NULL); return common_user_get_home_directory (user->priv->common_user); } const gchar * user_get_shell (User *user) { g_return_val_if_fail (user != NULL, NULL); return common_user_get_shell (user->priv->common_user); } void user_set_language (User *user, const gchar *language) { g_return_if_fail (user != NULL); common_user_set_language (user->priv->common_user, language); } const gchar * user_get_language (User *user) { g_return_val_if_fail (user != NULL, NULL); return common_user_get_language (user->priv->common_user); } void user_set_xsession (User *user, const gchar *xsession) { g_return_if_fail (user != NULL); common_user_set_session (user->priv->common_user, xsession); } const gchar * user_get_xsession (User *user) { g_return_val_if_fail (user != NULL, NULL); return common_user_get_session (user->priv->common_user); } static void user_init (User *user) { user->priv = G_TYPE_INSTANCE_GET_PRIVATE (user, USER_TYPE, UserPrivate); } static void user_finalize (GObject *object) { User *self = USER (object); g_clear_object (&self->priv->common_user); G_OBJECT_CLASS (user_parent_class)->finalize (object); } static void user_class_init (UserClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = user_finalize; g_type_class_add_private (klass, sizeof (UserPrivate)); } lightdm-1.18.1/src/seat-xdmcp-session.c0000664000000000000000000000446112700600465014610 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include "seat-xdmcp-session.h" #include "x-server-remote.h" struct SeatXDMCPSessionPrivate { /* Session being serviced */ XDMCPSession *session; }; G_DEFINE_TYPE (SeatXDMCPSession, seat_xdmcp_session, SEAT_TYPE); SeatXDMCPSession * seat_xdmcp_session_new (XDMCPSession *session) { SeatXDMCPSession *seat; seat = g_object_new (SEAT_XDMCP_SESSION_TYPE, NULL); seat->priv->session = g_object_ref (session); return seat; } static DisplayServer * seat_xdmcp_session_create_display_server (Seat *seat, Session *session) { XAuthority *authority; gchar *host; XServerRemote *x_server; if (strcmp (session_get_session_type (session), "x") != 0) return NULL; authority = xdmcp_session_get_authority (SEAT_XDMCP_SESSION (seat)->priv->session); host = g_inet_address_to_string (xdmcp_session_get_address (SEAT_XDMCP_SESSION (seat)->priv->session)); x_server = x_server_remote_new (host, xdmcp_session_get_display_number (SEAT_XDMCP_SESSION (seat)->priv->session), authority); g_free (host); return DISPLAY_SERVER (x_server); } static void seat_xdmcp_session_init (SeatXDMCPSession *seat) { seat->priv = G_TYPE_INSTANCE_GET_PRIVATE (seat, SEAT_XDMCP_SESSION_TYPE, SeatXDMCPSessionPrivate); } static void seat_xdmcp_session_finalize (GObject *object) { SeatXDMCPSession *self = SEAT_XDMCP_SESSION (object); g_clear_object (&self->priv->session); G_OBJECT_CLASS (seat_xdmcp_session_parent_class)->finalize (object); } static void seat_xdmcp_session_class_init (SeatXDMCPSessionClass *klass) { SeatClass *seat_class = SEAT_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass); seat_class->create_display_server = seat_xdmcp_session_create_display_server; object_class->finalize = seat_xdmcp_session_finalize; g_type_class_add_private (klass, sizeof (SeatXDMCPSessionPrivate)); } lightdm-1.18.1/src/seat-unity.h0000664000000000000000000000170712700600465013171 0ustar /* * Copyright (C) 2012-2013 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef _SEAT_UNITY_H_ #define _SEAT_UNITY_H_ #include #include "seat.h" G_BEGIN_DECLS #define SEAT_UNITY_TYPE (seat_unity_get_type()) #define SEAT_UNITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEAT_UNITY_TYPE, SeatUnity)) typedef struct SeatUnityPrivate SeatUnityPrivate; typedef struct { Seat parent_instance; SeatUnityPrivate *priv; } SeatUnity; typedef struct { SeatClass parent_class; } SeatUnityClass; GType seat_unity_get_type (void); G_END_DECLS #endif /* _SEAT_UNITY_H_ */ lightdm-1.18.1/src/unity-system-compositor.c0000664000000000000000000004073712700600465015756 0ustar /* * Copyright (C) 2013 Canonical Ltd. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include #include #include #include #include "unity-system-compositor.h" #include "configuration.h" #include "process.h" #include "greeter.h" #include "vt.h" struct UnitySystemCompositorPrivate { /* Compositor process */ Process *process; /* Command to run the compositor */ gchar *command; /* Socket to communicate on */ gchar *socket; /* VT to run on */ gint vt; gboolean have_vt_ref; /* Pipes to communicate with compositor */ int to_compositor_pipe[2]; int from_compositor_pipe[2]; /* IO channel listening on for messages from the compositor */ GIOChannel *from_compositor_channel; guint from_compositor_watch; /* Buffer reading from channel */ guint8 *read_buffer; gsize read_buffer_length; gsize read_buffer_n_used; /* Timeout when waiting for compositor to start */ gint timeout; guint timeout_source; /* TRUE when received ready signal */ gboolean is_ready; }; G_DEFINE_TYPE (UnitySystemCompositor, unity_system_compositor, DISPLAY_SERVER_TYPE); typedef enum { USC_MESSAGE_PING = 0, USC_MESSAGE_PONG = 1, USC_MESSAGE_READY = 2, USC_MESSAGE_SESSION_CONNECTED = 3, USC_MESSAGE_SET_ACTIVE_SESSION = 4, USC_MESSAGE_SET_NEXT_SESSION = 5, } USCMessageID; UnitySystemCompositor * unity_system_compositor_new (void) { return g_object_new (UNITY_SYSTEM_COMPOSITOR_TYPE, NULL); } void unity_system_compositor_set_command (UnitySystemCompositor *compositor, const gchar *command) { g_return_if_fail (compositor != NULL); g_return_if_fail (command != NULL); g_free (compositor->priv->command); compositor->priv->command = g_strdup (command); } void unity_system_compositor_set_socket (UnitySystemCompositor *compositor, const gchar *socket) { g_return_if_fail (compositor != NULL); g_free (compositor->priv->socket); compositor->priv->socket = g_strdup (socket); } const gchar * unity_system_compositor_get_socket (UnitySystemCompositor *compositor) { g_return_val_if_fail (compositor != NULL, NULL); return compositor->priv->socket; } void unity_system_compositor_set_vt (UnitySystemCompositor *compositor, gint vt) { g_return_if_fail (compositor != NULL); if (compositor->priv->have_vt_ref) vt_unref (compositor->priv->vt); compositor->priv->have_vt_ref = FALSE; compositor->priv->vt = vt; if (vt > 0) { vt_ref (vt); compositor->priv->have_vt_ref = TRUE; } } void unity_system_compositor_set_timeout (UnitySystemCompositor *compositor, gint timeout) { g_return_if_fail (compositor != NULL); compositor->priv->timeout = timeout; } static void write_message (UnitySystemCompositor *compositor, guint16 id, const guint8 *payload, guint16 payload_length) { guint8 *data; gsize data_length = 4 + payload_length; data = g_malloc (data_length); data[0] = id >> 8; data[1] = id & 0xFF; data[2] = payload_length >> 8; data[3] = payload_length & 0xFF; if (payload) memcpy (data + 4, payload, payload_length); errno = 0; if (write (compositor->priv->to_compositor_pipe[1], data, data_length) != data_length) l_warning (compositor, "Failed to write to compositor: %s", strerror (errno)); g_free (data); } void unity_system_compositor_set_active_session (UnitySystemCompositor *compositor, const gchar *id) { g_return_if_fail (compositor != NULL); write_message (compositor, USC_MESSAGE_SET_ACTIVE_SESSION, (const guint8 *) id, strlen (id)); } void unity_system_compositor_set_next_session (UnitySystemCompositor *compositor, const gchar *id) { g_return_if_fail (compositor != NULL); write_message (compositor, USC_MESSAGE_SET_NEXT_SESSION, (const guint8 *) id, strlen (id)); } static gint unity_system_compositor_get_vt (DisplayServer *server) { g_return_val_if_fail (server != NULL, 0); return UNITY_SYSTEM_COMPOSITOR (server)->priv->vt; } static void unity_system_compositor_connect_session (DisplayServer *display_server, Session *session) { UnitySystemCompositor *compositor = UNITY_SYSTEM_COMPOSITOR (display_server); const gchar *name; session_set_env (session, "XDG_SESSION_TYPE", "mir"); if (compositor->priv->socket) session_set_env (session, "MIR_SOCKET", compositor->priv->socket); if (IS_GREETER (session)) name = "greeter-0"; else name = "session-0"; session_set_env (session, "MIR_SERVER_NAME", name); if (compositor->priv->vt >= 0) { gchar *value = g_strdup_printf ("%d", compositor->priv->vt); session_set_env (session, "XDG_VTNR", value); g_free (value); } } static void unity_system_compositor_disconnect_session (DisplayServer *display_server, Session *session) { session_unset_env (session, "XDG_SESSION_TYPE"); session_unset_env (session, "MIR_SOCKET"); session_unset_env (session, "MIR_SERVER_NAME"); session_unset_env (session, "XDG_VTNR"); } static gchar * get_absolute_command (const gchar *command) { gchar **tokens; gchar *absolute_binary, *absolute_command = NULL; tokens = g_strsplit (command, " ", 2); absolute_binary = g_find_program_in_path (tokens[0]); if (absolute_binary) { if (tokens[1]) absolute_command = g_strjoin (" ", absolute_binary, tokens[1], NULL); else absolute_command = g_strdup (absolute_binary); } g_free (absolute_binary); g_strfreev (tokens); return absolute_command; } static gboolean read_cb (GIOChannel *source, GIOCondition condition, gpointer data) { UnitySystemCompositor *compositor = data; gsize n_to_read = 0; guint16 id, payload_length; /*guint8 *payload;*/ if (condition == G_IO_HUP) { l_debug (compositor, "Compositor closed communication channel"); compositor->priv->from_compositor_watch = 0; return FALSE; } /* Work out how much required for a message */ if (compositor->priv->read_buffer_n_used < 4) n_to_read = 4 - compositor->priv->read_buffer_n_used; else { payload_length = compositor->priv->read_buffer[2] << 8 | compositor->priv->read_buffer[3]; n_to_read = 4 + payload_length - compositor->priv->read_buffer_n_used; } /* Read from compositor */ if (n_to_read > 0) { gsize n_total, n_read = 0; GIOStatus status; GError *error = NULL; n_total = compositor->priv->read_buffer_n_used + n_to_read; if (compositor->priv->read_buffer_length < n_total) compositor->priv->read_buffer = g_realloc (compositor->priv->read_buffer, n_total); status = g_io_channel_read_chars (source, (gchar *)compositor->priv->read_buffer + compositor->priv->read_buffer_n_used, n_to_read, &n_read, &error); if (error) l_warning (compositor, "Failed to read from compositor: %s", error->message); if (status != G_IO_STATUS_NORMAL) return TRUE; g_clear_error (&error); compositor->priv->read_buffer_n_used += n_read; } /* Read header */ if (compositor->priv->read_buffer_n_used < 4) return TRUE; id = compositor->priv->read_buffer[0] << 8 | compositor->priv->read_buffer[1]; payload_length = compositor->priv->read_buffer[2] << 8 | compositor->priv->read_buffer[3]; /* Read payload */ if (compositor->priv->read_buffer_n_used < 4 + payload_length) return TRUE; /*payload = compositor->priv->read_buffer + 4;*/ switch (id) { case USC_MESSAGE_PING: l_debug (compositor, "PING!"); write_message (compositor, USC_MESSAGE_PONG, NULL, 0); break; case USC_MESSAGE_PONG: l_debug (compositor, "PONG!"); break; case USC_MESSAGE_READY: l_debug (compositor, "READY"); if (!compositor->priv->is_ready) { compositor->priv->is_ready = TRUE; l_debug (compositor, "Compositor ready"); g_source_remove (compositor->priv->timeout_source); compositor->priv->timeout_source = 0; DISPLAY_SERVER_CLASS (unity_system_compositor_parent_class)->start (DISPLAY_SERVER (compositor)); } break; case USC_MESSAGE_SESSION_CONNECTED: l_debug (compositor, "SESSION CONNECTED"); break; default: l_warning (compositor, "Ignoring unknown message %d with %d octets from system compositor", id, payload_length); break; } /* Clear buffer */ compositor->priv->read_buffer_n_used = 0; return TRUE; } static void run_cb (Process *process, gpointer user_data) { int fd; /* Make input non-blocking */ fd = open ("/dev/null", O_RDONLY); dup2 (fd, STDIN_FILENO); close (fd); } static gboolean timeout_cb (gpointer data) { UnitySystemCompositor *compositor = data; /* Stop the compositor - it is not working */ display_server_stop (DISPLAY_SERVER (compositor)); compositor->priv->timeout_source = 0; return TRUE; } static void stopped_cb (Process *process, UnitySystemCompositor *compositor) { l_debug (compositor, "Unity system compositor stopped"); if (compositor->priv->timeout_source != 0) g_source_remove (compositor->priv->timeout_source); compositor->priv->timeout_source = 0; /* Release VT and display number for re-use */ if (compositor->priv->have_vt_ref) { vt_unref (compositor->priv->vt); compositor->priv->have_vt_ref = FALSE; } DISPLAY_SERVER_CLASS (unity_system_compositor_parent_class)->stop (DISPLAY_SERVER (compositor)); } static gboolean unity_system_compositor_start (DisplayServer *server) { UnitySystemCompositor *compositor = UNITY_SYSTEM_COMPOSITOR (server); gboolean result, backup_logs; GString *command; gchar *dir, *log_file, *absolute_command, *value; g_return_val_if_fail (compositor->priv->process == NULL, FALSE); compositor->priv->is_ready = FALSE; g_return_val_if_fail (compositor->priv->command != NULL, FALSE); /* Create pipes to talk to compositor */ if (pipe (compositor->priv->to_compositor_pipe) < 0 || pipe (compositor->priv->from_compositor_pipe) < 0) { l_debug (compositor, "Failed to create compositor pipes: %s", g_strerror (errno)); return FALSE; } /* Don't allow the daemon end of the pipes to be accessed in the compositor */ fcntl (compositor->priv->to_compositor_pipe[1], F_SETFD, FD_CLOEXEC); fcntl (compositor->priv->from_compositor_pipe[0], F_SETFD, FD_CLOEXEC); /* Listen for messages from the compositor */ compositor->priv->from_compositor_channel = g_io_channel_unix_new (compositor->priv->from_compositor_pipe[0]); compositor->priv->from_compositor_watch = g_io_add_watch (compositor->priv->from_compositor_channel, G_IO_IN | G_IO_HUP, read_cb, compositor); /* Setup logging */ dir = config_get_string (config_get_instance (), "LightDM", "log-directory"); log_file = g_build_filename (dir, "unity-system-compositor.log", NULL); l_debug (compositor, "Logging to %s", log_file); g_free (dir); /* Setup environment */ compositor->priv->process = process_new (run_cb, compositor); backup_logs = config_get_boolean (config_get_instance (), "LightDM", "backup-logs"); process_set_log_file (compositor->priv->process, log_file, TRUE, backup_logs ? LOG_MODE_BACKUP_AND_TRUNCATE : LOG_MODE_APPEND); g_free (log_file); process_set_clear_environment (compositor->priv->process, TRUE); process_set_env (compositor->priv->process, "XDG_SEAT", "seat0"); value = g_strdup_printf ("%d", compositor->priv->vt); process_set_env (compositor->priv->process, "XDG_VTNR", value); g_free (value); /* Variable required for regression tests */ if (g_getenv ("LIGHTDM_TEST_ROOT")) { process_set_env (compositor->priv->process, "LIGHTDM_TEST_ROOT", g_getenv ("LIGHTDM_TEST_ROOT")); process_set_env (compositor->priv->process, "LD_PRELOAD", g_getenv ("LD_PRELOAD")); process_set_env (compositor->priv->process, "LD_LIBRARY_PATH", g_getenv ("LD_LIBRARY_PATH")); } /* Generate command line to run */ absolute_command = get_absolute_command (compositor->priv->command); if (!absolute_command) { l_debug (compositor, "Can't launch compositor %s, not found in path", compositor->priv->command); return FALSE; } command = g_string_new (absolute_command); g_free (absolute_command); g_string_append_printf (command, " --file '%s'", compositor->priv->socket); g_string_append_printf (command, " --from-dm-fd %d --to-dm-fd %d", compositor->priv->to_compositor_pipe[0], compositor->priv->from_compositor_pipe[1]); if (compositor->priv->vt > 0) g_string_append_printf (command, " --vt %d", compositor->priv->vt); process_set_command (compositor->priv->process, command->str); g_string_free (command, TRUE); /* Start the compositor */ g_signal_connect (compositor->priv->process, PROCESS_SIGNAL_STOPPED, G_CALLBACK (stopped_cb), compositor); result = process_start (compositor->priv->process, FALSE); /* Close compostor ends of the pipes */ close (compositor->priv->to_compositor_pipe[0]); compositor->priv->to_compositor_pipe[0] = 0; close (compositor->priv->from_compositor_pipe[1]); compositor->priv->from_compositor_pipe[1] = 0; if (!result) return FALSE; /* Connect to the compositor */ if (compositor->priv->timeout > 0) { l_debug (compositor, "Waiting for system compositor for %ds", compositor->priv->timeout); compositor->priv->timeout_source = g_timeout_add (compositor->priv->timeout * 1000, timeout_cb, compositor); } return TRUE; } static void unity_system_compositor_stop (DisplayServer *server) { process_stop (UNITY_SYSTEM_COMPOSITOR (server)->priv->process); } static void unity_system_compositor_init (UnitySystemCompositor *compositor) { compositor->priv = G_TYPE_INSTANCE_GET_PRIVATE (compositor, UNITY_SYSTEM_COMPOSITOR_TYPE, UnitySystemCompositorPrivate); compositor->priv->vt = -1; compositor->priv->command = g_strdup ("unity-system-compositor"); compositor->priv->socket = g_strdup ("/run/mir_socket"); compositor->priv->timeout = -1; } static void unity_system_compositor_finalize (GObject *object) { UnitySystemCompositor *self = UNITY_SYSTEM_COMPOSITOR (object); if (self->priv->process) { g_signal_handlers_disconnect_matched (self->priv->process, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, self); g_object_unref (self->priv->process); } g_free (self->priv->command); g_free (self->priv->socket); if (self->priv->have_vt_ref) vt_unref (self->priv->vt); close (self->priv->to_compositor_pipe[0]); close (self->priv->to_compositor_pipe[1]); close (self->priv->from_compositor_pipe[0]); close (self->priv->from_compositor_pipe[1]); g_io_channel_unref (self->priv->from_compositor_channel); if (self->priv->from_compositor_watch) g_source_remove (self->priv->from_compositor_watch); g_free (self->priv->read_buffer); if (self->priv->timeout_source) g_source_remove (self->priv->timeout_source); G_OBJECT_CLASS (unity_system_compositor_parent_class)->finalize (object); } static void unity_system_compositor_class_init (UnitySystemCompositorClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); DisplayServerClass *display_server_class = DISPLAY_SERVER_CLASS (klass); display_server_class->get_vt = unity_system_compositor_get_vt; display_server_class->connect_session = unity_system_compositor_connect_session; display_server_class->disconnect_session = unity_system_compositor_disconnect_session; display_server_class->start = unity_system_compositor_start; display_server_class->stop = unity_system_compositor_stop; object_class->finalize = unity_system_compositor_finalize; g_type_class_add_private (klass, sizeof (UnitySystemCompositorPrivate)); } lightdm-1.18.1/src/plymouth.h0000664000000000000000000000136612700600465012751 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef PLYMOUTH_H_ #define PLYMOUTH_H_ #include G_BEGIN_DECLS gboolean plymouth_get_is_running (void); gboolean plymouth_get_is_active (void); gboolean plymouth_has_active_vt (void); void plymouth_deactivate (void); void plymouth_quit (gboolean retain_splash); G_END_DECLS #endif /* PLYMOUTH_H_ */ lightdm-1.18.1/src/x-authority.h0000664000000000000000000000525112700600465013362 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef X_AUTHORITY_H_ #define X_AUTHORITY_H_ #include G_BEGIN_DECLS #define X_AUTHORITY_TYPE (x_authority_get_type()) #define X_AUTHORITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), X_AUTHORITY_TYPE, XAuthority)); typedef struct XAuthorityPrivate XAuthorityPrivate; typedef struct { GObject parent_instance; XAuthorityPrivate *priv; } XAuthority; typedef struct { GObjectClass parent_class; } XAuthorityClass; #define XAUTH_FAMILY_INTERNET 0 #define XAUTH_FAMILY_DECNET 1 #define XAUTH_FAMILY_CHAOS 2 #define XAUTH_FAMILY_SERVER_INTERPRETED 5 #define XAUTH_FAMILY_INTERNET6 6 #define XAUTH_FAMILY_LOCALHOST 252 #define XAUTH_FAMILY_KRB5_PRINCIPAL 253 #define XAUTH_FAMILY_NETNAME 254 #define XAUTH_FAMILY_LOCAL 256 #define XAUTH_FAMILY_WILD 65535 typedef enum { XAUTH_WRITE_MODE_REPLACE, XAUTH_WRITE_MODE_REMOVE, XAUTH_WRITE_MODE_SET } XAuthWriteMode; GType x_authority_get_type (void); XAuthority *x_authority_new (guint16 family, const guint8 *address, gsize address_length, const gchar *number, const gchar *name, const guint8 *data, gsize data_length); XAuthority *x_authority_new_cookie (guint16 family, const guint8 *address, gsize address_length, const gchar *number); void x_authority_set_family (XAuthority *auth, guint16 family); guint16 x_authority_get_family (XAuthority *auth); void x_authority_set_address (XAuthority *auth, const guint8 *address, gsize address_length); const guint8 *x_authority_get_address (XAuthority *auth); const gsize x_authority_get_address_length (XAuthority *auth); void x_authority_set_number (XAuthority *auth, const gchar *number); const gchar *x_authority_get_number (XAuthority *auth); void x_authority_set_authorization_name (XAuthority *auth, const gchar *name); const gchar *x_authority_get_authorization_name (XAuthority *auth); void x_authority_set_authorization_data (XAuthority *auth, const guint8 *data, gsize data_length); const guint8 *x_authority_get_authorization_data (XAuthority *auth); guint8 *x_authority_copy_authorization_data (XAuthority *auth); gsize x_authority_get_authorization_data_length (XAuthority *auth); gboolean x_authority_write (XAuthority *auth, XAuthWriteMode mode, const gchar *filename, GError **error); G_END_DECLS #endif /* X_AUTHORITY_H_ */ lightdm-1.18.1/src/x-server-remote.h0000664000000000000000000000175712700600465014140 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef X_SERVER_REMOTE_H_ #define X_SERVER_REMOTE_H_ #include "x-server.h" G_BEGIN_DECLS #define X_SERVER_REMOTE_TYPE (x_server_remote_get_type()) #define X_SERVER_REMOTE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), X_SERVER_REMOTE_TYPE, XServerRemote)) typedef struct { XServer parent_instance; } XServerRemote; typedef struct { XServerClass parent_class; } XServerRemoteClass; GType x_server_remote_get_type (void); XServerRemote *x_server_remote_new (const gchar *hostname, guint number, XAuthority *authority); G_END_DECLS #endif /* X_SERVER_REMOTE_H_ */ lightdm-1.18.1/src/process.h0000664000000000000000000000453412700600465012546 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef PROCESS_H_ #define PROCESS_H_ #include #include "log-file.h" G_BEGIN_DECLS #define PROCESS_TYPE (process_get_type()) #define PROCESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PROCESS_TYPE, ProcessClass)) #define PROCESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PROCESS_TYPE, Process)) #define PROCESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PROCESS_TYPE, ProcessClass)) #define PROCESS_SIGNAL_GOT_DATA "got-data" #define PROCESS_SIGNAL_GOT_SIGNAL "got-signal" #define PROCESS_SIGNAL_STOPPED "stopped" typedef struct ProcessPrivate ProcessPrivate; typedef struct { GObject parent_instance; ProcessPrivate *priv; } Process; typedef struct { GObjectClass parent_class; void (*got_data)(Process *process); void (*got_signal)(Process *process, int signum); void (*stopped)(Process *process); } ProcessClass; typedef void (*ProcessRunFunc)(Process *process, gpointer user_data); GType process_get_type (void); Process *process_get_current (void); Process *process_new (ProcessRunFunc run_func, gpointer run_func_data); void process_set_log_file (Process *process, const gchar *path, gboolean log_stdout, LogMode log_mode); void process_set_clear_environment (Process *process, gboolean clear_environment); gboolean process_get_clear_environment (Process *process); void process_set_env (Process *process, const gchar *name, const gchar *value); const gchar *process_get_env (Process *process, const gchar *name); void process_set_command (Process *process, const gchar *command); const gchar *process_get_command (Process *process); gboolean process_start (Process *process, gboolean block); gboolean process_get_is_running (Process *process); GPid process_get_pid (Process *process); void process_signal (Process *process, int signum); void process_stop (Process *process); int process_get_exit_status (Process *process); G_END_DECLS #endif /* PROCESS_H_ */ lightdm-1.18.1/src/xdmcp-session.c0000664000000000000000000000476612700600465013666 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include "xdmcp-session.h" #include "xdmcp-session-private.h" G_DEFINE_TYPE (XDMCPSession, xdmcp_session, G_TYPE_OBJECT); XDMCPSession * xdmcp_session_new (guint16 id) { XDMCPSession *self = g_object_new (XDMCP_SESSION_TYPE, NULL); self->priv->id = id; return self; } guint16 xdmcp_session_get_id (XDMCPSession *session) { g_return_val_if_fail (session != NULL, 0); return session->priv->id; } const gchar * xdmcp_session_get_manufacturer_display_id (XDMCPSession *session) { g_return_val_if_fail (session != NULL, NULL); return session->priv->manufacturer_display_id; } GInetAddress * xdmcp_session_get_address (XDMCPSession *session) { g_return_val_if_fail (session != NULL, NULL); return session->priv->address; } XAuthority * xdmcp_session_get_authority (XDMCPSession *session) { g_return_val_if_fail (session != NULL, NULL); return session->priv->authority; } guint16 xdmcp_session_get_display_number (XDMCPSession *session) { g_return_val_if_fail (session != NULL, 0); return session->priv->display_number; } const gchar * xdmcp_session_get_display_class (XDMCPSession *session) { g_return_val_if_fail (session != NULL, NULL); return session->priv->display_class; } static void xdmcp_session_init (XDMCPSession *session) { session->priv = G_TYPE_INSTANCE_GET_PRIVATE (session, XDMCP_SESSION_TYPE, XDMCPSessionPrivate); session->priv->manufacturer_display_id = g_strdup (""); session->priv->display_class = g_strdup (""); } static void xdmcp_session_finalize (GObject *object) { XDMCPSession *self = XDMCP_SESSION (object); g_free (self->priv->manufacturer_display_id); g_clear_object (&self->priv->address); g_clear_object (&self->priv->authority); g_free (self->priv->display_class); G_OBJECT_CLASS (xdmcp_session_parent_class)->finalize (object); } static void xdmcp_session_class_init (XDMCPSessionClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = xdmcp_session_finalize; g_type_class_add_private (klass, sizeof (XDMCPSessionPrivate)); } lightdm-1.18.1/src/vt.h0000664000000000000000000000131612700600465011514 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef VT_H_ #define VT_H_ #include gboolean vt_can_multi_seat (void); gint vt_get_active (void); gint vt_get_unused (void); gint vt_get_min (void); void vt_ref (gint number); void vt_unref (gint number); void vt_set_active (gint number); #endif /* VT_H_ */ lightdm-1.18.1/src/lightdm-guest-session.c0000664000000000000000000000215012700600465015311 0ustar /* -*- Mode: C; indent-tabs-mode: nil; tab-width: 4 -*- * * Copyright (C) 2011 Canonical Ltd. * Author: Martin Pitt * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ /* This is a simple wrapper which just re-execve()'s the program given as its * arguments. This allows MAC systems like AppArmor or SELinux to apply a * policy on this wrapper which applies to guest sessions only. */ #include #include #include #include #include int main (int argc, char *argv[], char *envp[]) { if (argc < 2) { fprintf (stderr, "Usage: %s COMMAND [ARGS]\n", argv[0]); return EXIT_FAILURE; } execve (argv[1], argv+1, envp); fprintf (stderr, "Failed to run guest session '%s': %s\n", argv[1], strerror (errno)); return EXIT_FAILURE; } lightdm-1.18.1/src/mir-server.h0000664000000000000000000000264312700600465013162 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef MIR_SERVER_H_ #define MIR_SERVER_H_ #include #include "display-server.h" G_BEGIN_DECLS #define MIR_SERVER_TYPE (mir_server_get_type()) #define MIR_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MIR_SERVER_TYPE, MirServer)) #define MIR_SERVER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MIR_SERVER_TYPE, MirServerClass)) #define MIR_SERVER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MIR_SERVER_TYPE, MirServerClass)) #define IS_MIR_SERVER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MIR_SERVER_TYPE)) typedef struct MirServerPrivate MirServerPrivate; typedef struct { DisplayServer parent_instance; MirServerPrivate *priv; } MirServer; typedef struct { DisplayServerClass parent_class; } MirServerClass; GType mir_server_get_type (void); MirServer *mir_server_new (void); void mir_server_set_vt (MirServer *server, gint vt); void mir_server_set_parent_socket (MirServer *server, const gchar *parent_socket); G_END_DECLS #endif /* MIR_SERVER_H_ */ lightdm-1.18.1/src/shared-data-manager.c0000664000000000000000000002034312700600465014644 0ustar /* * Copyright (C) 2014 Canonical, Ltd * Author: Michael Terry * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include #include "configuration.h" #include "shared-data-manager.h" #include "user-list.h" #define NUM_ENUMERATION_FILES 100 struct SharedDataManagerPrivate { gchar *greeter_user; guint32 greeter_gid; GHashTable *starting_dirs; }; struct OwnerInfo { SharedDataManager *manager; guint32 uid; }; G_DEFINE_TYPE (SharedDataManager, shared_data_manager, G_TYPE_OBJECT); static SharedDataManager *singleton = NULL; SharedDataManager * shared_data_manager_get_instance (void) { if (!singleton) singleton = g_object_new (SHARED_DATA_MANAGER_TYPE, NULL); return singleton; } void shared_data_manager_cleanup (void) { g_clear_object (&singleton); } static void delete_unused_user (gpointer key, gpointer value, gpointer user_data) { const gchar *user = (const gchar *)key; GError *error = NULL; /* For this operation, we just need a fire and forget rm -rf. Since recursively deleting in GIO is a huge pain in the butt, we'll just drop to shell for this. */ gchar *path = g_build_filename (USERS_DIR, user, NULL); gchar *quoted_path = g_shell_quote (path); gchar *cmd = g_strdup_printf ("/bin/rm -rf %s", quoted_path); g_spawn_command_line_async (cmd, &error); if (error) g_warning ("Could not delete unused user data directory %s: %s", path, error->message); g_clear_error (&error); g_free (cmd); g_free (quoted_path); g_free (path); } gchar * shared_data_manager_ensure_user_dir (SharedDataManager *manager, const gchar *user) { struct passwd *entry; gchar *path; GFile *file; gboolean result; GFileInfo *info; GError *error = NULL; entry = getpwnam (user); if (!entry) return NULL; path = g_build_filename (USERS_DIR, user, NULL); file = g_file_new_for_path (path); g_debug ("Creating shared data directory %s", path); result = g_file_make_directory (file, NULL, &error); if (error) { if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_EXISTS)) result = TRUE; else g_warning ("Could not create user data directory %s: %s", path, error->message); } g_clear_error (&error); if (!result) { g_object_unref (file); g_free (path); return NULL; } /* Even if the directory already exists, we want to re-affirm the owners because the greeter gid is configuration based and may change between runs. */ info = g_file_info_new (); g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_UNIX_UID, entry->pw_uid); g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_UNIX_GID, manager->priv->greeter_gid); g_file_info_set_attribute_uint32 (info, G_FILE_ATTRIBUTE_UNIX_MODE, 0770); result = g_file_set_attributes_from_info (file, info, G_FILE_QUERY_INFO_NONE, NULL, &error); g_object_unref (info); g_object_unref (file); if (error) g_warning ("Could not chown user data directory %s: %s", path, error->message); if (!result) { g_free (path); return NULL; } return path; } static void next_user_dirs_cb (GObject *object, GAsyncResult *res, gpointer user_data) { GFileEnumerator *enumerator = G_FILE_ENUMERATOR (object); SharedDataManager *manager = SHARED_DATA_MANAGER (user_data); GList *link; GError *error = NULL; GList *files = g_file_enumerator_next_files_finish (enumerator, res, &error); if (error) { g_warning ("Could not enumerate user data directory %s: %s", USERS_DIR, error->message); g_clear_error (&error); g_object_unref (manager); return; } for (link = files; link; link = link->next) { GFileInfo *info = link->data; g_hash_table_insert (manager->priv->starting_dirs, g_strdup (g_file_info_get_name (info)), NULL); } if (files != NULL) { g_list_free_full (files, g_object_unref); g_file_enumerator_next_files_async (enumerator, NUM_ENUMERATION_FILES, G_PRIORITY_DEFAULT, NULL, next_user_dirs_cb, manager); } else { // We've finally assembled all the initial directories. Now let's // iterate the current users and as we go, remove the users from the // starting_dirs hash and thus see which users are obsolete. GList *users = common_user_list_get_users (common_user_list_get_instance ()); for (link = users; link; link = link->next) { CommonUser *user = link->data; g_hash_table_remove (manager->priv->starting_dirs, common_user_get_name (user)); } g_hash_table_foreach (manager->priv->starting_dirs, delete_unused_user, manager); g_hash_table_destroy (manager->priv->starting_dirs); manager->priv->starting_dirs = NULL; g_object_unref (manager); } } static void list_user_dirs_cb (GObject *object, GAsyncResult *res, gpointer user_data) { GFile *file = G_FILE (object); SharedDataManager *manager = SHARED_DATA_MANAGER (user_data); GFileEnumerator *enumerator; GError *error = NULL; enumerator = g_file_enumerate_children_finish (file, res, &error); if (error) g_warning ("Could not enumerate user data directory %s: %s", USERS_DIR, error->message); g_clear_error (&error); if (!enumerator) { g_object_unref (manager); return; } manager->priv->starting_dirs = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL); g_file_enumerator_next_files_async (enumerator, NUM_ENUMERATION_FILES, G_PRIORITY_DEFAULT, NULL, next_user_dirs_cb, manager); } static void user_removed_cb (CommonUserList *list, CommonUser *user, SharedDataManager *manager) { delete_unused_user ((gpointer) common_user_get_name (user), NULL, manager); } void shared_data_manager_start (SharedDataManager *manager) { GFile *file; /* Grab list of all current directories, so we know if any exist that we no longer need. */ file = g_file_new_for_path (USERS_DIR); g_file_enumerate_children_async (file, G_FILE_ATTRIBUTE_STANDARD_NAME, G_FILE_QUERY_INFO_NONE, G_PRIORITY_DEFAULT, NULL, list_user_dirs_cb, g_object_ref (manager)); g_object_unref (file); /* And listen for user removals. */ g_signal_connect (common_user_list_get_instance (), USER_LIST_SIGNAL_USER_REMOVED, G_CALLBACK (user_removed_cb), manager); } static void shared_data_manager_init (SharedDataManager *manager) { struct passwd *greeter_entry; manager->priv = G_TYPE_INSTANCE_GET_PRIVATE (manager, SHARED_DATA_MANAGER_TYPE, SharedDataManagerPrivate); /* Grab current greeter-user gid */ manager->priv->greeter_user = config_get_string (config_get_instance (), "LightDM", "greeter-user"); greeter_entry = getpwnam (manager->priv->greeter_user); if (greeter_entry) manager->priv->greeter_gid = greeter_entry->pw_gid; } static void shared_data_manager_finalize (GObject *object) { SharedDataManager *self = SHARED_DATA_MANAGER (object); /* Should also cancel outstanding GIO operations, but whatever, let them do their thing. */ g_signal_handlers_disconnect_by_data (common_user_list_get_instance (), self); if (self->priv->starting_dirs) g_hash_table_destroy (self->priv->starting_dirs); g_free (self->priv->greeter_user); G_OBJECT_CLASS (shared_data_manager_parent_class)->finalize (object); } static void shared_data_manager_class_init (SharedDataManagerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = shared_data_manager_finalize; g_type_class_add_private (klass, sizeof (SharedDataManagerPrivate)); } lightdm-1.18.1/src/x-authority.c0000664000000000000000000002573512700600465013366 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include #include #include #include "x-authority.h" struct XAuthorityPrivate { /* Protocol family */ guint16 family; /* Address of the X server (format dependent on family) */ guint8 *address; gsize address_length; /* Display number of X server */ gchar *number; /* Authorization scheme */ gchar *authorization_name; /* Authorization data */ guint8 *authorization_data; gsize authorization_data_length; }; G_DEFINE_TYPE (XAuthority, x_authority, G_TYPE_OBJECT); XAuthority * x_authority_new (guint16 family, const guint8 *address, gsize address_length, const gchar *number, const gchar *name, const guint8 *data, gsize data_length) { XAuthority *auth = g_object_new (X_AUTHORITY_TYPE, NULL); x_authority_set_family (auth, family); x_authority_set_address (auth, address, address_length); x_authority_set_number (auth, number); x_authority_set_authorization_name (auth, name); x_authority_set_authorization_data (auth, data, data_length); return auth; } XAuthority * x_authority_new_cookie (guint16 family, const guint8 *address, gsize address_length, const gchar *number) { guint8 cookie[16]; gint i; for (i = 0; i < 16; i++) cookie[i] = g_random_int () & 0xFF; return x_authority_new (family, address, address_length, number, "MIT-MAGIC-COOKIE-1", cookie, 16); } void x_authority_set_family (XAuthority *auth, guint16 family) { g_return_if_fail (auth != NULL); auth->priv->family = family; } guint16 x_authority_get_family (XAuthority *auth) { g_return_val_if_fail (auth != NULL, 0); return auth->priv->family; } void x_authority_set_address (XAuthority *auth, const guint8 *address, gsize address_length) { g_return_if_fail (auth != NULL); g_free (auth->priv->address); auth->priv->address = g_malloc (address_length); memcpy (auth->priv->address, address, address_length); auth->priv->address_length = address_length; } const guint8 * x_authority_get_address (XAuthority *auth) { g_return_val_if_fail (auth != NULL, NULL); return auth->priv->address; } const gsize x_authority_get_address_length (XAuthority *auth) { g_return_val_if_fail (auth != NULL, 0); return auth->priv->address_length; } void x_authority_set_number (XAuthority *auth, const gchar *number) { g_return_if_fail (auth != NULL); g_free (auth->priv->number); auth->priv->number = g_strdup (number); } const gchar * x_authority_get_number (XAuthority *auth) { g_return_val_if_fail (auth != NULL, NULL); return auth->priv->number; } void x_authority_set_authorization_name (XAuthority *auth, const gchar *name) { g_return_if_fail (auth != NULL); g_free (auth->priv->authorization_name); auth->priv->authorization_name = g_strdup (name); } const gchar * x_authority_get_authorization_name (XAuthority *auth) { g_return_val_if_fail (auth != NULL, NULL); return auth->priv->authorization_name; } void x_authority_set_authorization_data (XAuthority *auth, const guint8 *data, gsize data_length) { g_return_if_fail (auth != NULL); g_free (auth->priv->authorization_data); auth->priv->authorization_data = g_malloc (data_length); memcpy (auth->priv->authorization_data, data, data_length); auth->priv->authorization_data_length = data_length; } const guint8 * x_authority_get_authorization_data (XAuthority *auth) { g_return_val_if_fail (auth != NULL, NULL); return auth->priv->authorization_data; } guint8 * x_authority_copy_authorization_data (XAuthority *auth) { guint8 *data; g_return_val_if_fail (auth != NULL, NULL); data = g_malloc (auth->priv->authorization_data_length); memcpy (data, auth->priv->authorization_data, auth->priv->authorization_data_length); return data; } gsize x_authority_get_authorization_data_length (XAuthority *auth) { g_return_val_if_fail (auth != NULL, 0); return auth->priv->authorization_data_length; } static gboolean read_uint16 (gchar *data, gsize data_length, gsize *offset, guint16 *value) { if (data_length - *offset < 2) return FALSE; *value = data[*offset] << 8 | data[*offset + 1]; *offset += 2; return TRUE; } static gboolean read_data (gchar *data, gsize data_length, gsize *offset, guint16 length, guint8 **value) { int i; g_free (*value); *value = NULL; if (data_length - *offset < length) return FALSE; *value = g_malloc0 (length + 1); for (i = 0; i < length; i++) (*value)[i] = data[*offset + i]; *offset += length; (*value)[length] = 0; return TRUE; } static gboolean read_string (gchar *data, gsize data_length, gsize *offset, gchar **value) { guint16 length; if (!read_uint16 (data, data_length, offset, &length)) return FALSE; return read_data (data, data_length, offset, length, (guint8 **) value); } static gboolean write_uint16 (int fd, guint16 value) { guint8 v[2]; v[0] = value >> 8; v[1] = value & 0xFF; return write (fd, v, 2) == 2; } static gboolean write_data (int fd, const guint8 *value, gsize value_length) { return write (fd, value, value_length) == value_length; } static gboolean write_string (int fd, const gchar *value) { size_t value_length = strlen (value); return write_uint16 (fd, value_length) && write_data (fd, (guint8 *) value, value_length); } gboolean x_authority_write (XAuthority *auth, XAuthWriteMode mode, const gchar *filename, GError **error) { gchar *input = NULL; gsize input_length = 0, input_offset = 0; GList *link, *records = NULL; XAuthority *a; gboolean result = TRUE; gboolean matched = FALSE; int output_fd; g_return_val_if_fail (auth != NULL, FALSE); g_return_val_if_fail (filename != NULL, FALSE); /* Read out existing records */ if (mode != XAUTH_WRITE_MODE_SET) { GError *read_error = NULL; g_file_get_contents (filename, &input, &input_length, &read_error); if (read_error && !g_error_matches (read_error, G_FILE_ERROR, G_FILE_ERROR_NOENT)) g_warning ("Error reading existing Xauthority: %s", read_error->message); g_clear_error (&read_error); } while (input_offset != input_length) { gboolean address_matches = FALSE; guint16 address_length = 0; guint16 authorization_data_length = 0; a = g_object_new (X_AUTHORITY_TYPE, NULL); result = read_uint16 (input, input_length, &input_offset, &a->priv->family) && read_uint16 (input, input_length, &input_offset, &address_length) && read_data (input, input_length, &input_offset, address_length, &a->priv->address) && read_string (input, input_length, &input_offset, &a->priv->number) && read_string (input, input_length, &input_offset, &a->priv->authorization_name) && read_uint16 (input, input_length, &input_offset, &authorization_data_length) && read_data (input, input_length, &input_offset, authorization_data_length, &a->priv->authorization_data); a->priv->address_length = address_length; a->priv->authorization_data_length = authorization_data_length; if (!result) { g_object_unref (a); break; } if (auth->priv->address_length == a->priv->address_length) { guint16 i; for (i = 0; i < auth->priv->address_length && auth->priv->address[i] == a->priv->address[i]; i++); address_matches = i == auth->priv->address_length; } /* If this record matches, then update or delete it */ if (!matched && auth->priv->family == a->priv->family && address_matches && strcmp (auth->priv->number, a->priv->number) == 0) { matched = TRUE; if (mode == XAUTH_WRITE_MODE_REMOVE) { g_object_unref (a); continue; } else x_authority_set_authorization_data (a, auth->priv->authorization_data, auth->priv->authorization_data_length); } records = g_list_append (records, a); } g_free (input); /* If didn't exist, then add a new one */ if (!matched) records = g_list_append (records, g_object_ref (auth)); /* Write records back */ errno = 0; output_fd = g_open (filename, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); if (output_fd < 0) { g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno), "Failed to open X authority %s: %s", filename, g_strerror (errno)); return FALSE; } errno = 0; result = TRUE; for (link = records; link && result; link = link->next) { XAuthority *a = link->data; result = write_uint16 (output_fd, a->priv->family) && write_uint16 (output_fd, a->priv->address_length) && write_data (output_fd, a->priv->address, a->priv->address_length) && write_string (output_fd, a->priv->number) && write_string (output_fd, a->priv->authorization_name) && write_uint16 (output_fd, a->priv->authorization_data_length) && write_data (output_fd, a->priv->authorization_data, a->priv->authorization_data_length); g_object_unref (a); } g_list_free (records); fsync (output_fd); close (output_fd); if (!result) { g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno), "Failed to write X authority %s: %s", filename, g_strerror (errno)); return FALSE; } return TRUE; } static void x_authority_init (XAuthority *auth) { auth->priv = G_TYPE_INSTANCE_GET_PRIVATE (auth, X_AUTHORITY_TYPE, XAuthorityPrivate); auth->priv->number = g_strdup (""); } static void x_authority_finalize (GObject *object) { XAuthority *self = X_AUTHORITY (object); g_free (self->priv->address); g_free (self->priv->number); g_free (self->priv->authorization_name); g_free (self->priv->authorization_data); G_OBJECT_CLASS (x_authority_parent_class)->finalize (object); } static void x_authority_class_init (XAuthorityClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = x_authority_finalize; g_type_class_add_private (klass, sizeof (XAuthorityPrivate)); } lightdm-1.18.1/src/seat-unity.c0000664000000000000000000003421712700600465013166 0ustar /* * Copyright (C) 2012-2013 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include "seat-unity.h" #include "configuration.h" #include "unity-system-compositor.h" #include "x-server-local.h" #include "mir-server.h" #include "vt.h" #include "plymouth.h" struct SeatUnityPrivate { /* System compositor */ UnitySystemCompositor *compositor; /* X server being used for XDMCP */ XServerLocal *xdmcp_x_server; /* Next Mir ID to use for a Mir sessions, X server and greeters */ gint next_session_id; gint next_x_server_id; gint next_greeter_id; /* The currently visible session */ Session *active_session; DisplayServer *active_display_server; }; G_DEFINE_TYPE (SeatUnity, seat_unity, SEAT_TYPE); static XServerLocal *create_x_server (Seat *seat); static void seat_unity_setup (Seat *seat) { seat_set_supports_multi_session (seat, TRUE); SEAT_CLASS (seat_unity_parent_class)->setup (seat); } static void check_stopped (SeatUnity *seat) { if (!seat->priv->compositor && !seat->priv->xdmcp_x_server) SEAT_CLASS (seat_unity_parent_class)->stop (SEAT (seat)); } static void xdmcp_x_server_stopped_cb (DisplayServer *display_server, Seat *seat) { l_debug (seat, "XDMCP X server stopped"); g_signal_handlers_disconnect_matched (SEAT_UNITY (seat)->priv->xdmcp_x_server, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, seat); SEAT_UNITY (seat)->priv->xdmcp_x_server = NULL; g_object_unref (display_server); if (seat_get_is_stopping (seat)) check_stopped (SEAT_UNITY (seat)); else seat_stop (seat); } static void compositor_ready_cb (UnitySystemCompositor *compositor, SeatUnity *seat) { const gchar *xdmcp_manager = NULL; l_debug (seat, "Compositor ready"); /* If running as an XDMCP client then just start an X server */ xdmcp_manager = seat_get_string_property (SEAT (seat), "xdmcp-manager"); if (xdmcp_manager) { const gchar *key_name = NULL; gint port = 0; seat->priv->xdmcp_x_server = create_x_server (SEAT (seat)); x_server_local_set_xdmcp_server (seat->priv->xdmcp_x_server, xdmcp_manager); port = seat_get_integer_property (SEAT (seat), "xdmcp-port"); if (port > 0) x_server_local_set_xdmcp_port (seat->priv->xdmcp_x_server, port); key_name = seat_get_string_property (SEAT (seat), "xdmcp-key"); if (key_name) { gchar *path; GKeyFile *keys; gboolean result; GError *error = NULL; path = g_build_filename (config_get_directory (config_get_instance ()), "keys.conf", NULL); keys = g_key_file_new (); result = g_key_file_load_from_file (keys, path, G_KEY_FILE_NONE, &error); if (error) l_debug (seat, "Error getting key %s", error->message); g_clear_error (&error); if (result) { gchar *key = NULL; if (g_key_file_has_key (keys, "keyring", key_name, NULL)) key = g_key_file_get_string (keys, "keyring", key_name, NULL); else l_debug (seat, "Key %s not defined", key_name); if (key) x_server_local_set_xdmcp_key (seat->priv->xdmcp_x_server, key); g_free (key); } g_free (path); g_key_file_free (keys); } g_signal_connect (seat->priv->xdmcp_x_server, DISPLAY_SERVER_SIGNAL_STOPPED, G_CALLBACK (xdmcp_x_server_stopped_cb), seat); if (!display_server_start (DISPLAY_SERVER (seat->priv->xdmcp_x_server))) seat_stop (SEAT (seat)); } SEAT_CLASS (seat_unity_parent_class)->start (SEAT (seat)); } static void compositor_stopped_cb (UnitySystemCompositor *compositor, SeatUnity *seat) { l_debug (seat, "Compositor stopped"); g_clear_object (&seat->priv->compositor); if (seat_get_is_stopping (SEAT (seat))) check_stopped (seat); else seat_stop (SEAT (seat)); } static gboolean seat_unity_start (Seat *seat) { gint vt = -1; int timeout; /* Replace Plymouth if it is running */ if (plymouth_get_is_active () && plymouth_has_active_vt ()) { gint active_vt = vt_get_active (); if (active_vt >= vt_get_min ()) { vt = active_vt; plymouth_quit (TRUE); } else l_debug (seat, "Plymouth is running on VT %d, but this is less than the configured minimum of %d so not replacing it", active_vt, vt_get_min ()); } if (plymouth_get_is_active ()) plymouth_quit (FALSE); if (vt < 0) vt = vt_can_multi_seat () ? vt_get_unused () : 0; if (vt < 0) { l_debug (seat, "Failed to get a VT to run on"); return FALSE; } timeout = seat_get_integer_property (SEAT (seat), "unity-compositor-timeout"); if (timeout <= 0) timeout = 60; SEAT_UNITY (seat)->priv->compositor = unity_system_compositor_new (); g_signal_connect (SEAT_UNITY (seat)->priv->compositor, DISPLAY_SERVER_SIGNAL_READY, G_CALLBACK (compositor_ready_cb), seat); g_signal_connect (SEAT_UNITY (seat)->priv->compositor, DISPLAY_SERVER_SIGNAL_STOPPED, G_CALLBACK (compositor_stopped_cb), seat); unity_system_compositor_set_command (SEAT_UNITY (seat)->priv->compositor, seat_get_string_property (SEAT (seat), "unity-compositor-command")); unity_system_compositor_set_vt (SEAT_UNITY (seat)->priv->compositor, vt); unity_system_compositor_set_timeout (SEAT_UNITY (seat)->priv->compositor, timeout); return display_server_start (DISPLAY_SERVER (SEAT_UNITY (seat)->priv->compositor)); } static XServerLocal * create_x_server (Seat *seat) { XServerLocal *x_server; const gchar *command = NULL, *layout = NULL, *config_file = NULL; gboolean allow_tcp; gchar *id; l_debug (seat, "Starting X server on Unity compositor"); x_server = x_server_local_new (); command = seat_get_string_property (seat, "xmir-command"); /* Fall back to using X if Xmir is not available as this was the previous way XMir worked */ if (strcmp (command, "Xmir") == 0 && !g_find_program_in_path ("Xmir")) command = seat_get_string_property (seat, "xserver-command"); x_server_local_set_command (x_server, command); id = g_strdup_printf ("x-%d", SEAT_UNITY (seat)->priv->next_x_server_id); SEAT_UNITY (seat)->priv->next_x_server_id++; x_server_local_set_mir_id (x_server, id); x_server_local_set_mir_socket (x_server, unity_system_compositor_get_socket (SEAT_UNITY (seat)->priv->compositor)); g_free (id); layout = seat_get_string_property (seat, "xserver-layout"); if (layout) x_server_local_set_layout (x_server, layout); x_server_local_set_xdg_seat (x_server, seat_get_name (seat)); config_file = seat_get_string_property (seat, "xserver-config"); if (config_file) x_server_local_set_config (x_server, config_file); allow_tcp = seat_get_boolean_property (seat, "xserver-allow-tcp"); x_server_local_set_allow_tcp (x_server, allow_tcp); return x_server; } static DisplayServer * create_mir_server (Seat *seat) { MirServer *mir_server; mir_server = mir_server_new (); mir_server_set_parent_socket (mir_server, unity_system_compositor_get_socket (SEAT_UNITY (seat)->priv->compositor)); return DISPLAY_SERVER (mir_server); } static DisplayServer * seat_unity_create_display_server (Seat *seat, Session *session) { const gchar *session_type; session_type = session_get_session_type (session); if (strcmp (session_type, "x") == 0) return DISPLAY_SERVER (create_x_server (seat)); else if (strcmp (session_type, "mir") == 0) return create_mir_server (seat); else { l_warning (seat, "Can't create unsupported display server '%s'", session_type); return NULL; } } static Greeter * seat_unity_create_greeter_session (Seat *seat) { Greeter *greeter_session; gchar *id; gint vt; greeter_session = SEAT_CLASS (seat_unity_parent_class)->create_greeter_session (seat); session_set_env (SESSION (greeter_session), "XDG_SEAT", seat_get_name (seat)); id = g_strdup_printf ("greeter-%d", SEAT_UNITY (seat)->priv->next_greeter_id); SEAT_UNITY (seat)->priv->next_greeter_id++; session_set_env (SESSION (greeter_session), "MIR_SERVER_NAME", id); g_free (id); vt = display_server_get_vt (DISPLAY_SERVER (SEAT_UNITY (seat)->priv->compositor)); if (vt >= 0) { gchar *value = g_strdup_printf ("%d", vt); session_set_env (SESSION (greeter_session), "XDG_VTNR", value); g_free (value); } return greeter_session; } static Session * seat_unity_create_session (Seat *seat) { Session *session; gchar *id; gint vt; session = SEAT_CLASS (seat_unity_parent_class)->create_session (seat); session_set_env (session, "XDG_SEAT", seat_get_name (seat)); id = g_strdup_printf ("session-%d", SEAT_UNITY (seat)->priv->next_session_id); SEAT_UNITY (seat)->priv->next_session_id++; session_set_env (session, "MIR_SERVER_NAME", id); g_free (id); vt = display_server_get_vt (DISPLAY_SERVER (SEAT_UNITY (seat)->priv->compositor)); if (vt >= 0) { gchar *value = g_strdup_printf ("%d", vt); session_set_env (SESSION (session), "XDG_VTNR", value); g_free (value); } return session; } static void seat_unity_set_active_session (Seat *seat, Session *session) { DisplayServer *display_server; if (session == SEAT_UNITY (seat)->priv->active_session) return; SEAT_UNITY (seat)->priv->active_session = g_object_ref (session); display_server = session_get_display_server (session); if (SEAT_UNITY (seat)->priv->active_display_server != display_server) { const gchar *id = NULL; SEAT_UNITY (seat)->priv->active_display_server = g_object_ref (display_server); if (IS_X_SERVER_LOCAL (display_server)) id = x_server_local_get_mir_id (X_SERVER_LOCAL (display_server)); else id = session_get_env (session, "MIR_SERVER_NAME"); if (id) { l_debug (seat, "Switching to Mir session %s", id); unity_system_compositor_set_active_session (SEAT_UNITY (seat)->priv->compositor, id); } else l_warning (seat, "Failed to work out session ID"); } SEAT_CLASS (seat_unity_parent_class)->set_active_session (seat, session); } static Session * seat_unity_get_active_session (Seat *seat) { return SEAT_UNITY (seat)->priv->active_session; } static void seat_unity_set_next_session (Seat *seat, Session *session) { DisplayServer *display_server; const gchar *id = NULL; if (!session) return; display_server = session_get_display_server (session); if (IS_X_SERVER_LOCAL (display_server)) id = x_server_local_get_mir_id (X_SERVER_LOCAL (display_server)); else id = session_get_env (session, "MIR_SERVER_NAME"); if (id) { l_debug (seat, "Marking Mir session %s as the next session", id); unity_system_compositor_set_next_session (SEAT_UNITY (seat)->priv->compositor, id); } else { l_debug (seat, "Failed to work out session ID to mark"); } SEAT_CLASS (seat_unity_parent_class)->set_next_session (seat, session); } static void seat_unity_run_script (Seat *seat, DisplayServer *display_server, Process *script) { if (IS_X_SERVER_LOCAL (display_server)) { XServerLocal *x_server; const gchar *path; x_server = X_SERVER_LOCAL (display_server); path = x_server_local_get_authority_file_path (x_server); process_set_env (script, "DISPLAY", x_server_get_address (X_SERVER (x_server))); process_set_env (script, "XAUTHORITY", path); } SEAT_CLASS (seat_unity_parent_class)->run_script (seat, display_server, script); } static void seat_unity_stop (Seat *seat) { /* Stop the compositor first */ if (SEAT_UNITY (seat)->priv->compositor) display_server_stop (DISPLAY_SERVER (SEAT_UNITY (seat)->priv->compositor)); /* Stop the XDMCP X server first */ if (SEAT_UNITY (seat)->priv->xdmcp_x_server) display_server_stop (DISPLAY_SERVER (SEAT_UNITY (seat)->priv->xdmcp_x_server)); check_stopped (SEAT_UNITY (seat)); } static void seat_unity_init (SeatUnity *seat) { seat->priv = G_TYPE_INSTANCE_GET_PRIVATE (seat, SEAT_UNITY_TYPE, SeatUnityPrivate); } static void seat_unity_finalize (GObject *object) { SeatUnity *seat = SEAT_UNITY (object); g_clear_object (&seat->priv->compositor); if (seat->priv->xdmcp_x_server) { g_signal_handlers_disconnect_matched (seat->priv->xdmcp_x_server, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, seat); g_object_unref (seat->priv->xdmcp_x_server); } g_clear_object (&seat->priv->active_session); g_clear_object (&seat->priv->active_display_server); G_OBJECT_CLASS (seat_unity_parent_class)->finalize (object); } static void seat_unity_class_init (SeatUnityClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); SeatClass *seat_class = SEAT_CLASS (klass); object_class->finalize = seat_unity_finalize; seat_class->setup = seat_unity_setup; seat_class->start = seat_unity_start; seat_class->create_display_server = seat_unity_create_display_server; seat_class->create_greeter_session = seat_unity_create_greeter_session; seat_class->create_session = seat_unity_create_session; seat_class->set_active_session = seat_unity_set_active_session; seat_class->get_active_session = seat_unity_get_active_session; seat_class->set_next_session = seat_unity_set_next_session; seat_class->run_script = seat_unity_run_script; seat_class->stop = seat_unity_stop; g_type_class_add_private (klass, sizeof (SeatUnityPrivate)); } lightdm-1.18.1/src/vnc-server.c0000664000000000000000000001302712700600465013152 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include "vnc-server.h" enum { NEW_CONNECTION, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; struct VNCServerPrivate { /* Port to listen on */ guint port; /* Address to listen on */ gchar *listen_address; /* Listening sockets */ GSocket *socket, *socket6; }; G_DEFINE_TYPE (VNCServer, vnc_server, G_TYPE_OBJECT); VNCServer * vnc_server_new (void) { return g_object_new (VNC_SERVER_TYPE, NULL); } void vnc_server_set_port (VNCServer *server, guint port) { g_return_if_fail (server != NULL); server->priv->port = port; } guint vnc_server_get_port (VNCServer *server) { g_return_val_if_fail (server != NULL, 0); return server->priv->port; } void vnc_server_set_listen_address (VNCServer *server, const gchar *listen_address) { g_return_if_fail (server != NULL); g_free (server->priv->listen_address); server->priv->listen_address = g_strdup (listen_address); } const gchar * vnc_server_get_listen_address (VNCServer *server) { g_return_val_if_fail (server != NULL, NULL); return server->priv->listen_address; } static gboolean read_cb (GSocket *socket, GIOCondition condition, VNCServer *server) { GError *error = NULL; GSocket *client_socket; client_socket = g_socket_accept (socket, NULL, &error); if (error) g_warning ("Failed to get connection from from VNC socket: %s", error->message); g_clear_error (&error); if (client_socket) { GInetSocketAddress *address; gchar *hostname; address = G_INET_SOCKET_ADDRESS (g_socket_get_remote_address (client_socket, NULL)); hostname = g_inet_address_to_string (g_inet_socket_address_get_address (address)); g_debug ("Got VNC connection from %s:%d", hostname, g_inet_socket_address_get_port (address)); g_free (hostname); g_signal_emit (server, signals[NEW_CONNECTION], 0, client_socket); } return TRUE; } static GSocket * open_tcp_socket (GSocketFamily family, guint port, const gchar *listen_address, GError **error) { GSocket *socket; GSocketAddress *address; socket = g_socket_new (family, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_TCP, error); if (!socket) return NULL; if (listen_address) { GList *addresses; addresses = g_resolver_lookup_by_name (g_resolver_get_default (), listen_address, NULL, error); if (!addresses) { g_object_unref (socket); return NULL; } address = g_inet_socket_address_new (addresses->data, port); g_resolver_free_addresses (addresses); } else address = g_inet_socket_address_new (g_inet_address_new_any (family), port); if (!g_socket_bind (socket, address, TRUE, error) || !g_socket_listen (socket, error)) { g_object_unref (socket); return NULL; } return socket; } gboolean vnc_server_start (VNCServer *server) { GSource *source; GError *error = NULL; g_return_val_if_fail (server != NULL, FALSE); server->priv->socket = open_tcp_socket (G_SOCKET_FAMILY_IPV4, server->priv->port, server->priv->listen_address, &error); if (error) g_warning ("Failed to create IPv4 VNC socket: %s", error->message); g_clear_error (&error); if (server->priv->socket) { source = g_socket_create_source (server->priv->socket, G_IO_IN, NULL); g_source_set_callback (source, (GSourceFunc) read_cb, server, NULL); g_source_attach (source, NULL); } server->priv->socket6 = open_tcp_socket (G_SOCKET_FAMILY_IPV6, server->priv->port, server->priv->listen_address, &error); if (error) g_warning ("Failed to create IPv6 VNC socket: %s", error->message); g_clear_error (&error); if (server->priv->socket6) { source = g_socket_create_source (server->priv->socket6, G_IO_IN, NULL); g_source_set_callback (source, (GSourceFunc) read_cb, server, NULL); g_source_attach (source, NULL); } if (!server->priv->socket && !server->priv->socket6) return FALSE; return TRUE; } static void vnc_server_init (VNCServer *server) { server->priv = G_TYPE_INSTANCE_GET_PRIVATE (server, VNC_SERVER_TYPE, VNCServerPrivate); server->priv->port = 5900; } static void vnc_server_finalize (GObject *object) { VNCServer *self = VNC_SERVER (object); g_free (self->priv->listen_address); g_clear_object (&self->priv->socket); g_clear_object (&self->priv->socket6); G_OBJECT_CLASS (vnc_server_parent_class)->finalize (object); } static void vnc_server_class_init (VNCServerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = vnc_server_finalize; g_type_class_add_private (klass, sizeof (VNCServerPrivate)); signals[NEW_CONNECTION] = g_signal_new (VNC_SERVER_SIGNAL_NEW_CONNECTION, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (VNCServerClass, new_connection), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_SOCKET); } lightdm-1.18.1/src/seat-xremote.c0000664000000000000000000000567512700600465013507 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include "seat-xremote.h" #include "configuration.h" #include "x-server-remote.h" G_DEFINE_TYPE (SeatXRemote, seat_xremote, SEAT_TYPE); static void seat_xremote_setup (Seat *seat) { seat_set_supports_multi_session (seat, FALSE); SEAT_CLASS (seat_xremote_parent_class)->setup (seat); } static DisplayServer * seat_xremote_create_display_server (Seat *seat, Session *session) { const gchar *session_type; XServerRemote *x_server; const gchar *hostname; gint number; session_type = session_get_session_type (session); if (strcmp (session_type, "x") != 0) { l_warning (seat, "X remote seat only supports X display servers, not '%s'", session_type); return NULL; } hostname = seat_get_string_property (seat, "xserver-hostname"); number = seat_get_integer_property (seat, "xserver-display-number"); l_debug (seat, "Starting remote X display %s:%d", hostname ? hostname : "", number); x_server = x_server_remote_new (hostname, number, NULL); return DISPLAY_SERVER (x_server); } static Greeter * seat_xremote_create_greeter_session (Seat *seat) { Greeter *greeter_session; greeter_session = SEAT_CLASS (seat_xremote_parent_class)->create_greeter_session (seat); session_set_env (SESSION (greeter_session), "XDG_SEAT", seat_get_name (seat)); return greeter_session; } static Session * seat_xremote_create_session (Seat *seat) { Session *session; session = SEAT_CLASS (seat_xremote_parent_class)->create_session (seat); session_set_env (SESSION (session), "XDG_SEAT", seat_get_name (seat)); return session; } static void seat_xremote_run_script (Seat *seat, DisplayServer *display_server, Process *script) { XServerRemote *x_server; x_server = X_SERVER_REMOTE (display_server); process_set_env (script, "DISPLAY", x_server_get_address (X_SERVER (x_server))); process_set_env (script, "REMOTE_HOST", x_server_get_hostname (X_SERVER (x_server))); SEAT_CLASS (seat_xremote_parent_class)->run_script (seat, display_server, script); } static void seat_xremote_init (SeatXRemote *seat) { } static void seat_xremote_class_init (SeatXRemoteClass *klass) { SeatClass *seat_class = SEAT_CLASS (klass); seat_class->setup = seat_xremote_setup; seat_class->create_display_server = seat_xremote_create_display_server; seat_class->create_greeter_session = seat_xremote_create_greeter_session; seat_class->create_session = seat_xremote_create_session; seat_class->run_script = seat_xremote_run_script; } lightdm-1.18.1/src/xdmcp-server.h0000664000000000000000000000346212700600465013506 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef XDMCP_SERVER_H_ #define XDMCP_SERVER_H_ #include #include "xdmcp-session.h" G_BEGIN_DECLS #define XDMCP_SERVER_TYPE (xdmcp_server_get_type()) #define XDMCP_SERVER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XDMCP_SERVER_TYPE, XDMCPServer)); #define XDMCP_SERVER_SIGNAL_NEW_SESSION "new-session" typedef struct XDMCPServerPrivate XDMCPServerPrivate; typedef struct { GObject parent_instance; XDMCPServerPrivate *priv; } XDMCPServer; typedef struct { GObjectClass parent_class; gboolean (*new_session)(XDMCPServer *server, XDMCPSession *session); } XDMCPServerClass; GType xdmcp_server_get_type (void); XDMCPServer *xdmcp_server_new (void); void xdmcp_server_set_port (XDMCPServer *server, guint port); guint xdmcp_server_get_port (XDMCPServer *server); void xdmcp_server_set_listen_address (XDMCPServer *server, const gchar *listen_address); const gchar *xdmcp_server_get_listen_address (XDMCPServer *server); void xdmcp_server_set_hostname (XDMCPServer *server, const gchar *hostname); const gchar *xdmcp_server_get_hostname (XDMCPServer *server); void xdmcp_server_set_status (XDMCPServer *server, const gchar *status); const gchar *xdmcp_server_get_status (XDMCPServer *server); void xdmcp_server_set_key (XDMCPServer *server, const gchar *key); gboolean xdmcp_server_start (XDMCPServer *server); G_END_DECLS #endif /* XDMCP_SERVER_H_ */ lightdm-1.18.1/src/seat.c0000664000000000000000000017137712700600465012031 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include "seat.h" #include "configuration.h" #include "guest-account.h" #include "greeter.h" #include "session-config.h" enum { SESSION_ADDED, RUNNING_USER_SESSION, SESSION_REMOVED, STOPPED, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; struct SeatPrivate { /* XDG name for this seat */ gchar *name; /* Configuration for this seat */ GHashTable *properties; /* TRUE if this seat can run multiple sessions at once */ gboolean supports_multi_session; /* TRUE if display server can be shared for sessions */ gboolean share_display_server; /* The display servers on this seat */ GList *display_servers; /* The sessions on this seat */ GList *sessions; /* The last session set to active */ Session *active_session; /* The session belonging to the active greeter user */ Session *next_session; /* The session to set active when it starts */ Session *session_to_activate; /* TRUE once we have started */ gboolean started; /* TRUE if stopping this seat (waiting for displays to stop) */ gboolean stopping; /* TRUE if stopped */ gboolean stopped; /* The greeter to be started to replace the current one */ Greeter *replacement_greeter; }; static void seat_logger_iface_init (LoggerInterface *iface); G_DEFINE_TYPE_WITH_CODE (Seat, seat, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE ( LOGGER_TYPE, seat_logger_iface_init)); typedef struct { const gchar *name; GType type; } SeatModule; static GHashTable *seat_modules = NULL; // FIXME: Make a get_display_server() that re-uses display servers if supported static DisplayServer *create_display_server (Seat *seat, Session *session); static Greeter *create_greeter_session (Seat *seat); static void start_session (Seat *seat, Session *session); void seat_register_module (const gchar *name, GType type) { SeatModule *module; if (!seat_modules) seat_modules = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL); g_debug ("Registered seat module %s", name); module = g_malloc0 (sizeof (SeatModule)); module->name = g_strdup (name); module->type = type; g_hash_table_insert (seat_modules, g_strdup (name), module); } Seat * seat_new (const gchar *module_name, const gchar *name) { Seat *seat; SeatModule *m = NULL; g_return_val_if_fail (module_name != NULL, NULL); if (seat_modules) m = g_hash_table_lookup (seat_modules, module_name); if (!m) return NULL; seat = g_object_new (m->type, NULL); seat->priv->name = g_strdup (name); return seat; } void seat_set_property (Seat *seat, const gchar *name, const gchar *value) { g_return_if_fail (seat != NULL); g_hash_table_insert (seat->priv->properties, g_strdup (name), g_strdup (value)); } const gchar * seat_get_string_property (Seat *seat, const gchar *name) { g_return_val_if_fail (seat != NULL, NULL); return g_hash_table_lookup (seat->priv->properties, name); } gchar ** seat_get_string_list_property (Seat *seat, const gchar *name) { g_return_val_if_fail (seat != NULL, NULL); return g_strsplit (g_hash_table_lookup (seat->priv->properties, name), ";", 0); } gboolean seat_get_boolean_property (Seat *seat, const gchar *name) { const gchar *value; gint i, length = 0; value = seat_get_string_property (seat, name); if (!value) return FALSE; /* Count the number of non-whitespace characters */ for (i = 0; value[i]; i++) if (!g_ascii_isspace (value[i])) length = i + 1; return strncmp (value, "true", MAX (length, 4)) == 0; } gint seat_get_integer_property (Seat *seat, const gchar *name) { const gchar *value; value = seat_get_string_property (seat, name); return value ? atoi (value) : 0; } const gchar * seat_get_name (Seat *seat) { return seat->priv->name; } void seat_set_supports_multi_session (Seat *seat, gboolean supports_multi_session) { g_return_if_fail (seat != NULL); seat->priv->supports_multi_session = supports_multi_session; } void seat_set_share_display_server (Seat *seat, gboolean share_display_server) { g_return_if_fail (seat != NULL); seat->priv->share_display_server = share_display_server; } gboolean seat_start (Seat *seat) { g_return_val_if_fail (seat != NULL, FALSE); l_debug (seat, "Starting"); SEAT_GET_CLASS (seat)->setup (seat); seat->priv->started = SEAT_GET_CLASS (seat)->start (seat); return seat->priv->started; } GList * seat_get_sessions (Seat *seat) { g_return_val_if_fail (seat != NULL, NULL); return seat->priv->sessions; } static gboolean set_greeter_idle (gpointer greeter) { greeter_idle (GREETER (greeter)); return FALSE; } void seat_set_active_session (Seat *seat, Session *session) { GList *link; g_return_if_fail (seat != NULL); SEAT_GET_CLASS (seat)->set_active_session (seat, session); /* Stop any greeters */ for (link = seat->priv->sessions; link; link = link->next) { Session *s = link->data; if (s == session || session_get_is_stopping (s)) continue; if (IS_GREETER (s)) { Greeter *greeter = GREETER (s); if (greeter_get_resettable (greeter)) { if (seat->priv->active_session == SESSION (greeter)) { l_debug (seat, "Idling greeter"); /* Do this in an idle callback, because we might very well be in the middle of responding to a START_SESSION request by a greeter. So they won't expect an IDLE call during that. Plus, this isn't time-sensitive. */ g_idle_add (set_greeter_idle, greeter); } } else { l_debug (seat, "Stopping greeter"); session_stop (s); } } } /* Lock previous sessions */ if (seat->priv->active_session && session != seat->priv->active_session && !IS_GREETER (seat->priv->active_session)) session_lock (seat->priv->active_session); session_activate (session); g_clear_object (&seat->priv->active_session); seat->priv->active_session = g_object_ref (session); } Session * seat_get_active_session (Seat *seat) { g_return_val_if_fail (seat != NULL, NULL); return SEAT_GET_CLASS (seat)->get_active_session (seat); } Session * seat_get_next_session (Seat *seat) { g_return_val_if_fail (seat != NULL, NULL); return seat->priv->next_session; } /** * Obtains the active session which lightdm expects to be active. * * This function is different from seat_get_active_session() in that the * later (in the case of xlocal seats) dynamically finds the session that is * really active (based on the active VT), whereas this function returns the * session that lightdm activated last by itself, which may not be the actual * active session (i.e. VT changes). */ Session * seat_get_expected_active_session (Seat *seat) { g_return_val_if_fail (seat != NULL, NULL); return seat->priv->active_session; } /** * Sets the active session which lightdm expects to be active. * * This function is different from seat_set_active_session() in that the * later performs an actual session activation, whereas this function just * updates the active session after the session has been activated by some * means external to lightdm (i.e. VT changes). */ void seat_set_externally_activated_session (Seat *seat, Session *session) { g_return_if_fail (seat != NULL); g_clear_object (&seat->priv->active_session); seat->priv->active_session = g_object_ref (session); } Session * seat_find_session_by_login1_id (Seat *seat, const gchar *login1_session_id) { GList *session_link; for (session_link = seat->priv->sessions; session_link; session_link = session_link->next) { Session *session = session_link->data; if (g_strcmp0 (login1_session_id, session_get_login1_session_id (session)) == 0) return session; } return NULL; } gboolean seat_get_can_switch (Seat *seat) { g_return_val_if_fail (seat != NULL, FALSE); return seat_get_boolean_property (seat, "allow-user-switching") && seat->priv->supports_multi_session; } gboolean seat_get_allow_guest (Seat *seat) { g_return_val_if_fail (seat != NULL, FALSE); return seat_get_boolean_property (seat, "allow-guest") && guest_account_is_installed (); } static gboolean run_script (Seat *seat, DisplayServer *display_server, const gchar *script_name, User *user) { Process *script; gboolean result = FALSE; script = process_new (NULL, NULL); process_set_command (script, script_name); /* Set POSIX variables */ process_set_clear_environment (script, TRUE); process_set_env (script, "SHELL", "/bin/sh"); /* Variables required for regression tests */ if (g_getenv ("LIGHTDM_TEST_ROOT")) { process_set_env (script, "LIGHTDM_TEST_ROOT", g_getenv ("LIGHTDM_TEST_ROOT")); process_set_env (script, "LD_PRELOAD", g_getenv ("LD_PRELOAD")); process_set_env (script, "LD_LIBRARY_PATH", g_getenv ("LD_LIBRARY_PATH")); process_set_env (script, "PATH", g_getenv ("PATH")); } else process_set_env (script, "PATH", "/usr/local/bin:/usr/bin:/bin"); if (user) { process_set_env (script, "USER", user_get_name (user)); process_set_env (script, "LOGNAME", user_get_name (user)); process_set_env (script, "HOME", user_get_home_directory (user)); } else process_set_env (script, "HOME", "/"); SEAT_GET_CLASS (seat)->run_script (seat, display_server, script); if (process_start (script, TRUE)) { int exit_status; exit_status = process_get_exit_status (script); if (WIFEXITED (exit_status)) { l_debug (seat, "Exit status of %s: %d", script_name, WEXITSTATUS (exit_status)); result = WEXITSTATUS (exit_status) == EXIT_SUCCESS; } } g_object_unref (script); return result; } static void seat_real_run_script (Seat *seat, DisplayServer *display_server, Process *process) { } static void emit_upstart_signal (const gchar *signal) { g_return_if_fail (signal != NULL); g_return_if_fail (signal[0] != 0); const gchar* argv[] = {"initctl", "-q", "emit", signal, "DISPLAY_MANAGER=lightdm", NULL}; if (getuid () != 0) return; /* OK if it fails, probably not installed or not running upstart */ g_spawn_async (NULL, argv, NULL, G_SPAWN_SEARCH_PATH | G_SPAWN_STDERR_TO_DEV_NULL, NULL, NULL, NULL, NULL); } static void check_stopped (Seat *seat) { if (seat->priv->stopping && !seat->priv->stopped && g_list_length (seat->priv->display_servers) == 0 && g_list_length (seat->priv->sessions) == 0) { seat->priv->stopped = TRUE; l_debug (seat, "Stopped"); g_signal_emit (seat, signals[STOPPED], 0); } } static void display_server_stopped_cb (DisplayServer *display_server, Seat *seat) { const gchar *script; GList *list, *link; Session *active_session; l_debug (seat, "Display server stopped"); /* Run a script right after stopping the display server */ script = seat_get_string_property (seat, "display-stopped-script"); if (script) run_script (seat, NULL, script, NULL); g_signal_handlers_disconnect_matched (display_server, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, seat); seat->priv->display_servers = g_list_remove (seat->priv->display_servers, display_server); if (seat->priv->stopping || !seat->priv->started) { check_stopped (seat); g_object_unref (display_server); return; } /* Stop all sessions on this display server */ list = g_list_copy (seat->priv->sessions); for (link = list; link; link = link->next) g_object_ref (link->data); for (link = list; link; link = link->next) { Session *session = link->data; if (session_get_display_server (session) != display_server || session_get_is_stopping (session)) continue; /* Stop seat if this is the only display server and it failed to start a greeter */ if (IS_GREETER (session) && !session_get_is_started (session) && g_list_length (seat->priv->display_servers) == 0) { l_debug (seat, "Stopping; greeter display server failed to start"); seat_stop (seat); } l_debug (seat, "Stopping session"); session_stop (session); } g_list_free_full (list, g_object_unref); if (!seat->priv->stopping) { /* If we were the active session, switch to a greeter */ active_session = seat_get_active_session (seat); if (!active_session || session_get_display_server (active_session) == display_server) { l_debug (seat, "Active display server stopped, starting greeter"); if (!seat_switch_to_greeter (seat)) { l_debug (seat, "Stopping; failed to start a greeter"); seat_stop (seat); } } } g_object_unref (display_server); } static gboolean can_share_display_server (Seat *seat, DisplayServer *display_server) { return seat->priv->share_display_server && display_server_get_can_share (display_server); } static Greeter * find_greeter_session (Seat *seat) { GList *link; for (link = seat->priv->sessions; link; link = link->next) { Session *session = link->data; if (!session_get_is_stopping (session) && IS_GREETER (session)) return GREETER (session); } return NULL; } static Greeter * find_resettable_greeter (Seat *seat) { GList *link; for (link = seat->priv->sessions; link; link = link->next) { Session *session = link->data; if (!session_get_is_stopping (session) && IS_GREETER (session) && greeter_get_resettable (GREETER (session))) return GREETER (session); } return NULL; } static void set_greeter_hints (Seat *seat, Greeter *greeter_session) { greeter_clear_hints (greeter_session); greeter_set_hint (greeter_session, "default-session", seat_get_string_property (seat, "user-session")); greeter_set_hint (greeter_session, "hide-users", seat_get_boolean_property (seat, "greeter-hide-users") ? "true" : "false"); greeter_set_hint (greeter_session, "show-manual-login", seat_get_boolean_property (seat, "greeter-show-manual-login") ? "true" : "false"); greeter_set_hint (greeter_session, "show-remote-login", seat_get_boolean_property (seat, "greeter-show-remote-login") ? "true" : "false"); greeter_set_hint (greeter_session, "has-guest-account", seat_get_allow_guest (seat) && seat_get_boolean_property (seat, "greeter-allow-guest") ? "true" : "false"); } static void switch_to_greeter_from_failed_session (Seat *seat, Session *session) { Greeter *greeter_session; gboolean existing = FALSE; /* Switch to greeter if one open */ greeter_session = find_resettable_greeter (seat); if (greeter_session) { l_debug (seat, "Switching to existing greeter"); set_greeter_hints (seat, greeter_session); existing = TRUE; } else { greeter_session = create_greeter_session (seat); } if (session_get_is_guest (session)) greeter_set_hint (greeter_session, "select-guest", "true"); else greeter_set_hint (greeter_session, "select-user", session_get_username (session)); if (existing) { greeter_reset (greeter_session); seat_set_active_session (seat, SESSION (greeter_session)); } else { g_clear_object (&seat->priv->session_to_activate); seat->priv->session_to_activate = g_object_ref (greeter_session); if (can_share_display_server (seat, session_get_display_server (session))) session_set_display_server (SESSION (greeter_session), session_get_display_server (session)); else { DisplayServer *display_server; display_server = create_display_server (seat, session); session_set_display_server (session, display_server); if (!display_server_start (display_server)) { l_debug (seat, "Failed to start display server for greeter"); seat_stop (seat); } } start_session (seat, SESSION (greeter_session)); } /* Stop failed session */ session_stop (session); } static void start_session (Seat *seat, Session *session) { /* Use system location for greeter log file */ if (IS_GREETER (session)) { gchar *log_dir, *filename, *log_filename; gboolean backup_logs; log_dir = config_get_string (config_get_instance (), "LightDM", "log-directory"); filename = g_strdup_printf ("%s-greeter.log", display_server_get_name (session_get_display_server (session))); log_filename = g_build_filename (log_dir, filename, NULL); g_free (log_dir); g_free (filename); backup_logs = config_get_boolean (config_get_instance (), "LightDM", "backup-logs"); session_set_log_file (session, log_filename, backup_logs ? LOG_MODE_BACKUP_AND_TRUNCATE : LOG_MODE_APPEND); g_free (log_filename); } if (session_start (session)) return; if (IS_GREETER (session)) { l_debug (seat, "Failed to start greeter"); display_server_stop (session_get_display_server (session)); return; } l_debug (seat, "Failed to start session, starting greeter"); switch_to_greeter_from_failed_session (seat, session); } static void run_session (Seat *seat, Session *session) { const gchar *script; if (IS_GREETER (session)) script = seat_get_string_property (seat, "greeter-setup-script"); else script = seat_get_string_property (seat, "session-setup-script"); if (script && !run_script (seat, session_get_display_server (session), script, session_get_user (session))) { l_debug (seat, "Switching to greeter due to failed setup script"); switch_to_greeter_from_failed_session (seat, session); return; } if (!IS_GREETER (session)) { g_signal_emit (seat, signals[RUNNING_USER_SESSION], 0, session); emit_upstart_signal ("desktop-session-start"); } session_run (session); // FIXME: Wait until the session is ready if (session == seat->priv->session_to_activate) { seat_set_active_session (seat, session); g_clear_object (&seat->priv->session_to_activate); } else if (seat->priv->active_session) { /* Multiple sessions can theoretically be on the same VT (especially if using Mir). If a new session appears on an existing active VT, logind will mark it as active, while ConsoleKit will re-mark the oldest session as active. In either case, that may not be the session that we want to be active. So let's be explicit and re-activate the correct session whenever a new session starts. There's no harm to do this in seats that enforce separate VTs. */ session_activate (seat->priv->active_session); } } static Session * find_user_session (Seat *seat, const gchar *username, Session *ignore_session) { GList *link; if (!username) return NULL; for (link = seat->priv->sessions; link; link = link->next) { Session *session = link->data; if (session == ignore_session) continue; if (!session_get_is_stopping (session) && g_strcmp0 (session_get_username (session), username) == 0) return session; } return NULL; } static void greeter_active_username_changed_cb (Greeter *greeter, GParamSpec *pspec, Seat *seat) { Session *session; session = find_user_session (seat, greeter_get_active_username (greeter), seat->priv->active_session); g_clear_object (&seat->priv->next_session); seat->priv->next_session = session ? g_object_ref (session) : NULL; SEAT_GET_CLASS (seat)->set_next_session (seat, session); } static void session_authentication_complete_cb (Session *session, Seat *seat) { if (session_get_is_authenticated (session)) { Session *s; s = find_user_session (seat, session_get_username (session), session); if (s) { l_debug (seat, "Session authenticated, switching to existing user session"); seat_set_active_session (seat, s); session_stop (session); } else { l_debug (seat, "Session authenticated, running command"); run_session (seat, session); } } else if (!IS_GREETER (session)) { l_debug (seat, "Switching to greeter due to failed authentication"); switch_to_greeter_from_failed_session (seat, session); } else { l_debug (seat, "Stopping session that failed authentication"); session_stop (session); } } static void session_stopped_cb (Session *session, Seat *seat) { DisplayServer *display_server; l_debug (seat, "Session stopped"); g_signal_handlers_disconnect_matched (session, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, seat); seat->priv->sessions = g_list_remove (seat->priv->sessions, session); if (session == seat->priv->active_session) g_clear_object (&seat->priv->active_session); if (session == seat->priv->next_session) g_clear_object (&seat->priv->next_session); if (session == seat->priv->session_to_activate) g_clear_object (&seat->priv->session_to_activate); display_server = session_get_display_server (session); if (!display_server) { g_object_unref (session); return; } /* Cleanup */ if (!IS_GREETER (session)) { const gchar *script; script = seat_get_string_property (seat, "session-cleanup-script"); if (script) run_script (seat, display_server, script, session_get_user (session)); } /* We were waiting for this session, but it didn't start :( */ // FIXME: Start a greeter on this? if (session == seat->priv->session_to_activate) g_clear_object (&seat->priv->session_to_activate); if (seat->priv->stopping) { check_stopped (seat); g_object_unref (session); return; } /* If there is a pending replacement greeter, start it */ if (IS_GREETER (session) && seat->priv->replacement_greeter) { Greeter *replacement_greeter = seat->priv->replacement_greeter; seat->priv->replacement_greeter = NULL; if (session_get_is_authenticated (SESSION (replacement_greeter))) { l_debug (seat, "Greeter stopped, running session"); run_session (seat, SESSION (replacement_greeter)); } else { l_debug (seat, "Greeter stopped, starting session authentication"); start_session (seat, SESSION (replacement_greeter)); } g_object_unref (replacement_greeter); } /* If this is the greeter session then re-use this display server */ else if (IS_GREETER (session) && can_share_display_server (seat, display_server) && greeter_get_start_session (GREETER (session))) { GList *link; for (link = seat->priv->sessions; link; link = link->next) { Session *s = link->data; /* Skip this session and sessions on other display servers */ if (s == session || session_get_display_server (s) != display_server || session_get_is_stopping (s)) continue; if (session_get_is_authenticated (s)) { l_debug (seat, "Greeter stopped, running session"); run_session (seat, s); } else { l_debug (seat, "Greeter stopped, starting session authentication"); start_session (seat, s); } break; } } /* If this is the greeter and nothing else is running then stop the seat */ else if (IS_GREETER (session) && !greeter_get_start_session (GREETER (session)) && g_list_length (seat->priv->display_servers) == 1 && g_list_nth_data (seat->priv->display_servers, 0) == display_server) { l_debug (seat, "Stopping; failed to start a greeter"); seat_stop (seat); } /* If we were the active session, switch to a greeter */ else if (!IS_GREETER (session) && session == seat_get_active_session (seat)) { l_debug (seat, "Active session stopped, starting greeter"); if (!seat_switch_to_greeter (seat)) { l_debug (seat, "Stopping; failed to start a greeter"); seat_stop (seat); } } /* Stop the display server if no-longer required */ if (display_server && !display_server_get_is_stopping (display_server)) { GList *link; int n_sessions = 0; for (link = seat->priv->sessions; link; link = link->next) { Session *s = link->data; if (s == session) continue; if (session_get_display_server (s) == display_server) n_sessions++; } if (n_sessions == 0) { l_debug (seat, "Stopping display server, no sessions require it"); display_server_stop (display_server); } } g_signal_emit (seat, signals[SESSION_REMOVED], 0, session); g_object_unref (session); } static void set_session_env (Session *session) { /* Connect using the session bus */ if (getuid () != 0) { if (g_getenv ("DBUS_SESSION_BUS_ADDRESS")) session_set_env (session, "DBUS_SESSION_BUS_ADDRESS", g_getenv ("DBUS_SESSION_BUS_ADDRESS")); session_set_env (session, "LDM_BUS", "SESSION"); if (g_getenv ("LD_PRELOAD")) session_set_env (session, "LD_PRELOAD", g_getenv ("LD_PRELOAD")); if (g_getenv ("LD_LIBRARY_PATH")) session_set_env (session, "LD_LIBRARY_PATH", g_getenv ("LD_LIBRARY_PATH")); if (g_getenv ("PATH")) session_set_env (session, "PATH", g_getenv ("PATH")); } /* Variables required for regression tests */ if (g_getenv ("LIGHTDM_TEST_ROOT")) { session_set_env (session, "LIGHTDM_TEST_ROOT", g_getenv ("LIGHTDM_TEST_ROOT")); session_set_env (session, "DBUS_SYSTEM_BUS_ADDRESS", g_getenv ("DBUS_SYSTEM_BUS_ADDRESS")); session_set_env (session, "DBUS_SESSION_BUS_ADDRESS", g_getenv ("DBUS_SESSION_BUS_ADDRESS")); session_set_env (session, "LD_PRELOAD", g_getenv ("LD_PRELOAD")); session_set_env (session, "LD_LIBRARY_PATH", g_getenv ("LD_LIBRARY_PATH")); session_set_env (session, "GI_TYPELIB_PATH", g_getenv ("GI_TYPELIB_PATH")); } } static Session * create_session (Seat *seat, gboolean autostart) { Session *session; session = SEAT_GET_CLASS (seat)->create_session (seat); seat->priv->sessions = g_list_append (seat->priv->sessions, session); if (autostart) g_signal_connect (session, SESSION_SIGNAL_AUTHENTICATION_COMPLETE, G_CALLBACK (session_authentication_complete_cb), seat); g_signal_connect (session, SESSION_SIGNAL_STOPPED, G_CALLBACK (session_stopped_cb), seat); set_session_env (session); g_signal_emit (seat, signals[SESSION_ADDED], 0, session); return session; } static gchar ** get_session_argv (Seat *seat, SessionConfig *session_config, const gchar *session_wrapper) { gboolean result; int argc; gchar **argv, *path; GError *error = NULL; /* If configured, run sessions through a wrapper */ if (session_wrapper) { argv = g_malloc (sizeof (gchar *) * 3); path = g_find_program_in_path (session_wrapper); argv[0] = path ? path : g_strdup (session_wrapper); argv[1] = g_strdup (session_config_get_command (session_config)); argv[2] = NULL; return argv; } /* Split command into an array listing and make command absolute */ result = g_shell_parse_argv (session_config_get_command (session_config), &argc, &argv, &error); if (error) l_debug (seat, "Invalid session command '%s': %s", session_config_get_command (session_config), error->message); g_clear_error (&error); if (!result) return NULL; path = g_find_program_in_path (argv[0]); if (path) { g_free (argv[0]); argv[0] = path; } return argv; } static SessionConfig * find_session_config (Seat *seat, const gchar *sessions_dir, const gchar *session_name) { gchar **dirs; SessionConfig *session_config = NULL; int i; GError *error = NULL; g_return_val_if_fail (sessions_dir != NULL, NULL); g_return_val_if_fail (session_name != NULL, NULL); dirs = g_strsplit (sessions_dir, ":", -1); for (i = 0; dirs[i]; i++) { gchar *filename, *path; const gchar *default_session_type = "x"; if (strcmp (dirs[i], WAYLAND_SESSIONS_DIR) == 0) default_session_type = "wayland"; filename = g_strdup_printf ("%s.desktop", session_name); path = g_build_filename (dirs[i], filename, NULL); g_free (filename); session_config = session_config_new_from_file (path, default_session_type, &error); g_free (path); if (session_config) break; if (dirs[i+1] == NULL) l_debug (seat, "Failed to find session configuration %s", session_name); g_clear_error (&error); } g_strfreev (dirs); return session_config; } static void configure_session (Session *session, SessionConfig *config, const gchar *session_name, const gchar *language) { gchar **desktop_names; session_set_config (session, config); session_set_env (session, "XDG_SESSION_DESKTOP", session_name); session_set_env (session, "DESKTOP_SESSION", session_name); session_set_env (session, "GDMSESSION", session_name); desktop_names = session_config_get_desktop_names (config); if (desktop_names) { gchar *value; value = g_strjoinv (":", desktop_names); session_set_env (session, "XDG_CURRENT_DESKTOP", value); g_free (value); } if (language && language[0] != '\0') { session_set_env (session, "LANG", language); session_set_env (session, "GDM_LANG", language); } } static Session * create_user_session (Seat *seat, const gchar *username, gboolean autostart) { User *user; gchar *sessions_dir; const gchar *session_name, *language; SessionConfig *session_config; Session *session = NULL; l_debug (seat, "Creating user session"); /* Load user preferences */ user = accounts_get_user_by_name (username); if (!user) { l_debug (seat, "Can't login unknown user '%s'", username); return NULL; } session_name = user_get_xsession (user); language = user_get_language (user); /* Override session for autologin if configured */ if (autostart) { const gchar *autologin_session_name = seat_get_string_property (seat, "autologin-session"); if (autologin_session_name) session_name = autologin_session_name; } if (!session_name) session_name = seat_get_string_property (seat, "user-session"); sessions_dir = config_get_string (config_get_instance (), "LightDM", "sessions-directory"); session_config = find_session_config (seat, sessions_dir, session_name); g_free (sessions_dir); if (session_config) { gchar **argv; session = create_session (seat, autostart); configure_session (session, session_config, session_name, language); session_set_username (session, username); session_set_do_authenticate (session, TRUE); argv = get_session_argv (seat, session_config, seat_get_string_property (seat, "session-wrapper")); session_set_argv (session, argv); g_strfreev (argv); g_object_unref (session_config); } else l_debug (seat, "Can't find session '%s'", session_name); g_object_unref (user); return session; } static void prepend_argv (gchar ***argv, const gchar *value) { gchar **old_argv, **new_argv; gint i; old_argv = *argv; new_argv = g_malloc (sizeof (gchar *) * (g_strv_length (*argv) + 2)); new_argv[0] = g_strdup (value); for (i = 0; old_argv[i]; i++) new_argv[i + 1] = old_argv[i]; new_argv[i + 1] = NULL; g_free (*argv); *argv = new_argv; } static Session * create_guest_session (Seat *seat, const gchar *session_name) { const gchar *guest_wrapper; gchar *sessions_dir, **argv; SessionConfig *session_config; Session *session; if (!session_name) session_name = seat_get_string_property (seat, "guest-session"); if (!session_name) session_name = seat_get_string_property (seat, "user-session"); sessions_dir = config_get_string (config_get_instance (), "LightDM", "sessions-directory"); session_config = find_session_config (seat, sessions_dir, session_name); g_free (sessions_dir); if (!session_config) { l_debug (seat, "Can't find session '%s'", session_name); return NULL; } session = create_session (seat, TRUE); configure_session (session, session_config, session_name, NULL); session_set_do_authenticate (session, TRUE); session_set_is_guest (session, TRUE); argv = get_session_argv (seat, session_config, seat_get_string_property (seat, "session-wrapper")); guest_wrapper = seat_get_string_property (seat, "guest-wrapper"); if (guest_wrapper) { gchar *path; path = g_find_program_in_path (guest_wrapper); prepend_argv (&argv, path ? path : guest_wrapper); g_free (path); } session_set_argv (session, argv); g_strfreev (argv); g_object_unref (session_config); return session; } static Session * greeter_create_session_cb (Greeter *greeter, Seat *seat) { Session *session; session = create_session (seat, FALSE); session_set_config (session, session_get_config (SESSION (greeter))); session_set_display_server (session, session_get_display_server (SESSION (greeter))); return g_object_ref (session); } static gboolean greeter_start_session_cb (Greeter *greeter, SessionType type, const gchar *session_name, Seat *seat) { Session *session, *existing_session; const gchar *username; DisplayServer *display_server; /* Get the session to use */ if (greeter_get_guest_authenticated (greeter)) { session = create_guest_session (seat, session_name); if (!session) return FALSE; session_set_pam_service (session, seat_get_string_property (seat, "pam-autologin-service")); } else { const gchar *language = NULL; SessionConfig *session_config; User *user; gchar *sessions_dir = NULL; gchar **argv; session = greeter_get_authentication_session (greeter); /* Get session command to run */ switch (type) { case SESSION_TYPE_LOCAL: sessions_dir = config_get_string (config_get_instance (), "LightDM", "sessions-directory"); break; case SESSION_TYPE_REMOTE: sessions_dir = config_get_string (config_get_instance (), "LightDM", "remote-sessions-directory"); break; } /* Load user preferences */ user = session_get_user (session); if (user) { if (!session_name) session_name = user_get_xsession (user); language = user_get_language (user); } if (!session_name) session_name = seat_get_string_property (seat, "user-session"); if (user) user_set_xsession (session_get_user (session), session_name); session_config = find_session_config (seat, sessions_dir, session_name); g_free (sessions_dir); if (!session_config) { l_debug (seat, "Can't find session '%s'", session_name); return FALSE; } configure_session (session, session_config, session_name, language); argv = get_session_argv (seat, session_config, seat_get_string_property (seat, "session-wrapper")); session_set_argv (session, argv); g_strfreev (argv); g_object_unref (session_config); } /* Switch to this session when it is ready */ g_clear_object (&seat->priv->session_to_activate); seat->priv->session_to_activate = g_object_ref (session); /* Return to existing session if it is open */ username = session_get_username (session); existing_session = find_user_session (seat, username, NULL); if (existing_session && session != existing_session) { l_debug (seat, "Returning to existing user session %s", username); session_stop (session); session_unlock (existing_session); seat_set_active_session (seat, existing_session); return TRUE; } /* If can re-use the display server, stop the greeter first */ display_server = session_get_display_server (SESSION (greeter)); if (!greeter_get_resettable (greeter) && can_share_display_server (seat, display_server) && strcmp (display_server_get_session_type (display_server), session_get_session_type (session)) == 0) { l_debug (seat, "Stopping greeter; display server will be re-used for user session"); /* Run on the same display server after the greeter has stopped */ session_set_display_server (session, display_server); /* Stop the greeter */ session_stop (SESSION (greeter)); return TRUE; } /* Otherwise start a new display server for this session */ else { display_server = create_display_server (seat, session); session_set_display_server (session, display_server); if (!display_server_start (display_server)) { l_debug (seat, "Failed to start display server for new session"); return FALSE; } return TRUE; } } static Greeter * create_greeter_session (Seat *seat) { gchar *sessions_dir, **argv; SessionConfig *session_config; Greeter *greeter_session; const gchar *greeter_wrapper; const gchar *autologin_username; int autologin_timeout; gboolean autologin_guest; l_debug (seat, "Creating greeter session"); sessions_dir = config_get_string (config_get_instance (), "LightDM", "greeters-directory"); session_config = find_session_config (seat, sessions_dir, seat_get_string_property (seat, "greeter-session")); g_free (sessions_dir); if (!session_config) return NULL; argv = get_session_argv (seat, session_config, NULL); greeter_wrapper = seat_get_string_property (seat, "greeter-wrapper"); if (greeter_wrapper) { gchar *path; path = g_find_program_in_path (greeter_wrapper); prepend_argv (&argv, path ? path : greeter_wrapper); g_free (path); } greeter_session = SEAT_GET_CLASS (seat)->create_greeter_session (seat); session_set_config (SESSION (greeter_session), session_config); seat->priv->sessions = g_list_append (seat->priv->sessions, SESSION (greeter_session)); g_signal_connect (greeter_session, GREETER_SIGNAL_ACTIVE_USERNAME_CHANGED, G_CALLBACK (greeter_active_username_changed_cb), seat); g_signal_connect (greeter_session, SESSION_SIGNAL_AUTHENTICATION_COMPLETE, G_CALLBACK (session_authentication_complete_cb), seat); g_signal_connect (greeter_session, SESSION_SIGNAL_STOPPED, G_CALLBACK (session_stopped_cb), seat); set_session_env (SESSION (greeter_session)); session_set_env (SESSION (greeter_session), "XDG_SESSION_CLASS", "greeter"); session_set_pam_service (SESSION (greeter_session), seat_get_string_property (seat, "pam-greeter-service")); if (getuid () == 0) { gchar *greeter_user; greeter_user = config_get_string (config_get_instance (), "LightDM", "greeter-user"); session_set_username (SESSION (greeter_session), greeter_user); g_free (greeter_user); } else { /* In test mode run the greeter as ourself */ session_set_username (SESSION (greeter_session), user_get_name (accounts_get_current_user ())); } session_set_argv (SESSION (greeter_session), argv); g_strfreev (argv); greeter_set_pam_services (greeter_session, seat_get_string_property (seat, "pam-service"), seat_get_string_property (seat, "pam-autologin-service")); g_signal_connect (greeter_session, GREETER_SIGNAL_CREATE_SESSION, G_CALLBACK (greeter_create_session_cb), seat); g_signal_connect (greeter_session, GREETER_SIGNAL_START_SESSION, G_CALLBACK (greeter_start_session_cb), seat); /* Set hints to greeter */ greeter_set_allow_guest (greeter_session, seat_get_allow_guest (seat)); set_greeter_hints (seat, greeter_session); /* Configure for automatic login */ autologin_username = seat_get_string_property (seat, "autologin-user"); if (g_strcmp0 (autologin_username, "") == 0) autologin_username = NULL; autologin_timeout = seat_get_integer_property (seat, "autologin-user-timeout"); autologin_guest = seat_get_boolean_property (seat, "autologin-guest"); if (autologin_timeout > 0) { gchar *value; value = g_strdup_printf ("%d", autologin_timeout); greeter_set_hint (greeter_session, "autologin-timeout", value); g_free (value); if (autologin_username) greeter_set_hint (greeter_session, "autologin-user", autologin_username); if (autologin_guest) greeter_set_hint (greeter_session, "autologin-guest", "true"); } g_object_unref (session_config); return greeter_session; } static Session * find_session_for_display_server (Seat *seat, DisplayServer *display_server) { GList *link; for (link = seat->priv->sessions; link; link = link->next) { Session *session = link->data; if (session_get_display_server (session) == display_server && !session_get_is_stopping (session)) return session; } return NULL; } static void display_server_ready_cb (DisplayServer *display_server, Seat *seat) { const gchar *script; Session *session; /* Run setup script */ script = seat_get_string_property (seat, "display-setup-script"); if (script && !run_script (seat, display_server, script, NULL)) { l_debug (seat, "Stopping display server due to failed setup script"); display_server_stop (display_server); return; } emit_upstart_signal ("login-session-start"); /* Start the session waiting for this display server */ session = find_session_for_display_server (seat, display_server); if (session) { if (session_get_is_authenticated (session)) { l_debug (seat, "Display server ready, running session"); run_session (seat, session); } else { l_debug (seat, "Display server ready, starting session authentication"); start_session (seat, session); } } else { l_debug (seat, "Stopping not required display server"); display_server_stop (display_server); } } static DisplayServer * create_display_server (Seat *seat, Session *session) { DisplayServer *display_server; l_debug (seat, "Creating display server of type %s", session_get_session_type (session)); display_server = SEAT_GET_CLASS (seat)->create_display_server (seat, session); if (!display_server) return NULL; seat->priv->display_servers = g_list_append (seat->priv->display_servers, display_server); g_signal_connect (display_server, DISPLAY_SERVER_SIGNAL_READY, G_CALLBACK (display_server_ready_cb), seat); g_signal_connect (display_server, DISPLAY_SERVER_SIGNAL_STOPPED, G_CALLBACK (display_server_stopped_cb), seat); return display_server; } gboolean seat_switch_to_greeter (Seat *seat) { Greeter *greeter_session; DisplayServer *display_server; g_return_val_if_fail (seat != NULL, FALSE); if (!seat_get_can_switch (seat)) return FALSE; /* Switch to greeter if one open */ greeter_session = find_greeter_session (seat); if (greeter_session) { l_debug (seat, "Switching to existing greeter"); seat_set_active_session (seat, SESSION (greeter_session)); return TRUE; } greeter_session = create_greeter_session (seat); if (!greeter_session) return FALSE; g_clear_object (&seat->priv->session_to_activate); seat->priv->session_to_activate = g_object_ref (greeter_session); display_server = create_display_server (seat, SESSION (greeter_session)); session_set_display_server (SESSION (greeter_session), display_server); return display_server_start (display_server); } static void switch_authentication_complete_cb (Session *session, Seat *seat) { Greeter *greeter_session; DisplayServer *display_server; gboolean existing = FALSE; /* If authenticated, then unlock existing session or start new one */ if (session_get_is_authenticated (session)) { Session *s; s = find_user_session (seat, session_get_username (session), session); if (s) { l_debug (seat, "Session authenticated, switching to existing user session"); session_unlock (s); seat_set_active_session (seat, s); session_stop (session); } else { l_debug (seat, "Session authenticated, starting display server"); g_clear_object (&seat->priv->session_to_activate); seat->priv->session_to_activate = g_object_ref (session); display_server = create_display_server (seat, session); session_set_display_server (session, display_server); display_server_start (display_server); } return; } session_stop (session); /* See if we already have a greeter up and reuse it if so */ greeter_session = find_resettable_greeter (seat); if (greeter_session) { l_debug (seat, "Switching to existing greeter to authenticate session"); set_greeter_hints (seat, greeter_session); existing = TRUE; } else { l_debug (seat, "Starting greeter to authenticate session"); greeter_session = create_greeter_session (seat); } if (session_get_is_guest (session)) greeter_set_hint (greeter_session, "select-guest", "true"); else greeter_set_hint (greeter_session, "select-user", session_get_username (session)); if (existing) { greeter_reset (greeter_session); seat_set_active_session (seat, SESSION (greeter_session)); } else { g_clear_object (&seat->priv->session_to_activate); seat->priv->session_to_activate = g_object_ref (greeter_session); display_server = create_display_server (seat, SESSION (greeter_session)); session_set_display_server (SESSION (greeter_session), display_server); display_server_start (display_server); } } gboolean seat_switch_to_user (Seat *seat, const gchar *username, const gchar *session_name) { Session *session; g_return_val_if_fail (seat != NULL, FALSE); g_return_val_if_fail (username != NULL, FALSE); if (!seat_get_can_switch (seat)) return FALSE; /* If we're already on this session, then ignore */ session = find_user_session (seat, username, NULL); if (session && session == seat->priv->active_session) return TRUE; l_debug (seat, "Switching to user %s", username); /* Attempt to authenticate them */ session = create_user_session (seat, username, FALSE); g_signal_connect (session, SESSION_SIGNAL_AUTHENTICATION_COMPLETE, G_CALLBACK (switch_authentication_complete_cb), seat); session_set_pam_service (session, seat_get_string_property (seat, "pam-service")); return session_start (session); } static Session * find_guest_session (Seat *seat) { GList *link; for (link = seat->priv->sessions; link; link = link->next) { Session *session = link->data; if (!session_get_is_stopping (session) && session_get_is_guest (session)) return session; } return NULL; } gboolean seat_switch_to_guest (Seat *seat, const gchar *session_name) { Session *session; DisplayServer *display_server; g_return_val_if_fail (seat != NULL, FALSE); if (!seat_get_can_switch (seat) || !seat_get_allow_guest (seat)) return FALSE; /* Switch to session if one open */ session = find_guest_session (seat); if (session) { l_debug (seat, "Switching to existing guest account %s", session_get_username (session)); seat_set_active_session (seat, session); return TRUE; } session = create_guest_session (seat, session_name); if (!session) return FALSE; display_server = create_display_server (seat, session); g_clear_object (&seat->priv->session_to_activate); seat->priv->session_to_activate = g_object_ref (session); session_set_pam_service (session, seat_get_string_property (seat, "pam-autologin-service")); session_set_display_server (session, display_server); return display_server_start (display_server); } gboolean seat_lock (Seat *seat, const gchar *username) { Greeter *greeter_session; DisplayServer *display_server = NULL; gboolean reset_existing = FALSE; gboolean reuse_xserver = FALSE; g_return_val_if_fail (seat != NULL, FALSE); if (!seat_get_can_switch (seat)) return FALSE; // FIXME: If already locked then don't bother... l_debug (seat, "Locking"); /* Switch to greeter we can reuse */ greeter_session = find_resettable_greeter (seat); if (greeter_session) { l_debug (seat, "Switching to existing greeter"); set_greeter_hints (seat, greeter_session); reset_existing = TRUE; } else { /* If the existing greeter can't be reused, stop it and reuse its display server */ greeter_session = find_greeter_session (seat); if (greeter_session) { display_server = session_get_display_server (SESSION (greeter_session)); if (!session_get_is_stopping (SESSION (greeter_session))) { l_debug (seat, "Stopping session"); session_stop (SESSION (greeter_session)); } reuse_xserver = TRUE; } greeter_session = create_greeter_session (seat); if (!greeter_session) return FALSE; } greeter_set_hint (greeter_session, "lock-screen", "true"); if (username) greeter_set_hint (greeter_session, "select-user", username); if (reset_existing) { greeter_reset (greeter_session); seat_set_active_session (seat, SESSION (greeter_session)); return TRUE; } else { if (!reuse_xserver) display_server = create_display_server (seat, SESSION (greeter_session)); session_set_display_server (SESSION (greeter_session), display_server); g_clear_object (&seat->priv->session_to_activate); seat->priv->session_to_activate = g_object_ref (greeter_session); if (reuse_xserver) { g_clear_object (&seat->priv->replacement_greeter); seat->priv->replacement_greeter = g_object_ref (greeter_session); return TRUE; } else return display_server_start (display_server); } } void seat_stop (Seat *seat) { g_return_if_fail (seat != NULL); if (seat->priv->stopping) return; l_debug (seat, "Stopping"); seat->priv->stopping = TRUE; SEAT_GET_CLASS (seat)->stop (seat); } gboolean seat_get_is_stopping (Seat *seat) { g_return_val_if_fail (seat != NULL, FALSE); return seat->priv->stopping; } static void seat_real_setup (Seat *seat) { } static gboolean seat_real_start (Seat *seat) { const gchar *autologin_username; int autologin_timeout; gboolean autologin_guest; gboolean autologin_in_background; Session *session = NULL, *background_session = NULL; /* Get autologin settings */ autologin_username = seat_get_string_property (seat, "autologin-user"); if (g_strcmp0 (autologin_username, "") == 0) autologin_username = NULL; autologin_timeout = seat_get_integer_property (seat, "autologin-user-timeout"); autologin_guest = seat_get_boolean_property (seat, "autologin-guest"); autologin_in_background = seat_get_boolean_property (seat, "autologin-in-background"); /* Autologin if configured */ if (autologin_timeout == 0 || autologin_in_background) { if (autologin_guest) session = create_guest_session (seat, NULL); else if (autologin_username != NULL) session = create_user_session (seat, autologin_username, TRUE); if (session) session_set_pam_service (session, seat_get_string_property (seat, "pam-autologin-service")); /* Load in background if required */ if (autologin_in_background && session) { background_session = session; session = NULL; } if (session) { DisplayServer *display_server; g_clear_object (&seat->priv->session_to_activate); seat->priv->session_to_activate = g_object_ref (session); display_server = create_display_server (seat, session); session_set_display_server (session, display_server); if (!display_server || !display_server_start (display_server)) { l_debug (seat, "Can't create display server for automatic login"); session_stop (session); if (display_server) display_server_stop (display_server); session = NULL; } } } /* Fallback to a greeter */ if (!session) { Greeter *greeter_session; DisplayServer *display_server; greeter_session = create_greeter_session (seat); if (!greeter_session) { l_debug (seat, "Failed to create greeter session"); return FALSE; } g_clear_object (&seat->priv->session_to_activate); seat->priv->session_to_activate = g_object_ref (greeter_session); session = SESSION (greeter_session); display_server = create_display_server (seat, session); session_set_display_server (session, display_server); if (!display_server || !display_server_start (display_server)) { l_debug (seat, "Can't create display server for greeter"); session_stop (session); if (display_server) display_server_stop (display_server); session = NULL; } } /* Fail if can't start a session */ if (!session) { seat_stop (seat); return FALSE; } /* Start background session */ if (background_session) { DisplayServer *background_display_server; background_display_server = create_display_server (seat, background_session); session_set_display_server (background_session, background_display_server); if (!display_server_start (background_display_server)) l_warning (seat, "Failed to start display server for background session"); } return TRUE; } static Greeter * seat_real_create_greeter_session (Seat *seat) { return greeter_new (); } static Session * seat_real_create_session (Seat *seat) { return session_new (); } static void seat_real_set_active_session (Seat *seat, Session *session) { } static void seat_real_set_next_session (Seat *seat, Session *session) { } static Session * seat_real_get_active_session (Seat *seat) { return NULL; } static void seat_real_stop (Seat *seat) { GList *list, *link; check_stopped (seat); if (seat->priv->stopped) return; /* Stop all the display servers and sessions on the seat. Copy the list as * it might be modified if a display server / session stops during this loop */ list = g_list_copy (seat->priv->display_servers); for (link = list; link; link = link->next) g_object_ref (link->data); for (link = list; link; link = link->next) { DisplayServer *display_server = link->data; if (!display_server_get_is_stopping (display_server)) { l_debug (seat, "Stopping display server"); display_server_stop (display_server); } } g_list_free_full (list, g_object_unref); list = g_list_copy (seat->priv->sessions); for (link = list; link; link = link->next) g_object_ref (link->data); for (link = list; link; link = link->next) { Session *session = link->data; if (!session_get_is_stopping (session)) { l_debug (seat, "Stopping session"); session_stop (session); } } g_list_free_full (list, g_object_unref); } static void seat_init (Seat *seat) { seat->priv = G_TYPE_INSTANCE_GET_PRIVATE (seat, SEAT_TYPE, SeatPrivate); seat->priv->properties = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); seat->priv->share_display_server = TRUE; } static void seat_finalize (GObject *object) { Seat *self = SEAT (object); GList *link; g_free (self->priv->name); g_hash_table_unref (self->priv->properties); for (link = self->priv->display_servers; link; link = link->next) { DisplayServer *display_server = link->data; g_signal_handlers_disconnect_matched (display_server, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, self); } g_list_free_full (self->priv->display_servers, g_object_unref); for (link = self->priv->sessions; link; link = link->next) { Session *session = link->data; g_signal_handlers_disconnect_matched (session, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, self); } g_list_free_full (self->priv->sessions, g_object_unref); g_clear_object (&self->priv->active_session); g_clear_object (&self->priv->next_session); g_clear_object (&self->priv->session_to_activate); g_clear_object (&self->priv->replacement_greeter); G_OBJECT_CLASS (seat_parent_class)->finalize (object); } static void seat_class_init (SeatClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); klass->setup = seat_real_setup; klass->start = seat_real_start; klass->create_greeter_session = seat_real_create_greeter_session; klass->create_session = seat_real_create_session; klass->set_active_session = seat_real_set_active_session; klass->get_active_session = seat_real_get_active_session; klass->set_next_session = seat_real_set_next_session; klass->run_script = seat_real_run_script; klass->stop = seat_real_stop; object_class->finalize = seat_finalize; g_type_class_add_private (klass, sizeof (SeatPrivate)); signals[SESSION_ADDED] = g_signal_new (SEAT_SIGNAL_SESSION_ADDED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SeatClass, session_added), NULL, NULL, NULL, G_TYPE_NONE, 1, SESSION_TYPE); signals[RUNNING_USER_SESSION] = g_signal_new (SEAT_SIGNAL_RUNNING_USER_SESSION, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SeatClass, running_user_session), NULL, NULL, NULL, G_TYPE_NONE, 1, SESSION_TYPE); signals[SESSION_REMOVED] = g_signal_new (SEAT_SIGNAL_SESSION_REMOVED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SeatClass, session_removed), NULL, NULL, NULL, G_TYPE_NONE, 1, SESSION_TYPE); signals[STOPPED] = g_signal_new (SEAT_SIGNAL_STOPPED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SeatClass, stopped), NULL, NULL, NULL, G_TYPE_NONE, 0); } static gint seat_real_logprefix (Logger *self, gchar *buf, gulong buflen) { return g_snprintf (buf, buflen, "Seat %s: ", SEAT (self)->priv->name); } static void seat_logger_iface_init (LoggerInterface *iface) { iface->logprefix = &seat_real_logprefix; } lightdm-1.18.1/src/process.c0000664000000000000000000003073212700600465012540 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include #include #include #include #include #include "log-file.h" #include "process.h" enum { GOT_DATA, GOT_SIGNAL, STOPPED, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; struct ProcessPrivate { /* Function to run inside subprocess before exec */ ProcessRunFunc run_func; gpointer run_func_data; /* File to log to */ gchar *log_file; gboolean log_stdout; LogMode log_mode; /* Command to run */ gchar *command; /* TRUE to clear the environment in this process */ gboolean clear_environment; /* Environment variables to set */ GHashTable *env; /* Process ID */ GPid pid; /* Exit status of process */ int exit_status; /* TRUE if stopping this process (waiting for child process to stop) */ gboolean stopping; /* Timeout waiting for process to quit */ guint quit_timeout; /* Watch on process */ guint watch; }; G_DEFINE_TYPE (Process, process, G_TYPE_OBJECT); static Process *current_process = NULL; static GHashTable *processes = NULL; static pid_t signal_pid; static int signal_pipe[2]; Process * process_get_current (void) { if (current_process) return current_process; current_process = process_new (NULL, NULL); current_process->priv->pid = getpid (); return current_process; } Process * process_new (ProcessRunFunc run_func, gpointer run_func_data) { Process *process = g_object_new (PROCESS_TYPE, NULL); process->priv->run_func = run_func; process->priv->run_func_data = run_func_data; process->priv->log_mode = LOG_MODE_INVALID; return process; } void process_set_log_file (Process *process, const gchar *path, gboolean log_stdout, LogMode log_mode) { g_return_if_fail (process != NULL); g_free (process->priv->log_file); process->priv->log_file = g_strdup (path); process->priv->log_stdout = log_stdout; process->priv->log_mode = log_mode; } void process_set_clear_environment (Process *process, gboolean clear_environment) { g_return_if_fail (process != NULL); process->priv->clear_environment = clear_environment; } gboolean process_get_clear_environment (Process *process) { g_return_val_if_fail (process != NULL, FALSE); return process->priv->clear_environment; } void process_set_env (Process *process, const gchar *name, const gchar *value) { g_return_if_fail (process != NULL); g_return_if_fail (name != NULL); g_hash_table_insert (process->priv->env, g_strdup (name), g_strdup (value)); } const gchar * process_get_env (Process *process, const gchar *name) { g_return_val_if_fail (process != NULL, NULL); g_return_val_if_fail (name != NULL, NULL); return g_hash_table_lookup (process->priv->env, name); } void process_set_command (Process *process, const gchar *command) { g_return_if_fail (process != NULL); g_free (process->priv->command); process->priv->command = g_strdup (command); } const gchar * process_get_command (Process *process) { g_return_val_if_fail (process != NULL, NULL); return process->priv->command; } static void process_watch_cb (GPid pid, gint status, gpointer data) { Process *process = data; process->priv->watch = 0; process->priv->exit_status = status; if (WIFEXITED (status)) g_debug ("Process %d exited with return value %d", pid, WEXITSTATUS (status)); else if (WIFSIGNALED (status)) g_debug ("Process %d terminated with signal %d", pid, WTERMSIG (status)); if (process->priv->quit_timeout) g_source_remove (process->priv->quit_timeout); process->priv->quit_timeout = 0; process->priv->pid = 0; g_hash_table_remove (processes, GINT_TO_POINTER (pid)); g_signal_emit (process, signals[STOPPED], 0); } gboolean process_start (Process *process, gboolean block) { gint argc; gchar **argv; gchar **env_keys, **env_values; guint i, env_length; GList *keys, *link; pid_t pid; int log_fd = -1; GError *error = NULL; g_return_val_if_fail (process != NULL, FALSE); g_return_val_if_fail (process->priv->command != NULL, FALSE); g_return_val_if_fail (process->priv->pid == 0, FALSE); if (!g_shell_parse_argv (process->priv->command, &argc, &argv, &error)) { g_warning ("Error parsing command %s: %s", process->priv->command, error->message); return FALSE; } if (process->priv->log_file) log_fd = log_file_open (process->priv->log_file, process->priv->log_mode); /* Work out variables to set */ env_length = g_hash_table_size (process->priv->env); env_keys = g_malloc (sizeof (gchar *) * env_length); env_values = g_malloc (sizeof (gchar *) * env_length); keys = g_hash_table_get_keys (process->priv->env); for (i = 0, link = keys; i < env_length; i++, link = link->next) { env_keys[i] = link->data; env_values[i] = g_hash_table_lookup (process->priv->env, env_keys[i]); } g_list_free (keys); pid = fork (); if (pid == 0) { /* Do custom setup */ if (process->priv->run_func) process->priv->run_func (process, process->priv->run_func_data); /* Redirect output to logfile */ if (log_fd >= 0) { if (process->priv->log_stdout) dup2 (log_fd, STDOUT_FILENO); dup2 (log_fd, STDERR_FILENO); close (log_fd); } /* Set environment */ if (process->priv->clear_environment) #ifdef HAVE_CLEARENV clearenv (); #else environ = NULL; #endif for (i = 0; i < env_length; i++) setenv (env_keys[i], env_values[i], TRUE); execvp (argv[0], argv); _exit (EXIT_FAILURE); } close (log_fd); g_strfreev (argv); g_free (env_keys); g_free (env_values); if (pid < 0) { g_warning ("Failed to fork: %s", strerror (errno)); return FALSE; } g_debug ("Launching process %d: %s", pid, process->priv->command); process->priv->pid = pid; if (block) { int exit_status; waitpid (process->priv->pid, &exit_status, 0); process_watch_cb (process->priv->pid, exit_status, process); } else { g_hash_table_insert (processes, GINT_TO_POINTER (process->priv->pid), g_object_ref (process)); process->priv->watch = g_child_watch_add (process->priv->pid, process_watch_cb, process); } return TRUE; } gboolean process_get_is_running (Process *process) { g_return_val_if_fail (process != NULL, FALSE); return process->priv->pid != 0; } GPid process_get_pid (Process *process) { g_return_val_if_fail (process != NULL, 0); return process->priv->pid; } void process_signal (Process *process, int signum) { g_return_if_fail (process != NULL); if (process->priv->pid == 0) return; g_debug ("Sending signal %d to process %d", signum, process->priv->pid); if (kill (process->priv->pid, signum) < 0) { /* Ignore ESRCH, we will pick that up in our wait */ if (errno != ESRCH) g_warning ("Error sending signal %d to process %d: %s", signum, process->priv->pid, strerror (errno)); } } static gboolean quit_timeout_cb (Process *process) { process->priv->quit_timeout = 0; process_signal (process, SIGKILL); return FALSE; } void process_stop (Process *process) { g_return_if_fail (process != NULL); if (process->priv->stopping) return; process->priv->stopping = TRUE; /* If already stopped then we're done! */ if (process->priv->pid == 0) return; /* Send SIGTERM, and then SIGKILL if no response */ process->priv->quit_timeout = g_timeout_add (5000, (GSourceFunc) quit_timeout_cb, process); process_signal (process, SIGTERM); } int process_get_exit_status (Process *process) { g_return_val_if_fail (process != NULL, -1); return process->priv->exit_status; } static void process_init (Process *process) { process->priv = G_TYPE_INSTANCE_GET_PRIVATE (process, PROCESS_TYPE, ProcessPrivate); process->priv->env = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); } static void process_stopped (Process *process) { } static void process_finalize (GObject *object) { Process *self = PROCESS (object); if (self->priv->pid > 0) g_hash_table_remove (processes, GINT_TO_POINTER (self->priv->pid)); g_free (self->priv->log_file); g_free (self->priv->command); g_hash_table_unref (self->priv->env); if (self->priv->quit_timeout) g_source_remove (self->priv->quit_timeout); if (self->priv->watch) g_source_remove (self->priv->watch); if (self->priv->pid) kill (self->priv->pid, SIGTERM); G_OBJECT_CLASS (process_parent_class)->finalize (object); } static void signal_cb (int signum, siginfo_t *info, void *data) { /* Check if we are from a forked process that hasn't updated the signal handlers or execed. If so, then we should just quit */ if (getpid () != signal_pid) _exit (EXIT_SUCCESS); /* Write signal to main thread, if something goes wrong just close the pipe so it is detected on the other end */ if (write (signal_pipe[1], &info->si_signo, sizeof (int)) < 0 || write (signal_pipe[1], &info->si_pid, sizeof (pid_t)) < 0) close (signal_pipe[1]); } static gboolean handle_signal (GIOChannel *source, GIOCondition condition, gpointer data) { int signo; pid_t pid; Process *process; errno = 0; if (read (signal_pipe[0], &signo, sizeof (int)) != sizeof (int) || read (signal_pipe[0], &pid, sizeof (pid_t)) != sizeof (pid_t)) { g_warning ("Error reading from signal pipe: %s", strerror (errno)); return FALSE; } g_debug ("Got signal %d from process %d", signo, pid); process = g_hash_table_lookup (processes, GINT_TO_POINTER (pid)); if (process == NULL) process = process_get_current (); if (process) g_signal_emit (process, signals[GOT_SIGNAL], 0, signo); return TRUE; } static void process_class_init (ProcessClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); struct sigaction action; klass->stopped = process_stopped; object_class->finalize = process_finalize; g_type_class_add_private (klass, sizeof (ProcessPrivate)); signals[GOT_DATA] = g_signal_new (PROCESS_SIGNAL_GOT_DATA, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ProcessClass, got_data), NULL, NULL, NULL, G_TYPE_NONE, 0); signals[GOT_SIGNAL] = g_signal_new (PROCESS_SIGNAL_GOT_SIGNAL, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ProcessClass, got_signal), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_INT); signals[STOPPED] = g_signal_new (PROCESS_SIGNAL_STOPPED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (ProcessClass, stopped), NULL, NULL, NULL, G_TYPE_NONE, 0); /* Catch signals and feed them to the main loop via a pipe */ processes = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, g_object_unref); signal_pid = getpid (); if (pipe (signal_pipe) != 0) g_critical ("Failed to create signal pipe"); fcntl (signal_pipe[0], F_SETFD, FD_CLOEXEC); fcntl (signal_pipe[1], F_SETFD, FD_CLOEXEC); g_io_add_watch (g_io_channel_unix_new (signal_pipe[0]), G_IO_IN, handle_signal, NULL); action.sa_sigaction = signal_cb; sigemptyset (&action.sa_mask); action.sa_flags = SA_SIGINFO; sigaction (SIGTERM, &action, NULL); sigaction (SIGINT, &action, NULL); sigaction (SIGHUP, &action, NULL); sigaction (SIGUSR1, &action, NULL); sigaction (SIGUSR2, &action, NULL); } lightdm-1.18.1/src/session.h0000664000000000000000000001037312700600465012551 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef SESSION_H_ #define SESSION_H_ #include #include typedef struct Session Session; #include "session-config.h" #include "display-server.h" #include "accounts.h" #include "x-authority.h" #include "logger.h" #include "log-file.h" G_BEGIN_DECLS #define SESSION_TYPE (session_get_type()) #define SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SESSION_TYPE, Session)) #define SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SESSION_TYPE, SessionClass)) #define SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SESSION_TYPE, SessionClass)) #define SESSION_SIGNAL_GOT_MESSAGES "got-messages" #define SESSION_SIGNAL_AUTHENTICATION_COMPLETE "authentication-complete" #define SESSION_SIGNAL_STOPPED "stopped" typedef struct SessionPrivate SessionPrivate; struct Session { GObject parent_instance; SessionPrivate *priv; }; typedef struct { GObjectClass parent_class; gboolean (*start)(Session *session); void (*run)(Session *session); void (*stop)(Session *session); void (*got_messages)(Session *session); void (*authentication_complete)(Session *session); void (*stopped)(Session *session); } SessionClass; typedef enum { SESSION_TYPE_LOCAL, SESSION_TYPE_REMOTE } SessionType; GType session_get_type (void); Session *session_new (void); void session_set_config (Session *session, SessionConfig *config); SessionConfig *session_get_config (Session *session); const gchar *session_get_session_type (Session *session); void session_set_pam_service (Session *session, const gchar *pam_service); void session_set_username (Session *session, const gchar *username); void session_set_do_authenticate (Session *session, gboolean do_authenticate); void session_set_is_interactive (Session *session, gboolean is_interactive); void session_set_is_guest (Session *session, gboolean is_guest); gboolean session_get_is_guest (Session *session); void session_set_log_file (Session *session, const gchar *filename, LogMode log_mode); void session_set_display_server (Session *session, DisplayServer *display_server); DisplayServer *session_get_display_server (Session *session); void session_set_tty (Session *session, const gchar *tty); void session_set_xdisplay (Session *session, const gchar *xdisplay); void session_set_x_authority (Session *session, XAuthority *authority, gboolean use_system_location); void session_set_remote_host_name (Session *session, const gchar *remote_host_name); void session_set_env (Session *session, const gchar *name, const gchar *value); const gchar *session_get_env (Session *session, const gchar *name); void session_unset_env (Session *session, const gchar *name); void session_set_argv (Session *session, gchar **argv); // FIXME: Remove User *session_get_user (Session *session); gboolean session_start (Session *session); gboolean session_get_is_started (Session *session); const gchar *session_get_username (Session *session); const gchar *session_get_login1_session_id (Session *session); const gchar *session_get_console_kit_cookie (Session *session); void session_respond (Session *session, struct pam_response *response); void session_respond_error (Session *session, int error); int session_get_messages_length (Session *session); const struct pam_message *session_get_messages (Session *session); gboolean session_get_is_authenticated (Session *session); int session_get_authentication_result (Session *session); const gchar *session_get_authentication_result_string (Session *session); void session_run (Session *session); void session_lock (Session *session); void session_unlock (Session *session); void session_activate (Session *session); void session_stop (Session *session); gboolean session_get_is_stopping (Session *session); G_END_DECLS #endif /* SESSION_H_ */ lightdm-1.18.1/src/accounts.h0000664000000000000000000000266512700600465012712 0ustar /* -*- Mode: C; indent-tabs-mode: nil; tab-width: 4 -*- * * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef USER_H_ #define USER_H_ #include #include G_BEGIN_DECLS #define USER_TYPE (user_get_type()) #define USER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), USER_TYPE, User)); typedef struct UserPrivate UserPrivate; typedef struct { GObject parent_instance; UserPrivate *priv; } User; typedef struct { GObjectClass parent_class; } UserClass; User *accounts_get_user_by_name (const gchar *username); User *accounts_get_current_user (void); GType user_get_type (void); const gchar *user_get_name (User *user); uid_t user_get_uid (User *user); gid_t user_get_gid (User *user); const gchar *user_get_home_directory (User *user); const gchar *user_get_shell (User *user); const gchar *user_get_xsession (User *user); void user_set_xsession (User *user, const gchar *session); const gchar *user_get_language (User *user); void user_set_language (User *user, const gchar *language); G_END_DECLS #endif /* USER_H_ */ lightdm-1.18.1/src/seat-xvnc.c0000664000000000000000000000725512700600465012776 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include "seat-xvnc.h" #include "x-server-xvnc.h" #include "configuration.h" G_DEFINE_TYPE (SeatXVNC, seat_xvnc, SEAT_TYPE); struct SeatXVNCPrivate { /* VNC connection */ GSocket *connection; }; SeatXVNC *seat_xvnc_new (GSocket *connection) { SeatXVNC *seat; seat = g_object_new (SEAT_XVNC_TYPE, NULL); seat->priv->connection = g_object_ref (connection); return seat; } static DisplayServer * seat_xvnc_create_display_server (Seat *seat, Session *session) { XServerXVNC *x_server; const gchar *command = NULL; if (strcmp (session_get_session_type (session), "x") != 0) return NULL; x_server = x_server_xvnc_new (); x_server_xvnc_set_socket (x_server, g_socket_get_fd (SEAT_XVNC (seat)->priv->connection)); command = config_get_string (config_get_instance (), "VNCServer", "command"); if (command) x_server_xvnc_set_command (x_server, command); if (config_has_key (config_get_instance (), "VNCServer", "width") && config_has_key (config_get_instance (), "VNCServer", "height")) { gint width, height; width = config_get_integer (config_get_instance (), "VNCServer", "width"); height = config_get_integer (config_get_instance (), "VNCServer", "height"); if (height > 0 && width > 0) x_server_xvnc_set_geometry (x_server, width, height); } if (config_has_key (config_get_instance (), "VNCServer", "depth")) { gint depth; depth = config_get_integer (config_get_instance (), "VNCServer", "depth"); if (depth == 8 || depth == 16 || depth == 24 || depth == 32) x_server_xvnc_set_depth (x_server, depth); } return DISPLAY_SERVER (x_server); } static void seat_xvnc_run_script (Seat *seat, DisplayServer *display_server, Process *script) { XServerXVNC *x_server; GInetSocketAddress *address; gchar *hostname; const gchar *path; x_server = X_SERVER_XVNC (display_server); address = G_INET_SOCKET_ADDRESS (g_socket_get_remote_address (SEAT_XVNC (seat)->priv->connection, NULL)); hostname = g_inet_address_to_string (g_inet_socket_address_get_address (address)); path = x_server_xvnc_get_authority_file_path (x_server); process_set_env (script, "REMOTE_HOST", hostname); process_set_env (script, "DISPLAY", x_server_get_address (X_SERVER (x_server))); process_set_env (script, "XAUTHORITY", path); g_free (hostname); SEAT_CLASS (seat_xvnc_parent_class)->run_script (seat, display_server, script); } static void seat_xvnc_init (SeatXVNC *seat) { seat->priv = G_TYPE_INSTANCE_GET_PRIVATE (seat, SEAT_XVNC_TYPE, SeatXVNCPrivate); } static void seat_xvnc_session_finalize (GObject *object) { SeatXVNC *self = SEAT_XVNC (object); g_clear_object (&self->priv->connection); G_OBJECT_CLASS (seat_xvnc_parent_class)->finalize (object); } static void seat_xvnc_class_init (SeatXVNCClass *klass) { SeatClass *seat_class = SEAT_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass); seat_class->create_display_server = seat_xvnc_create_display_server; seat_class->run_script = seat_xvnc_run_script; object_class->finalize = seat_xvnc_session_finalize; g_type_class_add_private (klass, sizeof (SeatXVNCPrivate)); } lightdm-1.18.1/src/log-file.h0000664000000000000000000000130112700600465012553 0ustar /* * Copyright (C) 2015 Alexandros Frantzis * Author: Alexandros Frantzis * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef LOG_FILE_H_ #define LOG_FILE_H_ #include typedef enum { LOG_MODE_INVALID = -1, LOG_MODE_BACKUP_AND_TRUNCATE, LOG_MODE_APPEND } LogMode; int log_file_open (const gchar *log_filename, LogMode log_mode); #endif /* LOG_FILE_H_ */ lightdm-1.18.1/src/shared-data-manager.h0000664000000000000000000000314112700600465014646 0ustar /* * Copyright (C) 2014 Canonical, Ltd * Author: Michael Terry * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef SHARED_DATA_MANAGER_H_ #define SHARED_DATA_MANAGER_H_ #include typedef struct SharedDataManager SharedDataManager; G_BEGIN_DECLS #define SHARED_DATA_MANAGER_TYPE (shared_data_manager_get_type()) #define SHARED_DATA_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SHARED_DATA_MANAGER_TYPE, SharedDataManager)) #define SHARED_DATA_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SHARED_DATA_MANAGER_TYPE, SharedDataManagerClass)) #define SHARED_DATA_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SHARED_DATA_MANAGER_TYPE, SharedDataManagerClass)) typedef struct SharedDataManagerPrivate SharedDataManagerPrivate; struct SharedDataManager { GObject parent_instance; SharedDataManagerPrivate *priv; }; typedef struct { GObjectClass parent_class; } SharedDataManagerClass; GType shared_data_manager_get_type (void); SharedDataManager *shared_data_manager_get_instance (void); void shared_data_manager_start (SharedDataManager *manager); void shared_data_manager_cleanup (void); gchar *shared_data_manager_ensure_user_dir (SharedDataManager *manager, const gchar *user); G_END_DECLS #endif /* SHARED_DATA_MANAGER_H_ */ lightdm-1.18.1/src/log-file.c0000664000000000000000000000266512700600465012564 0ustar /* * Copyright (C) 2015 Alexandros Frantzis * Author: Alexandros Frantzis * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include "log-file.h" int log_file_open (const gchar *log_filename, LogMode log_mode) { int open_flags = O_WRONLY | O_CREAT; int log_fd; if (log_mode == LOG_MODE_BACKUP_AND_TRUNCATE) { /* Move old file out of the way */ gchar *old_filename; old_filename = g_strdup_printf ("%s.old", log_filename); rename (log_filename, old_filename); g_free (old_filename); open_flags |= O_TRUNC; } else if (log_mode == LOG_MODE_APPEND) { /* Keep appending to it */ open_flags |= O_APPEND; } else { g_warning ("Failed to open log file %s: invalid log mode %d specified", log_filename, log_mode); return -1; } /* Open file and log to it */ log_fd = open (log_filename, open_flags, 0600); if (log_fd < 0) g_warning ("Failed to open log file %s: %s", log_filename, g_strerror (errno)); return log_fd; } lightdm-1.18.1/src/seat-xremote.h0000664000000000000000000000161412700600465013501 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef SEAT_XREMOTE_H_ #define SEAT_XREMOTE_H_ #include #include "seat.h" G_BEGIN_DECLS #define SEAT_XREMOTE_TYPE (seat_xremote_get_type()) #define SEAT_XREMOTE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEAT_XREMOTE_TYPE, SeatXRemote)) typedef struct { Seat parent_instance; } SeatXRemote; typedef struct { SeatClass parent_class; } SeatXRemoteClass; GType seat_xremote_get_type (void); G_END_DECLS #endif /* SEAT_XREMOTE_H_ */ lightdm-1.18.1/src/logger.c0000664000000000000000000000402312700600465012333 0ustar #include "logger.h" G_DEFINE_INTERFACE (Logger, logger, G_TYPE_INVALID); static void logger_logv_default (Logger *self, GLogLevelFlags log_level, const gchar *format, va_list ap) __attribute__ ((format (printf, 3, 0))); static void logger_default_init (LoggerInterface *iface) { iface->logv = &logger_logv_default; } gint logger_logprefix (Logger *self, gchar *buf, gulong buflen) { g_return_val_if_fail (IS_LOGGER (self), -1); return LOGGER_GET_INTERFACE (self)->logprefix (self, buf, buflen); } void logger_logv (Logger *self, GLogLevelFlags log_level, const gchar *format, va_list ap) { g_return_if_fail (IS_LOGGER (self)); LOGGER_GET_INTERFACE (self)->logv (self, log_level, format, ap); } void logger_logv_default (Logger *self, GLogLevelFlags log_level, const gchar *format, va_list ap) { va_list ap_copy; gint tmp; /* figure out how long the prefix is */ tmp = logger_logprefix (self, NULL, 0); if (tmp < 0) { g_error ("failed to get log prefix"); return; } /* print the prefix to a variable length array (to avoid malloc) */ gchar pfx[tmp + 1]; tmp = logger_logprefix (self, pfx, sizeof(pfx)); if (tmp < 0) { g_error ("failed to get log prefix"); return; } /* figure out how long the formatted message is */ va_copy (ap_copy, ap); tmp = g_vsnprintf (NULL, 0, format, ap_copy); va_end (ap_copy); if (tmp < 0) { g_error ("failed to format log message"); return; } /* print the message to a variable length array (to avoid malloc) */ gchar msg[tmp+1]; tmp = g_vsnprintf (msg, sizeof(msg), format, ap); if (tmp < 0) { g_error ("failed to format log message"); return; } /* log the message with the prefix */ g_log (G_LOG_DOMAIN, log_level, "%s%s", pfx, msg); } void logger_log (Logger *self, GLogLevelFlags log_level, const gchar *format, ...) { va_list ap; va_start (ap, format); logger_logv (self, log_level, format, ap); va_end (ap); } lightdm-1.18.1/src/seat-xlocal.h0000664000000000000000000000172312700600465013301 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef SEAT_XLOCAL_H_ #define SEAT_XLOCAL_H_ #include #include "seat.h" G_BEGIN_DECLS #define SEAT_XLOCAL_TYPE (seat_xlocal_get_type()) #define SEAT_XLOCAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEAT_XLOCAL_TYPE, SeatXLocal)) typedef struct SeatXLocalPrivate SeatXLocalPrivate; typedef struct { Seat parent_instance; SeatXLocalPrivate *priv; } SeatXLocal; typedef struct { SeatClass parent_class; } SeatXLocalClass; GType seat_xlocal_get_type (void); G_END_DECLS #endif /* SEAT_XLOCAL_H_ */ lightdm-1.18.1/src/xdmcp-protocol.c0000664000000000000000000004735712700600465014047 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include "xdmcp-protocol.h" #include "x-authority.h" typedef struct { const guint8 *data; guint16 remaining; gboolean overflow; } PacketReader; static guint8 read_card8 (PacketReader *reader) { guint8 value; if (reader->remaining < 1) { reader->overflow = TRUE; return 0; } value = reader->data[0]; reader->data++; reader->remaining--; return value; } static guint16 read_card16 (PacketReader *reader) { return read_card8 (reader) << 8 | read_card8 (reader); } static guint32 read_card32 (PacketReader *reader) { return read_card8 (reader) << 24 | read_card8 (reader) << 16 | read_card8 (reader) << 8 | read_card8 (reader); } static void read_data (PacketReader *reader, XDMCPData *data) { guint16 i; data->length = read_card16 (reader); data->data = g_malloc (sizeof (guint8) * data->length); for (i = 0; i < data->length; i++) data->data[i] = read_card8 (reader); } static gchar * read_string (PacketReader *reader) { guint16 length, i; gchar *string; length = read_card16 (reader); string = g_malloc (sizeof (gchar) * (length + 1)); for (i = 0; i < length; i++) string[i] = (gchar) read_card8 (reader); string[i] = '\0'; return string; } static gchar ** read_string_array (PacketReader *reader) { guint8 n_strings, i; gchar **strings; n_strings = read_card8 (reader); strings = g_malloc (sizeof (gchar *) * (n_strings + 1)); for (i = 0; i < n_strings; i++) strings[i] = read_string (reader); strings[i] = NULL; return strings; } typedef struct { guint8 *data; guint16 remaining; gboolean overflow; } PacketWriter; static void write_card8 (PacketWriter *writer, guint8 value) { if (writer->remaining < 1) { writer->overflow = TRUE; return; } writer->data[0] = value; writer->data++; writer->remaining--; } static void write_card16 (PacketWriter *writer, guint16 value) { write_card8 (writer, value >> 8); write_card8 (writer, value & 0xFF); } static void write_card32 (PacketWriter *writer, guint32 value) { write_card8 (writer, (value >> 24) & 0xFF); write_card8 (writer, (value >> 16) & 0xFF); write_card8 (writer, (value >> 8) & 0xFF); write_card8 (writer, value & 0xFF); } static void write_data (PacketWriter *writer, const XDMCPData *value) { guint16 i; write_card16 (writer, value->length); for (i = 0; i < value->length; i++) write_card8 (writer, value->data[i]); } static void write_string (PacketWriter *writer, const gchar *value) { const gchar *c; write_card16 (writer, strlen (value)); for (c = value; *c; c++) write_card8 (writer, *c); } static void write_string_array (PacketWriter *writer, gchar **values) { gchar **value; write_card8 (writer, g_strv_length (values)); for (value = values; *value; value++) write_string (writer, *value); } XDMCPPacket * xdmcp_packet_alloc (XDMCPOpcode opcode) { XDMCPPacket *packet; packet = g_malloc0 (sizeof (XDMCPPacket)); packet->opcode = opcode; return packet; } XDMCPPacket * xdmcp_packet_decode (const guint8 *data, gsize data_length) { XDMCPPacket *packet; guint16 version, opcode, length; PacketReader reader; int i; gboolean failed = FALSE; reader.data = data; reader.remaining = data_length; reader.overflow = FALSE; version = read_card16 (&reader); opcode = read_card16 (&reader); length = read_card16 (&reader); if (reader.overflow) { g_warning ("Ignoring short packet"); // FIXME: Use GError return NULL; } if (version != XDMCP_VERSION) { g_warning ("Ignoring packet from unknown version %d", version); return NULL; } if (length != reader.remaining) { g_warning ("Ignoring packet of wrong length. Opcode %d expected %d octets, got %d", opcode, length, reader.remaining); return NULL; } packet = xdmcp_packet_alloc (opcode); switch (packet->opcode) { case XDMCP_BroadcastQuery: case XDMCP_Query: case XDMCP_IndirectQuery: packet->Query.authentication_names = read_string_array (&reader); break; case XDMCP_ForwardQuery: read_data (&reader, &packet->ForwardQuery.client_address); read_data (&reader, &packet->ForwardQuery.client_port); packet->ForwardQuery.authentication_names = read_string_array (&reader); break; case XDMCP_Willing: packet->Willing.authentication_name = read_string (&reader); packet->Willing.hostname = read_string (&reader); packet->Willing.status = read_string (&reader); break; case XDMCP_Unwilling: packet->Unwilling.hostname = read_string (&reader); packet->Unwilling.status = read_string (&reader); break; case XDMCP_Request: packet->Request.display_number = read_card16 (&reader); packet->Request.n_connections = read_card8 (&reader); packet->Request.connections = g_malloc (sizeof (XDMCPConnection) * packet->Request.n_connections); for (i = 0; i < packet->Request.n_connections; i++) packet->Request.connections[i].type = read_card16 (&reader); if (read_card8 (&reader) != packet->Request.n_connections) { g_warning ("Number of connection types does not match number of connection addresses"); failed = TRUE; } for (i = 0; i < packet->Request.n_connections; i++) read_data (&reader, &packet->Request.connections[i].address); packet->Request.authentication_name = read_string (&reader); read_data (&reader, &packet->Request.authentication_data); packet->Request.authorization_names = read_string_array (&reader); packet->Request.manufacturer_display_id = read_string (&reader); break; case XDMCP_Accept: packet->Accept.session_id = read_card32 (&reader); packet->Accept.authentication_name = read_string (&reader); read_data (&reader, &packet->Accept.authentication_data); packet->Accept.authorization_name = read_string (&reader); read_data (&reader, &packet->Accept.authorization_data); break; case XDMCP_Decline: packet->Decline.status = read_string (&reader); packet->Decline.authentication_name = read_string (&reader); read_data (&reader, &packet->Decline.authentication_data); break; case XDMCP_Manage: packet->Manage.session_id = read_card32 (&reader); packet->Manage.display_number = read_card16 (&reader); packet->Manage.display_class = read_string (&reader); break; case XDMCP_Refuse: packet->Refuse.session_id = read_card32 (&reader); break; case XDMCP_Failed: packet->Failed.session_id = read_card32 (&reader); packet->Failed.status = read_string (&reader); break; case XDMCP_KeepAlive: packet->KeepAlive.display_number = read_card16 (&reader); packet->KeepAlive.session_id = read_card32 (&reader); break; case XDMCP_Alive: packet->Alive.session_running = read_card8 (&reader) == 0 ? FALSE : TRUE; packet->Alive.session_id = read_card32 (&reader); break; default: g_warning ("Unable to encode unknown opcode %d", packet->opcode); failed = TRUE; break; } if (!failed) { if (reader.overflow) { g_warning ("Short packet received"); failed = TRUE; } else if (reader.remaining != 0) { g_warning ("Extra data on end of message"); failed = TRUE; } } if (failed) { xdmcp_packet_free (packet); return NULL; } return packet; } gssize xdmcp_packet_encode (XDMCPPacket *packet, guint8 *data, gsize max_length) { guint16 length; PacketWriter writer; int i; if (max_length < 6) return -1; writer.data = data + 6; writer.remaining = max_length - 6; writer.overflow = FALSE; switch (packet->opcode) { case XDMCP_BroadcastQuery: case XDMCP_Query: case XDMCP_IndirectQuery: write_string_array (&writer, packet->Query.authentication_names); break; case XDMCP_ForwardQuery: write_data (&writer, &packet->ForwardQuery.client_address); write_data (&writer, &packet->ForwardQuery.client_port); write_string_array (&writer, packet->ForwardQuery.authentication_names); break; case XDMCP_Willing: write_string (&writer, packet->Willing.authentication_name); write_string (&writer, packet->Willing.hostname); write_string (&writer, packet->Willing.status); break; case XDMCP_Unwilling: write_string (&writer, packet->Unwilling.hostname); write_string (&writer, packet->Unwilling.status); break; case XDMCP_Request: write_card16 (&writer, packet->Request.display_number); write_card8 (&writer, packet->Request.n_connections); for (i = 0; i < packet->Request.n_connections; i++) write_card16 (&writer, packet->Request.connections[i].type); write_card8 (&writer, packet->Request.n_connections); for (i = 0; i < packet->Request.n_connections; i++) write_data (&writer, &packet->Request.connections[i].address); write_string (&writer, packet->Request.authentication_name); write_data (&writer, &packet->Request.authentication_data); write_string_array (&writer, packet->Request.authorization_names); write_string (&writer, packet->Request.manufacturer_display_id); break; case XDMCP_Accept: write_card32 (&writer, packet->Accept.session_id); write_string (&writer, packet->Accept.authentication_name); write_data (&writer, &packet->Accept.authentication_data); write_string (&writer, packet->Accept.authorization_name); write_data (&writer, &packet->Accept.authorization_data); break; case XDMCP_Decline: write_string (&writer, packet->Decline.status); write_string (&writer, packet->Decline.authentication_name); write_data (&writer, &packet->Decline.authentication_data); break; case XDMCP_Manage: write_card32 (&writer, packet->Manage.session_id); write_card16 (&writer, packet->Manage.display_number); write_string (&writer, packet->Manage.display_class); break; case XDMCP_Refuse: write_card32 (&writer, packet->Refuse.session_id); break; case XDMCP_Failed: write_card32 (&writer, packet->Failed.session_id); write_string (&writer, packet->Failed.status); break; case XDMCP_KeepAlive: write_card16 (&writer, packet->KeepAlive.display_number); write_card32 (&writer, packet->KeepAlive.session_id); break; case XDMCP_Alive: write_card8 (&writer, packet->Alive.session_running ? 1 : 0); write_card32 (&writer, packet->Alive.session_id); break; } length = max_length - 6 - writer.remaining; /* Write header */ writer.data = data; writer.remaining = 6; writer.overflow = FALSE; write_card16(&writer, XDMCP_VERSION); write_card16(&writer, packet->opcode); write_card16(&writer, length); if (writer.overflow) { g_warning ("Overflow writing response"); return -1; } return length + 6; } static gchar * data_tostring (XDMCPData *data) { GString *s; guint16 i; gchar *string; s = g_string_new (""); for (i = 0; i < data->length; i++) g_string_append_printf (s, "%02X", data->data[i]); string = s->str; g_string_free (s, FALSE); return string; } static gchar * string_list_tostring (gchar **strings) { GString *s; gchar *string; gchar **i; s = g_string_new (""); for (i = strings; *i; i++) { if (i != strings) g_string_append (s, " "); g_string_append_printf (s, "'%s'", *i); } string = s->str; g_string_free (s, FALSE); return string; } gchar * xdmcp_packet_tostring (XDMCPPacket *packet) { gchar *string, *t, *t2, *t5; gint i; GString *t3; switch (packet->opcode) { case XDMCP_BroadcastQuery: t = string_list_tostring (packet->Query.authentication_names); string = g_strdup_printf ("BroadcastQuery(authentication_names=[%s])", t); g_free (t); return string; case XDMCP_Query: t = string_list_tostring (packet->Query.authentication_names); string = g_strdup_printf ("Query(authentication_names=[%s])", t); g_free (t); return string; case XDMCP_IndirectQuery: t = string_list_tostring (packet->Query.authentication_names); string = g_strdup_printf ("IndirectQuery(authentication_names=[%s])", t); g_free (t); return string; case XDMCP_ForwardQuery: t = data_tostring (&packet->ForwardQuery.client_address); t2 = data_tostring (&packet->ForwardQuery.client_port); t5 = string_list_tostring (packet->ForwardQuery.authentication_names); string = g_strdup_printf ("ForwardQuery(client_address=%s client_port=%s authentication_names=[%s])", t, t2, t5); g_free (t); g_free (t2); g_free (t5); return string; case XDMCP_Willing: return g_strdup_printf ("Willing(authentication_name='%s' hostname='%s' status='%s')", packet->Willing.authentication_name, packet->Willing.hostname, packet->Willing.status); case XDMCP_Unwilling: return g_strdup_printf ("Unwilling(hostname='%s' status='%s')", packet->Unwilling.hostname, packet->Unwilling.status); case XDMCP_Request: t = string_list_tostring (packet->Request.authorization_names); t2 = data_tostring (&packet->Request.authentication_data); t3 = g_string_new (""); for (i = 0; i < packet->Request.n_connections; i++) { XDMCPConnection *connection = &packet->Request.connections[i]; GSocketFamily family = G_SOCKET_FAMILY_INVALID; if (i != 0) g_string_append (t3, " "); if (connection->type == XAUTH_FAMILY_INTERNET && connection->address.length == 4) family = G_SOCKET_FAMILY_IPV4; else if (connection->type == XAUTH_FAMILY_INTERNET6 && connection->address.length == 16) family = G_SOCKET_FAMILY_IPV6; if (family != G_SOCKET_FAMILY_INVALID) { GInetAddress *address = g_inet_address_new_from_bytes (connection->address.data, family); gchar *t4 = g_inet_address_to_string (address); g_string_append (t3, t4); g_free (t4); g_object_unref (address); } else { gchar *t4 = data_tostring (&connection->address); g_string_append_printf (t3, "(%d, %s)", connection->type, t4); g_free (t4); } } string = g_strdup_printf ("Request(display_number=%d connections=[%s] authentication_name='%s' authentication_data=%s authorization_names=[%s] manufacturer_display_id='%s')", packet->Request.display_number, t3->str, packet->Request.authentication_name, t2, t, packet->Request.manufacturer_display_id); g_free (t); g_free (t2); g_string_free (t3, TRUE); return string; case XDMCP_Accept: t = data_tostring (&packet->Accept.authentication_data); t2 = data_tostring (&packet->Accept.authorization_data); string = g_strdup_printf ("Accept(session_id=%d authentication_name='%s' authentication_data=%s authorization_name='%s' authorization_data=%s)", packet->Accept.session_id, packet->Accept.authentication_name, t, packet->Accept.authorization_name, t2); g_free (t); g_free (t2); return string; case XDMCP_Decline: t = data_tostring (&packet->Decline.authentication_data); string = g_strdup_printf ("Decline(status='%s' authentication_name='%s' authentication_data=%s)", packet->Decline.status, packet->Decline.authentication_name, t); g_free (t); return string; case XDMCP_Manage: return g_strdup_printf ("Manage(session_id=%d display_number=%d display_class='%s')", packet->Manage.session_id, packet->Manage.display_number, packet->Manage.display_class); case XDMCP_Refuse: return g_strdup_printf ("Refuse(session_id=%d)", packet->Refuse.session_id); case XDMCP_Failed: return g_strdup_printf ("Failed(session_id=%d status='%s')", packet->Failed.session_id, packet->Failed.status); case XDMCP_KeepAlive: return g_strdup_printf ("KeepAlive(display_number=%d session_id=%d)", packet->KeepAlive.display_number, packet->KeepAlive.session_id); case XDMCP_Alive: return g_strdup_printf ("Alive(session_running=%s session_id=%d)", packet->Alive.session_running ? "true" : "false", packet->Alive.session_id); default: return g_strdup_printf ("XDMCPPacket(opcode=%d)", packet->opcode); } } void xdmcp_packet_free (XDMCPPacket *packet) { gint i; if (packet == NULL) return; switch (packet->opcode) { case XDMCP_BroadcastQuery: case XDMCP_Query: case XDMCP_IndirectQuery: g_strfreev (packet->Query.authentication_names); break; case XDMCP_ForwardQuery: g_free (packet->ForwardQuery.client_address.data); g_free (packet->ForwardQuery.client_port.data); g_strfreev (packet->ForwardQuery.authentication_names); break; case XDMCP_Willing: g_free (packet->Willing.authentication_name); g_free (packet->Willing.hostname); g_free (packet->Willing.status); break; case XDMCP_Unwilling: g_free (packet->Unwilling.hostname); g_free (packet->Unwilling.status); break; case XDMCP_Request: for (i = 0; i < packet->Request.n_connections; i++) g_free (packet->Request.connections[i].address.data); g_free (packet->Request.connections); g_free (packet->Request.authentication_name); g_free (packet->Request.authentication_data.data); g_strfreev (packet->Request.authorization_names); g_free (packet->Request.manufacturer_display_id); break; case XDMCP_Accept: g_free (packet->Accept.authentication_name); g_free (packet->Accept.authentication_data.data); g_free (packet->Accept.authorization_name); g_free (packet->Accept.authorization_data.data); break; case XDMCP_Decline: g_free (packet->Decline.status); g_free (packet->Decline.authentication_name); g_free (packet->Decline.authentication_data.data); break; case XDMCP_Manage: g_free (packet->Manage.display_class); break; case XDMCP_Refuse: break; case XDMCP_Failed: g_free (packet->Failed.status); break; case XDMCP_KeepAlive: break; case XDMCP_Alive: break; } g_free (packet); } lightdm-1.18.1/src/guest-account.h0000664000000000000000000000127712700600465013652 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef GUEST_ACCOUNT_H_ #define GUEST_ACCOUNT_H_ #include G_BEGIN_DECLS gboolean guest_account_is_installed (void); gchar *guest_account_setup (void); void guest_account_cleanup (const gchar *username); G_END_DECLS #endif /* GUEST_ACCOUNT_H_ */ lightdm-1.18.1/src/mir-server.c0000664000000000000000000000640712700600465013157 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include "mir-server.h" #include "configuration.h" #include "vt.h" struct MirServerPrivate { /* VT to run on */ gint vt; /* Mir socket for this server to talk to parent */ gchar *parent_socket; }; G_DEFINE_TYPE (MirServer, mir_server, DISPLAY_SERVER_TYPE); MirServer *mir_server_new (void) { return g_object_new (MIR_SERVER_TYPE, NULL); } void mir_server_set_vt (MirServer *server, gint vt) { g_return_if_fail (server != NULL); if (server->priv->vt > 0) vt_unref (server->priv->vt); server->priv->vt = vt; if (vt > 0) vt_ref (vt); } void mir_server_set_parent_socket (MirServer *server, const gchar *parent_socket) { g_return_if_fail (server != NULL); g_free (server->priv->parent_socket); server->priv->parent_socket = g_strdup (parent_socket); } static const gchar * mir_server_get_session_type (DisplayServer *server) { return "mir"; } static gint mir_server_get_vt (DisplayServer *server) { return MIR_SERVER (server)->priv->vt; } static void mir_server_connect_session (DisplayServer *display_server, Session *session) { MirServer *server; session_set_env (session, "XDG_SESSION_TYPE", "mir"); server = MIR_SERVER (display_server); if (server->priv->parent_socket) session_set_env (session, "MIR_SOCKET", server->priv->parent_socket); if (server->priv->vt > 0) { gchar *value = g_strdup_printf ("%d", server->priv->vt); session_set_env (session, "MIR_SERVER_VT", value); g_free (value); } } static void mir_server_disconnect_session (DisplayServer *display_server, Session *session) { session_unset_env (session, "XDG_SESSION_TYPE"); session_unset_env (session, "MIR_SOCKET"); session_unset_env (session, "MIR_SERVER_VT"); } static void mir_server_init (MirServer *server) { server->priv = G_TYPE_INSTANCE_GET_PRIVATE (server, MIR_SERVER_TYPE, MirServerPrivate); server->priv->vt = -1; display_server_set_name (DISPLAY_SERVER (server), "mir"); } static void mir_server_finalize (GObject *object) { MirServer *self = MIR_SERVER (object); if (self->priv->vt > 0) vt_unref (self->priv->vt); g_free (self->priv->parent_socket); G_OBJECT_CLASS (mir_server_parent_class)->finalize (object); } static void mir_server_class_init (MirServerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); DisplayServerClass *display_server_class = DISPLAY_SERVER_CLASS (klass); display_server_class->get_session_type = mir_server_get_session_type; display_server_class->get_vt = mir_server_get_vt; display_server_class->connect_session = mir_server_connect_session; display_server_class->disconnect_session = mir_server_disconnect_session; object_class->finalize = mir_server_finalize; g_type_class_add_private (klass, sizeof (MirServerPrivate)); } lightdm-1.18.1/src/xdmcp-session-private.h0000664000000000000000000000154312700600465015331 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef XDMCP_SESSION_PRIVATE_H_ #define XDMCP_SESSION_PRIVATE_H_ #include "xdmcp-server.h" #include "x-authority.h" struct XDMCPSessionPrivate { XDMCPServer *server; guint16 id; gchar *manufacturer_display_id; GInetAddress *address; guint inactive_timeout; XAuthority *authority; gboolean started; guint16 display_number; gchar *display_class; }; #endif /* XDMCP_SESSION_PRIVATE_H_ */ lightdm-1.18.1/src/console-kit.c0000664000000000000000000002473212700600465013314 0ustar /* -*- Mode: C; indent-tabs-mode: nil; tab-width: 4 -*- * * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include "console-kit.h" gchar * ck_open_session (GVariantBuilder *parameters) { GDBusConnection *bus; GVariant *result; gchar *cookie; GError *error = NULL; g_return_val_if_fail (parameters != NULL, NULL); bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); g_clear_error (&error); if (!bus) return NULL; result = g_dbus_connection_call_sync (bus, "org.freedesktop.ConsoleKit", "/org/freedesktop/ConsoleKit/Manager", "org.freedesktop.ConsoleKit.Manager", "OpenSessionWithParameters", g_variant_new ("(a(sv))", parameters), G_VARIANT_TYPE ("(s)"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); g_object_unref (bus); if (error) g_warning ("Failed to open CK session: %s", error->message); g_clear_error (&error); if (!result) return NULL; g_variant_get (result, "(s)", &cookie); g_variant_unref (result); g_debug ("Opened ConsoleKit session %s", cookie); return cookie; } static gchar * get_ck_session (GDBusConnection *bus, const gchar *cookie) { GVariant *result; gchar *session_path; GError *error = NULL; bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); result = g_dbus_connection_call_sync (bus, "org.freedesktop.ConsoleKit", "/org/freedesktop/ConsoleKit/Manager", "org.freedesktop.ConsoleKit.Manager", "GetSessionForCookie", g_variant_new ("(s)", cookie), G_VARIANT_TYPE ("(o)"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); g_object_unref (bus); if (error) g_warning ("Error getting ConsoleKit session: %s", error->message); g_clear_error (&error); if (!result) return NULL; g_variant_get (result, "(o)", &session_path); g_variant_unref (result); return session_path; } void ck_lock_session (const gchar *cookie) { GDBusConnection *bus; gchar *session_path; GError *error = NULL; g_return_if_fail (cookie != NULL); g_debug ("Locking ConsoleKit session %s", cookie); bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); g_clear_error (&error); if (!bus) return; session_path = get_ck_session (bus, cookie); if (session_path) { GVariant *result; result = g_dbus_connection_call_sync (bus, "org.freedesktop.ConsoleKit", session_path, "org.freedesktop.ConsoleKit.Session", "Lock", g_variant_new ("()"), G_VARIANT_TYPE ("()"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Error locking ConsoleKit session: %s", error->message); g_clear_error (&error); if (result) g_variant_unref (result); } g_object_unref (bus); } void ck_unlock_session (const gchar *cookie) { GDBusConnection *bus; gchar *session_path; GError *error = NULL; g_return_if_fail (cookie != NULL); g_debug ("Unlocking ConsoleKit session %s", cookie); bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); g_clear_error (&error); if (!bus) return; session_path = get_ck_session (bus, cookie); if (session_path) { GVariant *result; result = g_dbus_connection_call_sync (bus, "org.freedesktop.ConsoleKit", session_path, "org.freedesktop.ConsoleKit.Session", "Unlock", g_variant_new ("()"), G_VARIANT_TYPE ("()"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Error unlocking ConsoleKit session: %s", error->message); g_clear_error (&error); if (result) g_variant_unref (result); } g_object_unref (bus); } void ck_activate_session (const gchar *cookie) { GDBusConnection *bus; gchar *session_path; GError *error = NULL; g_return_if_fail (cookie != NULL); g_debug ("Activating ConsoleKit session %s", cookie); bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); g_clear_error (&error); if (!bus) return; session_path = get_ck_session (bus, cookie); if (session_path) { GVariant *result; result = g_dbus_connection_call_sync (bus, "org.freedesktop.ConsoleKit", session_path, "org.freedesktop.ConsoleKit.Session", "Activate", g_variant_new ("()"), G_VARIANT_TYPE ("()"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Error activating ConsoleKit session: %s", error->message); g_clear_error (&error); if (result) g_variant_unref (result); } g_object_unref (bus); } void ck_close_session (const gchar *cookie) { GDBusConnection *bus; GVariant *result; gboolean is_closed; GError *error = NULL; g_return_if_fail (cookie != NULL); g_debug ("Ending ConsoleKit session %s", cookie); bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); g_clear_error (&error); if (!bus) return; result = g_dbus_connection_call_sync (bus, "org.freedesktop.ConsoleKit", "/org/freedesktop/ConsoleKit/Manager", "org.freedesktop.ConsoleKit.Manager", "CloseSession", g_variant_new ("(s)", cookie), G_VARIANT_TYPE ("(b)"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); g_object_unref (bus); if (error) g_warning ("Error ending ConsoleKit session: %s", error->message); g_clear_error (&error); if (!result) return; g_variant_get (result, "(b)", &is_closed); g_variant_unref (result); if (!is_closed) g_warning ("ConsoleKit.Manager.CloseSession() returned false"); } gchar * ck_get_xdg_runtime_dir (const gchar *cookie) { GDBusConnection *bus; gchar *session_path; gchar *runtime_dir = NULL; GError *error = NULL; g_return_val_if_fail (cookie != NULL, NULL); g_debug ("Getting XDG_RUNTIME_DIR from ConsoleKit for session %s", cookie); bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); g_clear_error (&error); if (!bus) return NULL; session_path = get_ck_session (bus, cookie); if (session_path) { GVariant *result; result = g_dbus_connection_call_sync (bus, "org.freedesktop.ConsoleKit", session_path, "org.freedesktop.ConsoleKit.Session", "GetXDGRuntimeDir", g_variant_new ("()"), G_VARIANT_TYPE ("(s)"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Error getting XDG_RUNTIME_DIR from ConsoleKit: %s", error->message); g_clear_error (&error); if (!result) return NULL; g_variant_get (result, "(s)", &runtime_dir); g_variant_unref (result); g_debug ("ConsoleKit XDG_RUNTIME_DIR is %s", runtime_dir); } g_object_unref (bus); return runtime_dir; } lightdm-1.18.1/src/lightdm.c0000664000000000000000000016157512700600465012524 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include #include #include #include #include #include #include "configuration.h" #include "display-manager.h" #include "xdmcp-server.h" #include "vnc-server.h" #include "seat-xdmcp-session.h" #include "seat-xvnc.h" #include "x-server.h" #include "process.h" #include "session-child.h" #include "shared-data-manager.h" #include "user-list.h" #include "login1.h" #include "log-file.h" static gchar *config_path = NULL; static GMainLoop *loop = NULL; static GTimer *log_timer; static int log_fd = -1; static gboolean debug = FALSE; static DisplayManager *display_manager = NULL; static XDMCPServer *xdmcp_server = NULL; static VNCServer *vnc_server = NULL; static guint bus_id = 0; static GDBusConnection *bus = NULL; static guint reg_id = 0; static GDBusNodeInfo *seat_info; static GHashTable *seat_bus_entries = NULL; static guint seat_index = 0; static GDBusNodeInfo *session_info; static GHashTable *session_bus_entries = NULL; static guint session_index = 0; static gint exit_code = EXIT_SUCCESS; typedef struct { gchar *path; guint bus_id; } SeatBusEntry; typedef struct { gchar *path; gchar *seat_path; guint bus_id; } SessionBusEntry; #define LIGHTDM_BUS_NAME "org.freedesktop.DisplayManager" static gboolean update_login1_seat (Login1Seat *login1_seat); static void log_cb (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer data) { const gchar *prefix; gchar *text; switch (log_level & G_LOG_LEVEL_MASK) { case G_LOG_LEVEL_ERROR: prefix = "ERROR:"; break; case G_LOG_LEVEL_CRITICAL: prefix = "CRITICAL:"; break; case G_LOG_LEVEL_WARNING: prefix = "WARNING:"; break; case G_LOG_LEVEL_MESSAGE: prefix = "MESSAGE:"; break; case G_LOG_LEVEL_INFO: prefix = "INFO:"; break; case G_LOG_LEVEL_DEBUG: prefix = "DEBUG:"; break; default: prefix = "LOG:"; break; } text = g_strdup_printf ("[%+.2fs] %s %s\n", g_timer_elapsed (log_timer, NULL), prefix, message); /* Log everything to a file */ if (log_fd >= 0) { ssize_t n_written; n_written = write (log_fd, text, strlen (text)); if (n_written < 0) ; /* Check result so compiler doesn't warn about it */ } /* Log to stderr if requested */ if (debug) g_printerr ("%s", text); else g_log_default_handler (log_domain, log_level, message, data); g_free (text); } static void log_init (void) { gchar *log_dir, *path; gboolean backup_logs; log_timer = g_timer_new (); /* Log to a file */ log_dir = config_get_string (config_get_instance (), "LightDM", "log-directory"); path = g_build_filename (log_dir, "lightdm.log", NULL); g_free (log_dir); backup_logs = config_get_boolean (config_get_instance (), "LightDM", "backup-logs"); log_fd = log_file_open (path, backup_logs ? LOG_MODE_BACKUP_AND_TRUNCATE : LOG_MODE_APPEND); fcntl (log_fd, F_SETFD, FD_CLOEXEC); g_log_set_default_handler (log_cb, NULL); g_debug ("Logging to %s", path); g_free (path); } static GList* get_config_sections (const gchar *seat_name) { gchar **groups, **i; GList *config_sections = NULL; /* Load seat defaults first */ config_sections = g_list_append (config_sections, g_strdup ("Seat:*")); groups = config_get_groups (config_get_instance ()); for (i = groups; *i; i++) { if (g_str_has_prefix (*i, "Seat:") && strcmp (*i, "Seat:*") != 0) { const gchar *seat_name_glob = *i + strlen ("Seat:"); if (g_pattern_match_simple (seat_name_glob, seat_name ? seat_name : "")) config_sections = g_list_append (config_sections, g_strdup (*i)); } } g_strfreev (groups); return config_sections; } static void set_seat_properties (Seat *seat, const gchar *seat_name) { GList *sections, *link; gchar **keys; gint i; sections = get_config_sections (seat_name); for (link = sections; link; link = link->next) { const gchar *section = link->data; keys = config_get_keys (config_get_instance (), section); l_debug (seat, "Loading properties from config section %s", section); for (i = 0; keys && keys[i]; i++) { gchar *value = config_get_string (config_get_instance (), section, keys[i]); seat_set_property (seat, keys[i], value); g_free (value); } g_strfreev (keys); } g_list_free_full (sections, g_free); } static void signal_cb (Process *process, int signum) { g_debug ("Caught %s signal, shutting down", g_strsignal (signum)); display_manager_stop (display_manager); // FIXME: Stop XDMCP server } static void display_manager_stopped_cb (DisplayManager *display_manager) { g_debug ("Stopping daemon"); g_main_loop_quit (loop); } static void display_manager_seat_removed_cb (DisplayManager *display_manager, Seat *seat) { gchar **types; gchar **iter; Seat *next_seat = NULL; GString *next_types; /* If we have fallback types registered for the seat, let's try them before giving up. */ types = seat_get_string_list_property (seat, "type"); next_types = g_string_new (""); for (iter = types; iter && *iter; iter++) { if (iter == types) continue; // skip first one, that is our current seat type if (!next_seat) { next_seat = seat_new (*iter, seat_get_name (seat)); g_string_assign (next_types, *iter); } else { // Build up list of types to try next time g_string_append_c (next_types, ';'); g_string_append (next_types, *iter); } } g_strfreev (types); if (next_seat) { set_seat_properties (next_seat, seat_get_name (seat)); // We set this manually on default seat. Let's port it over if needed. if (seat_get_boolean_property (seat, "exit-on-failure")) seat_set_property (next_seat, "exit-on-failure", "true"); seat_set_property (next_seat, "type", next_types->str); display_manager_add_seat (display_manager, next_seat); g_object_unref (next_seat); } else if (seat_get_boolean_property (seat, "exit-on-failure")) { g_debug ("Required seat has stopped"); exit_code = EXIT_FAILURE; display_manager_stop (display_manager); } g_string_free (next_types, TRUE); } static GVariant * get_seat_list (void) { GVariantBuilder builder; GHashTableIter iter; gpointer value; g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao")); g_hash_table_iter_init (&iter, seat_bus_entries); while (g_hash_table_iter_next (&iter, NULL, &value)) { SeatBusEntry *entry = value; g_variant_builder_add_value (&builder, g_variant_new_object_path (entry->path)); } return g_variant_builder_end (&builder); } static GVariant * get_session_list (const gchar *seat_path) { GVariantBuilder builder; GHashTableIter iter; gpointer value; g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao")); g_hash_table_iter_init (&iter, session_bus_entries); while (g_hash_table_iter_next (&iter, NULL, &value)) { SessionBusEntry *entry = value; if (seat_path == NULL || strcmp (entry->seat_path, seat_path) == 0) g_variant_builder_add_value (&builder, g_variant_new_object_path (entry->path)); } return g_variant_builder_end (&builder); } static GVariant * handle_display_manager_get_property (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *property_name, GError **error, gpointer user_data) { if (g_strcmp0 (property_name, "Seats") == 0) return get_seat_list (); else if (g_strcmp0 (property_name, "Sessions") == 0) return get_session_list (NULL); return NULL; } static void handle_display_manager_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { if (g_strcmp0 (method_name, "AddSeat") == 0) g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "AddSeat is deprecated"); else if (g_strcmp0 (method_name, "AddLocalXSeat") == 0) { gint display_number; Seat *seat; if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(i)"))) { g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "Invalid arguments"); return; } g_variant_get (parameters, "(i)", &display_number); g_debug ("Adding local X seat :%d", display_number); seat = seat_new ("xremote", "xremote0"); // FIXME: What to use for a name? if (seat) { gchar *display_number_string; set_seat_properties (seat, NULL); display_number_string = g_strdup_printf ("%d", display_number); seat_set_property (seat, "xserver-display-number", display_number_string); g_free (display_number_string); } if (!seat) { // FIXME: Need to make proper error g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "Unable to create local X seat"); return; } if (display_manager_add_seat (display_manager, seat)) { SeatBusEntry *entry; entry = g_hash_table_lookup (seat_bus_entries, seat); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(o)", entry->path)); } else// FIXME: Need to make proper error g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "Failed to start seat"); g_object_unref (seat); } else g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Unknown method"); } static GVariant * handle_seat_get_property (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *property_name, GError **error, gpointer user_data) { Seat *seat = user_data; if (g_strcmp0 (property_name, "CanSwitch") == 0) return g_variant_new_boolean (seat_get_can_switch (seat)); if (g_strcmp0 (property_name, "HasGuestAccount") == 0) return g_variant_new_boolean (seat_get_allow_guest (seat)); else if (g_strcmp0 (property_name, "Sessions") == 0) { SeatBusEntry *entry; entry = g_hash_table_lookup (seat_bus_entries, seat); return get_session_list (entry->path); } return NULL; } static void handle_seat_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { Seat *seat = user_data; if (g_strcmp0 (method_name, "SwitchToGreeter") == 0) { if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("()"))) g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "Invalid arguments"); if (seat_switch_to_greeter (seat)) g_dbus_method_invocation_return_value (invocation, NULL); else// FIXME: Need to make proper error g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "Failed to switch to greeter"); } else if (g_strcmp0 (method_name, "SwitchToUser") == 0) { const gchar *username, *session_name; if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(ss)"))) g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "Invalid arguments"); g_variant_get (parameters, "(&s&s)", &username, &session_name); if (strcmp (session_name, "") == 0) session_name = NULL; if (seat_switch_to_user (seat, username, session_name)) g_dbus_method_invocation_return_value (invocation, NULL); else// FIXME: Need to make proper error g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "Failed to switch to user"); } else if (g_strcmp0 (method_name, "SwitchToGuest") == 0) { const gchar *session_name; if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("(s)"))) g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "Invalid arguments"); g_variant_get (parameters, "(&s)", &session_name); if (strcmp (session_name, "") == 0) session_name = NULL; if (seat_switch_to_guest (seat, session_name)) g_dbus_method_invocation_return_value (invocation, NULL); else// FIXME: Need to make proper error g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "Failed to switch to guest"); } else if (g_strcmp0 (method_name, "Lock") == 0) { if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("()"))) g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "Invalid arguments"); /* FIXME: Should only allow locks if have a session on this seat */ if (seat_lock (seat, NULL)) g_dbus_method_invocation_return_value (invocation, NULL); else// FIXME: Need to make proper error g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "Failed to lock seat"); } else g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Unknown method"); } static Seat * get_seat_for_session (Session *session) { GList *seat_link; for (seat_link = display_manager_get_seats (display_manager); seat_link; seat_link = seat_link->next) { Seat *seat = seat_link->data; GList *session_link; for (session_link = seat_get_sessions (seat); session_link; session_link = session_link->next) { Session *s = session_link->data; if (s == session) return seat; } } return NULL; } static GVariant * handle_session_get_property (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *property_name, GError **error, gpointer user_data) { Session *session = user_data; SessionBusEntry *entry; entry = g_hash_table_lookup (session_bus_entries, session); if (g_strcmp0 (property_name, "Seat") == 0) return g_variant_new_object_path (entry ? entry->seat_path : ""); else if (g_strcmp0 (property_name, "UserName") == 0) return g_variant_new_string (session_get_username (session)); return NULL; } static void handle_session_call (GDBusConnection *connection, const gchar *sender, const gchar *object_path, const gchar *interface_name, const gchar *method_name, GVariant *parameters, GDBusMethodInvocation *invocation, gpointer user_data) { Session *session = user_data; if (g_strcmp0 (method_name, "Lock") == 0) { Seat *seat; if (!g_variant_is_of_type (parameters, G_VARIANT_TYPE ("()"))) g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "Invalid arguments"); seat = get_seat_for_session (session); /* FIXME: Should only allow locks if have a session on this seat */ seat_lock (seat, session_get_username (session)); g_dbus_method_invocation_return_value (invocation, NULL); } else g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Unknown method"); } static SeatBusEntry * seat_bus_entry_new (const gchar *path) { SeatBusEntry *entry; entry = g_malloc0 (sizeof (SeatBusEntry)); entry->path = g_strdup (path); return entry; } static SessionBusEntry * session_bus_entry_new (const gchar *path, const gchar *seat_path) { SessionBusEntry *entry; entry = g_malloc0 (sizeof (SessionBusEntry)); entry->path = g_strdup (path); entry->seat_path = g_strdup (seat_path); return entry; } static void emit_object_value_changed (GDBusConnection *bus, const gchar *path, const gchar *interface_name, const gchar *property_name, GVariant *property_value) { GVariantBuilder builder; GError *error = NULL; g_variant_builder_init (&builder, G_VARIANT_TYPE_ARRAY); g_variant_builder_add (&builder, "{sv}", property_name, property_value); if (!g_dbus_connection_emit_signal (bus, NULL, path, "org.freedesktop.DBus.Properties", "PropertiesChanged", g_variant_new ("(sa{sv}as)", interface_name, &builder, NULL), &error)) g_warning ("Failed to emit PropertiesChanged signal: %s", error->message); g_clear_error (&error); } static void emit_object_signal (GDBusConnection *bus, const gchar *path, const gchar *signal_name, const gchar *object_path) { GError *error = NULL; if (!g_dbus_connection_emit_signal (bus, NULL, path, "org.freedesktop.DisplayManager", signal_name, g_variant_new ("(o)", object_path), &error)) g_warning ("Failed to emit %s signal on %s: %s", signal_name, path, error->message); g_clear_error (&error); } static void seat_bus_entry_free (gpointer data) { SeatBusEntry *entry = data; g_free (entry->path); g_free (entry); } static void session_bus_entry_free (gpointer data) { SessionBusEntry *entry = data; g_free (entry->path); g_free (entry->seat_path); g_free (entry); } static void running_user_session_cb (Seat *seat, Session *session) { static const GDBusInterfaceVTable session_vtable = { handle_session_call, handle_session_get_property }; SeatBusEntry *seat_entry; SessionBusEntry *session_entry; gchar *path; GError *error = NULL; /* Set environment variables when session runs */ seat_entry = g_hash_table_lookup (seat_bus_entries, seat); session_set_env (session, "XDG_SEAT_PATH", seat_entry->path); path = g_strdup_printf ("/org/freedesktop/DisplayManager/Session%d", session_index); session_index++; session_set_env (session, "XDG_SESSION_PATH", path); g_object_set_data_full (G_OBJECT (session), "XDG_SESSION_PATH", path, g_free); session_entry = session_bus_entry_new (g_object_get_data (G_OBJECT (session), "XDG_SESSION_PATH"), seat_entry ? seat_entry->path : NULL); g_hash_table_insert (session_bus_entries, g_object_ref (session), session_entry); g_debug ("Registering session with bus path %s", session_entry->path); session_entry->bus_id = g_dbus_connection_register_object (bus, session_entry->path, session_info->interfaces[0], &session_vtable, g_object_ref (session), g_object_unref, &error); if (session_entry->bus_id == 0) g_warning ("Failed to register user session: %s", error->message); g_clear_error (&error); emit_object_value_changed (bus, "/org/freedesktop/DisplayManager", "org.freedesktop.DisplayManager", "Sessions", get_session_list (NULL)); emit_object_signal (bus, "/org/freedesktop/DisplayManager", "SessionAdded", session_entry->path); emit_object_value_changed (bus, seat_entry->path, "org.freedesktop.DisplayManager.Seat", "Sessions", get_session_list (session_entry->seat_path)); emit_object_signal (bus, seat_entry->path, "SessionAdded", session_entry->path); } static void session_removed_cb (Seat *seat, Session *session) { SessionBusEntry *entry; gchar *seat_path = NULL; g_signal_handlers_disconnect_matched (session, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, seat); entry = g_hash_table_lookup (session_bus_entries, session); if (entry) { g_dbus_connection_unregister_object (bus, entry->bus_id); emit_object_signal (bus, "/org/freedesktop/DisplayManager", "SessionRemoved", entry->path); emit_object_signal (bus, entry->seat_path, "SessionRemoved", entry->path); seat_path = g_strdup (entry->seat_path); } g_hash_table_remove (session_bus_entries, session); if (seat_path) { emit_object_value_changed (bus, "/org/freedesktop/DisplayManager", "org.freedesktop.DisplayManager", "Sessions", get_session_list (NULL)); emit_object_value_changed (bus, seat_path, "org.freedesktop.DisplayManager.Seat", "Sessions", get_session_list (seat_path)); g_free (seat_path); } } static void seat_added_cb (DisplayManager *display_manager, Seat *seat) { static const GDBusInterfaceVTable seat_vtable = { handle_seat_call, handle_seat_get_property }; gchar *path; SeatBusEntry *entry; GError *error = NULL; path = g_strdup_printf ("/org/freedesktop/DisplayManager/Seat%d", seat_index); seat_index++; entry = seat_bus_entry_new (path); g_free (path); g_hash_table_insert (seat_bus_entries, g_object_ref (seat), entry); g_debug ("Registering seat with bus path %s", entry->path); entry->bus_id = g_dbus_connection_register_object (bus, entry->path, seat_info->interfaces[0], &seat_vtable, g_object_ref (seat), g_object_unref, &error); if (entry->bus_id == 0) g_warning ("Failed to register seat: %s", error->message); g_clear_error (&error); emit_object_value_changed (bus, "/org/freedesktop/DisplayManager", "org.freedesktop.DisplayManager", "Seats", get_seat_list ()); emit_object_signal (bus, "/org/freedesktop/DisplayManager", "SeatAdded", entry->path); g_signal_connect (seat, SEAT_SIGNAL_RUNNING_USER_SESSION, G_CALLBACK (running_user_session_cb), NULL); g_signal_connect (seat, SEAT_SIGNAL_SESSION_REMOVED, G_CALLBACK (session_removed_cb), NULL); } static void seat_removed_cb (DisplayManager *display_manager, Seat *seat) { SeatBusEntry *entry; entry = g_hash_table_lookup (seat_bus_entries, seat); if (entry) { g_dbus_connection_unregister_object (bus, entry->bus_id); emit_object_signal (bus, "/org/freedesktop/DisplayManager", "SeatRemoved", entry->path); } g_hash_table_remove (seat_bus_entries, seat); emit_object_value_changed (bus, "/org/freedesktop/DisplayManager", "org.freedesktop.DisplayManager", "Seats", get_seat_list ()); } static gboolean xdmcp_session_cb (XDMCPServer *server, XDMCPSession *session) { SeatXDMCPSession *seat; gboolean result; seat = seat_xdmcp_session_new (session); set_seat_properties (SEAT (seat), NULL); result = display_manager_add_seat (display_manager, SEAT (seat)); g_object_unref (seat); return result; } static void vnc_connection_cb (VNCServer *server, GSocket *connection) { SeatXVNC *seat; seat = seat_xvnc_new (connection); set_seat_properties (SEAT (seat), NULL); display_manager_add_seat (display_manager, SEAT (seat)); g_object_unref (seat); } static void bus_acquired_cb (GDBusConnection *connection, const gchar *name, gpointer user_data) { const gchar *display_manager_interface = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; static const GDBusInterfaceVTable display_manager_vtable = { handle_display_manager_call, handle_display_manager_get_property }; const gchar *seat_interface = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; const gchar *session_interface = "" " " " " " " " " " " ""; GDBusNodeInfo *display_manager_info; GList *link; GError *error = NULL; g_debug ("Acquired bus name %s", name); bus = connection; display_manager_info = g_dbus_node_info_new_for_xml (display_manager_interface, NULL); g_assert (display_manager_info != NULL); seat_info = g_dbus_node_info_new_for_xml (seat_interface, NULL); g_assert (seat_info != NULL); session_info = g_dbus_node_info_new_for_xml (session_interface, NULL); g_assert (session_info != NULL); reg_id = g_dbus_connection_register_object (connection, "/org/freedesktop/DisplayManager", display_manager_info->interfaces[0], &display_manager_vtable, NULL, NULL, &error); if (reg_id == 0) g_warning ("Failed to register display manager: %s", error->message); g_clear_error (&error); g_dbus_node_info_unref (display_manager_info); seat_bus_entries = g_hash_table_new_full (g_direct_hash, g_direct_equal, g_object_unref, seat_bus_entry_free); session_bus_entries = g_hash_table_new_full (g_direct_hash, g_direct_equal, g_object_unref, session_bus_entry_free); g_signal_connect (display_manager, DISPLAY_MANAGER_SIGNAL_SEAT_ADDED, G_CALLBACK (seat_added_cb), NULL); g_signal_connect (display_manager, DISPLAY_MANAGER_SIGNAL_SEAT_REMOVED, G_CALLBACK (seat_removed_cb), NULL); for (link = display_manager_get_seats (display_manager); link; link = link->next) seat_added_cb (display_manager, (Seat *) link->data); display_manager_start (display_manager); /* Start the XDMCP server */ if (config_get_boolean (config_get_instance (), "XDMCPServer", "enabled")) { gchar *key_name, *key = NULL, *listen_address; xdmcp_server = xdmcp_server_new (); if (config_has_key (config_get_instance (), "XDMCPServer", "port")) { gint port; port = config_get_integer (config_get_instance (), "XDMCPServer", "port"); if (port > 0) xdmcp_server_set_port (xdmcp_server, port); } listen_address = config_get_string (config_get_instance (), "XDMCPServer", "listen-address"); xdmcp_server_set_listen_address (xdmcp_server, listen_address); g_free (listen_address); g_signal_connect (xdmcp_server, XDMCP_SERVER_SIGNAL_NEW_SESSION, G_CALLBACK (xdmcp_session_cb), NULL); key_name = config_get_string (config_get_instance (), "XDMCPServer", "key"); if (key_name) { gchar *path; GKeyFile *keys; gboolean result; GError *error = NULL; path = g_build_filename (config_get_directory (config_get_instance ()), "keys.conf", NULL); keys = g_key_file_new (); result = g_key_file_load_from_file (keys, path, G_KEY_FILE_NONE, &error); if (error) g_warning ("Unable to load keys from %s: %s", path, error->message); g_clear_error (&error); if (result) { if (g_key_file_has_key (keys, "keyring", key_name, NULL)) key = g_key_file_get_string (keys, "keyring", key_name, NULL); else g_warning ("Key %s not defined", key_name); } g_free (path); g_key_file_free (keys); } if (key) xdmcp_server_set_key (xdmcp_server, key); g_free (key_name); g_free (key); if (key_name && !key) { exit_code = EXIT_FAILURE; display_manager_stop (display_manager); return; } else { g_debug ("Starting XDMCP server on UDP/IP port %d", xdmcp_server_get_port (xdmcp_server)); xdmcp_server_start (xdmcp_server); } } /* Start the VNC server */ if (config_get_boolean (config_get_instance (), "VNCServer", "enabled")) { gchar *path; path = g_find_program_in_path ("Xvnc"); if (path) { gchar *listen_address; vnc_server = vnc_server_new (); if (config_has_key (config_get_instance (), "VNCServer", "port")) { gint port; port = config_get_integer (config_get_instance (), "VNCServer", "port"); if (port > 0) vnc_server_set_port (vnc_server, port); } listen_address = config_get_string (config_get_instance (), "VNCServer", "listen-address"); vnc_server_set_listen_address (vnc_server, listen_address); g_free (listen_address); g_signal_connect (vnc_server, VNC_SERVER_SIGNAL_NEW_CONNECTION, G_CALLBACK (vnc_connection_cb), NULL); g_debug ("Starting VNC server on TCP/IP port %d", vnc_server_get_port (vnc_server)); vnc_server_start (vnc_server); g_free (path); } else g_warning ("Can't start VNC server, Xvnc is not in the path"); } } static void name_lost_cb (GDBusConnection *connection, const gchar *name, gpointer user_data) { if (connection) g_printerr ("Failed to use bus name " LIGHTDM_BUS_NAME ", do you have appropriate permissions?\n"); else g_printerr ("Failed to get D-Bus connection\n"); exit (EXIT_FAILURE); } static gboolean add_login1_seat (Login1Seat *login1_seat) { const gchar *seat_name = login1_seat_get_id (login1_seat); gchar **types = NULL, **type; GList *config_sections = NULL, *link; Seat *seat = NULL; gboolean is_seat0, started = FALSE; g_debug ("New seat added from logind: %s", seat_name); is_seat0 = strcmp (seat_name, "seat0") == 0; config_sections = get_config_sections (seat_name); for (link = g_list_last (config_sections); link; link = link->prev) { gchar *config_section = link->data; types = config_get_string_list (config_get_instance (), config_section, "type"); if (types) break; } g_list_free_full (config_sections, g_free); for (type = types; !seat && type && *type; type++) seat = seat_new (*type, seat_name); g_strfreev (types); if (seat) { set_seat_properties (seat, seat_name); if (!login1_seat_get_can_multi_session (login1_seat)) { g_debug ("Seat %s has property CanMultiSession=no", seat_name); /* XXX: uncomment this line after bug #1371250 is closed. seat_set_property (seat, "allow-user-switching", "false"); */ } if (is_seat0) seat_set_property (seat, "exit-on-failure", "true"); } else g_debug ("Unable to create seat: %s", seat_name); if (seat) { started = display_manager_add_seat (display_manager, seat); if (!started) g_debug ("Failed to start seat: %s", seat_name); } g_object_unref (seat); return started; } static void remove_login1_seat (Login1Seat *login1_seat) { Seat *seat; seat = display_manager_get_seat (display_manager, login1_seat_get_id (login1_seat)); if (seat) seat_stop (seat); } static void seat_stopped_cb (Seat *seat, Login1Seat *login1_seat) { update_login1_seat (login1_seat); g_signal_handlers_disconnect_matched (seat, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, login1_seat); } static gboolean update_login1_seat (Login1Seat *login1_seat) { if (!config_get_boolean (config_get_instance (), "LightDM", "logind-check-graphical") || login1_seat_get_can_graphical (login1_seat)) { Seat *seat; /* Wait for existing seat to stop or ignore if we already have a valid seat */ seat = display_manager_get_seat (display_manager, login1_seat_get_id (login1_seat)); if (seat) { if (seat_get_is_stopping (seat)) g_signal_connect (seat, SEAT_SIGNAL_STOPPED, G_CALLBACK (seat_stopped_cb), login1_seat); return TRUE; } return add_login1_seat (login1_seat); } else { remove_login1_seat (login1_seat); return TRUE; } } static void login1_can_graphical_changed_cb (Login1Seat *login1_seat) { g_debug ("Seat %s changes graphical state to %s", login1_seat_get_id (login1_seat), login1_seat_get_can_graphical (login1_seat) ? "true" : "false"); update_login1_seat (login1_seat); } static void login1_active_session_changed_cb (Login1Seat *login1_seat, const gchar *login1_session_id) { g_debug ("Seat %s changes active session to %s", login1_seat_get_id (login1_seat), login1_session_id); Seat *seat; seat = display_manager_get_seat (display_manager, login1_seat_get_id (login1_seat)); if (seat) { Session *active_session; active_session = seat_get_expected_active_session (seat); if (g_strcmp0 (login1_session_id, session_get_login1_session_id (active_session)) == 0) { // Session is already active g_debug ("Session %s is already active", login1_session_id); return; } active_session = seat_find_session_by_login1_id (seat, login1_session_id); if (active_session != NULL) { g_debug ("Activating session %s", login1_session_id); seat_set_externally_activated_session (seat, active_session); return; } } } static gboolean login1_add_seat (Login1Seat *login1_seat) { if (config_get_boolean (config_get_instance (), "LightDM", "logind-check-graphical")) g_signal_connect (login1_seat, "can-graphical-changed", G_CALLBACK (login1_can_graphical_changed_cb), NULL); g_signal_connect (login1_seat, LOGIN1_SIGNAL_ACTIVE_SESION_CHANGED, G_CALLBACK (login1_active_session_changed_cb), NULL); return update_login1_seat (login1_seat); } static void login1_service_seat_added_cb (Login1Service *service, Login1Seat *login1_seat) { if (login1_seat_get_can_graphical (login1_seat)) g_debug ("Seat %s added from logind", login1_seat_get_id (login1_seat)); else g_debug ("Seat %s added from logind without graphical output", login1_seat_get_id (login1_seat)); login1_add_seat (login1_seat); } static void login1_service_seat_removed_cb (Login1Service *service, Login1Seat *login1_seat) { g_debug ("Seat %s removed from logind", login1_seat_get_id (login1_seat)); g_signal_handlers_disconnect_matched (login1_seat, G_SIGNAL_MATCH_FUNC, 0, 0, NULL, login1_can_graphical_changed_cb, NULL); g_signal_handlers_disconnect_matched (login1_seat, G_SIGNAL_MATCH_FUNC, 0, 0, NULL, login1_active_session_changed_cb, NULL); remove_login1_seat (login1_seat); } int main (int argc, char **argv) { FILE *pid_file; GOptionContext *option_context; gboolean result; gchar *dir; gboolean test_mode = FALSE; gchar *pid_path = "/var/run/lightdm.pid"; gchar *log_dir = NULL; gchar *run_dir = NULL; gchar *cache_dir = NULL; gchar *default_log_dir = g_strdup (LOG_DIR); gchar *default_run_dir = g_strdup (RUN_DIR); gchar *default_cache_dir = g_strdup (CACHE_DIR); gboolean show_config = FALSE, show_version = FALSE; GList *link, *messages = NULL; GOptionEntry options[] = { { "config", 'c', 0, G_OPTION_ARG_STRING, &config_path, /* Help string for command line --config flag */ N_("Use configuration file"), "FILE" }, { "debug", 'd', 0, G_OPTION_ARG_NONE, &debug, /* Help string for command line --debug flag */ N_("Print debugging messages"), NULL }, { "test-mode", 0, 0, G_OPTION_ARG_NONE, &test_mode, /* Help string for command line --test-mode flag */ N_("Run as unprivileged user, skipping things that require root access"), NULL }, { "pid-file", 0, 0, G_OPTION_ARG_STRING, &pid_path, /* Help string for command line --pid-file flag */ N_("File to write PID into"), "FILE" }, { "log-dir", 0, 0, G_OPTION_ARG_STRING, &log_dir, /* Help string for command line --log-dir flag */ N_("Directory to write logs to"), "DIRECTORY" }, { "run-dir", 0, 0, G_OPTION_ARG_STRING, &run_dir, /* Help string for command line --run-dir flag */ N_("Directory to store running state"), "DIRECTORY" }, { "cache-dir", 0, 0, G_OPTION_ARG_STRING, &cache_dir, /* Help string for command line --cache-dir flag */ N_("Directory to cache information"), "DIRECTORY" }, { "show-config", 0, 0, G_OPTION_ARG_NONE, &show_config, /* Help string for command line --show-config flag */ N_("Show combined configuration"), NULL }, { "version", 'v', 0, G_OPTION_ARG_NONE, &show_version, /* Help string for command line --version flag */ N_("Show release version"), NULL }, { NULL } }; GError *error = NULL; /* When lightdm starts sessions it needs to run itself in a new mode */ if (argc >= 2 && strcmp (argv[1], "--session-child") == 0) return session_child_run (argc, argv); #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif loop = g_main_loop_new (NULL, FALSE); messages = g_list_append (messages, g_strdup_printf ("Starting Light Display Manager %s, UID=%i PID=%i", VERSION, getuid (), getpid ())); g_signal_connect (process_get_current (), PROCESS_SIGNAL_GOT_SIGNAL, G_CALLBACK (signal_cb), NULL); option_context = g_option_context_new (/* Arguments and description for --help test */ _("- Display Manager")); g_option_context_add_main_entries (option_context, options, GETTEXT_PACKAGE); result = g_option_context_parse (option_context, &argc, &argv, &error); if (error) g_printerr ("%s\n", error->message); g_clear_error (&error); g_option_context_free (option_context); if (!result) { g_printerr (/* Text printed out when an unknown command-line argument provided */ _("Run '%s --help' to see a full list of available command line options."), argv[0]); g_printerr ("\n"); return EXIT_FAILURE; } /* Show combined configuration if user requested it */ if (show_config) { GList *sources, *link; gchar **groups, *last_source, *empty_source; GHashTable *source_ids; int i; if (!config_load_from_standard_locations (config_get_instance (), config_path, NULL)) return EXIT_FAILURE; /* Number sources */ sources = config_get_sources (config_get_instance ()); source_ids = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); last_source = ""; for (i = 0, link = sources; link; i++, link = link->next) { gchar *path, *id; path = link->data; if (i < 26) id = g_strdup_printf ("%c", 'A' + i); else id = g_strdup_printf ("%d", i); g_hash_table_insert (source_ids, g_strdup (path), id); last_source = id; } empty_source = g_strdup (last_source); for (i = 0; empty_source[i] != '\0'; i++) empty_source[i] = ' '; /* Print out keys */ groups = config_get_groups (config_get_instance ()); for (i = 0; groups[i]; i++) { gchar **keys; int j; if (i != 0) g_printerr ("\n"); g_printerr ("%s [%s]\n", empty_source, groups[i]); keys = config_get_keys (config_get_instance (), groups[i]); for (j = 0; keys && keys[j]; j++) { const gchar *source, *id; gchar *value; source = config_get_source (config_get_instance (), groups[i], keys[j]); id = source ? g_hash_table_lookup (source_ids, source) : empty_source; value = config_get_string (config_get_instance (), groups[i], keys[j]); g_printerr ("%s %s=%s\n", id, keys[j], value); g_free (value); } g_strfreev (keys); } g_strfreev (groups); /* Show mapping from source number to path */ g_printerr ("\n"); g_printerr ("Sources:\n"); for (link = sources; link; link = link->next) { const gchar *path = link->data; const gchar *source; source = g_hash_table_lookup (source_ids, path); g_printerr ("%s %s\n", source, path); } g_hash_table_destroy (source_ids); return EXIT_SUCCESS; } if (show_version) { /* NOTE: Is not translated so can be easily parsed */ g_printerr ("lightdm %s\n", VERSION); return EXIT_SUCCESS; } if (!test_mode && getuid () != 0) { g_printerr ("Only root can run Light Display Manager. To run as a regular user for testing run with the --test-mode flag.\n"); return EXIT_FAILURE; } /* If running inside an X server use Xephyr for display */ if (getenv ("DISPLAY") && getuid () != 0) { gchar *x_server_path; x_server_path = g_find_program_in_path ("Xephyr"); if (!x_server_path) { g_printerr ("Running inside an X server requires Xephyr to be installed but it cannot be found. Please install it or update your PATH environment variable.\n"); return EXIT_FAILURE; } g_free (x_server_path); } /* Make sure the system binary directory (where the greeters are installed) is in the path */ if (test_mode) { const gchar *path = g_getenv ("PATH"); gchar *new_path; if (path) new_path = g_strdup_printf ("%s:%s", path, SBIN_DIR); else new_path = g_strdup (SBIN_DIR); g_setenv ("PATH", new_path, TRUE); g_free (new_path); } /* Write PID file */ pid_file = fopen (pid_path, "w"); if (pid_file) { fprintf (pid_file, "%d\n", getpid ()); fclose (pid_file); } /* If not running as root write output to directories we control */ if (getuid () != 0) { g_free (default_log_dir); default_log_dir = g_build_filename (g_get_user_cache_dir (), "lightdm", "log", NULL); g_free (default_run_dir); default_run_dir = g_build_filename (g_get_user_cache_dir (), "lightdm", "run", NULL); g_free (default_cache_dir); default_cache_dir = g_build_filename (g_get_user_cache_dir (), "lightdm", "cache", NULL); } /* Load config file(s) */ if (!config_load_from_standard_locations (config_get_instance (), config_path, &messages)) exit (EXIT_FAILURE); g_free (config_path); /* Set default values */ if (!config_has_key (config_get_instance (), "LightDM", "start-default-seat")) config_set_boolean (config_get_instance (), "LightDM", "start-default-seat", TRUE); if (!config_has_key (config_get_instance (), "LightDM", "minimum-vt")) config_set_integer (config_get_instance (), "LightDM", "minimum-vt", 7); if (!config_has_key (config_get_instance (), "LightDM", "guest-account-script")) config_set_string (config_get_instance (), "LightDM", "guest-account-script", "guest-account"); if (!config_has_key (config_get_instance (), "LightDM", "greeter-user")) config_set_string (config_get_instance (), "LightDM", "greeter-user", GREETER_USER); if (!config_has_key (config_get_instance (), "LightDM", "lock-memory")) config_set_boolean (config_get_instance (), "LightDM", "lock-memory", TRUE); if (!config_has_key (config_get_instance (), "LightDM", "backup-logs")) config_set_boolean (config_get_instance (), "LightDM", "backup-logs", TRUE); if (!config_has_key (config_get_instance (), "Seat:*", "type")) config_set_string (config_get_instance (), "Seat:*", "type", "xlocal"); if (!config_has_key (config_get_instance (), "Seat:*", "pam-service")) config_set_string (config_get_instance (), "Seat:*", "pam-service", "lightdm"); if (!config_has_key (config_get_instance (), "Seat:*", "pam-autologin-service")) config_set_string (config_get_instance (), "Seat:*", "pam-autologin-service", "lightdm-autologin"); if (!config_has_key (config_get_instance (), "Seat:*", "pam-greeter-service")) config_set_string (config_get_instance (), "Seat:*", "pam-greeter-service", "lightdm-greeter"); if (!config_has_key (config_get_instance (), "Seat:*", "xserver-command")) config_set_string (config_get_instance (), "Seat:*", "xserver-command", "X"); if (!config_has_key (config_get_instance (), "Seat:*", "xmir-command")) config_set_string (config_get_instance (), "Seat:*", "xmir-command", "Xmir"); if (!config_has_key (config_get_instance (), "Seat:*", "xserver-share")) config_set_boolean (config_get_instance (), "Seat:*", "xserver-share", TRUE); if (!config_has_key (config_get_instance (), "Seat:*", "unity-compositor-command")) config_set_string (config_get_instance (), "Seat:*", "unity-compositor-command", "unity-system-compositor"); if (!config_has_key (config_get_instance (), "Seat:*", "start-session")) config_set_boolean (config_get_instance (), "Seat:*", "start-session", TRUE); if (!config_has_key (config_get_instance (), "Seat:*", "allow-user-switching")) config_set_boolean (config_get_instance (), "Seat:*", "allow-user-switching", TRUE); if (!config_has_key (config_get_instance (), "Seat:*", "allow-guest")) config_set_boolean (config_get_instance (), "Seat:*", "allow-guest", TRUE); if (!config_has_key (config_get_instance (), "Seat:*", "greeter-allow-guest")) config_set_boolean (config_get_instance (), "Seat:*", "greeter-allow-guest", TRUE); if (!config_has_key (config_get_instance (), "Seat:*", "greeter-show-remote-login")) config_set_boolean (config_get_instance (), "Seat:*", "greeter-show-remote-login", TRUE); if (!config_has_key (config_get_instance (), "Seat:*", "greeter-session")) config_set_string (config_get_instance (), "Seat:*", "greeter-session", GREETER_SESSION); if (!config_has_key (config_get_instance (), "Seat:*", "user-session")) config_set_string (config_get_instance (), "Seat:*", "user-session", USER_SESSION); if (!config_has_key (config_get_instance (), "Seat:*", "session-wrapper")) config_set_string (config_get_instance (), "Seat:*", "session-wrapper", "lightdm-session"); if (!config_has_key (config_get_instance (), "LightDM", "log-directory")) config_set_string (config_get_instance (), "LightDM", "log-directory", default_log_dir); g_free (default_log_dir); if (!config_has_key (config_get_instance (), "LightDM", "run-directory")) config_set_string (config_get_instance (), "LightDM", "run-directory", default_run_dir); g_free (default_run_dir); if (!config_has_key (config_get_instance (), "LightDM", "cache-directory")) config_set_string (config_get_instance (), "LightDM", "cache-directory", default_cache_dir); g_free (default_cache_dir); if (!config_has_key (config_get_instance (), "LightDM", "sessions-directory")) config_set_string (config_get_instance (), "LightDM", "sessions-directory", SESSIONS_DIR); if (!config_has_key (config_get_instance (), "LightDM", "remote-sessions-directory")) config_set_string (config_get_instance (), "LightDM", "remote-sessions-directory", REMOTE_SESSIONS_DIR); if (!config_has_key (config_get_instance (), "LightDM", "greeters-directory")) config_set_string (config_get_instance (), "LightDM", "greeters-directory", GREETERS_DIR); /* Override defaults */ if (log_dir) config_set_string (config_get_instance (), "LightDM", "log-directory", log_dir); g_free (log_dir); if (run_dir) config_set_string (config_get_instance (), "LightDM", "run-directory", run_dir); g_free (run_dir); if (cache_dir) config_set_string (config_get_instance (), "LightDM", "cache-directory", cache_dir); g_free (cache_dir); /* Create run and cache directories */ dir = config_get_string (config_get_instance (), "LightDM", "log-directory"); if (g_mkdir_with_parents (dir, S_IRWXU | S_IXGRP | S_IXOTH) < 0) g_warning ("Failed to make log directory %s: %s", dir, strerror (errno)); g_free (dir); dir = config_get_string (config_get_instance (), "LightDM", "run-directory"); if (g_mkdir_with_parents (dir, S_IRWXU | S_IXGRP | S_IXOTH) < 0) g_warning ("Failed to make run directory %s: %s", dir, strerror (errno)); g_free (dir); dir = config_get_string (config_get_instance (), "LightDM", "cache-directory"); if (g_mkdir_with_parents (dir, S_IRWXU | S_IXGRP | S_IXOTH) < 0) g_warning ("Failed to make cache directory %s: %s", dir, strerror (errno)); g_free (dir); log_init (); /* Show queued messages once logging is complete */ for (link = messages; link; link = link->next) g_debug ("%s", (gchar *)link->data); g_list_free_full (messages, g_free); g_debug ("Using D-Bus name %s", LIGHTDM_BUS_NAME); bus_id = g_bus_own_name (getuid () == 0 ? G_BUS_TYPE_SYSTEM : G_BUS_TYPE_SESSION, LIGHTDM_BUS_NAME, G_BUS_NAME_OWNER_FLAGS_NONE, bus_acquired_cb, NULL, name_lost_cb, NULL, NULL); if (getuid () != 0) g_debug ("Running in user mode"); if (getenv ("DISPLAY")) g_debug ("Using Xephyr for X servers"); display_manager = display_manager_new (); g_signal_connect (display_manager, DISPLAY_MANAGER_SIGNAL_STOPPED, G_CALLBACK (display_manager_stopped_cb), NULL); g_signal_connect (display_manager, DISPLAY_MANAGER_SIGNAL_SEAT_REMOVED, G_CALLBACK (display_manager_seat_removed_cb), NULL); shared_data_manager_start (shared_data_manager_get_instance ()); /* Connect to logind */ if (login1_service_connect (login1_service_get_instance ())) { /* Load dynamic seats from logind */ g_debug ("Monitoring logind for seats"); if (config_get_boolean (config_get_instance (), "LightDM", "start-default-seat")) { g_signal_connect (login1_service_get_instance (), LOGIN1_SERVICE_SIGNAL_SEAT_ADDED, G_CALLBACK (login1_service_seat_added_cb), NULL); g_signal_connect (login1_service_get_instance (), LOGIN1_SERVICE_SIGNAL_SEAT_REMOVED, G_CALLBACK (login1_service_seat_removed_cb), NULL); for (link = login1_service_get_seats (login1_service_get_instance ()); link; link = link->next) { Login1Seat *login1_seat = link->data; if (!login1_add_seat (login1_seat)) return EXIT_FAILURE; } } } else { if (config_get_boolean (config_get_instance (), "LightDM", "start-default-seat")) { gchar **types; gchar **type; Seat *seat = NULL; g_debug ("Adding default seat"); types = config_get_string_list (config_get_instance (), "Seat:*", "type"); for (type = types; type && *type; type++) { seat = seat_new (*type, "seat0"); if (seat) break; } g_strfreev (types); if (seat) { set_seat_properties (seat, NULL); seat_set_property (seat, "exit-on-failure", "true"); if (!display_manager_add_seat (display_manager, seat)) return EXIT_FAILURE; g_object_unref (seat); } else { g_warning ("Failed to create default seat"); return EXIT_FAILURE; } } } g_main_loop_run (loop); /* Clean up shared data manager */ shared_data_manager_cleanup (); /* Clean up user list */ common_user_list_cleanup (); /* Clean up display manager */ g_clear_object (&display_manager); /* Remove D-Bus interface */ g_dbus_connection_unregister_object (bus, reg_id); g_bus_unown_name (bus_id); if (seat_bus_entries) g_hash_table_unref (seat_bus_entries); if (session_bus_entries) g_hash_table_unref (session_bus_entries); g_debug ("Exiting with return value %d", exit_code); return exit_code; } lightdm-1.18.1/src/x-server-local.h0000664000000000000000000000501312700600465013724 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef X_SERVER_LOCAL_H_ #define X_SERVER_LOCAL_H_ #include "x-server.h" G_BEGIN_DECLS #define X_SERVER_LOCAL_TYPE (x_server_local_get_type()) #define X_SERVER_LOCAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), X_SERVER_LOCAL_TYPE, XServerLocal)) #define IS_X_SERVER_LOCAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), X_SERVER_LOCAL_TYPE)) typedef struct XServerLocalPrivate XServerLocalPrivate; typedef struct { XServer parent_instance; XServerLocalPrivate *priv; } XServerLocal; typedef struct { XServerClass parent_class; } XServerLocalClass; const gchar *x_server_local_get_version (void); gint x_server_local_version_compare (guint major, guint minor); guint x_server_local_get_unused_display_number (void); void x_server_local_release_display_number (guint display_number); GType x_server_local_get_type (void); XServerLocal *x_server_local_new (void); void x_server_local_set_command (XServerLocal *server, const gchar *command); void x_server_local_set_vt (XServerLocal *server, gint vt); void x_server_local_set_config (XServerLocal *server, const gchar *path); void x_server_local_set_layout (XServerLocal *server, const gchar *layout); void x_server_local_set_xdg_seat (XServerLocal *server, const gchar *xdg_seat); void x_server_local_set_allow_tcp (XServerLocal *server, gboolean allow_tcp); void x_server_local_set_xdmcp_server (XServerLocal *server, const gchar *hostname); const gchar *x_server_local_get_xdmcp_server (XServerLocal *server); void x_server_local_set_xdmcp_port (XServerLocal *server, guint port); guint x_server_local_get_xdmcp_port (XServerLocal *server); void x_server_local_set_xdmcp_key (XServerLocal *server, const gchar *key); void x_server_local_set_background (XServerLocal *server, const gchar *background); void x_server_local_set_mir_id (XServerLocal *server, const gchar *id); const gchar *x_server_local_get_mir_id (XServerLocal *server); void x_server_local_set_mir_socket (XServerLocal *server, const gchar *socket); const gchar *x_server_local_get_authority_file_path (XServerLocal *server); G_END_DECLS #endif /* X_SERVER_LOCAL_H_ */ lightdm-1.18.1/src/session-child.h0000664000000000000000000000106312700600465013626 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef SESSION_CHILD_H_ #define SESSION_CHILD_H_ int session_child_run (int argc, char **argv); #endif /* SESSION_CHILD_H_ */ lightdm-1.18.1/src/x-server-local.c0000664000000000000000000004465112700600465013732 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include #include #include #include #include "x-server-local.h" #include "configuration.h" #include "process.h" #include "vt.h" struct XServerLocalPrivate { /* X server process */ Process *x_server_process; /* Command to run the X server */ gchar *command; /* Config file to use */ gchar *config_file; /* Server layout to use */ gchar *layout; /* Value for -seat argument */ gchar *xdg_seat; /* TRUE if TCP/IP connections are allowed */ gboolean allow_tcp; /* Authority file */ gchar *authority_file; /* XDMCP server to connect to */ gchar *xdmcp_server; /* XDMCP port to connect to */ guint xdmcp_port; /* XDMCP key to use */ gchar *xdmcp_key; /* ID to report to Mir */ gchar *mir_id; /* Filename of socket Mir is listening on */ gchar *mir_socket; /* TRUE when received ready signal */ gboolean got_signal; /* VT to run on */ gint vt; gboolean have_vt_ref; /* Background to set */ gchar *background; }; G_DEFINE_TYPE (XServerLocal, x_server_local, X_SERVER_TYPE); static gchar *version = NULL; static guint version_major = 0, version_minor = 0; static GList *display_numbers = NULL; #define XORG_VERSION_PREFIX "X.Org X Server " static gchar * find_version (const gchar *line) { if (!g_str_has_prefix (line, XORG_VERSION_PREFIX)) return NULL; return g_strdup (line + strlen (XORG_VERSION_PREFIX)); } const gchar * x_server_local_get_version (void) { gchar *stderr_text; gint exit_status; gchar **tokens; guint n_tokens; if (version) return version; if (!g_spawn_command_line_sync ("X -version", NULL, &stderr_text, &exit_status, NULL)) return NULL; if (exit_status == EXIT_SUCCESS) { gchar **lines; int i; lines = g_strsplit (stderr_text, "\n", -1); for (i = 0; lines[i] && !version; i++) version = find_version (lines[i]); g_strfreev (lines); } g_free (stderr_text); tokens = g_strsplit (version, ".", 3); n_tokens = g_strv_length (tokens); version_major = n_tokens > 0 ? atoi (tokens[0]) : 0; version_minor = n_tokens > 1 ? atoi (tokens[1]) : 0; g_strfreev (tokens); return version; } gint x_server_local_version_compare (guint major, guint minor) { x_server_local_get_version (); if (major == version_major) return version_minor - minor; else return version_major - major; } static gboolean display_number_in_use (guint display_number) { GList *link; gchar *path; gboolean in_use; gchar *data; /* See if we know we are managing a server with that number */ for (link = display_numbers; link; link = link->next) { guint number = GPOINTER_TO_UINT (link->data); if (number == display_number) return TRUE; } /* See if an X server that we don't know of has a lock on that number */ path = g_strdup_printf ("/tmp/.X%d-lock", display_number); in_use = g_file_test (path, G_FILE_TEST_EXISTS); /* See if that lock file is valid, ignore it if the contents are invalid or the process doesn't exist */ if (in_use && g_file_get_contents (path, &data, NULL, NULL)) { int pid; pid = atoi (g_strstrip (data)); g_free (data); errno = 0; if (pid < 0 || (kill (pid, 0) < 0 && errno == ESRCH)) in_use = FALSE; } g_free (path); return in_use; } guint x_server_local_get_unused_display_number (void) { guint number; number = config_get_integer (config_get_instance (), "LightDM", "minimum-display-number"); while (display_number_in_use (number)) number++; display_numbers = g_list_append (display_numbers, GUINT_TO_POINTER (number)); return number; } void x_server_local_release_display_number (guint display_number) { GList *link; for (link = display_numbers; link; link = link->next) { guint number = GPOINTER_TO_UINT (link->data); if (number == display_number) { display_numbers = g_list_delete_link (display_numbers, link); return; } } } XServerLocal * x_server_local_new (void) { XServerLocal *self; gchar hostname[1024], *number, *name; XAuthority *cookie; self = g_object_new (X_SERVER_LOCAL_TYPE, NULL); x_server_set_display_number (X_SERVER (self), x_server_local_get_unused_display_number ()); gethostname (hostname, 1024); number = g_strdup_printf ("%d", x_server_get_display_number (X_SERVER (self))); cookie = x_authority_new_cookie (XAUTH_FAMILY_LOCAL, (guint8*) hostname, strlen (hostname), number); x_server_set_authority (X_SERVER (self), cookie); g_free (number); g_object_unref (cookie); name = g_strdup_printf ("x-%d", x_server_get_display_number (X_SERVER (self))); display_server_set_name (DISPLAY_SERVER (self), name); g_free (name); return self; } void x_server_local_set_command (XServerLocal *server, const gchar *command) { g_return_if_fail (server != NULL); g_free (server->priv->command); server->priv->command = g_strdup (command); } void x_server_local_set_vt (XServerLocal *server, gint vt) { g_return_if_fail (server != NULL); if (server->priv->have_vt_ref) vt_unref (server->priv->vt); server->priv->have_vt_ref = FALSE; server->priv->vt = vt; if (vt > 0) { vt_ref (vt); server->priv->have_vt_ref = TRUE; } } void x_server_local_set_config (XServerLocal *server, const gchar *path) { g_return_if_fail (server != NULL); g_free (server->priv->config_file); server->priv->config_file = g_strdup (path); } void x_server_local_set_layout (XServerLocal *server, const gchar *layout) { g_return_if_fail (server != NULL); g_free (server->priv->layout); server->priv->layout = g_strdup (layout); } void x_server_local_set_xdg_seat (XServerLocal *server, const gchar *xdg_seat) { g_return_if_fail (server != NULL); g_free (server->priv->xdg_seat); server->priv->xdg_seat = g_strdup (xdg_seat); } void x_server_local_set_allow_tcp (XServerLocal *server, gboolean allow_tcp) { g_return_if_fail (server != NULL); server->priv->allow_tcp = allow_tcp; } void x_server_local_set_xdmcp_server (XServerLocal *server, const gchar *hostname) { g_return_if_fail (server != NULL); g_free (server->priv->xdmcp_server); server->priv->xdmcp_server = g_strdup (hostname); } const gchar * x_server_local_get_xdmcp_server (XServerLocal *server) { g_return_val_if_fail (server != NULL, 0); return server->priv->xdmcp_server; } void x_server_local_set_xdmcp_port (XServerLocal *server, guint port) { g_return_if_fail (server != NULL); server->priv->xdmcp_port = port; } guint x_server_local_get_xdmcp_port (XServerLocal *server) { g_return_val_if_fail (server != NULL, 0); return server->priv->xdmcp_port; } void x_server_local_set_xdmcp_key (XServerLocal *server, const gchar *key) { g_return_if_fail (server != NULL); g_free (server->priv->xdmcp_key); server->priv->xdmcp_key = g_strdup (key); x_server_set_authority (X_SERVER (server), NULL); } void x_server_local_set_background (XServerLocal *server, const gchar *background) { g_return_if_fail (server != NULL); g_free (server->priv->background); server->priv->background = g_strdup (background); } void x_server_local_set_mir_id (XServerLocal *server, const gchar *id) { g_return_if_fail (server != NULL); g_free (server->priv->mir_id); server->priv->mir_id = g_strdup (id); } const gchar *x_server_local_get_mir_id (XServerLocal *server) { g_return_val_if_fail (server != NULL, NULL); return server->priv->mir_id; } void x_server_local_set_mir_socket (XServerLocal *server, const gchar *socket) { g_return_if_fail (server != NULL); g_free (server->priv->mir_socket); server->priv->mir_socket = g_strdup (socket); } static gint x_server_local_get_vt (DisplayServer *server) { g_return_val_if_fail (server != NULL, 0); return X_SERVER_LOCAL (server)->priv->vt; } const gchar * x_server_local_get_authority_file_path (XServerLocal *server) { g_return_val_if_fail (server != NULL, 0); return server->priv->authority_file; } static gchar * get_absolute_command (const gchar *command) { gchar **tokens; gchar *absolute_binary, *absolute_command = NULL; tokens = g_strsplit (command, " ", 2); absolute_binary = g_find_program_in_path (tokens[0]); if (absolute_binary) { if (tokens[1]) absolute_command = g_strjoin (" ", absolute_binary, tokens[1], NULL); else absolute_command = g_strdup (absolute_binary); } g_free (absolute_binary); g_strfreev (tokens); return absolute_command; } static void run_cb (Process *process, gpointer user_data) { int fd; /* Make input non-blocking */ fd = open ("/dev/null", O_RDONLY); dup2 (fd, STDIN_FILENO); close (fd); /* Set SIGUSR1 to ignore so the X server can indicate it when it is ready */ signal (SIGUSR1, SIG_IGN); } static void got_signal_cb (Process *process, int signum, XServerLocal *server) { if (signum == SIGUSR1 && !server->priv->got_signal) { server->priv->got_signal = TRUE; l_debug (server, "Got signal from X server :%d", x_server_get_display_number (X_SERVER (server))); // FIXME: Check return value DISPLAY_SERVER_CLASS (x_server_local_parent_class)->start (DISPLAY_SERVER (server)); } } static void stopped_cb (Process *process, XServerLocal *server) { l_debug (server, "X server stopped"); /* Release VT and display number for re-use */ if (server->priv->have_vt_ref) { vt_unref (server->priv->vt); server->priv->have_vt_ref = FALSE; } x_server_local_release_display_number (x_server_get_display_number (X_SERVER (server))); if (x_server_get_authority (X_SERVER (server)) && server->priv->authority_file) { l_debug (server, "Removing X server authority %s", server->priv->authority_file); g_unlink (server->priv->authority_file); g_free (server->priv->authority_file); server->priv->authority_file = NULL; } DISPLAY_SERVER_CLASS (x_server_local_parent_class)->stop (DISPLAY_SERVER (server)); } static void write_authority_file (XServerLocal *server) { XAuthority *authority; GError *error = NULL; authority = x_server_get_authority (X_SERVER (server)); if (!authority) return; /* Get file to write to if have authority */ if (!server->priv->authority_file) { gchar *run_dir, *dir; run_dir = config_get_string (config_get_instance (), "LightDM", "run-directory"); dir = g_build_filename (run_dir, "root", NULL); g_free (run_dir); if (g_mkdir_with_parents (dir, S_IRWXU) < 0) l_warning (server, "Failed to make authority directory %s: %s", dir, strerror (errno)); server->priv->authority_file = g_build_filename (dir, x_server_get_address (X_SERVER (server)), NULL); g_free (dir); } l_debug (server, "Writing X server authority to %s", server->priv->authority_file); x_authority_write (authority, XAUTH_WRITE_MODE_REPLACE, server->priv->authority_file, &error); if (error) l_warning (server, "Failed to write authority: %s", error->message); g_clear_error (&error); } static gboolean x_server_local_start (DisplayServer *display_server) { XServerLocal *server = X_SERVER_LOCAL (display_server); gboolean result, backup_logs; gchar *filename, *dir, *log_file, *absolute_command; GString *command; g_return_val_if_fail (server->priv->x_server_process == NULL, FALSE); server->priv->got_signal = FALSE; g_return_val_if_fail (server->priv->command != NULL, FALSE); server->priv->x_server_process = process_new (run_cb, server); process_set_clear_environment (server->priv->x_server_process, TRUE); g_signal_connect (server->priv->x_server_process, PROCESS_SIGNAL_GOT_SIGNAL, G_CALLBACK (got_signal_cb), server); g_signal_connect (server->priv->x_server_process, PROCESS_SIGNAL_STOPPED, G_CALLBACK (stopped_cb), server); /* Setup logging */ filename = g_strdup_printf ("%s.log", display_server_get_name (display_server)); dir = config_get_string (config_get_instance (), "LightDM", "log-directory"); log_file = g_build_filename (dir, filename, NULL); backup_logs = config_get_boolean (config_get_instance (), "LightDM", "backup-logs"); process_set_log_file (server->priv->x_server_process, log_file, TRUE, backup_logs ? LOG_MODE_BACKUP_AND_TRUNCATE : LOG_MODE_APPEND); l_debug (display_server, "Logging to %s", log_file); g_free (log_file); g_free (filename); g_free (dir); absolute_command = get_absolute_command (server->priv->command); if (!absolute_command) { l_debug (display_server, "Can't launch X server %s, not found in path", server->priv->command); stopped_cb (server->priv->x_server_process, X_SERVER_LOCAL (server)); return FALSE; } command = g_string_new (absolute_command); g_free (absolute_command); g_string_append_printf (command, " :%d", x_server_get_display_number (X_SERVER (server))); if (server->priv->config_file) g_string_append_printf (command, " -config %s", server->priv->config_file); if (server->priv->layout) g_string_append_printf (command, " -layout %s", server->priv->layout); if (server->priv->xdg_seat) g_string_append_printf (command, " -seat %s", server->priv->xdg_seat); write_authority_file (server); if (server->priv->authority_file) g_string_append_printf (command, " -auth %s", server->priv->authority_file); /* Setup for running inside Mir */ if (server->priv->mir_id) g_string_append_printf (command, " -mir %s", server->priv->mir_id); if (server->priv->mir_socket) g_string_append_printf (command, " -mirSocket %s", server->priv->mir_socket); /* Connect to a remote server using XDMCP */ if (server->priv->xdmcp_server != NULL) { if (server->priv->xdmcp_port != 0) g_string_append_printf (command, " -port %d", server->priv->xdmcp_port); g_string_append_printf (command, " -query %s", server->priv->xdmcp_server); if (server->priv->xdmcp_key) g_string_append_printf (command, " -cookie %s", server->priv->xdmcp_key); } else if (server->priv->allow_tcp) { if (x_server_local_version_compare (1, 17) >= 0) g_string_append (command, " -listen tcp"); } else g_string_append (command, " -nolisten tcp"); if (server->priv->vt >= 0) g_string_append_printf (command, " vt%d -novtswitch", server->priv->vt); if (server->priv->background) g_string_append_printf (command, " -background %s", server->priv->background); process_set_command (server->priv->x_server_process, command->str); g_string_free (command, TRUE); l_debug (display_server, "Launching X Server"); /* If running inside another display then pass through those variables */ if (g_getenv ("DISPLAY")) { process_set_env (server->priv->x_server_process, "DISPLAY", g_getenv ("DISPLAY")); if (g_getenv ("XAUTHORITY")) process_set_env (server->priv->x_server_process, "XAUTHORITY", g_getenv ("XAUTHORITY")); else { gchar *path; path = g_build_filename (g_get_home_dir (), ".Xauthority", NULL); process_set_env (server->priv->x_server_process, "XAUTHORITY", path); g_free (path); } } /* Variable required for regression tests */ if (g_getenv ("LIGHTDM_TEST_ROOT")) { process_set_env (server->priv->x_server_process, "LIGHTDM_TEST_ROOT", g_getenv ("LIGHTDM_TEST_ROOT")); process_set_env (server->priv->x_server_process, "LD_PRELOAD", g_getenv ("LD_PRELOAD")); process_set_env (server->priv->x_server_process, "LD_LIBRARY_PATH", g_getenv ("LD_LIBRARY_PATH")); } result = process_start (server->priv->x_server_process, FALSE); if (result) l_debug (display_server, "Waiting for ready signal from X server :%d", x_server_get_display_number (X_SERVER (server))); if (!result) stopped_cb (server->priv->x_server_process, X_SERVER_LOCAL (server)); return result; } static void x_server_local_stop (DisplayServer *server) { process_stop (X_SERVER_LOCAL (server)->priv->x_server_process); } static void x_server_local_init (XServerLocal *server) { server->priv = G_TYPE_INSTANCE_GET_PRIVATE (server, X_SERVER_LOCAL_TYPE, XServerLocalPrivate); server->priv->vt = -1; server->priv->command = g_strdup ("X"); } static void x_server_local_finalize (GObject *object) { XServerLocal *self = X_SERVER_LOCAL (object); if (self->priv->x_server_process) { g_signal_handlers_disconnect_matched (self->priv->x_server_process, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, self); g_object_unref (self->priv->x_server_process); } g_free (self->priv->command); g_free (self->priv->config_file); g_free (self->priv->layout); g_free (self->priv->xdg_seat); g_free (self->priv->xdmcp_server); g_free (self->priv->xdmcp_key); g_free (self->priv->mir_id); g_free (self->priv->mir_socket); g_free (self->priv->authority_file); if (self->priv->have_vt_ref) vt_unref (self->priv->vt); g_free (self->priv->background); G_OBJECT_CLASS (x_server_local_parent_class)->finalize (object); } static void x_server_local_class_init (XServerLocalClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); DisplayServerClass *display_server_class = DISPLAY_SERVER_CLASS (klass); display_server_class->get_vt = x_server_local_get_vt; display_server_class->start = x_server_local_start; display_server_class->stop = x_server_local_stop; object_class->finalize = x_server_local_finalize; g_type_class_add_private (klass, sizeof (XServerLocalPrivate)); } lightdm-1.18.1/src/display-manager.c0000664000000000000000000001330712700600465014136 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include #include #include #include "display-manager.h" #include "configuration.h" #include "seat-xlocal.h" #include "seat-xremote.h" #include "seat-unity.h" #include "plymouth.h" enum { SEAT_ADDED, SEAT_REMOVED, STOPPED, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; struct DisplayManagerPrivate { /* The seats available */ GList *seats; /* TRUE if stopping the display manager (waiting for seats to stop) */ gboolean stopping; /* TRUE if stopped */ gboolean stopped; }; G_DEFINE_TYPE (DisplayManager, display_manager, G_TYPE_OBJECT); DisplayManager * display_manager_new (void) { return g_object_new (DISPLAY_MANAGER_TYPE, NULL); } GList * display_manager_get_seats (DisplayManager *manager) { return manager->priv->seats; } Seat * display_manager_get_seat (DisplayManager *manager, const gchar *name) { GList *link; for (link = manager->priv->seats; link; link = link->next) { Seat *seat = link->data; if (strcmp (seat_get_name (seat), name) == 0) return seat; } return NULL; } static void check_stopped (DisplayManager *manager) { if (manager->priv->stopping && !manager->priv->stopped && g_list_length (manager->priv->seats) == 0) { manager->priv->stopped = TRUE; g_debug ("Display manager stopped"); g_signal_emit (manager, signals[STOPPED], 0); } } static void seat_stopped_cb (Seat *seat, DisplayManager *manager) { manager->priv->seats = g_list_remove (manager->priv->seats, seat); g_signal_handlers_disconnect_matched (seat, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, manager); if (!manager->priv->stopping) g_signal_emit (manager, signals[SEAT_REMOVED], 0, seat); g_object_unref (seat); check_stopped (manager); } gboolean display_manager_add_seat (DisplayManager *manager, Seat *seat) { gboolean result; g_return_val_if_fail (!manager->priv->stopping, FALSE); result = seat_start (SEAT (seat)); if (!result) return FALSE; manager->priv->seats = g_list_append (manager->priv->seats, g_object_ref (seat)); g_signal_connect (seat, SEAT_SIGNAL_STOPPED, G_CALLBACK (seat_stopped_cb), manager); g_signal_emit (manager, signals[SEAT_ADDED], 0, seat); return TRUE; } void display_manager_start (DisplayManager *manager) { g_return_if_fail (manager != NULL); /* Disable Plymouth if no X servers are replacing it */ if (plymouth_get_is_active ()) { g_debug ("Stopping Plymouth, no displays replace it"); plymouth_quit (FALSE); } } void display_manager_stop (DisplayManager *manager) { GList *seats, *link; g_return_if_fail (manager != NULL); if (manager->priv->stopping) return; g_debug ("Stopping display manager"); manager->priv->stopping = TRUE; /* Stop all the seats. Copy the list as it might be modified if a seat stops during this loop */ seats = g_list_copy (manager->priv->seats); for (link = seats; link; link = link->next) { Seat *seat = link->data; seat_stop (seat); } g_list_free (seats); check_stopped (manager); } static void display_manager_init (DisplayManager *manager) { manager->priv = G_TYPE_INSTANCE_GET_PRIVATE (manager, DISPLAY_MANAGER_TYPE, DisplayManagerPrivate); /* Load the seat modules */ seat_register_module ("xlocal", SEAT_XLOCAL_TYPE); seat_register_module ("xremote", SEAT_XREMOTE_TYPE); seat_register_module ("unity", SEAT_UNITY_TYPE); } static void display_manager_finalize (GObject *object) { DisplayManager *self = DISPLAY_MANAGER (object); GList *link; for (link = self->priv->seats; link; link = link->next) { Seat *seat = link->data; g_signal_handlers_disconnect_matched (seat, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, self); } g_list_free_full (self->priv->seats, g_object_unref); G_OBJECT_CLASS (display_manager_parent_class)->finalize (object); } static void display_manager_class_init (DisplayManagerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = display_manager_finalize; g_type_class_add_private (klass, sizeof (DisplayManagerPrivate)); signals[SEAT_ADDED] = g_signal_new (DISPLAY_MANAGER_SIGNAL_SEAT_ADDED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DisplayManagerClass, seat_added), NULL, NULL, NULL, G_TYPE_NONE, 1, SEAT_TYPE); signals[SEAT_REMOVED] = g_signal_new (DISPLAY_MANAGER_SIGNAL_SEAT_REMOVED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DisplayManagerClass, seat_removed), NULL, NULL, NULL, G_TYPE_NONE, 1, SEAT_TYPE); signals[STOPPED] = g_signal_new (DISPLAY_MANAGER_SIGNAL_STOPPED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DisplayManagerClass, stopped), NULL, NULL, NULL, G_TYPE_NONE, 0); } lightdm-1.18.1/src/session-child.c0000664000000000000000000006255512700600465013636 0ustar #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if HAVE_LIBAUDIT #include #endif #include "configuration.h" #include "session-child.h" #include "session.h" #include "console-kit.h" #include "login1.h" #include "log-file.h" #include "privileges.h" #include "x-authority.h" #include "configuration.h" /* Child process being run */ static GPid child_pid = 0; /* Pipe to communicate with daemon */ static int from_daemon_output = 0; static int to_daemon_input = 0; static gboolean is_interactive; static gboolean do_authenticate; static gboolean authentication_complete = FALSE; static pam_handle_t *pam_handle; /* Maximum length of a string to pass between daemon and session */ #define MAX_STRING_LENGTH 65535 static void write_data (const void *buf, size_t count) { if (write (to_daemon_input, buf, count) != count) g_printerr ("Error writing to daemon: %s\n", strerror (errno)); } static void write_string (const char *value) { int length; length = value ? strlen (value) : -1; write_data (&length, sizeof (length)); if (value) write_data (value, sizeof (char) * length); } static ssize_t read_data (void *buf, size_t count) { ssize_t n_read; n_read = read (from_daemon_output, buf, count); if (n_read < 0) g_printerr ("Error reading from daemon: %s\n", strerror (errno)); return n_read; } static gchar * read_string_full (void* (*alloc_fn)(size_t n)) { int length; char *value; if (read_data (&length, sizeof (length)) <= 0) return NULL; if (length < 0) return NULL; if (length > MAX_STRING_LENGTH) { g_printerr ("Invalid string length %d from daemon\n", length); return NULL; } value = (*alloc_fn) (sizeof (char) * (length + 1)); read_data (value, length); value[length] = '\0'; return value; } static gchar * read_string (void) { return read_string_full (g_malloc); } static int pam_conv_cb (int msg_length, const struct pam_message **msg, struct pam_response **resp, void *app_data) { int i, error; gboolean auth_complete = FALSE; struct pam_response *response; gchar *username = NULL; /* FIXME: We don't support communication after pam_authenticate completes */ if (authentication_complete) return PAM_SUCCESS; /* Cancel authentication if requiring input */ if (!is_interactive) { for (i = 0; i < msg_length; i++) { if (msg[i]->msg_style == PAM_PROMPT_ECHO_ON || msg[i]->msg_style == PAM_PROMPT_ECHO_OFF) { g_printerr ("Stopping PAM conversation, interaction requested but not supported\n"); return PAM_CONV_ERR; } } /* Ignore informational messages */ return PAM_SUCCESS; } /* Check if we changed user */ pam_get_item (pam_handle, PAM_USER, (const void **) &username); /* Notify the daemon */ write_string (username); write_data (&auth_complete, sizeof (auth_complete)); write_data (&msg_length, sizeof (msg_length)); for (i = 0; i < msg_length; i++) { const struct pam_message *m = msg[i]; write_data (&m->msg_style, sizeof (m->msg_style)); write_string (m->msg); } /* Get response */ read_data (&error, sizeof (error)); if (error != PAM_SUCCESS) return error; response = calloc (msg_length, sizeof (struct pam_response)); for (i = 0; i < msg_length; i++) { struct pam_response *r = &response[i]; // callers of this function inside pam will expect to be able to call // free() on the strings we give back. So alloc with malloc. r->resp = read_string_full (malloc); read_data (&r->resp_retcode, sizeof (r->resp_retcode)); } *resp = response; return PAM_SUCCESS; } static void signal_cb (int signum) { /* Pass on signal to child, otherwise just quit */ if (child_pid > 0) kill (child_pid, signum); else exit (EXIT_SUCCESS); } static XAuthority * read_xauth (void) { gchar *x_authority_name; guint16 x_authority_family; guint8 *x_authority_address; gsize x_authority_address_length; gchar *x_authority_number; guint8 *x_authority_data; gsize x_authority_data_length; x_authority_name = read_string (); if (!x_authority_name) return NULL; read_data (&x_authority_family, sizeof (x_authority_family)); read_data (&x_authority_address_length, sizeof (x_authority_address_length)); x_authority_address = g_malloc (x_authority_address_length); read_data (x_authority_address, x_authority_address_length); x_authority_number = read_string (); read_data (&x_authority_data_length, sizeof (x_authority_data_length)); x_authority_data = g_malloc (x_authority_data_length); read_data (x_authority_data, x_authority_data_length); return x_authority_new (x_authority_family, x_authority_address, x_authority_address_length, x_authority_number, x_authority_name, x_authority_data, x_authority_data_length); } /* GNU provides this but we can't rely on that so let's make our own version */ static void updwtmpx (const gchar *wtmp_file, struct utmpx *ut) { struct utmp u; memset (&u, 0, sizeof (u)); u.ut_type = ut->ut_type; u.ut_pid = ut->ut_pid; if (ut->ut_line) strncpy (u.ut_line, ut->ut_line, sizeof (u.ut_line)); if (ut->ut_id) strncpy (u.ut_id, ut->ut_id, sizeof (u.ut_id)); if (ut->ut_user) strncpy (u.ut_user, ut->ut_user, sizeof (u.ut_user)); if (ut->ut_host) strncpy (u.ut_host, ut->ut_host, sizeof (u.ut_host)); u.ut_tv.tv_sec = ut->ut_tv.tv_sec; u.ut_tv.tv_usec = ut->ut_tv.tv_usec; updwtmp (wtmp_file, &u); } #if HAVE_LIBAUDIT static void audit_event (int type, const gchar *username, uid_t uid, const gchar *remote_host_name, const gchar *tty, gboolean success) { int auditfd, result; const char *op = NULL; auditfd = audit_open (); if (auditfd < 0) { g_printerr ("Error opening audit socket: %s\n", strerror (errno)); return; } if (type == AUDIT_USER_LOGIN) op = "login"; else if (type == AUDIT_USER_LOGOUT) op = "logout"; result = success == TRUE ? 1 : 0; if (audit_log_acct_message (auditfd, type, NULL, op, username, uid, remote_host_name, NULL, tty, result) <= 0) g_printerr ("Error writing audit message: %s\n", strerror (errno)); close (auditfd); } #endif int session_child_run (int argc, char **argv) { struct pam_conv conversation = { pam_conv_cb, NULL }; int i, version, fd, result; gboolean auth_complete = TRUE; User *user = NULL; gchar *log_filename; LogMode log_mode = LOG_MODE_BACKUP_AND_TRUNCATE; gsize env_length; gsize command_argc; gchar **command_argv; GVariantBuilder ck_parameters; int return_code; int authentication_result; gchar *authentication_result_string; gchar *service; gchar *username; gchar *tty; gchar *remote_host_name; gchar *xdisplay; XAuthority *x_authority = NULL; gchar *x_authority_filename; GDBusConnection *bus; const gchar *login1_session_id = NULL; gchar *console_kit_cookie = NULL; const gchar *locale_value; gchar *locale_var; static const gchar * const locale_var_names[] = { "LC_PAPER", "LC_NAME", "LC_ADDRESS", "LC_TELEPHONE", "LC_MEASUREMENT", "LC_IDENTIFICATION", "LC_COLLATE", "LC_CTYPE", "LC_MONETARY", "LC_NUMERIC", "LC_TIME", "LC_MESSAGES", "LC_ALL", "LANG", NULL }; gid_t gid; uid_t uid; const gchar *home_directory; GError *error = NULL; #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif if (config_get_boolean (config_get_instance (), "LightDM", "lock-memory")) { /* Protect memory from being paged to disk, as we deal with passwords */ mlockall (MCL_CURRENT | MCL_FUTURE); } /* Make input non-blocking */ fd = open ("/dev/null", O_RDONLY); dup2 (fd, STDIN_FILENO); close (fd); /* Close stdout */ fd = open ("/dev/null", O_WRONLY); dup2 (fd, STDOUT_FILENO); close (fd); /* Get the pipe from the daemon */ if (argc != 4) { g_printerr ("Usage: lightdm --session-child INPUTFD OUTPUTFD\n"); return EXIT_FAILURE; } from_daemon_output = atoi (argv[2]); to_daemon_input = atoi (argv[3]); if (from_daemon_output == 0 || to_daemon_input == 0) { g_printerr ("Invalid file descriptors %s %s\n", argv[2], argv[3]); return EXIT_FAILURE; } /* Don't let these pipes leak to the command we will run */ fcntl (from_daemon_output, F_SETFD, FD_CLOEXEC); fcntl (to_daemon_input, F_SETFD, FD_CLOEXEC); /* Read a version number so we can handle upgrades (i.e. a newer version of session child is run for an old daemon */ read_data (&version, sizeof (version)); service = read_string (); username = read_string (); read_data (&do_authenticate, sizeof (do_authenticate)); read_data (&is_interactive, sizeof (is_interactive)); read_string (); /* Used to be class, now we just use the environment variable */ tty = read_string (); remote_host_name = read_string (); xdisplay = read_string (); x_authority = read_xauth (); /* Setup PAM */ result = pam_start (service, username, &conversation, &pam_handle); if (result != PAM_SUCCESS) { g_printerr ("Failed to start PAM: %s", pam_strerror (NULL, result)); return EXIT_FAILURE; } if (xdisplay) { #ifdef PAM_XDISPLAY pam_set_item (pam_handle, PAM_XDISPLAY, xdisplay); #endif pam_set_item (pam_handle, PAM_TTY, xdisplay); } else if (tty) pam_set_item (pam_handle, PAM_TTY, tty); #ifdef PAM_XAUTHDATA if (x_authority) { struct pam_xauth_data value; value.name = (char *) x_authority_get_authorization_name (x_authority); value.namelen = strlen (x_authority_get_authorization_name (x_authority)); value.data = (char *) x_authority_get_authorization_data (x_authority); value.datalen = x_authority_get_authorization_data_length (x_authority); pam_set_item (pam_handle, PAM_XAUTHDATA, &value); } #endif /* Authenticate */ if (do_authenticate) { const gchar *new_username; authentication_result = pam_authenticate (pam_handle, 0); /* See what user we ended up as */ if (pam_get_item (pam_handle, PAM_USER, (const void **) &new_username) != PAM_SUCCESS) { pam_end (pam_handle, 0); return EXIT_FAILURE; } g_free (username); username = g_strdup (new_username); /* Write record to btmp database */ if (authentication_result == PAM_AUTH_ERR) { struct utmpx ut; struct timeval tv; memset (&ut, 0, sizeof (ut)); ut.ut_type = USER_PROCESS; ut.ut_pid = getpid (); if (xdisplay) strncpy (ut.ut_id, xdisplay, sizeof (ut.ut_id)); if (tty && g_str_has_prefix (tty, "/dev/")) strncpy (ut.ut_line, tty + strlen ("/dev/"), sizeof (ut.ut_line)); strncpy (ut.ut_user, username, sizeof (ut.ut_user)); if (xdisplay) strncpy (ut.ut_host, xdisplay, sizeof (ut.ut_host)); else if (remote_host_name) strncpy (ut.ut_host, remote_host_name, sizeof (ut.ut_host)); gettimeofday (&tv, NULL); ut.ut_tv.tv_sec = tv.tv_sec; ut.ut_tv.tv_usec = tv.tv_usec; updwtmpx ("/var/log/btmp", &ut); #if HAVE_LIBAUDIT audit_event (AUDIT_USER_LOGIN, username, -1, remote_host_name, tty, FALSE); #endif } /* Check account is valid */ if (authentication_result == PAM_SUCCESS) authentication_result = pam_acct_mgmt (pam_handle, 0); if (authentication_result == PAM_NEW_AUTHTOK_REQD) authentication_result = pam_chauthtok (pam_handle, PAM_CHANGE_EXPIRED_AUTHTOK); } else authentication_result = PAM_SUCCESS; authentication_complete = TRUE; if (authentication_result == PAM_SUCCESS) { /* Fail authentication if user doesn't actually exist */ user = accounts_get_user_by_name (username); if (!user) { g_printerr ("Failed to get information on user %s: %s\n", username, strerror (errno)); authentication_result = PAM_USER_UNKNOWN; } else { /* Set POSIX variables */ pam_putenv (pam_handle, "PATH=/usr/local/bin:/usr/bin:/bin"); pam_putenv (pam_handle, g_strdup_printf ("USER=%s", username)); pam_putenv (pam_handle, g_strdup_printf ("LOGNAME=%s", username)); pam_putenv (pam_handle, g_strdup_printf ("HOME=%s", user_get_home_directory (user))); pam_putenv (pam_handle, g_strdup_printf ("SHELL=%s", user_get_shell (user))); /* Let the greeter and user session inherit the system default locale */ for (i = 0; locale_var_names[i] != NULL; i++) { if ((locale_value = g_getenv (locale_var_names[i])) != NULL) { locale_var = g_strdup_printf ("%s=%s", locale_var_names[i], locale_value); pam_putenv (pam_handle, locale_var); g_free (locale_var); } } } } authentication_result_string = g_strdup (pam_strerror (pam_handle, authentication_result)); /* Report authentication result */ write_string (username); write_data (&auth_complete, sizeof (auth_complete)); write_data (&authentication_result, sizeof (authentication_result)); write_string (authentication_result_string); /* Check we got a valid user */ if (!username) { g_printerr ("No user selected during authentication\n"); pam_end (pam_handle, 0); return EXIT_FAILURE; } /* Stop if we didn't authenticated */ if (authentication_result != PAM_SUCCESS) { pam_end (pam_handle, 0); return EXIT_FAILURE; } /* Get the command to run (blocks) */ log_filename = read_string (); if (version >= 3) read_data (&log_mode, sizeof (log_mode)); if (version >= 1) { g_free (tty); tty = read_string (); } x_authority_filename = read_string (); if (version >= 1) { g_free (xdisplay); xdisplay = read_string (); if (x_authority) g_object_unref (x_authority); x_authority = read_xauth (); } read_data (&env_length, sizeof (env_length)); for (i = 0; i < env_length; i++) pam_putenv (pam_handle, read_string ()); read_data (&command_argc, sizeof (command_argc)); command_argv = g_malloc (sizeof (gchar *) * (command_argc + 1)); for (i = 0; i < command_argc; i++) command_argv[i] = read_string (); command_argv[i] = NULL; /* If nothing to run just refresh credentials because we successfully authenticated */ if (command_argc == 0) { pam_setcred (pam_handle, PAM_REINITIALIZE_CRED); pam_end (pam_handle, 0); return EXIT_SUCCESS; } /* Redirect stderr to a log file */ if (log_filename) { if (g_path_is_absolute (log_filename)) { fd = log_file_open (log_filename, log_mode); dup2 (fd, STDERR_FILENO); close (fd); g_free (log_filename); log_filename = NULL; } } else { fd = open ("/dev/null", O_WRONLY); dup2 (fd, STDERR_FILENO); close (fd); } /* Set group membership - these can be overriden in pam_setcred */ if (getuid () == 0) { if (initgroups (username, user_get_gid (user)) < 0) { g_printerr ("Failed to initialize supplementary groups for %s: %s\n", username, strerror (errno)); _exit (EXIT_FAILURE); } } /* Set credentials */ result = pam_setcred (pam_handle, PAM_ESTABLISH_CRED); if (result != PAM_SUCCESS) { g_printerr ("Failed to establish PAM credentials: %s\n", pam_strerror (pam_handle, result)); pam_end (pam_handle, 0); return EXIT_FAILURE; } /* Open the session */ result = pam_open_session (pam_handle, 0); if (result != PAM_SUCCESS) { g_printerr ("Failed to open PAM session: %s\n", pam_strerror (pam_handle, result)); pam_end (pam_handle, 0); return EXIT_FAILURE; } /* Open a connection to the system bus for ConsoleKit - we must keep it open or CK will close the session */ bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_printerr ("Unable to contact system bus: %s", error->message); if (!bus) { pam_end (pam_handle, 0); return EXIT_FAILURE; } /* Check what logind session we are, or fallback to ConsoleKit */ login1_session_id = pam_getenv (pam_handle, "XDG_SESSION_ID"); if (login1_session_id) { write_string (login1_session_id); if (version >= 2) write_string (NULL); } else { g_variant_builder_init (&ck_parameters, G_VARIANT_TYPE ("(a(sv))")); g_variant_builder_open (&ck_parameters, G_VARIANT_TYPE ("a(sv)")); g_variant_builder_add (&ck_parameters, "(sv)", "unix-user", g_variant_new_int32 (user_get_uid (user))); if (g_strcmp0 (pam_getenv (pam_handle, "XDG_SESSION_CLASS"), "greeter") == 0) g_variant_builder_add (&ck_parameters, "(sv)", "session-type", g_variant_new_string ("LoginWindow")); if (xdisplay) { g_variant_builder_add (&ck_parameters, "(sv)", "x11-display", g_variant_new_string (xdisplay)); if (tty) g_variant_builder_add (&ck_parameters, "(sv)", "x11-display-device", g_variant_new_string (tty)); } if (remote_host_name) { g_variant_builder_add (&ck_parameters, "(sv)", "is-local", g_variant_new_boolean (FALSE)); g_variant_builder_add (&ck_parameters, "(sv)", "remote-host-name", g_variant_new_string (remote_host_name)); } else g_variant_builder_add (&ck_parameters, "(sv)", "is-local", g_variant_new_boolean (TRUE)); console_kit_cookie = ck_open_session (&ck_parameters); if (version >= 2) write_string (NULL); write_string (console_kit_cookie); if (console_kit_cookie) { gchar *value; gchar *runtime_dir; value = g_strdup_printf ("XDG_SESSION_COOKIE=%s", console_kit_cookie); pam_putenv (pam_handle, value); g_free (value); runtime_dir = ck_get_xdg_runtime_dir (console_kit_cookie); if (runtime_dir) { gchar *value; value = g_strdup_printf ("XDG_RUNTIME_DIR=%s", runtime_dir); pam_putenv (pam_handle, value); g_free (value); g_free (runtime_dir); } } } /* Write X authority */ if (x_authority) { gboolean drop_privileges, result; gchar *value; GError *error = NULL; drop_privileges = geteuid () == 0; if (drop_privileges) privileges_drop (user_get_uid (user), user_get_gid (user)); result = x_authority_write (x_authority, XAUTH_WRITE_MODE_REPLACE, x_authority_filename, &error); if (drop_privileges) privileges_reclaim (); if (error) g_printerr ("Error writing X authority: %s\n", error->message); g_clear_error (&error); if (!result) { pam_end (pam_handle, 0); return EXIT_FAILURE; } value = g_strdup_printf ("XAUTHORITY=%s", x_authority_filename); pam_putenv (pam_handle, value); g_free (value); } /* Catch terminate signal and pass it to the child */ signal (SIGTERM, signal_cb); /* Run the command as the authenticated user */ uid = user_get_uid (user); gid = user_get_gid (user); home_directory = user_get_home_directory (user); child_pid = fork (); if (child_pid == 0) { /* Make this process its own session */ if (setsid () < 0) _exit (errno); /* Change to this user */ if (getuid () == 0) { if (setgid (gid) != 0) _exit (errno); if (setuid (uid) != 0) _exit (errno); } /* Change working directory */ /* NOTE: This must be done after the permissions are changed because NFS filesystems can * be setup so the local root user accesses the NFS files as 'nobody'. If the home directories * are not system readable then the chdir can fail */ if (chdir (home_directory) != 0) _exit (errno); if (log_filename) { fd = log_file_open (log_filename, log_mode); if (fd >= 0) { dup2 (fd, STDERR_FILENO); close (fd); } } /* Run the command */ execve (command_argv[0], command_argv, pam_getenvlist (pam_handle)); _exit (EXIT_FAILURE); } /* Bail out if failed to fork */ if (child_pid < 0) { g_printerr ("Failed to fork session child process: %s\n", strerror (errno)); return_code = EXIT_FAILURE; } /* Wait for the command to complete (blocks) */ if (child_pid > 0) { /* Log to utmp */ if (g_strcmp0 (pam_getenv (pam_handle, "XDG_SESSION_CLASS"), "greeter") != 0) { struct utmpx ut; struct timeval tv; memset (&ut, 0, sizeof (ut)); ut.ut_type = USER_PROCESS; ut.ut_pid = child_pid; if (xdisplay) strncpy (ut.ut_id, xdisplay, sizeof (ut.ut_id)); if (tty && g_str_has_prefix (tty, "/dev/")) strncpy (ut.ut_line, tty + strlen ("/dev/"), sizeof (ut.ut_line)); strncpy (ut.ut_user, username, sizeof (ut.ut_user)); if (xdisplay) strncpy (ut.ut_host, xdisplay, sizeof (ut.ut_host)); else if (remote_host_name) strncpy (ut.ut_host, remote_host_name, sizeof (ut.ut_host)); gettimeofday (&tv, NULL); ut.ut_tv.tv_sec = tv.tv_sec; ut.ut_tv.tv_usec = tv.tv_usec; /* Write records to utmp/wtmp databases */ setutxent (); if (!pututxline (&ut)) g_printerr ("Failed to write utmpx: %s\n", strerror (errno)); endutxent (); updwtmpx ("/var/log/wtmp", &ut); #if HAVE_LIBAUDIT audit_event (AUDIT_USER_LOGIN, username, uid, remote_host_name, tty, TRUE); #endif } waitpid (child_pid, &return_code, 0); child_pid = 0; /* Log to utmp */ if (g_strcmp0 (pam_getenv (pam_handle, "XDG_SESSION_CLASS"), "greeter") != 0) { struct utmpx ut; struct timeval tv; memset (&ut, 0, sizeof (ut)); ut.ut_type = DEAD_PROCESS; ut.ut_pid = child_pid; if (xdisplay) strncpy (ut.ut_id, xdisplay, sizeof (ut.ut_id)); if (tty && g_str_has_prefix (tty, "/dev/")) strncpy (ut.ut_line, tty + strlen ("/dev/"), sizeof (ut.ut_line)); strncpy (ut.ut_user, username, sizeof (ut.ut_user)); if (xdisplay) strncpy (ut.ut_host, xdisplay, sizeof (ut.ut_host)); else if (remote_host_name) strncpy (ut.ut_host, remote_host_name, sizeof (ut.ut_host)); gettimeofday (&tv, NULL); ut.ut_tv.tv_sec = tv.tv_sec; ut.ut_tv.tv_usec = tv.tv_usec; /* Write records to utmp/wtmp databases */ setutxent (); if (!pututxline (&ut)) g_printerr ("Failed to write utmpx: %s\n", strerror (errno)); endutxent (); updwtmpx ("/var/log/wtmp", &ut); #if HAVE_LIBAUDIT audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE); #endif } } /* Remove X authority */ if (x_authority) { gboolean drop_privileges, result; GError *error = NULL; drop_privileges = geteuid () == 0; if (drop_privileges) privileges_drop (user_get_uid (user), user_get_gid (user)); result = x_authority_write (x_authority, XAUTH_WRITE_MODE_REMOVE, x_authority_filename, &error); if (drop_privileges) privileges_reclaim (); if (error) g_printerr ("Error removing X authority: %s\n", error->message); g_clear_error (&error); if (!result) _exit (EXIT_FAILURE); } /* Close the Console Kit session */ if (console_kit_cookie) ck_close_session (console_kit_cookie); /* Close the session */ pam_close_session (pam_handle, 0); /* Remove credentials */ pam_setcred (pam_handle, PAM_DELETE_CRED); pam_end (pam_handle, 0); pam_handle = NULL; /* Return result of session process to the daemon */ return return_code; } lightdm-1.18.1/src/seat-xlocal.c0000664000000000000000000003077412700600465013304 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #include #include "seat-xlocal.h" #include "configuration.h" #include "x-server-local.h" #include "unity-system-compositor.h" #include "wayland-session.h" #include "plymouth.h" #include "vt.h" struct SeatXLocalPrivate { /* X server being used for XDMCP */ XServerLocal *xdmcp_x_server; }; G_DEFINE_TYPE (SeatXLocal, seat_xlocal, SEAT_TYPE); static XServerLocal *create_x_server (Seat *seat); static void seat_xlocal_setup (Seat *seat) { seat_set_supports_multi_session (seat, TRUE); seat_set_share_display_server (seat, seat_get_boolean_property (seat, "xserver-share")); SEAT_CLASS (seat_xlocal_parent_class)->setup (seat); } static void check_stopped (SeatXLocal *seat) { if (!seat->priv->xdmcp_x_server) SEAT_CLASS (seat_xlocal_parent_class)->stop (SEAT (seat)); } static void xdmcp_x_server_stopped_cb (DisplayServer *display_server, Seat *seat) { l_debug (seat, "XDMCP X server stopped"); g_signal_handlers_disconnect_matched (SEAT_XLOCAL (seat)->priv->xdmcp_x_server, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, seat); SEAT_XLOCAL (seat)->priv->xdmcp_x_server = NULL; g_object_unref (display_server); if (seat_get_is_stopping (seat)) check_stopped (SEAT_XLOCAL (seat)); else seat_stop (seat); } static gboolean seat_xlocal_start (Seat *seat) { const gchar *xdmcp_manager = NULL; /* If running as an XDMCP client then just start an X server */ xdmcp_manager = seat_get_string_property (seat, "xdmcp-manager"); if (xdmcp_manager) { SeatXLocal *s = SEAT_XLOCAL (seat); const gchar *key_name = NULL; gint port = 0; s->priv->xdmcp_x_server = create_x_server (seat); x_server_local_set_xdmcp_server (s->priv->xdmcp_x_server, xdmcp_manager); port = seat_get_integer_property (seat, "xdmcp-port"); if (port > 0) x_server_local_set_xdmcp_port (s->priv->xdmcp_x_server, port); key_name = seat_get_string_property (seat, "xdmcp-key"); if (key_name) { gchar *path; GKeyFile *keys; gboolean result; GError *error = NULL; path = g_build_filename (config_get_directory (config_get_instance ()), "keys.conf", NULL); keys = g_key_file_new (); result = g_key_file_load_from_file (keys, path, G_KEY_FILE_NONE, &error); if (error) l_debug (seat, "Error getting key %s", error->message); g_clear_error (&error); if (result) { gchar *key = NULL; if (g_key_file_has_key (keys, "keyring", key_name, NULL)) key = g_key_file_get_string (keys, "keyring", key_name, NULL); else l_debug (seat, "Key %s not defined", key_name); if (key) x_server_local_set_xdmcp_key (s->priv->xdmcp_x_server, key); g_free (key); } g_free (path); g_key_file_free (keys); } g_signal_connect (s->priv->xdmcp_x_server, DISPLAY_SERVER_SIGNAL_STOPPED, G_CALLBACK (xdmcp_x_server_stopped_cb), seat); return display_server_start (DISPLAY_SERVER (s->priv->xdmcp_x_server)); } return SEAT_CLASS (seat_xlocal_parent_class)->start (seat); } static void display_server_ready_cb (DisplayServer *display_server, Seat *seat) { /* Quit Plymouth */ plymouth_quit (TRUE); } static void display_server_transition_plymouth_cb (DisplayServer *display_server, Seat *seat) { /* Quit Plymouth if we didn't do the transition */ if (plymouth_get_is_running ()) plymouth_quit (FALSE); g_signal_handlers_disconnect_matched (display_server, G_SIGNAL_MATCH_FUNC, 0, 0, NULL, display_server_transition_plymouth_cb, NULL); } static gint get_vt (Seat *seat, DisplayServer *display_server) { gint vt = -1; const gchar *xdg_seat = seat_get_name (seat); if (strcmp (xdg_seat, "seat0") != 0) return vt; /* If Plymouth is running, stop it */ if (plymouth_get_is_active () && plymouth_has_active_vt ()) { gint active_vt = vt_get_active (); if (active_vt >= vt_get_min ()) { vt = active_vt; g_signal_connect (display_server, DISPLAY_SERVER_SIGNAL_READY, G_CALLBACK (display_server_ready_cb), seat); g_signal_connect (display_server, DISPLAY_SERVER_SIGNAL_STOPPED, G_CALLBACK (display_server_transition_plymouth_cb), seat); plymouth_deactivate (); } else l_debug (seat, "Plymouth is running on VT %d, but this is less than the configured minimum of %d so not replacing it", active_vt, vt_get_min ()); } if (plymouth_get_is_active ()) plymouth_quit (FALSE); if (vt < 0) vt = vt_get_unused (); return vt; } static XServerLocal * create_x_server (Seat *seat) { XServerLocal *x_server; const gchar *command = NULL, *layout = NULL, *config_file = NULL; gboolean allow_tcp; gint vt; x_server = x_server_local_new (); vt = get_vt (seat, DISPLAY_SERVER (x_server)); if (vt >= 0) x_server_local_set_vt (x_server, vt); if (vt > 0) l_debug (seat, "Starting local X display on VT %d", vt); else l_debug (seat, "Starting local X display"); /* If running inside an X server use Xephyr instead */ if (g_getenv ("DISPLAY")) command = "Xephyr"; if (!command) command = seat_get_string_property (seat, "xserver-command"); if (command) x_server_local_set_command (x_server, command); layout = seat_get_string_property (seat, "xserver-layout"); if (layout) x_server_local_set_layout (x_server, layout); x_server_local_set_xdg_seat (x_server, seat_get_name (seat)); config_file = seat_get_string_property (seat, "xserver-config"); if (config_file) x_server_local_set_config (x_server, config_file); allow_tcp = seat_get_boolean_property (seat, "xserver-allow-tcp"); x_server_local_set_allow_tcp (x_server, allow_tcp); return x_server; } static DisplayServer * create_unity_system_compositor (Seat *seat) { UnitySystemCompositor *compositor; const gchar *command; gchar *socket_name; gint vt, timeout, i; compositor = unity_system_compositor_new (); command = seat_get_string_property (seat, "unity-compositor-command"); if (command) unity_system_compositor_set_command (compositor, command); timeout = seat_get_integer_property (seat, "unity-compositor-timeout"); if (timeout <= 0) timeout = 60; unity_system_compositor_set_timeout (compositor, timeout); vt = get_vt (seat, DISPLAY_SERVER (compositor)); if (vt >= 0) unity_system_compositor_set_vt (compositor, vt); for (i = 0; ; i++) { socket_name = g_strdup_printf ("/run/lightdm-mir-%d", i); if (!g_file_test (socket_name, G_FILE_TEST_EXISTS)) break; } unity_system_compositor_set_socket (compositor, socket_name); g_free (socket_name); return DISPLAY_SERVER (compositor); } static DisplayServer * create_wayland_session (Seat *seat) { WaylandSession *session; gint vt; session = wayland_session_new (); vt = get_vt (seat, DISPLAY_SERVER (session)); if (vt >= 0) wayland_session_set_vt (session, vt); return DISPLAY_SERVER (session); } static DisplayServer * seat_xlocal_create_display_server (Seat *seat, Session *session) { const gchar *session_type; session_type = session_get_session_type (session); if (strcmp (session_type, "x") == 0) return DISPLAY_SERVER (create_x_server (seat)); else if (strcmp (session_type, "mir") == 0) return create_unity_system_compositor (seat); else if (strcmp (session_type, "wayland") == 0) return create_wayland_session (seat); else if (strcmp (session_type, "mir-container") == 0) { DisplayServer *compositor; const gchar *compositor_command; compositor = create_unity_system_compositor (seat); compositor_command = session_config_get_compositor_command (session_get_config (session)); if (compositor_command) unity_system_compositor_set_command (UNITY_SYSTEM_COMPOSITOR (compositor), compositor_command); return compositor; } else { l_warning (seat, "Can't create unsupported display server '%s'", session_type); return NULL; } } static Greeter * seat_xlocal_create_greeter_session (Seat *seat) { Greeter *greeter_session; greeter_session = SEAT_CLASS (seat_xlocal_parent_class)->create_greeter_session (seat); session_set_env (SESSION (greeter_session), "XDG_SEAT", seat_get_name (seat)); return greeter_session; } static Session * seat_xlocal_create_session (Seat *seat) { Session *session; session = SEAT_CLASS (seat_xlocal_parent_class)->create_session (seat); session_set_env (SESSION (session), "XDG_SEAT", seat_get_name (seat)); return session; } static void seat_xlocal_set_active_session (Seat *seat, Session *session) { DisplayServer *display_server; display_server = session_get_display_server (session); gint vt = display_server_get_vt (display_server); if (vt >= 0) vt_set_active (vt); if (IS_UNITY_SYSTEM_COMPOSITOR (display_server)) unity_system_compositor_set_active_session (UNITY_SYSTEM_COMPOSITOR (display_server), IS_GREETER (session) ? "greeter-0" : "session-0"); SEAT_CLASS (seat_xlocal_parent_class)->set_active_session (seat, session); } static Session * seat_xlocal_get_active_session (Seat *seat) { gint vt; GList *link; vt = vt_get_active (); if (vt < 0) return NULL; for (link = seat_get_sessions (seat); link; link = link->next) { Session *session = link->data; DisplayServer *display_server; display_server = session_get_display_server (session); if (display_server && display_server_get_vt (display_server) == vt) return session; } return NULL; } static void seat_xlocal_run_script (Seat *seat, DisplayServer *display_server, Process *script) { if (IS_X_SERVER_LOCAL (display_server)) { const gchar *path; XServerLocal *x_server; x_server = X_SERVER_LOCAL (display_server); path = x_server_local_get_authority_file_path (x_server); process_set_env (script, "DISPLAY", x_server_get_address (X_SERVER (x_server))); process_set_env (script, "XAUTHORITY", path); } SEAT_CLASS (seat_xlocal_parent_class)->run_script (seat, display_server, script); } static void seat_xlocal_stop (Seat *seat) { /* Stop the XDMCP X server first */ if (SEAT_XLOCAL (seat)->priv->xdmcp_x_server) display_server_stop (DISPLAY_SERVER (SEAT_XLOCAL (seat)->priv->xdmcp_x_server)); check_stopped (SEAT_XLOCAL (seat)); } static void seat_xlocal_init (SeatXLocal *seat) { seat->priv = G_TYPE_INSTANCE_GET_PRIVATE (seat, SEAT_XLOCAL_TYPE, SeatXLocalPrivate); } static void seat_xlocal_finalize (GObject *object) { SeatXLocal *seat = SEAT_XLOCAL (object); if (seat->priv->xdmcp_x_server) { g_signal_handlers_disconnect_matched (seat->priv->xdmcp_x_server, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, seat); g_object_unref (seat->priv->xdmcp_x_server); } G_OBJECT_CLASS (seat_xlocal_parent_class)->finalize (object); } static void seat_xlocal_class_init (SeatXLocalClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); SeatClass *seat_class = SEAT_CLASS (klass); object_class->finalize = seat_xlocal_finalize; seat_class->setup = seat_xlocal_setup; seat_class->start = seat_xlocal_start; seat_class->create_display_server = seat_xlocal_create_display_server; seat_class->create_greeter_session = seat_xlocal_create_greeter_session; seat_class->create_session = seat_xlocal_create_session; seat_class->set_active_session = seat_xlocal_set_active_session; seat_class->get_active_session = seat_xlocal_get_active_session; seat_class->run_script = seat_xlocal_run_script; seat_class->stop = seat_xlocal_stop; g_type_class_add_private (klass, sizeof (SeatXLocalPrivate)); } lightdm-1.18.1/src/wayland-session.h0000664000000000000000000000235412700600465014206 0ustar /* * Copyright (C) 2015 Canonical Ltd. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef WAYLAND_SESSION_H_ #define WAYLAND_SESSION_H_ #include #include "display-server.h" G_BEGIN_DECLS #define WAYLAND_SESSION_TYPE (wayland_session_get_type()) #define WAYLAND_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WAYLAND_SESSION_TYPE, WaylandSession)) #define IS_WAYLAND_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), WAYLAND_SESSION_TYPE)) typedef struct WaylandSessionPrivate WaylandSessionPrivate; typedef struct { DisplayServer parent_instance; WaylandSessionPrivate *priv; } WaylandSession; typedef struct { DisplayServerClass parent_class; } WaylandSessionClass; GType wayland_session_get_type (void); WaylandSession *wayland_session_new (void); void wayland_session_set_vt (WaylandSession *session, gint vt); G_END_DECLS #endif /* WAYLAND_SESSION_H_ */ lightdm-1.18.1/src/seat-xvnc.h0000664000000000000000000000174712700600465013003 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. See http://www.gnu.org/copyleft/gpl.html the full text of the * license. */ #ifndef SEAT_XVNC_H_ #define SEAT_XVNC_H_ #include #include "seat.h" G_BEGIN_DECLS #define SEAT_XVNC_TYPE (seat_xvnc_get_type()) #define SEAT_XVNC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEAT_XVNC_TYPE, SeatXVNC)) typedef struct SeatXVNCPrivate SeatXVNCPrivate; typedef struct { Seat parent_instance; SeatXVNCPrivate *priv; } SeatXVNC; typedef struct { SeatClass parent_class; } SeatXVNCClass; GType seat_xvnc_get_type (void); SeatXVNC *seat_xvnc_new (GSocket *connection); G_END_DECLS #endif /* SEAT_XVNC_H_ */ lightdm-1.18.1/liblightdm-gobject/0000775000000000000000000000000012700603563013656 5ustar lightdm-1.18.1/liblightdm-gobject/Makefile.am0000664000000000000000000000456712700600465015724 0ustar lib_LTLIBRARIES = liblightdm-gobject-1.la liblightdm_gobject_1_la_LDFLAGS = -export-symbols-regex \^lightdm_.* liblightdm_gobject_1_la_LIBADD = \ $(LIBLIGHTDM_GOBJECT_LIBS) \ $(top_builddir)/common/libcommon.la liblightdm_gobject_1_la_CFLAGS = $(LIBLIGHTDM_GOBJECT_CFLAGS) \ $(WARN_CFLAGS) \ -I"$(top_srcdir)/common" \ -DCONFIG_DIR=\"$(sysconfdir)/lightdm\" \ -DSESSIONS_DIR=\"$(pkgdatadir)/sessions:$(datadir)/xsessions:$(datadir)/wayland-sessions\" \ -DWAYLAND_SESSIONS_DIR=\"$(datadir)/wayland-sessions\" \ -DREMOTE_SESSIONS_DIR=\"$(pkgdatadir)/remote-sessions\" mainheader_HEADERS = lightdm.h mainheaderdir=$(includedir)/lightdm-gobject-1 liblightdm_gobject_1include_HEADERS = \ lightdm/greeter.h \ lightdm/system.h \ lightdm/language.h \ lightdm/layout.h \ lightdm/power.h \ lightdm/session.h \ lightdm/user.h liblightdm_gobject_1includedir=$(mainheaderdir)/lightdm liblightdm_gobject_1_la_SOURCES= \ greeter.c \ system.c \ language.c \ layout.c \ power.c \ session.c \ user.c \ $(liblightdm_gobject_1include_HEADERS) if HAVE_INTROSPECTION -include $(INTROSPECTION_MAKEFILE) INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir) INTROSPECTION_GIRS = LightDM-1.gir LightDM-1.gir: liblightdm-gobject-1.la LightDM_1_gir_INCLUDES = GObject-2.0 Gio-2.0 LightDM_1_gir_SCANNERFLAGS = --symbol-prefix=lightdm --c-include "lightdm.h" LightDM_1_gir_LIBS = liblightdm-gobject-1.la LightDM_1_gir_FILES = $(liblightdm_gobject_1_la_SOURCES) girdir = $(datadir)/gir-1.0 gir_DATA = LightDM-1.gir typelibdir = $(libdir)/girepository-1.0 typelib_DATA = LightDM-1.typelib endif if ENABLE_VAPIGEN include $(VAPIGEN_MAKEFILE) liblightdm-gobject-1.vapi: $(gir_DATA) LightDM-1.metadata LightDM-1-custom.vala VAPIGEN_VAPIS = liblightdm-gobject-1.vapi liblightdm_gobject_1_vapi_DEPS = gio-2.0 posix liblightdm_gobject_1_vapi_METADATADIRS = $(srcdir) liblightdm_gobject_1_vapi_FILES = $(gir_DATA) $(srcdir)/LightDM-1-custom.vala vapidir = $(datadir)/vala/vapi vapi_DATA = $(VAPIGEN_VAPIS) $(srcdir)/liblightdm-gobject-1.deps endif pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = liblightdm-gobject-1.pc CLEANFILES = \ $(gir_DATA) \ $(typelib_DATA) \ $(vapi_DATA) DISTCLEANFILES = \ $(pkgconfig_DATA) \ $(gir_DATA) \ $(typelib_DATA) EXTRA_DIST = \ LightDM-1.metadata \ LightDM-1-custom.vala \ liblightdm-gobject-1.deps lightdm-1.18.1/liblightdm-gobject/user.c0000664000000000000000000006544312700600465015012 0ustar /* -*- Mode: C; indent-tabs-mode:nil; tab-width:4 -*- * * Copyright (C) 2010 Robert Ancell. * Copyright (C) 2014 Canonical, Ltd. * Authors: Robert Ancell * Michael Terry * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #include #include "user-list.h" #include "lightdm/user.h" enum { LIST_PROP_0, LIST_PROP_NUM_USERS, LIST_PROP_LENGTH, LIST_PROP_USERS, }; enum { USER_PROP_0, USER_PROP_COMMON_USER, USER_PROP_NAME, USER_PROP_REAL_NAME, USER_PROP_DISPLAY_NAME, USER_PROP_HOME_DIRECTORY, USER_PROP_IMAGE, USER_PROP_BACKGROUND, USER_PROP_LANGUAGE, USER_PROP_LAYOUT, USER_PROP_LAYOUTS, USER_PROP_SESSION, USER_PROP_LOGGED_IN, USER_PROP_HAS_MESSAGES, USER_PROP_UID, }; enum { USER_ADDED, USER_CHANGED, USER_REMOVED, LAST_LIST_SIGNAL }; static guint list_signals[LAST_LIST_SIGNAL] = { 0 }; enum { CHANGED, LAST_USER_SIGNAL }; static guint user_signals[LAST_USER_SIGNAL] = { 0 }; typedef struct { gboolean initialized; /* Wrapper list, kept locally to preserve transfer-none promises */ GList *lightdm_list; } LightDMUserListPrivate; typedef struct { CommonUser *common_user; } LightDMUserPrivate; G_DEFINE_TYPE (LightDMUserList, lightdm_user_list, G_TYPE_OBJECT); G_DEFINE_TYPE (LightDMUser, lightdm_user, G_TYPE_OBJECT); #define GET_LIST_PRIVATE(obj) G_TYPE_INSTANCE_GET_PRIVATE ((obj), LIGHTDM_TYPE_USER_LIST, LightDMUserListPrivate) #define GET_USER_PRIVATE(obj) G_TYPE_INSTANCE_GET_PRIVATE ((obj), LIGHTDM_TYPE_USER, LightDMUserPrivate) static LightDMUserList *singleton = NULL; /** * lightdm_user_list_get_instance: * * Get the user list. * * Return value: (transfer none): the #LightDMUserList **/ LightDMUserList * lightdm_user_list_get_instance (void) { if (!singleton) singleton = g_object_new (LIGHTDM_TYPE_USER_LIST, NULL); return singleton; } static void user_changed_cb (CommonUser *common_user, LightDMUser *lightdm_user) { g_signal_emit (lightdm_user, user_signals[CHANGED], 0); } static LightDMUser * wrap_common_user (CommonUser *user) { LightDMUser *lightdm_user = g_object_new (LIGHTDM_TYPE_USER, "common-user", user, NULL); g_signal_connect (user, USER_SIGNAL_CHANGED, G_CALLBACK (user_changed_cb), lightdm_user); return lightdm_user; } static void user_list_added_cb (CommonUserList *common_list, CommonUser *common_user, LightDMUserList *user_list) { LightDMUserListPrivate *priv = GET_LIST_PRIVATE (user_list); GList *common_users = common_user_list_get_users (common_list); LightDMUser *lightdm_user = wrap_common_user (common_user); priv->lightdm_list = g_list_insert (priv->lightdm_list, lightdm_user, g_list_index (common_users, common_user)); g_signal_emit (user_list, list_signals[USER_ADDED], 0, lightdm_user); } static void user_list_changed_cb (CommonUserList *common_list, CommonUser *common_user, LightDMUserList *user_list) { LightDMUserListPrivate *priv = GET_LIST_PRIVATE (user_list); GList *common_users = common_user_list_get_users (common_list); LightDMUser *lightdm_user = g_list_nth_data (priv->lightdm_list, g_list_index (common_users, common_user)); g_signal_emit (user_list, list_signals[USER_CHANGED], 0, lightdm_user); } static void user_list_removed_cb (CommonUserList *common_list, CommonUser *common_user, LightDMUserList *user_list) { LightDMUserListPrivate *priv = GET_LIST_PRIVATE (user_list); GList *link; for (link = priv->lightdm_list; link; link = link->next) { LightDMUser *lightdm_user = link->data; LightDMUserPrivate *user_priv = GET_USER_PRIVATE (lightdm_user); if (user_priv->common_user == common_user) { priv->lightdm_list = g_list_delete_link (priv->lightdm_list, link); g_signal_emit (user_list, list_signals[USER_REMOVED], 0, lightdm_user); g_object_unref (lightdm_user); break; } } } static void initialize_user_list_if_needed (LightDMUserList *user_list) { LightDMUserListPrivate *priv = GET_LIST_PRIVATE (user_list); GList *common_users; GList *link; if (priv->initialized) return; common_users = common_user_list_get_users (common_user_list_get_instance ()); for (link = common_users; link; link = link->next) { CommonUser *user = link->data; LightDMUser *lightdm_user = wrap_common_user (user); priv->lightdm_list = g_list_prepend (priv->lightdm_list, lightdm_user); } priv->lightdm_list = g_list_reverse (priv->lightdm_list); CommonUserList *common_list = common_user_list_get_instance (); g_signal_connect (common_list, USER_LIST_SIGNAL_USER_ADDED, G_CALLBACK (user_list_added_cb), user_list); g_signal_connect (common_list, USER_LIST_SIGNAL_USER_CHANGED, G_CALLBACK (user_list_changed_cb), user_list); g_signal_connect (common_list, USER_LIST_SIGNAL_USER_REMOVED, G_CALLBACK (user_list_removed_cb), user_list); priv->initialized = TRUE; } /** * lightdm_user_list_get_length: * @user_list: a #LightDMUserList * * Return value: The number of users able to log in **/ gint lightdm_user_list_get_length (LightDMUserList *user_list) { g_return_val_if_fail (LIGHTDM_IS_USER_LIST (user_list), 0); initialize_user_list_if_needed (user_list); return g_list_length (GET_LIST_PRIVATE (user_list)->lightdm_list); } /** * lightdm_user_list_get_users: * @user_list: A #LightDMUserList * * Get a list of users to present to the user. This list may be a subset of the * available users and may be empty depending on the server configuration. * * Return value: (element-type LightDMUser) (transfer none): A list of #LightDMUser that should be presented to the user. **/ GList * lightdm_user_list_get_users (LightDMUserList *user_list) { g_return_val_if_fail (LIGHTDM_IS_USER_LIST (user_list), NULL); initialize_user_list_if_needed (user_list); return GET_LIST_PRIVATE (user_list)->lightdm_list; } /** * lightdm_user_list_get_user_by_name: * @user_list: A #LightDMUserList * @username: Name of user to get. * * Get infomation about a given user or #NULL if this user doesn't exist. * * Return value: (transfer none): A #LightDMUser entry for the given user. **/ LightDMUser * lightdm_user_list_get_user_by_name (LightDMUserList *user_list, const gchar *username) { GList *link; g_return_val_if_fail (LIGHTDM_IS_USER_LIST (user_list), NULL); g_return_val_if_fail (username != NULL, NULL); initialize_user_list_if_needed (user_list); for (link = GET_LIST_PRIVATE (user_list)->lightdm_list; link; link = link->next) { LightDMUser *user = link->data; if (g_strcmp0 (lightdm_user_get_name (user), username) == 0) return user; } return NULL; } static void lightdm_user_list_init (LightDMUserList *user_list) { } static void lightdm_user_list_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); } static void lightdm_user_list_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { LightDMUserList *self; self = LIGHTDM_USER_LIST (object); switch (prop_id) { case LIST_PROP_NUM_USERS: case LIST_PROP_LENGTH: g_value_set_int (value, lightdm_user_list_get_length (self)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void lightdm_user_list_finalize (GObject *object) { LightDMUserList *self = LIGHTDM_USER_LIST (object); LightDMUserListPrivate *priv = GET_LIST_PRIVATE (self); g_list_free_full (priv->lightdm_list, g_object_unref); G_OBJECT_CLASS (lightdm_user_list_parent_class)->finalize (object); } static void lightdm_user_list_class_init (LightDMUserListClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (LightDMUserListPrivate)); object_class->set_property = lightdm_user_list_set_property; object_class->get_property = lightdm_user_list_get_property; object_class->finalize = lightdm_user_list_finalize; g_object_class_install_property (object_class, LIST_PROP_NUM_USERS, g_param_spec_int ("num-users", "num-users", "Number of login users", 0, G_MAXINT, 0, G_PARAM_DEPRECATED | G_PARAM_READABLE)); g_object_class_install_property (object_class, LIST_PROP_LENGTH, g_param_spec_int ("length", "length", "Number of login users", 0, G_MAXINT, 0, G_PARAM_READABLE)); /*g_object_class_install_property (object_class, LIST_PROP_USERS, g_param_spec_int ("users", "users", "Users to present to user", 0, G_MAXINT, 0, G_PARAM_READABLE));*/ /** * LightDMUserList::user-added: * @user_list: A #LightDMUserList * @user: The #LightDM user that has been added. * * The ::user-added signal gets emitted when a user account is created. **/ list_signals[USER_ADDED] = g_signal_new (LIGHTDM_USER_LIST_SIGNAL_USER_ADDED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LightDMUserListClass, user_added), NULL, NULL, NULL, G_TYPE_NONE, 1, LIGHTDM_TYPE_USER); /** * LightDMUserList::user-changed: * @user_list: A #LightDMUserList * @user: The #LightDM user that has been changed. * * The ::user-changed signal gets emitted when a user account is modified. **/ list_signals[USER_CHANGED] = g_signal_new (LIGHTDM_USER_LIST_SIGNAL_USER_CHANGED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LightDMUserListClass, user_changed), NULL, NULL, NULL, G_TYPE_NONE, 1, LIGHTDM_TYPE_USER); /** * LightDMUserList::user-removed: * @user_list: A #LightDMUserList * @user: The #LightDM user that has been removed. * * The ::user-removed signal gets emitted when a user account is removed. **/ list_signals[USER_REMOVED] = g_signal_new (LIGHTDM_USER_LIST_SIGNAL_USER_REMOVED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LightDMUserListClass, user_removed), NULL, NULL, NULL, G_TYPE_NONE, 1, LIGHTDM_TYPE_USER); } /** * lightdm_user_get_name: * @user: A #LightDMUser * * Get the name of a user. * * Return value: The name of the given user **/ const gchar * lightdm_user_get_name (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), NULL); return common_user_get_name (GET_USER_PRIVATE (user)->common_user); } /** * lightdm_user_get_real_name: * @user: A #LightDMUser * * Get the real name of a user. * * Return value: The real name of the given user **/ const gchar * lightdm_user_get_real_name (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), NULL); return common_user_get_real_name (GET_USER_PRIVATE (user)->common_user); } /** * lightdm_user_get_display_name: * @user: A #LightDMUser * * Get the display name of a user. * * Return value: The display name of the given user **/ const gchar * lightdm_user_get_display_name (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), NULL); return common_user_get_display_name (GET_USER_PRIVATE (user)->common_user); } /** * lightdm_user_get_home_directory: * @user: A #LightDMUser * * Get the home directory for a user. * * Return value: The users home directory */ const gchar * lightdm_user_get_home_directory (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), NULL); return common_user_get_home_directory (GET_USER_PRIVATE (user)->common_user); } /** * lightdm_user_get_image: * @user: A #LightDMUser * * Get the image URI for a user. * * Return value: (nullable): The image URI for the given user or #NULL if no URI **/ const gchar * lightdm_user_get_image (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), NULL); return common_user_get_image (GET_USER_PRIVATE (user)->common_user); } /** * lightdm_user_get_background: * @user: A #LightDMUser * * Get the background file path for a user. * * Return value: (nullable): The background file path for the given user or #NULL if no path **/ const gchar * lightdm_user_get_background (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), NULL); return common_user_get_background (GET_USER_PRIVATE (user)->common_user); } /** * lightdm_user_get_language: * @user: A #LightDMUser * * Get the language for a user. * * Return value: (nullable): The language in the form of a local specification (e.g. "de_DE.UTF-8") for the given user or #NULL if using the system default locale. **/ const gchar * lightdm_user_get_language (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), NULL); return common_user_get_language (GET_USER_PRIVATE (user)->common_user); } /** * lightdm_user_get_layout: * @user: A #LightDMUser * * Get the keyboard layout for a user. * * Return value: (nullable): The keyboard layout for the given user or #NULL if using system defaults. Copy the value if you want to use it long term. **/ const gchar * lightdm_user_get_layout (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), NULL); return common_user_get_layout (GET_USER_PRIVATE (user)->common_user); } /** * lightdm_user_get_layouts: * @user: A #LightDMUser * * Get the configured keyboard layouts for a user. * * Return value: (transfer none): A NULL-terminated array of keyboard layouts for the given user. Copy the values if you want to use them long term. **/ const gchar * const * lightdm_user_get_layouts (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), NULL); return common_user_get_layouts (GET_USER_PRIVATE (user)->common_user); } /** * lightdm_user_get_session: * @user: A #LightDMUser * * Get the session for a user. * * Return value: (nullable): The session for the given user or #NULL if using system defaults. **/ const gchar * lightdm_user_get_session (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), NULL); return common_user_get_session (GET_USER_PRIVATE (user)->common_user); } /** * lightdm_user_get_logged_in: * @user: A #LightDMUser * * Check if a user is logged in. * * Return value: #TRUE if the user is currently logged in. **/ gboolean lightdm_user_get_logged_in (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), FALSE); return common_user_get_logged_in (GET_USER_PRIVATE (user)->common_user); } /** * lightdm_user_get_has_messages: * @user: A #LightDMUser * * Check if a user has waiting messages. * * Return value: #TRUE if the user has waiting messages. **/ gboolean lightdm_user_get_has_messages (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), FALSE); return common_user_get_has_messages (GET_USER_PRIVATE (user)->common_user); } /** * lightdm_user_get_uid: * @user: A #LightDMUser * * Get the uid of a user. * * Return value: The uid of the given user **/ uid_t lightdm_user_get_uid (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), (uid_t)-1); return common_user_get_uid (GET_USER_PRIVATE (user)->common_user); } static void lightdm_user_init (LightDMUser *user) { } static void lightdm_user_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { LightDMUser *self = LIGHTDM_USER (object); LightDMUserPrivate *priv = GET_USER_PRIVATE (self); switch (prop_id) { case USER_PROP_COMMON_USER: priv->common_user = g_value_dup_object (value); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void lightdm_user_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { LightDMUser *self; self = LIGHTDM_USER (object); switch (prop_id) { case USER_PROP_NAME: g_value_set_string (value, lightdm_user_get_name (self)); break; case USER_PROP_REAL_NAME: g_value_set_string (value, lightdm_user_get_real_name (self)); break; case USER_PROP_DISPLAY_NAME: g_value_set_string (value, lightdm_user_get_display_name (self)); break; case USER_PROP_HOME_DIRECTORY: g_value_set_string (value, lightdm_user_get_home_directory (self)); break; case USER_PROP_IMAGE: g_value_set_string (value, lightdm_user_get_image (self)); break; case USER_PROP_BACKGROUND: g_value_set_string (value, lightdm_user_get_background (self)); break; case USER_PROP_LANGUAGE: g_value_set_string (value, lightdm_user_get_language (self)); break; case USER_PROP_LAYOUT: g_value_set_string (value, lightdm_user_get_layout (self)); break; case USER_PROP_LAYOUTS: g_value_set_boxed (value, g_strdupv ((gchar **) lightdm_user_get_layouts (self))); break; case USER_PROP_SESSION: g_value_set_string (value, lightdm_user_get_session (self)); break; case USER_PROP_LOGGED_IN: g_value_set_boolean (value, lightdm_user_get_logged_in (self)); break; case USER_PROP_HAS_MESSAGES: g_value_set_boolean (value, lightdm_user_get_has_messages (self)); break; case USER_PROP_UID: g_value_set_uint64 (value, lightdm_user_get_uid (self)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void lightdm_user_finalize (GObject *object) { LightDMUser *self = LIGHTDM_USER (object); LightDMUserPrivate *priv = GET_USER_PRIVATE (self); g_object_unref (priv->common_user); G_OBJECT_CLASS (lightdm_user_parent_class)->finalize (object); } static void lightdm_user_class_init (LightDMUserClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (LightDMUserPrivate)); object_class->set_property = lightdm_user_set_property; object_class->get_property = lightdm_user_get_property; object_class->finalize = lightdm_user_finalize; g_object_class_install_property (object_class, USER_PROP_COMMON_USER, g_param_spec_object ("common-user", "common-user", "Internal user object", COMMON_TYPE_USER, G_PARAM_PRIVATE|G_PARAM_CONSTRUCT_ONLY|G_PARAM_WRITABLE)); g_object_class_install_property (object_class, USER_PROP_NAME, g_param_spec_string ("name", "name", "Username", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_REAL_NAME, g_param_spec_string ("real-name", "real-name", "Users real name", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_DISPLAY_NAME, g_param_spec_string ("display-name", "display-name", "Users display name", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_HOME_DIRECTORY, g_param_spec_string ("home-directory", "home-directory", "Home directory", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_IMAGE, g_param_spec_string ("image", "image", "Avatar image", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_BACKGROUND, g_param_spec_string ("background", "background", "User background", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_LANGUAGE, g_param_spec_string ("language", "language", "Language used by this user", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_LAYOUT, g_param_spec_string ("layout", "layout", "Keyboard layout used by this user", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_LAYOUTS, g_param_spec_boxed ("layouts", "layouts", "Keyboard layouts used by this user", G_TYPE_STRV, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_SESSION, g_param_spec_string ("session", "session", "Session used by this user", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_LOGGED_IN, g_param_spec_boolean ("logged-in", "logged-in", "TRUE if the user is currently in a session", FALSE, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_LOGGED_IN, g_param_spec_boolean ("has-messages", "has-messages", "TRUE if the user is has waiting messages", FALSE, G_PARAM_READABLE)); g_object_class_install_property (object_class, USER_PROP_UID, g_param_spec_uint64 ("uid", "uid", "User UID", 0, G_MAXUINT64, 0, G_PARAM_READABLE)); /** * LightDMUser::changed: * @user: A #LightDMUser * * The ::changed signal gets emitted this user account is modified. **/ user_signals[CHANGED] = g_signal_new (LIGHTDM_SIGNAL_USER_CHANGED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LightDMUserClass, changed), NULL, NULL, NULL, G_TYPE_NONE, 0); } lightdm-1.18.1/liblightdm-gobject/greeter.c0000664000000000000000000017616512700600465015475 0ustar /* * Copyright (C) 2010 Robert Ancell. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #include #include #include #include #include "lightdm/greeter.h" enum { PROP_0, PROP_DEFAULT_SESSION_HINT, PROP_HIDE_USERS_HINT, PROP_SHOW_MANUAL_LOGIN_HINT, PROP_SHOW_REMOTE_LOGIN_HINT, PROP_LOCK_HINT, PROP_HAS_GUEST_ACCOUNT_HINT, PROP_SELECT_USER_HINT, PROP_SELECT_GUEST_HINT, PROP_AUTOLOGIN_USER_HINT, PROP_AUTOLOGIN_GUEST_HINT, PROP_AUTOLOGIN_TIMEOUT_HINT, PROP_AUTHENTICATION_USER, PROP_IN_AUTHENTICATION, PROP_IS_AUTHENTICATED, }; enum { SHOW_PROMPT, SHOW_MESSAGE, AUTHENTICATION_COMPLETE, AUTOLOGIN_TIMER_EXPIRED, IDLE, RESET, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; typedef struct { /* TRUE if the daemon can reuse this greeter */ gboolean resettable; /* Channel to write to daemon */ GIOChannel *to_server_channel; /* Channel to read from daemon */ GIOChannel *from_server_channel; /* Data read from the daemon */ guint8 *read_buffer; gsize n_read; gsize n_responses_waiting; GList *responses_received; /* TRUE if have got a connect response */ gboolean connected; /* Pending connect requests */ GList *connect_requests; /* Pending start session requests */ GList *start_session_requests; /* Pending ensure shared data dir requests */ GList *ensure_shared_data_dir_requests; /* Hints provided by the daemon */ GHashTable *hints; /* Timeout source to notify greeter to autologin */ guint autologin_timeout; gchar *authentication_user; gboolean in_authentication; gboolean is_authenticated; guint32 authenticate_sequence_number; gboolean cancelling_authentication; } LightDMGreeterPrivate; G_DEFINE_TYPE (LightDMGreeter, lightdm_greeter, G_TYPE_OBJECT); #define GET_PRIVATE(obj) G_TYPE_INSTANCE_GET_PRIVATE ((obj), LIGHTDM_TYPE_GREETER, LightDMGreeterPrivate) #define HEADER_SIZE 8 #define MAX_MESSAGE_LENGTH 1024 /* Messages from the greeter to the server */ typedef enum { GREETER_MESSAGE_CONNECT = 0, GREETER_MESSAGE_AUTHENTICATE, GREETER_MESSAGE_AUTHENTICATE_AS_GUEST, GREETER_MESSAGE_CONTINUE_AUTHENTICATION, GREETER_MESSAGE_START_SESSION, GREETER_MESSAGE_CANCEL_AUTHENTICATION, GREETER_MESSAGE_SET_LANGUAGE, GREETER_MESSAGE_AUTHENTICATE_REMOTE, GREETER_MESSAGE_ENSURE_SHARED_DIR, } GreeterMessage; /* Messages from the server to the greeter */ typedef enum { SERVER_MESSAGE_CONNECTED = 0, SERVER_MESSAGE_PROMPT_AUTHENTICATION, SERVER_MESSAGE_END_AUTHENTICATION, SERVER_MESSAGE_SESSION_RESULT, SERVER_MESSAGE_SHARED_DIR_RESULT, SERVER_MESSAGE_IDLE, SERVER_MESSAGE_RESET, } ServerMessage; /* Request sent to server */ typedef struct { GObject parent_instance; GCancellable *cancellable; GAsyncReadyCallback callback; gpointer user_data; gboolean complete; guint32 return_code; gchar *dir; } Request; typedef struct { GObjectClass parent_class; } RequestClass; GType request_get_type (void); static void request_iface_init (GAsyncResultIface *iface); #define REQUEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), request_get_type (), Request)) G_DEFINE_TYPE_WITH_CODE (Request, request, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE (G_TYPE_ASYNC_RESULT, request_iface_init)); GType lightdm_prompt_type_get_type (void) { static GType enum_type = 0; if (G_UNLIKELY(enum_type == 0)) { static const GEnumValue values[] = { { LIGHTDM_PROMPT_TYPE_QUESTION, "LIGHTDM_PROMPT_TYPE_QUESTION", "question" }, { LIGHTDM_PROMPT_TYPE_SECRET, "LIGHTDM_PROMPT_TYPE_SECRET", "secret" }, { 0, NULL, NULL } }; enum_type = g_enum_register_static (g_intern_static_string ("LightDMPromptType"), values); } return enum_type; } GType lightdm_message_type_get_type (void) { static GType enum_type = 0; if (G_UNLIKELY(enum_type == 0)) { static const GEnumValue values[] = { { LIGHTDM_MESSAGE_TYPE_INFO, "LIGHTDM_MESSAGE_TYPE_INFO", "info" }, { LIGHTDM_MESSAGE_TYPE_ERROR, "LIGHTDM_MESSAGE_TYPE_ERROR", "error" }, { 0, NULL, NULL } }; enum_type = g_enum_register_static (g_intern_static_string ("LightDMMessageType"), values); } return enum_type; } /** * lightdm_greeter_new: * * Create a new greeter. * * Return value: the new #LightDMGreeter **/ LightDMGreeter * lightdm_greeter_new (void) { return g_object_new (LIGHTDM_TYPE_GREETER, NULL); } /** * lightdm_greeter_set_resettable: * @greeter: A #LightDMGreeter * @resettable: Whether the greeter wants to be reset instead of killed after the user logs in * * Set whether the greeter will be reset instead of killed after the user logs in. * This must be called before lightdm_greeter_connect is called. **/ void lightdm_greeter_set_resettable (LightDMGreeter *greeter, gboolean resettable) { LightDMGreeterPrivate *priv; g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); priv = GET_PRIVATE (greeter); g_return_if_fail (!priv->connected); priv->resettable = resettable; } static Request * request_new (GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { Request *request; request = g_object_new (request_get_type (), NULL); if (cancellable) request->cancellable = g_object_ref (cancellable); request->callback = callback; request->user_data = user_data; return request; } static void request_complete (Request *request, GObject *object) { request->complete = TRUE; if (!request->callback) return; if (request->cancellable && g_cancellable_is_cancelled (request->cancellable)) return; request->callback (object, G_ASYNC_RESULT (request), request->user_data); } static gboolean timed_login_cb (gpointer data) { LightDMGreeter *greeter = data; LightDMGreeterPrivate *priv = GET_PRIVATE (greeter); priv->autologin_timeout = 0; g_signal_emit (G_OBJECT (greeter), signals[AUTOLOGIN_TIMER_EXPIRED], 0); return FALSE; } static guint32 int_length (void) { return 4; } static void write_int (guint8 *buffer, gint buffer_length, guint32 value, gsize *offset) { if (*offset + 4 >= buffer_length) return; buffer[*offset] = value >> 24; buffer[*offset+1] = (value >> 16) & 0xFF; buffer[*offset+2] = (value >> 8) & 0xFF; buffer[*offset+3] = value & 0xFF; *offset += 4; } static void write_string (guint8 *buffer, gint buffer_length, const gchar *value, gsize *offset) { gint length = 0; if (value) length = strlen (value); write_int (buffer, buffer_length, length, offset); if (*offset + length >= buffer_length) return; if (value) memcpy (buffer + *offset, value, length); *offset += length; } static guint32 read_int (guint8 *message, gsize message_length, gsize *offset) { guint32 value; guint8 *buffer; if (message_length - *offset < int_length ()) { g_warning ("Not enough space for int, need %i, got %zi", int_length (), message_length - *offset); return 0; } buffer = message + *offset; value = buffer[0] << 24 | buffer[1] << 16 | buffer[2] << 8 | buffer[3]; *offset += int_length (); return value; } static gchar * read_string (guint8 *message, gsize message_length, gsize *offset) { guint32 length; gchar *value; length = read_int (message, message_length, offset); if (message_length - *offset < length) { g_warning ("Not enough space for string, need %u, got %zu", length, message_length - *offset); return g_strdup (""); } value = g_malloc (sizeof (gchar) * (length + 1)); memcpy (value, message + *offset, length); value[length] = '\0'; *offset += length; return value; } static guint32 string_length (const gchar *value) { if (value) return int_length () + strlen (value); else return int_length (); } static void write_header (guint8 *buffer, gint buffer_length, guint32 id, guint32 length, gsize *offset) { write_int (buffer, buffer_length, id, offset); write_int (buffer, buffer_length, length, offset); } static guint32 get_message_length (guint8 *message, gsize message_length) { gsize offset = 4; return read_int (message, message_length, &offset); } static gboolean send_message (LightDMGreeter *greeter, guint8 *message, gsize message_length) { LightDMGreeterPrivate *priv = GET_PRIVATE (greeter); gchar *data; gsize data_length; GError *error = NULL; guint32 stated_length; if (!priv->to_server_channel) return FALSE; /* Double check that we're sending well-formed messages. If we say we're sending more than we do, we end up DOS'ing lightdm as it waits for the rest. If we say we're sending less than we do, we confuse the heck out of lightdm, as it starts reading headers from the middle of our messages. */ stated_length = HEADER_SIZE + get_message_length (message, message_length); if (stated_length != message_length) { g_warning ("Refusing to write malformed packet to daemon: declared size is %u, but actual size is %zu", stated_length, message_length); return FALSE; } data = (gchar *) message; data_length = message_length; while (data_length > 0) { GIOStatus status; gsize n_written; status = g_io_channel_write_chars (priv->to_server_channel, data, data_length, &n_written, &error); if (error) g_warning ("Error writing to daemon: %s", error->message); g_clear_error (&error); if (status != G_IO_STATUS_NORMAL) return FALSE; data_length -= n_written; data += n_written; } g_debug ("Wrote %zi bytes to daemon", message_length); g_io_channel_flush (priv->to_server_channel, &error); if (error) g_warning ("Failed to flush data to daemon: %s", error->message); g_clear_error (&error); return TRUE; } static void handle_connected (LightDMGreeter *greeter, guint8 *message, gsize message_length, gsize *offset) { LightDMGreeterPrivate *priv = GET_PRIVATE (greeter); gchar *version; GString *hint_string; int timeout; Request *request; version = read_string (message, message_length, offset); hint_string = g_string_new (""); while (*offset < message_length) { gchar *name, *value; name = read_string (message, message_length, offset); value = read_string (message, message_length, offset); g_hash_table_insert (priv->hints, name, value); g_string_append_printf (hint_string, " %s=%s", name, value); } priv->connected = TRUE; g_debug ("Connected version=%s%s", version, hint_string->str); g_free (version); g_string_free (hint_string, TRUE); /* Set timeout for default login */ timeout = lightdm_greeter_get_autologin_timeout_hint (greeter); if (timeout) { g_debug ("Setting autologin timer for %d seconds", timeout); priv->autologin_timeout = g_timeout_add (timeout * 1000, timed_login_cb, greeter); } /* Notify asynchronous caller */ request = g_list_nth_data (priv->connect_requests, 0); if (request) { request_complete (request, G_OBJECT (greeter)); priv->connect_requests = g_list_remove (priv->connect_requests, request); g_object_unref (request); } } static void handle_prompt_authentication (LightDMGreeter *greeter, guint8 *message, gsize message_length, gsize *offset) { LightDMGreeterPrivate *priv = GET_PRIVATE (greeter); guint32 sequence_number, n_messages, i; gchar *username; sequence_number = read_int (message, message_length, offset); if (sequence_number != priv->authenticate_sequence_number) { g_debug ("Ignoring prompt authentication with invalid sequence number %d", sequence_number); return; } if (priv->cancelling_authentication) { g_debug ("Ignoring prompt authentication as waiting for it to cancel"); return; } /* Update username */ username = read_string (message, message_length, offset); if (strcmp (username, "") == 0) { g_free (username); username = NULL; } g_free (priv->authentication_user); priv->authentication_user = username; g_list_free_full (priv->responses_received, g_free); priv->responses_received = NULL; priv->n_responses_waiting = 0; n_messages = read_int (message, message_length, offset); g_debug ("Prompt user with %d message(s)", n_messages); for (i = 0; i < n_messages; i++) { int style; gchar *text; style = read_int (message, message_length, offset); text = read_string (message, message_length, offset); // FIXME: Should stop on prompts? switch (style) { case PAM_PROMPT_ECHO_OFF: priv->n_responses_waiting++; g_signal_emit (G_OBJECT (greeter), signals[SHOW_PROMPT], 0, text, LIGHTDM_PROMPT_TYPE_SECRET); break; case PAM_PROMPT_ECHO_ON: priv->n_responses_waiting++; g_signal_emit (G_OBJECT (greeter), signals[SHOW_PROMPT], 0, text, LIGHTDM_PROMPT_TYPE_QUESTION); break; case PAM_ERROR_MSG: g_signal_emit (G_OBJECT (greeter), signals[SHOW_MESSAGE], 0, text, LIGHTDM_MESSAGE_TYPE_ERROR); break; case PAM_TEXT_INFO: g_signal_emit (G_OBJECT (greeter), signals[SHOW_MESSAGE], 0, text, LIGHTDM_MESSAGE_TYPE_INFO); break; } g_free (text); } } static void handle_end_authentication (LightDMGreeter *greeter, guint8 *message, gsize message_length, gsize *offset) { LightDMGreeterPrivate *priv = GET_PRIVATE (greeter); guint32 sequence_number, return_code; gchar *username; sequence_number = read_int (message, message_length, offset); if (sequence_number != priv->authenticate_sequence_number) { g_debug ("Ignoring end authentication with invalid sequence number %d", sequence_number); return; } username = read_string (message, message_length, offset); return_code = read_int (message, message_length, offset); g_debug ("Authentication complete for user %s with return code %d", username, return_code); /* Update username */ if (strcmp (username, "") == 0) { g_free (username); username = NULL; } g_free (priv->authentication_user); priv->authentication_user = username; priv->cancelling_authentication = FALSE; priv->is_authenticated = (return_code == 0); priv->in_authentication = FALSE; g_signal_emit (G_OBJECT (greeter), signals[AUTHENTICATION_COMPLETE], 0); } static void handle_idle (LightDMGreeter *greeter, guint8 *message, gsize message_length, gsize *offset) { g_signal_emit (G_OBJECT (greeter), signals[IDLE], 0); } static void handle_reset (LightDMGreeter *greeter, guint8 *message, gsize message_length, gsize *offset) { LightDMGreeterPrivate *priv = GET_PRIVATE (greeter); GString *hint_string; g_hash_table_remove_all (priv->hints); hint_string = g_string_new (""); while (*offset < message_length) { gchar *name, *value; name = read_string (message, message_length, offset); value = read_string (message, message_length, offset); g_hash_table_insert (priv->hints, name, value); g_string_append_printf (hint_string, " %s=%s", name, value); } g_debug ("Reset%s", hint_string->str); g_string_free (hint_string, TRUE); g_signal_emit (G_OBJECT (greeter), signals[RESET], 0); } static void handle_session_result (LightDMGreeter *greeter, guint8 *message, gsize message_length, gsize *offset) { LightDMGreeterPrivate *priv = GET_PRIVATE (greeter); Request *request; /* Notify asynchronous caller */ request = g_list_nth_data (priv->start_session_requests, 0); if (request) { request->return_code = read_int (message, message_length, offset); request_complete (request, G_OBJECT (greeter)); priv->start_session_requests = g_list_remove (priv->start_session_requests, request); g_object_unref (request); } } static void handle_shared_dir_result (LightDMGreeter *greeter, guint8 *message, gsize message_length, gsize *offset) { LightDMGreeterPrivate *priv = GET_PRIVATE (greeter); Request *request; /* Notify asynchronous caller */ request = g_list_nth_data (priv->ensure_shared_data_dir_requests, 0); if (request) { request->dir = read_string (message, message_length, offset); /* Blank data dir means invalid user */ if (g_strcmp0 (request->dir, "") == 0) { g_free (request->dir); request->dir = NULL; } request_complete (request, G_OBJECT (greeter)); priv->ensure_shared_data_dir_requests = g_list_remove (priv->ensure_shared_data_dir_requests, request); g_object_unref (request); } } static void handle_message (LightDMGreeter *greeter, guint8 *message, gsize message_length) { gsize offset = 0; guint32 id; id = read_int (message, message_length, &offset); read_int (message, message_length, &offset); switch (id) { case SERVER_MESSAGE_CONNECTED: handle_connected (greeter, message, message_length, &offset); break; case SERVER_MESSAGE_PROMPT_AUTHENTICATION: handle_prompt_authentication (greeter, message, message_length, &offset); break; case SERVER_MESSAGE_END_AUTHENTICATION: handle_end_authentication (greeter, message, message_length, &offset); break; case SERVER_MESSAGE_SESSION_RESULT: handle_session_result (greeter, message, message_length, &offset); break; case SERVER_MESSAGE_SHARED_DIR_RESULT: handle_shared_dir_result (greeter, message, message_length, &offset); break; case SERVER_MESSAGE_IDLE: handle_idle (greeter, message, message_length, &offset); break; case SERVER_MESSAGE_RESET: handle_reset (greeter, message, message_length, &offset); break; default: g_warning ("Unknown message from server: %d", id); break; } } static guint8 * recv_message (LightDMGreeter *greeter, gsize *length, gboolean block) { LightDMGreeterPrivate *priv = GET_PRIVATE (greeter); gsize n_to_read, n_read; guint8 *buffer; GError *error = NULL; if (!priv->from_server_channel) return NULL; /* Read the header, or the whole message if we already have that */ n_to_read = HEADER_SIZE; if (priv->n_read >= HEADER_SIZE) n_to_read += get_message_length (priv->read_buffer, priv->n_read); do { GIOStatus status; status = g_io_channel_read_chars (priv->from_server_channel, (gchar *) priv->read_buffer + priv->n_read, n_to_read - priv->n_read, &n_read, &error); if (error) g_warning ("Error reading from server: %s", error->message); g_clear_error (&error); if (status != G_IO_STATUS_NORMAL) break; g_debug ("Read %zi bytes from daemon", n_read); priv->n_read += n_read; } while (priv->n_read < n_to_read && block); /* Stop if haven't got all the data we want */ if (priv->n_read != n_to_read) return NULL; /* If have header, rerun for content */ if (priv->n_read == HEADER_SIZE) { n_to_read = get_message_length (priv->read_buffer, priv->n_read); if (n_to_read > 0) { priv->read_buffer = g_realloc (priv->read_buffer, HEADER_SIZE + n_to_read); return recv_message (greeter, length, block); } } buffer = priv->read_buffer; *length = priv->n_read; priv->read_buffer = g_malloc (priv->n_read); priv->n_read = 0; return buffer; } static gboolean from_server_cb (GIOChannel *source, GIOCondition condition, gpointer data) { LightDMGreeter *greeter = data; guint8 *message; gsize message_length; /* Read one message and process it */ message = recv_message (greeter, &message_length, FALSE); if (message) { handle_message (greeter, message, message_length); g_free (message); } return TRUE; } static gboolean send_connect (LightDMGreeter *greeter, gboolean resettable) { guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; g_debug ("Connecting to display manager..."); write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_CONNECT, string_length (VERSION) + int_length (), &offset); write_string (message, MAX_MESSAGE_LENGTH, VERSION, &offset); write_int (message, MAX_MESSAGE_LENGTH, resettable ? 1 : 0, &offset); return send_message (greeter, message, offset); } static gboolean send_start_session (LightDMGreeter *greeter, const gchar *session) { guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; if (session) g_debug ("Starting session %s", session); else g_debug ("Starting default session"); write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_START_SESSION, string_length (session), &offset); write_string (message, MAX_MESSAGE_LENGTH, session, &offset); return send_message (greeter, message, offset); } static gboolean send_ensure_shared_data_dir (LightDMGreeter *greeter, const gchar *username) { guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; g_debug ("Ensuring data directory for user %s", username); write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_ENSURE_SHARED_DIR, string_length (username), &offset); write_string (message, MAX_MESSAGE_LENGTH, username, &offset); return send_message (greeter, message, offset); } /** * lightdm_greeter_connect_to_daemon: * @greeter: The greeter to connect * @cancellable: (allow-none): A #GCancellable or %NULL. * @callback: (allow-none): A #GAsyncReadyCallback to call when completed or %NULL. * @user_data: (allow-none): data to pass to the @callback or %NULL. * * Asynchronously connects the greeter to the display manager. * * When the operation is finished, @callback will be invoked. You can then call lightdm_greeter_connect_to_daemon_finish() to get the result of the operation. * * See lightdm_greeter_connect_to_daemon_sync() for the synchronous version. **/ void lightdm_greeter_connect_to_daemon (LightDMGreeter *greeter, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { LightDMGreeterPrivate *priv; Request *request; g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); priv = GET_PRIVATE (greeter); request = request_new (cancellable, callback, user_data); priv->connect_requests = g_list_append (priv->connect_requests, request); send_connect (greeter, priv->resettable); } /** * lightdm_greeter_connect_to_daemon_finish: * @greeter: The greeter the the request was done with * @result: A #GAsyncResult. * @error: return location for a #GError, or %NULL * * Finishes an operation started with lightdm_greeter_connect_to_daemon(). * * Return value: #TRUE if successfully connected **/ gboolean lightdm_greeter_connect_to_daemon_finish (LightDMGreeter *greeter, GAsyncResult *result, GError **error) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); return REQUEST (result)->complete; } /** * lightdm_greeter_connect_to_daemon_sync: * @greeter: The greeter to connect * @error: return location for a #GError, or %NULL * * Connects the greeter to the display manager. Will block until connected. * * Return value: #TRUE if successfully connected **/ gboolean lightdm_greeter_connect_to_daemon_sync (LightDMGreeter *greeter, GError **error) { LightDMGreeterPrivate *priv; Request *request; g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); priv = GET_PRIVATE (greeter); /* Read until we are connected */ send_connect (greeter, priv->resettable); request = request_new (NULL, NULL, NULL); priv->connect_requests = g_list_append (priv->connect_requests, g_object_ref (request)); do { guint8 *message; gsize message_length; message = recv_message (greeter, &message_length, TRUE); if (!message) break; handle_message (greeter, message, message_length); g_free (message); } while (!request->complete); g_object_unref (request); return request->complete; } /** * lightdm_greeter_connect_sync: * @greeter: The greeter to connect * @error: return location for a #GError, or %NULL * * Connects the greeter to the display manager. Will block until connected. * * Return value: #TRUE if successfully connected * * Deprecated: 1.11.1: Use lightdm_greeter_connect_to_daemon_sync() instead **/ gboolean lightdm_greeter_connect_sync (LightDMGreeter *greeter, GError **error) { return lightdm_greeter_connect_to_daemon_sync (greeter, error); } /** * lightdm_greeter_get_hint: * @greeter: A #LightDMGreeter * @name: The hint name to query. * * Get a hint. * * Return value: (nullable): The value for this hint or #NULL if not set. **/ const gchar * lightdm_greeter_get_hint (LightDMGreeter *greeter, const gchar *name) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), NULL); return g_hash_table_lookup (GET_PRIVATE (greeter)->hints, name); } /** * lightdm_greeter_get_default_session_hint: * @greeter: A #LightDMGreeter * * Get the default session to use. * * Return value: The session name **/ const gchar * lightdm_greeter_get_default_session_hint (LightDMGreeter *greeter) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), NULL); return lightdm_greeter_get_hint (greeter, "default-session"); } /** * lightdm_greeter_get_hide_users_hint: * @greeter: A #LightDMGreeter * * Check if user accounts should be shown. If this is TRUE then the list of * accounts should be taken from #LightDMUserList and displayed in the greeter * for the user to choose from. Note that this list can be empty and it is * recommended you show a method for the user to enter a username manually. * * If this option is shown the greeter should only allow these users to be * chosen for login unless the manual login hint is set. * * Return value: #TRUE if the available users should not be shown. */ gboolean lightdm_greeter_get_hide_users_hint (LightDMGreeter *greeter) { const gchar *value; g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); value = lightdm_greeter_get_hint (greeter, "hide-users"); return g_strcmp0 (value, "true") == 0; } /** * lightdm_greeter_get_show_manual_login_hint: * @greeter: A #LightDMGreeter * * Check if a manual login option should be shown. If set the GUI * should provide a way for a username to be entered manually. * Without this hint a greeter which is showing a user list can * limit logins to only those users. * * Return value: #TRUE if a manual login option should be shown. */ gboolean lightdm_greeter_get_show_manual_login_hint (LightDMGreeter *greeter) { const gchar *value; g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); value = lightdm_greeter_get_hint (greeter, "show-manual-login"); return g_strcmp0 (value, "true") == 0; } /** * lightdm_greeter_get_show_remote_login_hint: * @greeter: A #LightDMGreeter * * Check if a remote login option should be shown. If set the GUI * should provide a way for a user to log into a remote desktop server. * * Return value: #TRUE if a remote login option should be shown. */ gboolean lightdm_greeter_get_show_remote_login_hint (LightDMGreeter *greeter) { const gchar *value; g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); value = lightdm_greeter_get_hint (greeter, "show-remote-login"); return g_strcmp0 (value, "true") == 0; } /** * lightdm_greeter_get_lock_hint: * @greeter: A #LightDMGreeter * * Check if the greeter is acting as a lock screen. * * Return value: #TRUE if the greeter was triggered by locking the seat. */ gboolean lightdm_greeter_get_lock_hint (LightDMGreeter *greeter) { const gchar *value; g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); value = lightdm_greeter_get_hint (greeter, "lock-screen"); return g_strcmp0 (value, "true") == 0; } /** * lightdm_greeter_get_has_guest_account_hint: * @greeter: A #LightDMGreeter * * Check if guest sessions are supported. * * Return value: #TRUE if guest sessions are supported. */ gboolean lightdm_greeter_get_has_guest_account_hint (LightDMGreeter *greeter) { const gchar *value; g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); value = lightdm_greeter_get_hint (greeter, "has-guest-account"); return g_strcmp0 (value, "true") == 0; } /** * lightdm_greeter_get_select_user_hint: * @greeter: A #LightDMGreeter * * Get the user to select by default. * * Return value: (nullable): A username or %NULL if no particular user should be selected. */ const gchar * lightdm_greeter_get_select_user_hint (LightDMGreeter *greeter) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), NULL); return lightdm_greeter_get_hint (greeter, "select-user"); } /** * lightdm_greeter_get_select_guest_hint: * @greeter: A #LightDMGreeter * * Check if the guest account should be selected by default. * * Return value: #TRUE if the guest account should be selected by default. */ gboolean lightdm_greeter_get_select_guest_hint (LightDMGreeter *greeter) { const gchar *value; g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); value = lightdm_greeter_get_hint (greeter, "select-guest"); return g_strcmp0 (value, "true") == 0; } /** * lightdm_greeter_get_autologin_user_hint: * @greeter: A #LightDMGreeter * * Get the user account to automatically log into when the timer expires. * * Return value: (nullable): The user account to automatically log into or %NULL if none configured. */ const gchar * lightdm_greeter_get_autologin_user_hint (LightDMGreeter *greeter) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), NULL); return lightdm_greeter_get_hint (greeter, "autologin-user"); } /** * lightdm_greeter_get_autologin_guest_hint: * @greeter: A #LightDMGreeter * * Check if the guest account should be automatically logged into when the timer expires. * * Return value: #TRUE if the guest account should be automatically logged into. */ gboolean lightdm_greeter_get_autologin_guest_hint (LightDMGreeter *greeter) { const gchar *value; g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); value = lightdm_greeter_get_hint (greeter, "autologin-guest"); return g_strcmp0 (value, "true") == 0; } /** * lightdm_greeter_get_autologin_timeout_hint: * @greeter: A #LightDMGreeter * * Get the number of seconds to wait before automaitcally logging in. * * Return value: The number of seconds to wait before automatically logging in or 0 for no timeout. */ gint lightdm_greeter_get_autologin_timeout_hint (LightDMGreeter *greeter) { const gchar *value; gint timeout = 0; g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); value = lightdm_greeter_get_hint (greeter, "autologin-timeout"); if (value) timeout = atoi (value); if (timeout < 0) timeout = 0; return timeout; } /** * lightdm_greeter_cancel_autologin: * @greeter: A #LightDMGreeter * * Cancel the automatic login. */ void lightdm_greeter_cancel_autologin (LightDMGreeter *greeter) { LightDMGreeterPrivate *priv; g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); priv = GET_PRIVATE (greeter); if (priv->autologin_timeout) g_source_remove (priv->autologin_timeout); priv->autologin_timeout = 0; } /** * lightdm_greeter_authenticate: * @greeter: A #LightDMGreeter * @username: (allow-none): A username or #NULL to prompt for a username. * * Starts the authentication procedure for a user. **/ void lightdm_greeter_authenticate (LightDMGreeter *greeter, const gchar *username) { LightDMGreeterPrivate *priv; guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); priv = GET_PRIVATE (greeter); g_return_if_fail (priv->connected); priv->cancelling_authentication = FALSE; priv->authenticate_sequence_number++; priv->in_authentication = TRUE; priv->is_authenticated = FALSE; if (username != priv->authentication_user) { g_free (priv->authentication_user); priv->authentication_user = g_strdup (username); } g_debug ("Starting authentication for user %s...", username); write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_AUTHENTICATE, int_length () + string_length (username), &offset); write_int (message, MAX_MESSAGE_LENGTH, priv->authenticate_sequence_number, &offset); write_string (message, MAX_MESSAGE_LENGTH, username, &offset); send_message (greeter, message, offset); } /** * lightdm_greeter_authenticate_as_guest: * @greeter: A #LightDMGreeter * * Starts the authentication procedure for the guest user. **/ void lightdm_greeter_authenticate_as_guest (LightDMGreeter *greeter) { LightDMGreeterPrivate *priv; guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); priv = GET_PRIVATE (greeter); g_return_if_fail (priv->connected); priv->cancelling_authentication = FALSE; priv->authenticate_sequence_number++; priv->in_authentication = TRUE; priv->is_authenticated = FALSE; g_free (priv->authentication_user); priv->authentication_user = NULL; g_debug ("Starting authentication for guest account..."); write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_AUTHENTICATE_AS_GUEST, int_length (), &offset); write_int (message, MAX_MESSAGE_LENGTH, priv->authenticate_sequence_number, &offset); send_message (greeter, message, offset); } /** * lightdm_greeter_authenticate_autologin: * @greeter: A #LightDMGreeter * * Starts the authentication procedure for the automatic login user. **/ void lightdm_greeter_authenticate_autologin (LightDMGreeter *greeter) { const gchar *user; user = lightdm_greeter_get_autologin_user_hint (greeter); if (lightdm_greeter_get_autologin_guest_hint (greeter)) lightdm_greeter_authenticate_as_guest (greeter); else if (user) lightdm_greeter_authenticate (greeter, user); } /** * lightdm_greeter_authenticate_remote: * @greeter: A #LightDMGreeter * @session: The name of a remote session * @username: (allow-none): A username of #NULL to prompt for a username. * * Start authentication for a remote session type. **/ void lightdm_greeter_authenticate_remote (LightDMGreeter *greeter, const gchar *session, const gchar *username) { LightDMGreeterPrivate *priv; guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); priv = GET_PRIVATE (greeter); g_return_if_fail (priv->connected); priv->cancelling_authentication = FALSE; priv->authenticate_sequence_number++; priv->in_authentication = TRUE; priv->is_authenticated = FALSE; g_free (priv->authentication_user); priv->authentication_user = NULL; if (username) g_debug ("Starting authentication for remote session %s as user %s...", session, username); else g_debug ("Starting authentication for remote session %s...", session); write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_AUTHENTICATE_REMOTE, int_length () + string_length (session) + string_length (username), &offset); write_int (message, MAX_MESSAGE_LENGTH, priv->authenticate_sequence_number, &offset); write_string (message, MAX_MESSAGE_LENGTH, session, &offset); write_string (message, MAX_MESSAGE_LENGTH, username, &offset); send_message (greeter, message, offset); } /** * lightdm_greeter_respond: * @greeter: A #LightDMGreeter * @response: Response to a prompt * * Provide response to a prompt. May be one in a series. **/ void lightdm_greeter_respond (LightDMGreeter *greeter, const gchar *response) { LightDMGreeterPrivate *priv; guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); g_return_if_fail (response != NULL); priv = GET_PRIVATE (greeter); g_return_if_fail (priv->connected); g_return_if_fail (priv->n_responses_waiting > 0); priv->n_responses_waiting--; priv->responses_received = g_list_append (priv->responses_received, g_strdup (response)); if (priv->n_responses_waiting == 0) { guint32 msg_length; GList *iter; g_debug ("Providing response to display manager"); msg_length = int_length (); for (iter = priv->responses_received; iter; iter = iter->next) msg_length += string_length ((gchar *)iter->data); write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_CONTINUE_AUTHENTICATION, msg_length, &offset); write_int (message, MAX_MESSAGE_LENGTH, g_list_length (priv->responses_received), &offset); for (iter = priv->responses_received; iter; iter = iter->next) write_string (message, MAX_MESSAGE_LENGTH, (gchar *)iter->data, &offset); send_message (greeter, message, offset); g_list_free_full (priv->responses_received, g_free); priv->responses_received = NULL; } } /** * lightdm_greeter_cancel_authentication: * @greeter: A #LightDMGreeter * * Cancel the current user authentication. **/ void lightdm_greeter_cancel_authentication (LightDMGreeter *greeter) { LightDMGreeterPrivate *priv; guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); priv = GET_PRIVATE (greeter); g_return_if_fail (priv->connected); priv->cancelling_authentication = TRUE; write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_CANCEL_AUTHENTICATION, 0, &offset); send_message (greeter, message, offset); } /** * lightdm_greeter_get_in_authentication: * @greeter: A #LightDMGreeter * * Checks if the greeter is in the process of authenticating. * * Return value: #TRUE if the greeter is authenticating a user. **/ gboolean lightdm_greeter_get_in_authentication (LightDMGreeter *greeter) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); return GET_PRIVATE (greeter)->in_authentication; } /** * lightdm_greeter_get_is_authenticated: * @greeter: A #LightDMGreeter * * Checks if the greeter has successfully authenticated. * * Return value: #TRUE if the greeter is authenticated for login. **/ gboolean lightdm_greeter_get_is_authenticated (LightDMGreeter *greeter) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); return GET_PRIVATE (greeter)->is_authenticated; } /** * lightdm_greeter_get_authentication_user: * @greeter: A #LightDMGreeter * * Get the user that is being authenticated. * * Return value: (nullable): The username of the authentication user being authenticated or #NULL if no authentication in progress. */ const gchar * lightdm_greeter_get_authentication_user (LightDMGreeter *greeter) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), NULL); return GET_PRIVATE (greeter)->authentication_user; } /** * lightdm_greeter_set_language: * @greeter: A #LightDMGreeter * @language: The language to use for this user in the form of a locale specification (e.g. "de_DE.UTF-8"). * * Set the language for the currently authenticated user. **/ void lightdm_greeter_set_language (LightDMGreeter *greeter, const gchar *language) { LightDMGreeterPrivate *priv; guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); priv = GET_PRIVATE (greeter); g_return_if_fail (priv->connected); write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_SET_LANGUAGE, string_length (language), &offset); write_string (message, MAX_MESSAGE_LENGTH, language, &offset); send_message (greeter, message, offset); } /** * lightdm_greeter_start_session: * @greeter: A #LightDMGreeter * @session: (allow-none): The session to log into or #NULL to use the default. * @cancellable: (allow-none): A #GCancellable or %NULL. * @callback: (allow-none): A #GAsyncReadyCallback to call when completed or %NULL. * @user_data: (allow-none): data to pass to the @callback or %NULL. * * Asynchronously start a session for the authenticated user. * * When the operation is finished, @callback will be invoked. You can then call lightdm_greeter_start_session_finish() to get the result of the operation. * * See lightdm_greeter_start_session_sync() for the synchronous version. **/ void lightdm_greeter_start_session (LightDMGreeter *greeter, const gchar *session, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { LightDMGreeterPrivate *priv; Request *request; g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); priv = GET_PRIVATE (greeter); send_start_session (greeter, session); request = request_new (cancellable, callback, user_data); priv->start_session_requests = g_list_append (priv->start_session_requests, request); } /** * lightdm_greeter_start_session_finish: * @greeter: A #LightDMGreeter * @result: A #GAsyncResult. * @error: return location for a #GError, or %NULL * * Start a session for the authenticated user. * * Return value: TRUE if the session was started. **/ gboolean lightdm_greeter_start_session_finish (LightDMGreeter *greeter, GAsyncResult *result, GError **error) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); return REQUEST (result)->return_code == 0; } /** * lightdm_greeter_start_session_sync: * @greeter: A #LightDMGreeter * @session: (allow-none): The session to log into or #NULL to use the default. * @error: return location for a #GError, or %NULL * * Start a session for the authenticated user. * * Return value: TRUE if the session was started. **/ gboolean lightdm_greeter_start_session_sync (LightDMGreeter *greeter, const gchar *session, GError **error) { LightDMGreeterPrivate *priv; Request *request; guint32 return_code; g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); priv = GET_PRIVATE (greeter); g_return_val_if_fail (priv->connected, FALSE); g_return_val_if_fail (priv->is_authenticated, FALSE); /* Read until the session is started */ send_start_session (greeter, session); request = request_new (NULL, NULL, NULL); priv->start_session_requests = g_list_append (priv->start_session_requests, g_object_ref (request)); do { guint8 *message; gsize message_length; message = recv_message (greeter, &message_length, TRUE); if (!message) break; handle_message (greeter, message, message_length); g_free (message); } while (!request->complete); return_code = request->return_code; g_object_unref (request); return return_code == 0; } /** * lightdm_greeter_ensure_shared_data_dir: * @greeter: A #LightDMGreeter * @username: A username * @cancellable: (allow-none): A #GCancellable or %NULL. * @callback: (allow-none): A #GAsyncReadyCallback to call when completed or %NULL. * @user_data: (allow-none): data to pass to the @callback or %NULL. * * Ensure that a shared data dir for the given user is available. Both the * greeter user and @username will have write access to that folder. The * intention is that larger pieces of shared data would be stored there (files * that the greeter creates but wants to give to a user -- like camera * photos -- or files that the user creates but wants the greeter to * see -- like contact avatars). * * LightDM will automatically create these if the user actually logs in, so * greeters only need to call this method if they want to store something in * the directory themselves. **/ void lightdm_greeter_ensure_shared_data_dir (LightDMGreeter *greeter, const gchar *username, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { LightDMGreeterPrivate *priv; Request *request; g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); priv = GET_PRIVATE (greeter); send_ensure_shared_data_dir (greeter, username); request = request_new (cancellable, callback, user_data); priv->ensure_shared_data_dir_requests = g_list_append (priv->ensure_shared_data_dir_requests, request); } /** * lightdm_greeter_ensure_shared_data_dir_finish: * @result: A #GAsyncResult. * @greeter: A #LightDMGreeter * * Function to call from lightdm_greeter_ensure_shared_data_dir callback. * * Return value: The path to the shared directory, free with g_free. **/ gchar * lightdm_greeter_ensure_shared_data_dir_finish (LightDMGreeter *greeter, GAsyncResult *result) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), NULL); return g_strdup (REQUEST (result)->dir); } /** * lightdm_greeter_ensure_shared_data_dir_sync: * @greeter: A #LightDMGreeter * @username: A username * * Ensure that a shared data dir for the given user is available. Both the * greeter user and @username will have write access to that folder. The * intention is that larger pieces of shared data would be stored there (files * that the greeter creates but wants to give to a user -- like camera * photos -- or files that the user creates but wants the greeter to * see -- like contact avatars). * * LightDM will automatically create these if the user actually logs in, so * greeters only need to call this method if they want to store something in * the directory themselves. * * Return value: The path to the shared directory, free with g_free. **/ gchar * lightdm_greeter_ensure_shared_data_dir_sync (LightDMGreeter *greeter, const gchar *username) { LightDMGreeterPrivate *priv; Request *request; gchar *data_dir; g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), NULL); priv = GET_PRIVATE (greeter); g_return_val_if_fail (priv->connected, NULL); /* Read until a response */ send_ensure_shared_data_dir (greeter, username); request = request_new (NULL, NULL, NULL); priv->ensure_shared_data_dir_requests = g_list_append (priv->ensure_shared_data_dir_requests, g_object_ref (request)); do { guint8 *message; gsize message_length; message = recv_message (greeter, &message_length, TRUE); if (!message) break; handle_message (greeter, message, message_length); g_free (message); } while (!request->complete); data_dir = g_strdup (request->dir); g_object_unref (request); return data_dir; } static void lightdm_greeter_init (LightDMGreeter *greeter) { LightDMGreeterPrivate *priv = GET_PRIVATE (greeter); const gchar *fd; priv->read_buffer = g_malloc (HEADER_SIZE); priv->hints = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); fd = g_getenv ("LIGHTDM_TO_SERVER_FD"); if (fd) { GError *error = NULL; priv->to_server_channel = g_io_channel_unix_new (atoi (fd)); g_io_channel_set_encoding (priv->to_server_channel, NULL, &error); if (error) g_warning ("Failed to set encoding on to server channel to binary: %s\n", error->message); g_clear_error (&error); } else g_warning ("No LIGHTDM_TO_SERVER_FD environment variable"); fd = g_getenv ("LIGHTDM_FROM_SERVER_FD"); if (fd) { GError *error = NULL; priv->from_server_channel = g_io_channel_unix_new (atoi (fd)); g_io_channel_set_encoding (priv->from_server_channel, NULL, &error); if (error) g_warning ("Failed to set encoding on from server channel to binary: %s\n", error->message); g_clear_error (&error); g_io_add_watch (priv->from_server_channel, G_IO_IN, from_server_cb, greeter); } else g_warning ("No LIGHTDM_FROM_SERVER_FD environment variable"); } static void lightdm_greeter_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); } static void lightdm_greeter_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { LightDMGreeter *self; self = LIGHTDM_GREETER (object); switch (prop_id) { case PROP_DEFAULT_SESSION_HINT: g_value_set_string (value, lightdm_greeter_get_default_session_hint (self)); break; case PROP_HIDE_USERS_HINT: g_value_set_boolean (value, lightdm_greeter_get_hide_users_hint (self)); break; case PROP_SHOW_MANUAL_LOGIN_HINT: g_value_set_boolean (value, lightdm_greeter_get_show_manual_login_hint (self)); break; case PROP_SHOW_REMOTE_LOGIN_HINT: g_value_set_boolean (value, lightdm_greeter_get_show_remote_login_hint (self)); break; case PROP_LOCK_HINT: g_value_set_boolean (value, lightdm_greeter_get_lock_hint (self)); break; case PROP_HAS_GUEST_ACCOUNT_HINT: g_value_set_boolean (value, lightdm_greeter_get_has_guest_account_hint (self)); break; case PROP_SELECT_USER_HINT: g_value_set_string (value, lightdm_greeter_get_select_user_hint (self)); break; case PROP_SELECT_GUEST_HINT: g_value_set_boolean (value, lightdm_greeter_get_select_guest_hint (self)); break; case PROP_AUTOLOGIN_USER_HINT: g_value_set_string (value, lightdm_greeter_get_autologin_user_hint (self)); break; case PROP_AUTOLOGIN_GUEST_HINT: g_value_set_boolean (value, lightdm_greeter_get_autologin_guest_hint (self)); break; case PROP_AUTOLOGIN_TIMEOUT_HINT: g_value_set_int (value, lightdm_greeter_get_autologin_timeout_hint (self)); break; case PROP_AUTHENTICATION_USER: g_value_set_string (value, lightdm_greeter_get_authentication_user (self)); break; case PROP_IN_AUTHENTICATION: g_value_set_boolean (value, lightdm_greeter_get_in_authentication (self)); break; case PROP_IS_AUTHENTICATED: g_value_set_boolean (value, lightdm_greeter_get_is_authenticated (self)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void lightdm_greeter_finalize (GObject *object) { LightDMGreeter *self = LIGHTDM_GREETER (object); LightDMGreeterPrivate *priv = GET_PRIVATE (self); if (priv->to_server_channel) g_io_channel_unref (priv->to_server_channel); if (priv->from_server_channel) g_io_channel_unref (priv->from_server_channel); g_free (priv->authentication_user); g_hash_table_unref (priv->hints); G_OBJECT_CLASS (lightdm_greeter_parent_class)->finalize (object); } static void lightdm_greeter_class_init (LightDMGreeterClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (LightDMGreeterPrivate)); object_class->set_property = lightdm_greeter_set_property; object_class->get_property = lightdm_greeter_get_property; object_class->finalize = lightdm_greeter_finalize; g_object_class_install_property (object_class, PROP_DEFAULT_SESSION_HINT, g_param_spec_string ("default-session-hint", "default-session-hint", "Default session hint", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_HIDE_USERS_HINT, g_param_spec_boolean ("hide-users-hint", "hide-users-hint", "Hide users hint", FALSE, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_SHOW_MANUAL_LOGIN_HINT, g_param_spec_boolean ("show-manual-login-hint", "show-manual-login-hint", "Show manual login hint", FALSE, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_SHOW_REMOTE_LOGIN_HINT, g_param_spec_boolean ("show-remote-login-hint", "show-remote-login-hint", "Show remote login hint", FALSE, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_LOCK_HINT, g_param_spec_boolean ("lock-hint", "lock-hint", "Lock hint", FALSE, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_HAS_GUEST_ACCOUNT_HINT, g_param_spec_boolean ("has-guest-account-hint", "has-guest-account-hint", "Has guest account hint", FALSE, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_SELECT_USER_HINT, g_param_spec_string ("select-user-hint", "select-user-hint", "Select user hint", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_SELECT_GUEST_HINT, g_param_spec_boolean ("select-guest-hint", "select-guest-hint", "Select guest account hint", FALSE, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_AUTOLOGIN_USER_HINT, g_param_spec_string ("autologin-user-hint", "autologin-user-hint", "Autologin user hint", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_AUTOLOGIN_GUEST_HINT, g_param_spec_boolean ("autologin-guest-hint", "autologin-guest-hint", "Autologin guest account hint", FALSE, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_AUTOLOGIN_TIMEOUT_HINT, g_param_spec_int ("autologin-timeout-hint", "autologin-timeout-hint", "Autologin timeout hint", 0, G_MAXINT, 0, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_AUTHENTICATION_USER, g_param_spec_string ("authentication-user", "authentication-user", "The user being authenticated", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_IN_AUTHENTICATION, g_param_spec_boolean ("in-authentication", "in-authentication", "TRUE if a user is being authenticated", FALSE, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_IS_AUTHENTICATED, g_param_spec_boolean ("is-authenticated", "is-authenticated", "TRUE if the selected user is authenticated", FALSE, G_PARAM_READABLE)); /** * LightDMGreeter::show-prompt: * @greeter: A #LightDMGreeter * @text: Prompt text * @type: Prompt type * * The ::show-prompt signal gets emitted when the greeter should show a * prompt to the user. The given text should be displayed and an input * field for the user to provide a response. * * Call lightdm_greeter_respond() with the resultant input or * lightdm_greeter_cancel_authentication() to abort the authentication. **/ signals[SHOW_PROMPT] = g_signal_new (LIGHTDM_GREETER_SIGNAL_SHOW_PROMPT, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LightDMGreeterClass, show_prompt), NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_STRING, lightdm_prompt_type_get_type ()); /** * LightDMGreeter::show-message: * @greeter: A #LightDMGreeter * @text: Message text * @type: Message type * * The ::show-message signal gets emitted when the greeter * should show a message to the user. **/ signals[SHOW_MESSAGE] = g_signal_new (LIGHTDM_GREETER_SIGNAL_SHOW_MESSAGE, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LightDMGreeterClass, show_message), NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_STRING, lightdm_message_type_get_type ()); /** * LightDMGreeter::authentication-complete: * @greeter: A #LightDMGreeter * * The ::authentication-complete signal gets emitted when the greeter * has completed authentication. * * Call lightdm_greeter_get_is_authenticated() to check if the authentication * was successful. **/ signals[AUTHENTICATION_COMPLETE] = g_signal_new (LIGHTDM_GREETER_SIGNAL_AUTHENTICATION_COMPLETE, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LightDMGreeterClass, authentication_complete), NULL, NULL, NULL, G_TYPE_NONE, 0); /** * LightDMGreeter::autologin-timer-expired: * @greeter: A #LightDMGreeter * * The ::timed-login signal gets emitted when the automatic login timer has expired. * The application should then call lightdm_greeter_login(). **/ signals[AUTOLOGIN_TIMER_EXPIRED] = g_signal_new (LIGHTDM_GREETER_SIGNAL_AUTOLOGIN_TIMER_EXPIRED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LightDMGreeterClass, autologin_timer_expired), NULL, NULL, NULL, G_TYPE_NONE, 0); /** * LightDMGreeter::idle: * @greeter: A #LightDMGreeter * * The ::idle signal gets emitted when the user has logged in and the * greeter is no longer needed. * * This signal only matters if the greeter has marked itself as * resettable using lightdm_greeter_set_resettable(). **/ signals[IDLE] = g_signal_new (LIGHTDM_GREETER_SIGNAL_IDLE, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LightDMGreeterClass, idle), NULL, NULL, NULL, G_TYPE_NONE, 0); /** * LightDMGreeter::reset: * @greeter: A #LightDMGreeter * * The ::reset signal gets emitted when the user is returning to a greeter * that was previously marked idle. * * This signal only matters if the greeter has marked itself as * resettable using lightdm_greeter_set_resettable(). **/ signals[RESET] = g_signal_new (LIGHTDM_GREETER_SIGNAL_RESET, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LightDMGreeterClass, reset), NULL, NULL, NULL, G_TYPE_NONE, 0); } static void request_init (Request *request) { } static void request_finalize (GObject *object) { Request *request = REQUEST (object); g_free (request->dir); g_clear_object (&request->cancellable); G_OBJECT_CLASS (request_parent_class)->finalize (object); } static void request_class_init (RequestClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = request_finalize; } static gpointer request_get_user_data (GAsyncResult *result) { return REQUEST (result)->user_data; } static GObject * request_get_source_object (GAsyncResult *res) { return NULL; } static void request_iface_init (GAsyncResultIface *iface) { iface->get_user_data = request_get_user_data; iface->get_source_object = request_get_source_object; } lightdm-1.18.1/liblightdm-gobject/LightDM-1.metadata0000664000000000000000000000072312700600465017006 0ustar Greeter .authenticate.username default=null .connect_sync replacement="LightDM.Greeter.connect_to_daemon_sync" .start_session.session default=null .start_session.cancellable default=null .start_session_sync.session default=null .authentication_user nullable=true .autologin_user_hint nullable=true .select_user_hint nullable=true User .get_uid type="Posix.uid_t" .uid type="Posix.uid_t" lightdm-1.18.1/liblightdm-gobject/session.c0000664000000000000000000002620012700600465015503 0ustar /* * Copyright (C) 2010 Robert Ancell. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #include #include #include "configuration.h" #include "lightdm/session.h" enum { PROP_0, PROP_KEY, PROP_NAME, PROP_COMMENT }; typedef struct { gchar *key; gchar *type; gchar *name; gchar *comment; } LightDMSessionPrivate; G_DEFINE_TYPE (LightDMSession, lightdm_session, G_TYPE_OBJECT); #define GET_PRIVATE(obj) G_TYPE_INSTANCE_GET_PRIVATE ((obj), LIGHTDM_TYPE_SESSION, LightDMSessionPrivate) static gboolean have_sessions = FALSE; static GList *local_sessions = NULL; static GList *remote_sessions = NULL; static gint compare_session (gconstpointer a, gconstpointer b) { LightDMSessionPrivate *priv_a = GET_PRIVATE (a); LightDMSessionPrivate *priv_b = GET_PRIVATE (b); return strcmp (priv_a->name, priv_b->name); } static LightDMSession * load_session (GKeyFile *key_file, const gchar *key, const gchar *default_type) { gchar *domain, *name, *type; LightDMSession *session; LightDMSessionPrivate *priv; gchar *try_exec; if (g_key_file_get_boolean (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY, NULL) || g_key_file_get_boolean (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_HIDDEN, NULL)) return NULL; #ifdef G_KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN domain = g_key_file_get_string (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN, NULL); #else domain = g_key_file_get_string (key_file, G_KEY_FILE_DESKTOP_GROUP, "X-GNOME-Gettext-Domain", NULL); #endif name = g_key_file_get_locale_string (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_NAME, domain, NULL); if (!name) { g_warning ("Ignoring session without name"); g_free (domain); return NULL; } try_exec = g_key_file_get_locale_string (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_TRY_EXEC, domain, NULL); if (try_exec) { gchar *full_path; full_path = g_find_program_in_path (try_exec); g_free (try_exec); if (!full_path) { g_free (name); g_free (domain); return NULL; } g_free (full_path); } type = g_key_file_get_string (key_file, G_KEY_FILE_DESKTOP_GROUP, "X-LightDM-Session-Type", NULL); if (!type) type = strdup (default_type); session = g_object_new (LIGHTDM_TYPE_SESSION, NULL); priv = GET_PRIVATE (session); g_free (priv->key); priv->key = g_strdup (key); g_free (priv->type); priv->type = type; g_free (priv->name); priv->name = name; g_free (priv->comment); priv->comment = g_key_file_get_locale_string (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_COMMENT, domain, NULL); if (!priv->comment) priv->comment = g_strdup (""); g_free (domain); return session; } static GList * load_sessions_dir (GList *sessions, const gchar *sessions_dir, const gchar *default_type) { GDir *directory; GError *error = NULL; directory = g_dir_open (sessions_dir, 0, &error); if (error && !g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT)) g_warning ("Failed to open sessions directory: %s", error->message); g_clear_error (&error); if (!directory) return sessions; while (TRUE) { const gchar *filename; gchar *path; GKeyFile *key_file; gboolean result; filename = g_dir_read_name (directory); if (filename == NULL) break; if (!g_str_has_suffix (filename, ".desktop")) continue; path = g_build_filename (sessions_dir, filename, NULL); key_file = g_key_file_new (); result = g_key_file_load_from_file (key_file, path, G_KEY_FILE_NONE, &error); if (error) g_warning ("Failed to load session file %s: %s:", path, error->message); g_clear_error (&error); if (result) { gchar *key; LightDMSession *session; key = g_strndup (filename, strlen (filename) - strlen (".desktop")); session = load_session (key_file, key, default_type); if (session) { g_debug ("Loaded session %s (%s, %s)", path, GET_PRIVATE (session)->name, GET_PRIVATE (session)->comment); sessions = g_list_insert_sorted (sessions, session, compare_session); } else g_debug ("Ignoring session %s", path); g_free (key); } g_free (path); g_key_file_free (key_file); } g_dir_close (directory); return sessions; } static GList * load_sessions (const gchar *sessions_dir) { GList *sessions = NULL; gchar **dirs; int i; dirs = g_strsplit (sessions_dir, ":", -1); for (i = 0; dirs[i]; i++) { const gchar *default_type = "x"; if (strcmp (dirs[i], WAYLAND_SESSIONS_DIR) == 0) default_type = "wayland"; sessions = load_sessions_dir (sessions, dirs[i], default_type); } g_strfreev (dirs); return sessions; } static void update_sessions (void) { gchar *sessions_dir; gchar *remote_sessions_dir; gchar *value; if (have_sessions) return; sessions_dir = g_strdup (SESSIONS_DIR); remote_sessions_dir = g_strdup (REMOTE_SESSIONS_DIR); /* Use session directory from configuration */ config_load_from_standard_locations (config_get_instance (), NULL, NULL); value = config_get_string (config_get_instance (), "LightDM", "sessions-directory"); if (value) { g_free (sessions_dir); sessions_dir = value; } value = config_get_string (config_get_instance (), "LightDM", "remote-sessions-directory"); if (value) { g_free (remote_sessions_dir); remote_sessions_dir = value; } local_sessions = load_sessions (sessions_dir); remote_sessions = load_sessions (remote_sessions_dir); g_free (sessions_dir); g_free (remote_sessions_dir); have_sessions = TRUE; } /** * lightdm_get_sessions: * * Get the available sessions. * * Return value: (element-type LightDMSession) (transfer none): A list of #LightDMSession **/ GList * lightdm_get_sessions (void) { update_sessions (); return local_sessions; } /** * lightdm_get_remote_sessions: * * Get the available remote sessions. * * Return value: (element-type LightDMSession) (transfer none): A list of #LightDMSession **/ GList * lightdm_get_remote_sessions (void) { update_sessions (); return remote_sessions; } /** * lightdm_session_get_key: * @session: A #LightDMSession * * Get the key for a session * * Return value: The session key **/ const gchar * lightdm_session_get_key (LightDMSession *session) { g_return_val_if_fail (LIGHTDM_IS_SESSION (session), NULL); return GET_PRIVATE (session)->key; } /** * lightdm_session_get_session_type: * @session: A #LightDMSession * * Get the type a session * * Return value: The session type, e.g. x or mir **/ const gchar * lightdm_session_get_session_type (LightDMSession *session) { g_return_val_if_fail (LIGHTDM_IS_SESSION (session), NULL); return GET_PRIVATE (session)->type; } /** * lightdm_session_get_name: * @session: A #LightDMSession * * Get the name for a session * * Return value: The session name **/ const gchar * lightdm_session_get_name (LightDMSession *session) { g_return_val_if_fail (LIGHTDM_IS_SESSION (session), NULL); return GET_PRIVATE (session)->name; } /** * lightdm_session_get_comment: * @session: A #LightDMSession * * Get the comment for a session * * Return value: The session comment **/ const gchar * lightdm_session_get_comment (LightDMSession *session) { g_return_val_if_fail (LIGHTDM_IS_SESSION (session), NULL); return GET_PRIVATE (session)->comment; } static void lightdm_session_init (LightDMSession *session) { } static void lightdm_session_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); } static void lightdm_session_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { LightDMSession *self; self = LIGHTDM_SESSION (object); switch (prop_id) { case PROP_KEY: g_value_set_string (value, lightdm_session_get_key (self)); break; case PROP_NAME: g_value_set_string (value, lightdm_session_get_name (self)); break; case PROP_COMMENT: g_value_set_string (value, lightdm_session_get_comment (self)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void lightdm_session_finalize (GObject *object) { LightDMSession *self = LIGHTDM_SESSION (object); LightDMSessionPrivate *priv = GET_PRIVATE (self); g_free (priv->key); g_free (priv->type); g_free (priv->name); g_free (priv->comment); } static void lightdm_session_class_init (LightDMSessionClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (LightDMSessionPrivate)); object_class->set_property = lightdm_session_set_property; object_class->get_property = lightdm_session_get_property; object_class->finalize = lightdm_session_finalize; g_object_class_install_property (object_class, PROP_KEY, g_param_spec_string ("key", "key", "Session key", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", "name", "Session name", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_COMMENT, g_param_spec_string ("comment", "comment", "Session comment", NULL, G_PARAM_READABLE)); } lightdm-1.18.1/liblightdm-gobject/LightDM-1-custom.vala0000664000000000000000000000025512700600465017461 0ustar namespace LightDM { [CCode (type_id = "lightdm_user_list_get_type ()")] public class UserList : GLib.Object { public unowned GLib.List users { get; } } } lightdm-1.18.1/liblightdm-gobject/language.c0000664000000000000000000002602012700600465015603 0ustar /* * Copyright (C) 2010 Robert Ancell. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #include #include #include #include #include #include "lightdm/language.h" enum { PROP_0, PROP_CODE, PROP_NAME, PROP_TERRITORY }; typedef struct { gchar *code; gchar *name; gchar *territory; } LightDMLanguagePrivate; G_DEFINE_TYPE (LightDMLanguage, lightdm_language, G_TYPE_OBJECT); #define GET_PRIVATE(obj) G_TYPE_INSTANCE_GET_PRIVATE ((obj), LIGHTDM_TYPE_LANGUAGE, LightDMLanguagePrivate) static gboolean have_languages = FALSE; static GList *languages = NULL; static void update_languages (void) { gchar *command = "locale -a"; gchar *stdout_text = NULL, *stderr_text = NULL; gint exit_status; gboolean result; GError *error = NULL; if (have_languages) return; result = g_spawn_command_line_sync (command, &stdout_text, &stderr_text, &exit_status, &error); if (error) { g_warning ("Failed to run '%s': %s", command, error->message); g_clear_error (&error); } else if (exit_status != 0) g_warning ("Failed to get languages, '%s' returned %d", command, exit_status); else if (result) { gchar **tokens; int i; tokens = g_strsplit_set (stdout_text, "\n\r", -1); for (i = 0; tokens[i]; i++) { LightDMLanguage *language; gchar *code; code = g_strchug (tokens[i]); if (code[0] == '\0') continue; /* Ignore the non-interesting languages */ if (strcmp (command, "locale -a") == 0 && !g_strrstr (code, ".utf8")) continue; language = g_object_new (LIGHTDM_TYPE_LANGUAGE, "code", code, NULL); languages = g_list_append (languages, language); } g_strfreev (tokens); } g_free (stdout_text); g_free (stderr_text); have_languages = TRUE; } static gboolean is_utf8 (const gchar *code) { return g_strrstr (code, ".utf8") || g_strrstr (code, ".UTF-8"); } /* Get a valid locale name that can be passed to setlocale(), so we always can use nl_langinfo() to get language and country names. */ static gchar * get_locale_name (const gchar *code) { gchar *locale = NULL, *language; char *at; static gchar **avail_locales; gint i; if (is_utf8 (code)) return (gchar *) code; if ((at = strchr (code, '@'))) language = g_strndup (code, at - code); else language = g_strdup (code); if (!avail_locales) { gchar *locales; GError *error = NULL; if (g_spawn_command_line_sync ("locale -a", &locales, NULL, NULL, &error)) { avail_locales = g_strsplit (g_strchomp (locales), "\n", -1); g_free (locales); } else { g_warning ("Failed to run 'locale -a': %s", error->message); g_clear_error (&error); } } if (avail_locales) { for (i = 0; avail_locales[i]; i++) { gchar *loc = avail_locales[i]; if (!g_strrstr (loc, ".utf8")) continue; if (g_str_has_prefix (loc, language)) { locale = g_strdup (loc); break; } } } g_free (language); return locale; } /** * lightdm_get_language: * * Get the current language. * * Return value: (transfer none): The current language or #NULL if no language. **/ LightDMLanguage * lightdm_get_language (void) { const gchar *lang; GList *link; lang = g_getenv ("LANG"); if (!lang) return NULL; for (link = lightdm_get_languages (); link; link = link->next) { LightDMLanguage *language = link->data; if (lightdm_language_matches (language, lang)) return language; } return NULL; } /** * lightdm_get_languages: * * Get a list of languages to present to the user. * * Return value: (element-type LightDMLanguage) (transfer none): A list of #LightDMLanguage that should be presented to the user. **/ GList * lightdm_get_languages (void) { update_languages (); return languages; } /** * lightdm_language_get_code: * @language: A #LightDMLanguage * * Get the code of a language (e.g. "de_DE.UTF-8") * * Return value: The code of the language **/ const gchar * lightdm_language_get_code (LightDMLanguage *language) { g_return_val_if_fail (LIGHTDM_IS_LANGUAGE (language), NULL); return GET_PRIVATE (language)->code; } /** * lightdm_language_get_name: * @language: A #LightDMLanguage * * Get the name of a language. * * Return value: The name of the language **/ const gchar * lightdm_language_get_name (LightDMLanguage *language) { LightDMLanguagePrivate *priv; g_return_val_if_fail (LIGHTDM_IS_LANGUAGE (language), NULL); priv = GET_PRIVATE (language); if (!priv->name) { gchar *locale = get_locale_name (priv->code); if (locale) { gchar *current = setlocale (LC_ALL, NULL); setlocale (LC_IDENTIFICATION, locale); setlocale (LC_MESSAGES, ""); gchar *language_en = nl_langinfo (_NL_IDENTIFICATION_LANGUAGE); if (language_en && strlen (language_en) > 0) priv->name = g_strdup (dgettext ("iso_639_3", language_en)); setlocale (LC_ALL, current); } if (!priv->name) { gchar **tokens = g_strsplit_set (priv->code, "_.@", 2); priv->name = g_strdup (tokens[0]); g_strfreev (tokens); } } return priv->name; } /** * lightdm_language_get_territory: * @language: A #LightDMLanguage * * Get the territory the language is used in. * * Return value: The territory the language is used in. **/ const gchar * lightdm_language_get_territory (LightDMLanguage *language) { LightDMLanguagePrivate *priv; g_return_val_if_fail (LIGHTDM_IS_LANGUAGE (language), NULL); priv = GET_PRIVATE (language); if (!priv->territory && strchr (priv->code, '_')) { gchar *locale = get_locale_name (priv->code); if (locale) { gchar *current = setlocale (LC_ALL, NULL); setlocale (LC_IDENTIFICATION, locale); setlocale (LC_MESSAGES, ""); gchar *country_en = nl_langinfo (_NL_IDENTIFICATION_TERRITORY); if (country_en && strlen (country_en) > 0 && g_strcmp0 (country_en, "ISO") != 0) priv->territory = g_strdup (dgettext ("iso_3166", country_en)); setlocale (LC_ALL, current); } if (!priv->territory) { gchar **tokens = g_strsplit_set (priv->code, "_.@", 3); priv->territory = g_strdup (tokens[1]); g_strfreev (tokens); } } return priv->territory; } /** * lightdm_language_matches: * @language: A #LightDMLanguage * @code: A language code * * Check if a language code matches this language. * * Return value: #TRUE if the code matches this language. **/ gboolean lightdm_language_matches (LightDMLanguage *language, const gchar *code) { LightDMLanguagePrivate *priv; g_return_val_if_fail (LIGHTDM_IS_LANGUAGE (language), FALSE); g_return_val_if_fail (code != NULL, FALSE); priv = GET_PRIVATE (language); /* Handle the fact the UTF-8 is specified both as '.utf8' and '.UTF-8' */ if (is_utf8 (priv->code) && is_utf8 (code)) { /* Match the characters before the '.' */ int i; for (i = 0; priv->code[i] && code[i] && priv->code[i] == code[i] && code[i] != '.' ; i++); return priv->code[i] == '.' && code[i] == '.'; } return g_str_equal (priv->code, code); } static void lightdm_language_init (LightDMLanguage *language) { } static void lightdm_language_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { LightDMLanguage *self = LIGHTDM_LANGUAGE (object); LightDMLanguagePrivate *priv = GET_PRIVATE (self); switch (prop_id) { case PROP_CODE: g_free (priv->name); priv->code = g_strdup (g_value_get_string (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void lightdm_language_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { LightDMLanguage *self; self = LIGHTDM_LANGUAGE (object); switch (prop_id) { case PROP_CODE: g_value_set_string (value, lightdm_language_get_code (self)); break; case PROP_NAME: g_value_set_string (value, lightdm_language_get_name (self)); break; case PROP_TERRITORY: g_value_set_string (value, lightdm_language_get_territory (self)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void lightdm_language_class_init (LightDMLanguageClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (LightDMLanguagePrivate)); object_class->set_property = lightdm_language_set_property; object_class->get_property = lightdm_language_get_property; g_object_class_install_property (object_class, PROP_CODE, g_param_spec_string ("code", "code", "Language code", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", "name", "Name of the language", NULL, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_TERRITORY, g_param_spec_string ("territory", "territory", "Territory the language is from", NULL, G_PARAM_READABLE)); } lightdm-1.18.1/liblightdm-gobject/liblightdm-gobject-1.deps0000664000000000000000000000001612700600465020416 0ustar posix gio-2.0 lightdm-1.18.1/liblightdm-gobject/lightdm.h0000664000000000000000000000124212700600465015454 0ustar /* * Copyright (C) 2010-2013 Canonical Ltd. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #ifndef LIGHTDM_H_ #define LIGHTDM_H_ #include "lightdm/greeter.h" #include "lightdm/language.h" #include "lightdm/layout.h" #include "lightdm/power.h" #include "lightdm/session.h" #include "lightdm/system.h" #include "lightdm/user.h" #endif /* LIGHTDM_H_ */ lightdm-1.18.1/liblightdm-gobject/system.c0000664000000000000000000000142612700600465015347 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #include #include "lightdm/system.h" static gchar *hostname = NULL; /** * lightdm_get_hostname: * * Return value: The name of the host we are running on. **/ const gchar * lightdm_get_hostname (void) { if (!hostname) { struct utsname info; uname (&info); hostname = g_strdup (info.nodename); } return hostname; } lightdm-1.18.1/liblightdm-gobject/power.c0000664000000000000000000002236212700600465015161 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #include #include #include #include "lightdm/power.h" static GDBusProxy *upower_proxy = NULL; static GDBusProxy *ck_proxy = NULL; static GDBusProxy *login1_proxy = NULL; static GVariant * upower_call_function (const gchar *function, GError **error) { if (!upower_proxy) { upower_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE, NULL, "org.freedesktop.UPower", "/org/freedesktop/UPower", "org.freedesktop.UPower", NULL, error); if (!upower_proxy) return NULL; } return g_dbus_proxy_call_sync (upower_proxy, function, NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, error); } static GVariant * login1_call_function (const gchar *function, GVariant *parameters, GError **error) { GVariant *r; if (!login1_proxy) { login1_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE, NULL, "org.freedesktop.login1", "/org/freedesktop/login1", "org.freedesktop.login1.Manager", NULL, error); if (!login1_proxy) return NULL; } r = g_dbus_proxy_call_sync (login1_proxy, function, parameters, G_DBUS_CALL_FLAGS_NONE, -1, NULL, error); return r; } /** * lightdm_get_can_suspend: * * Checks if authorized to do a system suspend. * * Return value: #TRUE if can suspend the system **/ gboolean lightdm_get_can_suspend (void) { gboolean can_suspend = FALSE; GVariant *r; r = login1_call_function ("CanSuspend", NULL, NULL); if (r) { gchar *result; if (g_variant_is_of_type (r, G_VARIANT_TYPE ("(s)"))) { g_variant_get (r, "(&s)", &result); can_suspend = g_strcmp0 (result, "yes") == 0; } } else { r = upower_call_function ("SuspendAllowed", NULL); if (r && g_variant_is_of_type (r, G_VARIANT_TYPE ("(b)"))) g_variant_get (r, "(b)", &can_suspend); } if (r) g_variant_unref (r); return can_suspend; } /** * lightdm_suspend: * @error: return location for a #GError, or %NULL * * Triggers a system suspend. * * Return value: #TRUE if suspend initiated. **/ gboolean lightdm_suspend (GError **error) { GVariant *result; gboolean suspended; result = login1_call_function ("Suspend", g_variant_new("(b)", FALSE), error); if (!result) { if (error) g_debug ("Can't suspend using logind; falling back to UPower: %s", (*error)->message); g_clear_error (error); result = upower_call_function ("Suspend", error); } suspended = result != NULL; if (result) g_variant_unref (result); return suspended; } /** * lightdm_get_can_hibernate: * * Checks if is authorized to do a system hibernate. * * Return value: #TRUE if can hibernate the system **/ gboolean lightdm_get_can_hibernate (void) { gboolean can_hibernate = FALSE; GVariant *r; r = login1_call_function ("CanHibernate", NULL, NULL); if (r) { gchar *result; if (g_variant_is_of_type (r, G_VARIANT_TYPE ("(s)"))) { g_variant_get (r, "(&s)", &result); can_hibernate = g_strcmp0 (result, "yes") == 0; } } else { r = upower_call_function ("HibernateAllowed", NULL); if (r && g_variant_is_of_type (r, G_VARIANT_TYPE ("(b)"))) g_variant_get (r, "(b)", &can_hibernate); } if (r) g_variant_unref (r); return can_hibernate; } /** * lightdm_hibernate: * @error: return location for a #GError, or %NULL * * Triggers a system hibernate. * * Return value: #TRUE if hibernate initiated. **/ gboolean lightdm_hibernate (GError **error) { GVariant *result; gboolean hibernated; result = login1_call_function ("Hibernate", g_variant_new("(b)", FALSE), error); if (!result) { if (error) g_debug ("Can't hibernate using logind; falling back to UPower: %s", (*error)->message); g_clear_error (error); result = upower_call_function ("Hibernate", error); } hibernated = result != NULL; if (result) g_variant_unref (result); return hibernated; } static GVariant * ck_call_function (const gchar *function, GError **error) { GVariant *r; if (!ck_proxy) { ck_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM, G_DBUS_PROXY_FLAGS_NONE, NULL, "org.freedesktop.ConsoleKit", "/org/freedesktop/ConsoleKit/Manager", "org.freedesktop.ConsoleKit.Manager", NULL, error); if (!ck_proxy) return FALSE; } r = g_dbus_proxy_call_sync (ck_proxy, function, NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, error); return r; } /** * lightdm_get_can_restart: * * Checks if is authorized to do a system restart. * * Return value: #TRUE if can restart the system **/ gboolean lightdm_get_can_restart (void) { gboolean can_restart = FALSE; GVariant *r; r = login1_call_function ("CanReboot", NULL, NULL); if (r) { gchar *result; if (g_variant_is_of_type (r, G_VARIANT_TYPE ("(s)"))) { g_variant_get (r, "(&s)", &result); can_restart = g_strcmp0 (result, "yes") == 0; } } else { r = ck_call_function ("CanRestart", NULL); if (r && g_variant_is_of_type (r, G_VARIANT_TYPE ("(b)"))) g_variant_get (r, "(b)", &can_restart); } if (r) g_variant_unref (r); return can_restart; } /** * lightdm_restart: * @error: return location for a #GError, or %NULL * * Triggers a system restart. * * Return value: #TRUE if restart initiated. **/ gboolean lightdm_restart (GError **error) { GVariant *r; gboolean restarted; r = login1_call_function ("Reboot", g_variant_new("(b)", FALSE), error); if (!r) { g_clear_error (error); r = ck_call_function ("Restart", error); } restarted = r != NULL; if (r) g_variant_unref (r); return restarted; } /** * lightdm_get_can_shutdown: * * Checks if is authorized to do a system shutdown. * * Return value: #TRUE if can shutdown the system **/ gboolean lightdm_get_can_shutdown (void) { gboolean can_shutdown = FALSE; GVariant *r; r = login1_call_function ("CanPowerOff", NULL, NULL); if (r) { gchar *result; if (g_variant_is_of_type (r, G_VARIANT_TYPE ("(s)"))) { g_variant_get (r, "(&s)", &result); can_shutdown = g_strcmp0 (result, "yes") == 0; } } else { r = ck_call_function ("CanStop", NULL); if (r && g_variant_is_of_type (r, G_VARIANT_TYPE ("(b)"))) g_variant_get (r, "(b)", &can_shutdown); } if (r) g_variant_unref (r); return can_shutdown; } /** * lightdm_shutdown: * @error: return location for a #GError, or %NULL * * Triggers a system shutdown. * * Return value: #TRUE if shutdown initiated. **/ gboolean lightdm_shutdown (GError **error) { GVariant *r; gboolean shutdown; r = login1_call_function ("PowerOff", g_variant_new("(b)", FALSE), error); if (!r) { g_clear_error (error); r = ck_call_function ("Stop", error); } shutdown = r != NULL; if (r) g_variant_unref (r); return shutdown; } lightdm-1.18.1/liblightdm-gobject/layout.c0000664000000000000000000002332112700600465015336 0ustar /* -*- Mode: C; indent-tabs-mode:nil; tab-width:4 -*- * * Copyright (C) 2010 Robert Ancell. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #include #include "lightdm/layout.h" enum { PROP_0, PROP_NAME, PROP_SHORT_DESCRIPTION, PROP_DESCRIPTION }; typedef struct { gchar *name; gchar *short_description; gchar *description; } LightDMLayoutPrivate; G_DEFINE_TYPE (LightDMLayout, lightdm_layout, G_TYPE_OBJECT); #define GET_PRIVATE(obj) G_TYPE_INSTANCE_GET_PRIVATE ((obj), LIGHTDM_TYPE_LAYOUT, LightDMLayoutPrivate) static gboolean have_layouts = FALSE; static Display *display = NULL; static XklEngine *xkl_engine = NULL; static XklConfigRec *xkl_config = NULL; static GList *layouts = NULL; static LightDMLayout *default_layout = NULL; static gchar * make_layout_string (const gchar *layout, const gchar *variant) { if (!layout || layout[0] == 0) return NULL; else if (!variant || variant[0] == 0) return g_strdup (layout); else return g_strdup_printf ("%s\t%s", layout, variant); } static void parse_layout_string (const gchar *name, gchar **layout, gchar **variant) { gchar **split; *layout = NULL; *variant = NULL; if (!name) return; split = g_strsplit (name, "\t", 2); if (split[0]) { *layout = g_strdup (split[0]); if (split[1]) *variant = g_strdup (split[1]); } g_strfreev (split); } static void variant_cb (XklConfigRegistry *config, const XklConfigItem *item, gpointer data) { LightDMLayout *layout; gchar *full_name; full_name = make_layout_string (data, item->name); layout = g_object_new (LIGHTDM_TYPE_LAYOUT, "name", full_name, "short-description", item->short_description, "description", item->description, NULL); layouts = g_list_append (layouts, layout); g_free (full_name); } static void layout_cb (XklConfigRegistry *config, const XklConfigItem *item, gpointer data) { LightDMLayout *layout; layout = g_object_new (LIGHTDM_TYPE_LAYOUT, "name", item->name, "short-description", item->short_description, "description", item->description, NULL); layouts = g_list_append (layouts, layout); xkl_config_registry_foreach_layout_variant (config, item->name, variant_cb, (gpointer) item->name); } /** * lightdm_get_layouts: * * Get a list of keyboard layouts to present to the user. * * Return value: (element-type LightDMLayout) (transfer none): A list of #LightDMLayout that should be presented to the user. **/ GList * lightdm_get_layouts (void) { XklConfigRegistry *registry; if (have_layouts) return layouts; display = XOpenDisplay (NULL); if (display == NULL) return NULL; xkl_engine = xkl_engine_get_instance (display); xkl_config = xkl_config_rec_new (); if (!xkl_config_rec_get_from_server (xkl_config, xkl_engine)) g_warning ("Failed to get Xkl configuration from server"); registry = xkl_config_registry_get_instance (xkl_engine); xkl_config_registry_load (registry, FALSE); xkl_config_registry_foreach_layout (registry, layout_cb, NULL); g_object_unref (registry); have_layouts = TRUE; return layouts; } /** * lightdm_set_layout: * @layout: The layout to use * * Set the layout for this session. **/ void lightdm_set_layout (LightDMLayout *dmlayout) { XklConfigRec *config; gchar *layout, *variant; g_return_if_fail (dmlayout != NULL); g_debug ("Setting keyboard layout to '%s'", lightdm_layout_get_name (dmlayout)); parse_layout_string (lightdm_layout_get_name (dmlayout), &layout, &variant); config = xkl_config_rec_new (); config->layouts = g_malloc (sizeof (gchar *) * 2); config->variants = g_malloc (sizeof (gchar *) * 2); config->model = g_strdup (xkl_config->model); config->layouts[0] = layout; config->layouts[1] = NULL; config->variants[0] = variant; config->variants[1] = NULL; if (!xkl_config_rec_activate (config, xkl_engine)) g_warning ("Failed to activate XKL config"); g_object_unref (config); } /** * lightdm_get_layout: * * Get the current keyboard layout. * * Return value: (transfer none): The currently active layout for this user. **/ LightDMLayout * lightdm_get_layout (void) { lightdm_get_layouts (); if (layouts && xkl_config && !default_layout) { gchar *full_name; GList *item; full_name = make_layout_string (xkl_config->layouts ? xkl_config->layouts[0] : NULL, xkl_config->variants ? xkl_config->variants[0] : NULL); for (item = layouts; item; item = item->next) { LightDMLayout *iter_layout = (LightDMLayout *) item->data; if (g_strcmp0 (lightdm_layout_get_name (iter_layout), full_name) == 0) { default_layout = iter_layout; break; } } g_free (full_name); } return default_layout; } /** * lightdm_layout_get_name: * @layout: A #LightDMLayout * * Get the name of a layout. * * Return value: The name of the layout **/ const gchar * lightdm_layout_get_name (LightDMLayout *layout) { g_return_val_if_fail (LIGHTDM_IS_LAYOUT (layout), NULL); return GET_PRIVATE (layout)->name; } /** * lightdm_layout_get_short_description: * @layout: A #LightDMLayout * * Get the short description of a layout. * * Return value: A short description of the layout **/ const gchar * lightdm_layout_get_short_description (LightDMLayout *layout) { g_return_val_if_fail (LIGHTDM_IS_LAYOUT (layout), NULL); return GET_PRIVATE (layout)->short_description; } /** * lightdm_layout_get_description: * @layout: A #LightDMLayout * * Get the long description of a layout. * * Return value: A long description of the layout **/ const gchar * lightdm_layout_get_description (LightDMLayout *layout) { g_return_val_if_fail (LIGHTDM_IS_LAYOUT (layout), NULL); return GET_PRIVATE (layout)->description; } static void lightdm_layout_init (LightDMLayout *layout) { } static void lightdm_layout_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { LightDMLayout *self = LIGHTDM_LAYOUT (object); LightDMLayoutPrivate *priv = GET_PRIVATE (self); switch (prop_id) { case PROP_NAME: g_free (priv->name); priv->name = g_strdup (g_value_get_string (value)); break; case PROP_SHORT_DESCRIPTION: g_free (priv->short_description); priv->short_description = g_strdup (g_value_get_string (value)); break; case PROP_DESCRIPTION: g_free (priv->description); priv->description = g_strdup (g_value_get_string (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void lightdm_layout_get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec) { LightDMLayout *self; self = LIGHTDM_LAYOUT (object); switch (prop_id) { case PROP_NAME: g_value_set_string (value, lightdm_layout_get_name (self)); break; case PROP_SHORT_DESCRIPTION: g_value_set_string (value, lightdm_layout_get_short_description (self)); break; case PROP_DESCRIPTION: g_value_set_string (value, lightdm_layout_get_description (self)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; } } static void lightdm_layout_class_init (LightDMLayoutClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); g_type_class_add_private (klass, sizeof (LightDMLayoutPrivate)); object_class->set_property = lightdm_layout_set_property; object_class->get_property = lightdm_layout_get_property; g_object_class_install_property (object_class, PROP_NAME, g_param_spec_string ("name", "name", "Name of the layout", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_SHORT_DESCRIPTION, g_param_spec_string ("short-description", "short-description", "Short description of the layout", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); g_object_class_install_property (object_class, PROP_DESCRIPTION, g_param_spec_string ("description", "description", "Long description of the layout", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); } lightdm-1.18.1/liblightdm-gobject/lightdm/0000775000000000000000000000000012700603563015306 5ustar lightdm-1.18.1/liblightdm-gobject/lightdm/greeter.h0000664000000000000000000001443612700600465017122 0ustar /* * Copyright (C) 2010 Robert Ancell. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #ifndef LIGHTDM_GREETER_H_ #define LIGHTDM_GREETER_H_ #include #include G_BEGIN_DECLS #define LIGHTDM_TYPE_GREETER (lightdm_greeter_get_type()) #define LIGHTDM_GREETER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIGHTDM_TYPE_GREETER, LightDMGreeter)) #define LIGHTDM_GREETER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIGHTDM_TYPE_GREETER, LightDMGreeterClass)) #define LIGHTDM_IS_GREETER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIGHTDM_TYPE_GREETER)) #define LIGHTDM_IS_GREETER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIGHTDM_TYPE_GREETER)) #define LIGHTDM_GREETER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIGHTDM_TYPE_GREETER, LightDMGreeterClass)) #define LIGHTDM_GREETER_SIGNAL_SHOW_PROMPT "show-prompt" #define LIGHTDM_GREETER_SIGNAL_SHOW_MESSAGE "show-message" #define LIGHTDM_GREETER_SIGNAL_AUTHENTICATION_COMPLETE "authentication-complete" #define LIGHTDM_GREETER_SIGNAL_AUTOLOGIN_TIMER_EXPIRED "autologin-timer-expired" #define LIGHTDM_GREETER_SIGNAL_IDLE "idle" #define LIGHTDM_GREETER_SIGNAL_RESET "reset" /** * LightDMPromptType: * @LIGHTDM_PROMPT_TYPE_QUESTION: Prompt is a question. The information can be shown as it is entered. * @LIGHTDM_PROMPT_TYPE_SECRET: Prompt is for secret information. The entered information should be obscured so it can't be publically visible. */ typedef enum { LIGHTDM_PROMPT_TYPE_QUESTION, LIGHTDM_PROMPT_TYPE_SECRET } LightDMPromptType; GType lightdm_prompt_type_get_type (void); /** * LightDMMessageType: * @LIGHTDM_MESSAGE_TYPE_INFO: Informational message. * @LIGHTDM_MESSAGE_TYPE_ERROR: Error message. */ typedef enum { LIGHTDM_MESSAGE_TYPE_INFO, LIGHTDM_MESSAGE_TYPE_ERROR } LightDMMessageType; GType lightdm_message_type_get_type (void); typedef struct { GObject parent_instance; } LightDMGreeter; typedef struct { GObjectClass parent_class; void (*show_message)(LightDMGreeter *greeter, const gchar *text, LightDMMessageType type); void (*show_prompt)(LightDMGreeter *greeter, const gchar *text, LightDMPromptType type); void (*authentication_complete)(LightDMGreeter *greeter); void (*autologin_timer_expired)(LightDMGreeter *greeter); void (*idle)(LightDMGreeter *greeter); void (*reset)(LightDMGreeter *greeter); /* Reserved */ void (*reserved1) (void); void (*reserved2) (void); void (*reserved3) (void); void (*reserved4) (void); } LightDMGreeterClass; #ifdef GLIB_VERSION_2_44 typedef LightDMGreeter *LightDMGreeter_autoptr; static inline void glib_autoptr_cleanup_LightDMGreeter (LightDMGreeter **_ptr) { glib_autoptr_cleanup_GObject ((GObject **) _ptr); } #endif GType lightdm_greeter_get_type (void); LightDMGreeter *lightdm_greeter_new (void); void lightdm_greeter_set_resettable (LightDMGreeter *greeter, gboolean resettable); void lightdm_greeter_connect_to_daemon (LightDMGreeter *greeter, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); gboolean lightdm_greeter_connect_to_daemon_finish (LightDMGreeter *greeter, GAsyncResult *result, GError **error); gboolean lightdm_greeter_connect_to_daemon_sync (LightDMGreeter *greeter, GError **error); const gchar *lightdm_greeter_get_hint (LightDMGreeter *greeter, const gchar *name); const gchar *lightdm_greeter_get_default_session_hint (LightDMGreeter *greeter); gboolean lightdm_greeter_get_hide_users_hint (LightDMGreeter *greeter); gboolean lightdm_greeter_get_show_manual_login_hint (LightDMGreeter *greeter); gboolean lightdm_greeter_get_show_remote_login_hint (LightDMGreeter *greeter); gboolean lightdm_greeter_get_lock_hint (LightDMGreeter *greeter); gboolean lightdm_greeter_get_has_guest_account_hint (LightDMGreeter *greeter); const gchar *lightdm_greeter_get_select_user_hint (LightDMGreeter *greeter); gboolean lightdm_greeter_get_select_guest_hint (LightDMGreeter *greeter); const gchar *lightdm_greeter_get_autologin_user_hint (LightDMGreeter *greeter); gboolean lightdm_greeter_get_autologin_guest_hint (LightDMGreeter *greeter); gint lightdm_greeter_get_autologin_timeout_hint (LightDMGreeter *greeter); void lightdm_greeter_cancel_autologin (LightDMGreeter *greeter); void lightdm_greeter_authenticate (LightDMGreeter *greeter, const gchar *username); void lightdm_greeter_authenticate_as_guest (LightDMGreeter *greeter); void lightdm_greeter_authenticate_autologin (LightDMGreeter *greeter); void lightdm_greeter_authenticate_remote (LightDMGreeter *greeter, const gchar *session, const gchar *username); void lightdm_greeter_respond (LightDMGreeter *greeter, const gchar *response); void lightdm_greeter_cancel_authentication (LightDMGreeter *greeter); gboolean lightdm_greeter_get_in_authentication (LightDMGreeter *greeter); gboolean lightdm_greeter_get_is_authenticated (LightDMGreeter *greeter); const gchar *lightdm_greeter_get_authentication_user (LightDMGreeter *greeter); void lightdm_greeter_set_language (LightDMGreeter *greeter, const gchar *language); void lightdm_greeter_start_session (LightDMGreeter *greeter, const gchar *session, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); gboolean lightdm_greeter_start_session_finish (LightDMGreeter *greeter, GAsyncResult *result, GError **error); gboolean lightdm_greeter_start_session_sync (LightDMGreeter *greeter, const gchar *session, GError **error); void lightdm_greeter_ensure_shared_data_dir (LightDMGreeter *greeter, const gchar *username, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); gchar *lightdm_greeter_ensure_shared_data_dir_finish (LightDMGreeter *greeter, GAsyncResult *result); gchar *lightdm_greeter_ensure_shared_data_dir_sync (LightDMGreeter *greeter, const gchar *username); #ifndef LIGHTDM_DISABLE_DEPRECATED gboolean lightdm_greeter_connect_sync (LightDMGreeter *greeter, GError **error); #endif G_END_DECLS #endif /* LIGHTDM_GREETER_H_ */ lightdm-1.18.1/liblightdm-gobject/lightdm/system.h0000664000000000000000000000113012700600465016774 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #ifndef LIGHTDM_HOSTNAME_H_ #define LIGHTDM_HOSTNAME_H_ #include G_BEGIN_DECLS const gchar *lightdm_get_hostname (void); G_END_DECLS #endif /* LIGHTDM_HOSTNAME_H_ */ lightdm-1.18.1/liblightdm-gobject/lightdm/language.h0000664000000000000000000000417212700600465017244 0ustar /* * Copyright (C) 2010 Robert Ancell. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #ifndef LIGHTDM_LANGUAGE_H_ #define LIGHTDM_LANGUAGE_H_ #include G_BEGIN_DECLS #define LIGHTDM_TYPE_LANGUAGE (lightdm_language_get_type()) #define LIGHTDM_LANGUAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIGHTDM_TYPE_LANGUAGE, LightDMLanguage)); #define LIGHTDM_LANGUAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIGHTDM_TYPE_LANGUAGE, LightDMLanguageClass)) #define LIGHTDM_IS_LANGUAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIGHTDM_TYPE_LANGUAGE)) #define LIGHTDM_IS_LANGUAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIGHTDM_TYPE_LANGUAGE)) #define LIGHTDM_LANGUAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIGHTDM_TYPE_LANGUAGE, LightDMLanguageClass)) typedef struct { GObject parent_instance; } LightDMLanguage; typedef struct { GObjectClass parent_class; /* Reserved */ void (*reserved1) (void); void (*reserved2) (void); void (*reserved3) (void); void (*reserved4) (void); void (*reserved5) (void); void (*reserved6) (void); } LightDMLanguageClass; #ifdef GLIB_VERSION_2_44 typedef LightDMLanguage *LightDMLanguage_autoptr; static inline void glib_autoptr_cleanup_LightDMLanguage (LightDMLanguage **_ptr) { glib_autoptr_cleanup_GObject ((GObject **) _ptr); } #endif GType lightdm_language_get_type (void); GList *lightdm_get_languages (void); LightDMLanguage *lightdm_get_language (void); const gchar *lightdm_language_get_code (LightDMLanguage *language); const gchar *lightdm_language_get_name (LightDMLanguage *language); const gchar *lightdm_language_get_territory (LightDMLanguage *language); gboolean lightdm_language_matches (LightDMLanguage *language, const gchar *code); G_END_DECLS #endif /* LIGHTDM_LANGUAGE_H_ */ lightdm-1.18.1/liblightdm-gobject/lightdm/layout.h0000664000000000000000000000403612700600465016775 0ustar /* * Copyright (C) 2010 Robert Ancell. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #ifndef LIGHTDM_LAYOUT_H_ #define LIGHTDM_LAYOUT_H_ #include G_BEGIN_DECLS #define LIGHTDM_TYPE_LAYOUT (lightdm_layout_get_type()) #define LIGHTDM_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIGHTDM_TYPE_LAYOUT, LightDMLayout)); #define LIGHTDM_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIGHTDM_TYPE_LAYOUT, LightDMLayoutClass)) #define LIGHTDM_IS_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIGHTDM_TYPE_LAYOUT)) #define LIGHTDM_IS_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIGHTDM_TYPE_LAYOUT)) #define LIGHTDM_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIGHTDM_TYPE_LAYOUT, LightDMLayoutClass)) typedef struct { GObject parent_instance; } LightDMLayout; typedef struct { GObjectClass parent_class; /* Reserved */ void (*reserved1) (void); void (*reserved2) (void); void (*reserved3) (void); void (*reserved4) (void); void (*reserved5) (void); void (*reserved6) (void); } LightDMLayoutClass; #ifdef GLIB_VERSION_2_44 typedef LightDMLayout *LightDMLayout_autoptr; static inline void glib_autoptr_cleanup_LightDMLayout (LightDMLayout **_ptr) { glib_autoptr_cleanup_GObject ((GObject **) _ptr); } #endif GType lightdm_layout_get_type (void); GList *lightdm_get_layouts (void); void lightdm_set_layout (LightDMLayout *layout); LightDMLayout *lightdm_get_layout (void); const gchar *lightdm_layout_get_name (LightDMLayout *layout); const gchar *lightdm_layout_get_short_description (LightDMLayout *layout); const gchar *lightdm_layout_get_description (LightDMLayout *layout); G_END_DECLS #endif /* LIGHTDM_LAYOUT_H_ */ lightdm-1.18.1/liblightdm-gobject/lightdm/user.h0000664000000000000000000001057112700600465016437 0ustar /* * Copyright (C) 2010 Robert Ancell. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #ifndef LIGHTDM_USER_H_ #define LIGHTDM_USER_H_ #include G_BEGIN_DECLS #define LIGHTDM_TYPE_USER_LIST (lightdm_user_list_get_type()) #define LIGHTDM_USER_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIGHTDM_TYPE_USER_LIST, LightDMUserList)); #define LIGHTDM_USER_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIGHTDM_TYPE_USER_LIST, LightDMUserListClass)) #define LIGHTDM_IS_USER_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIGHTDM_TYPE_USER_LIST)) #define LIGHTDM_IS_USER_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIGHTDM_TYPE_USER_LIST)) #define LIGHTDM_USER_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIGHTDM_TYPE_USER_LIST, LightDMUserListClass)) #define LIGHTDM_TYPE_USER (lightdm_user_get_type()) #define LIGHTDM_USER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIGHTDM_TYPE_USER, LightDMUser)); #define LIGHTDM_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIGHTDM_TYPE_USER, LightDMUserClass)) #define LIGHTDM_IS_USER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIGHTDM_TYPE_USER)) #define LIGHTDM_IS_USER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIGHTDM_TYPE_USER)) #define LIGHTDM_USER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIGHTDM_TYPE_USER, LightDMUserClass)) #define LIGHTDM_USER_LIST_SIGNAL_USER_ADDED "user-added" #define LIGHTDM_USER_LIST_SIGNAL_USER_CHANGED "user-changed" #define LIGHTDM_USER_LIST_SIGNAL_USER_REMOVED "user-removed" #define LIGHTDM_SIGNAL_USER_CHANGED "changed" typedef struct { GObject parent_instance; } LightDMUser; typedef struct { GObjectClass parent_class; void (*changed)(LightDMUser *user); /* Reserved */ void (*reserved1) (void); void (*reserved2) (void); void (*reserved3) (void); void (*reserved4) (void); void (*reserved5) (void); void (*reserved6) (void); } LightDMUserClass; typedef struct { GObject parent_instance; } LightDMUserList; typedef struct { GObjectClass parent_class; void (*user_added)(LightDMUserList *user_list, LightDMUser *user); void (*user_changed)(LightDMUserList *user_list, LightDMUser *user); void (*user_removed)(LightDMUserList *user_list, LightDMUser *user); /* Reserved */ void (*reserved1) (void); void (*reserved2) (void); void (*reserved3) (void); void (*reserved4) (void); void (*reserved5) (void); void (*reserved6) (void); } LightDMUserListClass; #ifdef GLIB_VERSION_2_44 typedef LightDMUser *LightDMUser_autoptr; static inline void glib_autoptr_cleanup_LightDMUser (LightDMUser **_ptr) { glib_autoptr_cleanup_GObject ((GObject **) _ptr); } typedef LightDMUserList *LightDMUserList_autoptr; static inline void glib_autoptr_cleanup_LightDMUserList (LightDMUserList **_ptr) { glib_autoptr_cleanup_GObject ((GObject **) _ptr); } #endif GType lightdm_user_list_get_type (void); GType lightdm_user_get_type (void); LightDMUserList *lightdm_user_list_get_instance (void); gint lightdm_user_list_get_length (LightDMUserList *user_list); LightDMUser *lightdm_user_list_get_user_by_name (LightDMUserList *user_list, const gchar *username); GList *lightdm_user_list_get_users (LightDMUserList *user_list); const gchar *lightdm_user_get_name (LightDMUser *user); const gchar *lightdm_user_get_real_name (LightDMUser *user); const gchar *lightdm_user_get_display_name (LightDMUser *user); const gchar *lightdm_user_get_home_directory (LightDMUser *user); const gchar *lightdm_user_get_image (LightDMUser *user); const gchar *lightdm_user_get_background (LightDMUser *user); const gchar *lightdm_user_get_language (LightDMUser *user); const gchar *lightdm_user_get_layout (LightDMUser *user); const gchar * const *lightdm_user_get_layouts (LightDMUser *user); const gchar *lightdm_user_get_session (LightDMUser *user); gboolean lightdm_user_get_logged_in (LightDMUser *user); gboolean lightdm_user_get_has_messages (LightDMUser *user); uid_t lightdm_user_get_uid (LightDMUser *user); G_END_DECLS #endif /* LIGHTDM_USER_H_ */ lightdm-1.18.1/liblightdm-gobject/lightdm/session.h0000664000000000000000000000411012700600465017134 0ustar /* * Copyright (C) 2010 Robert Ancell. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #ifndef LIGHTDM_SESSION_H_ #define LIGHTDM_SESSION_H_ #include G_BEGIN_DECLS #define LIGHTDM_TYPE_SESSION (lightdm_session_get_type()) #define LIGHTDM_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIGHTDM_TYPE_SESSION, LightDMSession)); #define LIGHTDM_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIGHTDM_TYPE_SESSION, LightDMSessionClass)) #define LIGHTDM_IS_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIGHTDM_TYPE_SESSION)) #define LIGHTDM_IS_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIGHTDM_TYPE_SESSION)) #define LIGHTDM_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIGHTDM_TYPE_SESSION, LightDMSessionClass)) typedef struct { GObject parent_instance; } LightDMSession; typedef struct { GObjectClass parent_class; /* Reserved */ void (*reserved1) (void); void (*reserved2) (void); void (*reserved3) (void); void (*reserved4) (void); void (*reserved5) (void); void (*reserved6) (void); } LightDMSessionClass; #ifdef GLIB_VERSION_2_44 typedef LightDMSession *LightDMSession_autoptr; static inline void glib_autoptr_cleanup_LightDMSession (LightDMSession **_ptr) { glib_autoptr_cleanup_GObject ((GObject **) _ptr); } #endif GType lightdm_session_get_type (void); GList *lightdm_get_sessions (void); GList *lightdm_get_remote_sessions (void); const gchar *lightdm_session_get_key (LightDMSession *session); const gchar *lightdm_session_get_session_type (LightDMSession *session); const gchar *lightdm_session_get_name (LightDMSession *session); const gchar *lightdm_session_get_comment (LightDMSession *session); G_END_DECLS #endif /* LIGHTDM_SESSION_H_ */ lightdm-1.18.1/liblightdm-gobject/lightdm/power.h0000664000000000000000000000155012700600465016612 0ustar /* * Copyright (C) 2010-2011 Robert Ancell. * Author: Robert Ancell * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2 or version 3 of the License. * See http://www.gnu.org/copyleft/lgpl.html the full text of the license. */ #ifndef LIGHTDM_POWER_H_ #define LIGHTDM_POWER_H_ G_BEGIN_DECLS gboolean lightdm_get_can_suspend (void); gboolean lightdm_suspend (GError **error); gboolean lightdm_get_can_hibernate (void); gboolean lightdm_hibernate (GError **error); gboolean lightdm_get_can_restart (void); gboolean lightdm_restart (GError **error); gboolean lightdm_get_can_shutdown (void); gboolean lightdm_shutdown (GError **error); G_END_DECLS #endif /* LIGHTDM_POWER_H_ */ lightdm-1.18.1/liblightdm-gobject/liblightdm-gobject-1.pc.in0000664000000000000000000000047712700600465020505 0ustar prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: liblightdm-gobject Description: LightDM client library Version: @VERSION@ Requires.private: glib-2.0 gio-2.0 gio-unix-2.0 gobject-2.0 libxklavier x11 Libs: -L${libdir} -llightdm-gobject-1 Cflags: -I${includedir}/lightdm-gobject-1