pax_global_header00006660000000000000000000000064152351630470014520gustar00rootroot0000000000000052 comment=e42f6d6fa203888b221f232247391ed7cf7f676b ubuntu-lightdm-e42f6d6/000077500000000000000000000000001523516304700151125ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/.github/000077500000000000000000000000001523516304700164525ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/.github/dependabot.yaml000066400000000000000000000002711523516304700214430ustar00rootroot00000000000000version: 2 updates: - package-ecosystem: "github-actions" directory: "/" schedule: interval: "monthly" groups: actions-deps: patterns: - "*" ubuntu-lightdm-e42f6d6/.github/workflows/000077500000000000000000000000001523516304700205075ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/.github/workflows/test.yaml000066400000000000000000000031221523516304700223500ustar00rootroot00000000000000name: Test on: push: pull_request: jobs: test: strategy: fail-fast: false matrix: image: - name: ubuntu tag: rolling - name: fedora tag: latest runs-on: ubuntu-latest container: ${{ matrix.image.name }}:${{ matrix.image.tag }} steps: - uses: actions/checkout@v7 - name: Install dependencies (Ubuntu) if: matrix.image.name == 'ubuntu' run: | apt-get update DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends dbus gtk-doc-tools intltool libaudit-dev libgcrypt20-dev libgirepository1.0-dev libglib2.0-dev libpam0g-dev libtool libxcb1-dev libxdmcp-dev libxklavier-dev python3 python3-gi python-is-python3 qtbase5-dev qt6-base-dev valac yelp-tools - name: Install dependencies (Fedora) if: matrix.image.name == 'fedora' run: | dnf install -y audit-libs-devel dbus-daemon gcc gcc-c++ gobject-introspection-devel glib2-devel gtk-doc intltool libgcrypt-devel libtool libxcb-devel libxklavier-devel libXdmcp-devel make pam-devel python3-gobject qt5-qtbase-devel qt6-qtbase-devel redhat-rpm-config vala yelp-tools - name: Build and test run: | ./autogen.sh --disable-silent-rules --enable-gtk-doc make make check DEBUG=true || { cat tests/test-suite.log >&2; exit 1; } - name: Upload Test Log if: failure() uses: actions/upload-artifact@v7 with: name: Test Log ${{ matrix.image.name }} ${{ matrix.image.tag }} path: tests/test-suite.log ubuntu-lightdm-e42f6d6/CONTRIBUTING.md000066400000000000000000000007031523516304700173430ustar00rootroot00000000000000We welcome improvements and bug fixes to LightDM. All changes should be proposed as [pull requests](https://github.com/ubuntu/lightdm/pulls). We also invite you to join the [LightDM Matrix Room](https://matrix.to/#/#lightdm:matrix.org). Substantial changes must have associated regression tests. If you are having trouble making a suitable test please propose your change anyway and we'll try and help you write a test or write a test if necessary. ubuntu-lightdm-e42f6d6/COPYING.GPL3000066400000000000000000001045131523516304700166550ustar00rootroot00000000000000 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 . ubuntu-lightdm-e42f6d6/COPYING.LGPL2000066400000000000000000000614471523516304700170000ustar00rootroot00000000000000 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! ubuntu-lightdm-e42f6d6/COPYING.LGPL3000066400000000000000000000167431523516304700170000ustar00rootroot00000000000000 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. ubuntu-lightdm-e42f6d6/Makefile.am000066400000000000000000000007131523516304700171470ustar00rootroot00000000000000ACLOCAL_AMFLAGS = -I m4 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 DISTCLEANFILES = po/.intltool-merge-cache.lock lightdm-${VERSION}.tar.xz.asc: lightdm-${VERSION}.tar.xz gpg --armor --detach-sig --sign $< ubuntu-lightdm-e42f6d6/NEWS000066400000000000000000001543441523516304700156240ustar00rootroot00000000000000Overview of changes in lightdm 1.33.0 * Honor VNCServer's command in sanity check * x-server-local: Correctly order command line arguments * x-server-xvnc: Adjust default color depth to match upstream TigerVNC * Supress log errors for missing pam modules * Don't disconnect signals on cancel before the session actually ends * x-server: Avoid reusing the local X server if the hostname has changed * Initialize WaylandSessionPrivate.vt to -1 (for non-seat0 seat) * Use systemd-logind to discover active session on non-seat0 seats * Improve debug logging when seat_switch_to_greater fails * Try activating an existing greeter before checking for switch support * Consolidate Seat.setup and Seat.start for readability * Move supports_multi_session initialization to init * Disable user switching if logind says it isn't supported * vnc-server: Attempting binding to IPv6 first. * Add hostname service dep to lightdm.service * Fixed the issue that tty information would not be written to utmp when logging into a Wayland session. * Use setusercontext if available * Add support for changing the home directory in PAM modules * Return and use the potentially changed home directory from the session child * Implement logic to get FreeBSD ttyv device names. * Allow Wayland sessions to start on seat0 on kernels with no VTs * Create lightdm failure and success handler services * Update lightdm.service RestartSec to 5s (from 15s) * fix some memory leak in session_child_run * Implement FreeBSD vt switching * Code optimizations: - Reduce UserItem class 72 to 64 bytes using align for 64-bit platforms - xserver, xdmcp-protocol: fix incorrect format types - move const strlen call out of loop * Add client library version for Qt6 * Fix and update tests Overview of changes in lightdm 1.32.0 * Overwrite existing X authority files to avoid corruption * Change logind-check-graphical default config value to true * Block autologin if shell in nologin or false * Fix failure if with greeters sending two login requests quickly. * Drop Qt 4 support, it's been unsupported since 2015 * Fix lightdm_set_layout * Improve method of determining a session is Wayland * Don't call setenv with a NULL value - the behaviour is undefined * Replace deprecated QAbstractItemModel::setRoleNames * Move D-Bus conf file to $(datadir)/dbus-1/system.d * Fix tests failing when compiled with --with-greeter-user * Use Python 3 in tests * Disable compiler optimizations for test programs * Compilation fix for glibc 2.33 * Remove deprecated use of G_TYPE_INSTANCE_GET_PRIVATE, G_PARAM_PRIVATE * Fix compile failure due to use of clearenv on FreeBSD * Use a size_t to resolve a compile warning * Fix DesktopManager typo in man page Overview of changes in lightdm 1.30.0 * Add lightdm_user_get_is_locked () * Hide users with shell /bin/false * Remove unity-system-compositor support (dead upstream) * Fix dm-tool crash * Update documentation Overview of changes in lightdm 1.28.0 * Continue to shutdown session is removing X authority fails * Set XDG_SEAT env variable in script hooks * Fix small leak in XDMCP server * liblightdm-qt: mark class PowerInterface as exported * Fix one qt5 test being run instead of a qt4 one * Remove use of deprecated g_type_class_add_private * Modernize private data in objects * Document XDG_SEAT_PATH in man page * Fix install failing if link already exists * Remove bashisms in configure.ac Overview of changes in lightdm 1.26.0 * No changes from 1.25.2 Overview of changes in lightdm 1.25.2 * Fix incorrect use of ConsoleKit CanSuspend/Hibernate API * Correctly install AccountsService interface file * Fix build system to require C99 * Use standard format for arguments passed to qtchooser Overview of changes in lightdm 1.25.1 * Fixes for VNC and XDMCP connections * Use AccountsService extension system for extended greeter information * Modernise code style Overview of changes in lightdm 1.25.0 * Support moc being called moc-qt5 (e.g. Fedora) * Fail configure if MOC can't be found * Expose autologin-session as a hint to the greeter * Fix timed autologins not using autologin-session when no session specified Overview of changes in lightdm 1.24.0 * No changes from 1.22 Overview of changes in lightdm 1.22.0 * Allow guest sessions to talk to Mir (allowing unity8) Overview of changes in lightdm 1.21.5 * Fix logic that checked if a session was being stopped. This fixes a race condition that could cause logging into an existing session from a greeter to not return to that session. Overview of changes in lightdm 1.21.4 * Use power management functions from ConsoleKit2 if available. * Correctly pass return value from sessions to LightDM. * Retry VT_WAITACTIVE if we get EINTR. * Ignore SIGHUP by default. * Use SA_RESTART with SIGPIPE. * liblightdm-qt: Use liblightdm-gobject power methods instead of re-implementing in Qt. Overview of changes in lightdm 1.21.3 * Fix crashes introduced in 1.21.2 due to environment variable changes * Fix incorrect unref in XDMCP server code * Fix logging warning Overview of changes in lightdm 1.21.2 * Use SA_RESTART on signals so we don't get interrupted reads * Use logind to terminate greeter sessions if it is available * Load greeters from XDG_DATA_DIRS instead of compile time value * Allow D-Bus interface to be disabled * Always pass through LD_PRELOAD, LD_LIBRARY_PATH and PATH to sessions/display servers Overview of changes in lightdm 1.21.1 * Fix greeters crashing with unknown configuration keys (regression from 1.21.0) * Add an API version to the greeter-daemon protocol for future enhancements * More regression tests Overview of changes in lightdm 1.21.0 * Add liblightdm functions for getting OS release information and the message of the day. * Warn if we find unknown keys in configuration. * Fix .profile errors not showing in .xsession-errors log. * Remove duplicate Qt property in liblightdm. * Fix and improve liblightdm API documentation. * Minor GIR annotation fixes. Overview of changes in lightdm 1.20.0 * Use stable version number (no other changes) Overview of changes in lightdm 1.19.5 * Fix errors in documentation generation * Improve documentation * Fix guest AppArmor profile to allow guest sessions more access to the upstart session socket * Fix small memory leak in liblightdm-gobject keyboard layout code Overview of changes in lightdm 1.19.4 * Fix various issues in new in-session greeter code * Fix user list memory management exposed by use of in-session greeters * Fix some spurious warnings in the log Overview of changes in lightdm 1.19.3 * Fix in-session greeters not working for greeter logins Overview of changes in lightdm 1.19.2 * Add support for greeters running inside sessions. This is enabled by setting X-LightDM-Allow-Greeter inside the session .desktop file. The session can then use liblightdm to connect one greeter to the daemon. The communication is done using a socket (/var/run/lightdm//greeter-socket) that is accessible to any process run by that user. Consider controlling access to this socket using a MAC system such as AppArmor. * Report errors for all liblightdm methods. This will require existing greeters to update their API usage. The ABI is unchanged. * Handle EAGAIN correctly when daemons communicate with the daemon. * Drop support for mir-container sessions - no-one ever used these. Overview of changes in lightdm 1.19.1 * Rename "xlocal" seat type to "local". Using "xlocal" will continue to work but report a warning. * Fix memory leaks * Fix uninitialized memory errors * Use MIR_SERVER_HOST_SOCKET instead of MIR_SOCKET to report compositor socket to sessions. This used to work but no longer works in Mir 0.21 * Allow XMir to run on the xlocal seat using the new x-server-backend=mir option * Use only a single compositor on local seats * Fix Mir greeter log filename having "(null)" in the name * Copy fcitx/mozc rules so session works when these aren't installed * Revert lxsession change - it caused the AppArmor to fail to compile Overview of changes in lightdm 1.19.0 * Use /dev/tty0 instead of /dev/console for VT operations * Don't quit on SIGUSR1, SIGUSR2 or SIGHUP * Improve XDMCP IPv6 address selection * Set XDMCP hostname field in to system hostname or configured value * Allow fcitx and mozc to run in guest session * Fix lxsession running in guest sessiono * Drop support for legacy XMir * Fix g_spawn compiler warning 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 running 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 automatically 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. * Environment 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 privileged 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 ubuntu-lightdm-e42f6d6/README.md000066400000000000000000000075501523516304700164000ustar00rootroot00000000000000# LightDM Display Manager [![Test status](https://github.com/ubuntu/lightdm/actions/workflows/test.yaml/badge.svg)](https://github.com/ubuntu/lightdm/actions/workflows/test.yaml) [![LightDM questions on AskUbuntu](https://img.shields.io/stackexchange/askubuntu/t/lightdm?color=brightgreen)](https://askubuntu.com/questions/tagged/lightdm) LightDM is a lightweight, cross-desktop display manager. A display manager is a daemon that: - Runs display servers (e.g. X) where necessary. - Runs greeters to allow users to pick which user account and session type to use. - Allows greeters to perform authentication using PAM. - Runs session processes once authentication is complete. - Provides remote graphical login options. Key features of LightDM are: - Cross-desktop - supports different desktop technologies (X, Wayland, Mir, etc) - Lightweight - low memory usage and fast performance - Supports remote login (incoming: XDMCP and VNC; outgoing: XDMCP and pluggable) - Supports guest sessions - Has a comprehensive test suite The core LightDM project does not provide any greeter with it; you should install a greeter appropriate to your system. Popular greeter projects are: * [LightDM GTK+ Greeter](https://github.com/Xubuntu/lightdm-gtk-greeter) - a greeter that has moderate requirements (GTK+). * [LightDM KDE Greeter](https://invent.kde.org/plasma/lightdm-kde-greeter) - greeter by [KDE](https://kde.org) (Qt) * [LXQt Greeter](https://github.com/lxde/lxqt-lightdm-greeter) - greeter used in [LXQt](http://lxqt.org/) (Qt) * [Pantheon Greeter](https://github.com/elementary/greeter) - greeter used in [elementary OS](https://elementary.io/) (GTK+/Clutter). * [Unity Greeter](https://launchpad.net/unity-greeter) - greeter used in [Unity](https://launchpad.net/unity). * [WebKit2 Greeter](https://github.com/antergos/lightdm-webkit2-greeter) - greeter that can be themed using HTML/CSS/Javascript * Run with no greeter (automatic login only) * [Write your own...](https://www.freedesktop.org/wiki/Software/LightDM/Development/) ## Configuration LightDM configuration is provided by the following files: ``` /usr/share/lightdm/lightdm.conf.d/*.conf /etc/lightdm/lightdm.conf.d/*.conf /etc/lightdm/lightdm.conf ``` System provided configuration should be stored in `/usr/share/lightdm/lightdm.conf.d/`. System administrators can override this configuration by adding files to `/etc/lightdm/lightdm.conf.d/` and `/etc/lightdm/lightdm.conf`. Files are read in the above order and combined together to make the LightDM configuration. For example, if a sysadmin wanted to override the system configured default session (provided in `/usr/share/lightdm/lightdm.conf.d`) they should make a file `/etc/lightdm/lightdm.conf.d/50-myconfig.conf` with the following: ``` [Seat:*] user-session=mysession ``` Configuration is in keyfile format. For most installations you will want to change the keys in the `[Seat:*]` section as this applies to all seats on the system (normally just one). A configuration file showing all the possible keys is provided in [`data/lightdm.conf`](https://github.com/ubuntu/lightdm/blob/main/data/lightdm.conf). ### Display Setup Script LightDM can be configured to run an external shell script to setup displays. If an display setup script is used, it must be: - Located under `/usr/share` - Owned by the user `lightdm` and group `lightdm` - It cannot print or log to any destination not accessible to LightDM To test a configuration: - Install `xserver-xephyr`: `sudo apt install xserver-xephyr` - Run the test as user lightdm: `sudo -u lightdm lightdm --test-mode --debug` Put the shell script reference in the LightDM configuration: ``` [Seat:*] display-setup-script=/usr/share/example_display_setup_script.sh ``` ## Questions [Stack Overflow](http://stackoverflow.com/search?q=lightdm) and [Ask Ubuntu](http://askubuntu.com/search?q=lightdm) are good sites for frequently asked questions. ubuntu-lightdm-e42f6d6/autogen.sh000077500000000000000000000006661523516304700171230ustar00rootroot00000000000000#!/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 ubuntu-lightdm-e42f6d6/common/000077500000000000000000000000001523516304700164025ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/common/Makefile.am000066400000000000000000000005761523516304700204460ustar00rootroot00000000000000# -*- 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) ubuntu-lightdm-e42f6d6/common/configuration.c000066400000000000000000000455711523516304700214310ustar00rootroot00000000000000/* * 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; GHashTable *lightdm_keys; GHashTable *seat_keys; GHashTable *xdmcp_keys; GHashTable *vnc_keys; }; typedef enum { KEY_UNKNOWN, KEY_SUPPORTED, KEY_DEPRECATED } KeyStatus; G_DEFINE_TYPE_WITH_PRIVATE (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) { g_autoptr(GKeyFile) key_file = g_key_file_new (); if (!g_key_file_load_from_file (key_file, path, G_KEY_FILE_NONE, error)) return FALSE; gchar *source_path = g_strdup (path); config->priv->sources = g_list_append (config->priv->sources, source_path); g_auto(GStrv) groups = g_key_file_get_groups (key_file, NULL); for (int i = 0; groups[i]; i++) { /* Move keys from deprecated [SeatDefaults] into [Seat:*] */ const gchar *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:*"; } /* Check if we know this group */ GHashTable *known_keys = NULL; if (strcmp (group, "LightDM") == 0) known_keys = config->priv->lightdm_keys; else if (g_str_has_prefix (group, "Seat:")) known_keys = config->priv->seat_keys; else if (strcmp (group, "XDMCPServer") == 0) known_keys = config->priv->xdmcp_keys; else if (strcmp (group, "VNCServer") == 0) known_keys = config->priv->vnc_keys; else if (messages) *messages = g_list_append (*messages, g_strdup_printf (" Unknown group [%s] in configuration", group)); g_auto(GStrv) keys = g_key_file_get_keys (key_file, groups[i], NULL, error); if (!keys) break; for (int j = 0; keys[j]; j++) { if (known_keys != NULL) { KeyStatus status = GPOINTER_TO_INT (g_hash_table_lookup (known_keys, keys[j])); if (status == KEY_UNKNOWN) { if (messages != NULL) *messages = g_list_append (*messages, g_strdup_printf (" [%s] contains unknown option %s", group, keys[j])); } else if (status == KEY_DEPRECATED) { if (messages != NULL) *messages = g_list_append (*messages, g_strdup_printf (" [%s] contains deprecated option %s, this can be safely removed", group, keys[j])); } } g_autofree gchar *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_autofree gchar *k = g_strdup_printf ("%s]%s", group, keys[j]); g_hash_table_insert (config->priv->key_sources, g_steal_pointer (&k), source_path); } } return TRUE; } static gchar * path_make_absolute (gchar *path) { if (!path) return NULL; if (g_path_is_absolute (path)) return path; g_autofree gchar *cwd = g_get_current_dir (); return g_build_filename (cwd, path, NULL); } static int compare_strings (gconstpointer a, gconstpointer b) { return strcmp (a, b); } static void load_config_directory (const gchar *path, GList **messages) { /* Find configuration files */ g_autoptr(GError) error = NULL; GDir *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); GList *files = NULL; 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 (GList *link = files; link; link = link->next) { gchar *filename = link->data; g_autofree gchar *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)); g_autoptr(GError) conf_error = NULL; config_load_from_file (config_get_instance (), conf_path, messages, &conf_error); if (conf_error && !g_error_matches (conf_error, G_FILE_ERROR, G_FILE_ERROR_NOENT)) g_printerr ("Failed to load configuration from %s: %s\n", filename, conf_error->message); } else g_debug ("Ignoring configuration file %s, it does not have .conf suffix", conf_path); } g_list_free_full (files, g_free); } static void load_config_directories (const gchar * const *dirs, GList **messages) { /* Load in reverse order, because XDG_* fields are preference-ordered and the directories in front should override directories in back. */ for (gint i = g_strv_length ((gchar **)dirs) - 1; i >= 0; i--) { g_autofree 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); } } gboolean config_load_from_standard_locations (Configuration *config, const gchar *config_path, GList **messages) { 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); g_autofree gchar *config_d_dir = NULL; g_autofree gchar *path = NULL; if (config_path) { path = g_strdup (config_path); g_autofree gchar *basename = g_path_get_basename (config_path); config->priv->dir = path_make_absolute (basename); } 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)); g_autoptr(GError) error = NULL; if (!config_load_from_file (config, path, messages, &error)) { gboolean 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); return FALSE; } } return TRUE; } 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) { g_autofree gchar *k = g_strdup_printf ("%s]%s", section, key); return g_hash_table_lookup (config->priv->key_sources, k); } 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);*/ g_autofree gchar *value = g_key_file_get_value (config->priv->key_file, section, key, NULL); if (!value) return FALSE; g_strchomp (value); return strcmp (value, "true") == 0; } static void config_init (Configuration *config) { config->priv = config_get_instance_private (config); 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); config->priv->lightdm_keys = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, NULL); config->priv->seat_keys = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, NULL); config->priv->xdmcp_keys = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, NULL); config->priv->vnc_keys = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, NULL); /* Build up tables of known keys */ g_hash_table_insert (config->priv->lightdm_keys, "start-default-seat", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "greeter-user", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "minimum-display-number", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "minimum-vt", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "lock-memory", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "user-authority-in-system-dir", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "guest-account-script", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "logind-check-graphical", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "log-directory", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "run-directory", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "cache-directory", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "sessions-directory", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "remote-sessions-directory", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "greeters-directory", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "backup-logs", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "dbus-service", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->lightdm_keys, "logind-load-seats", GINT_TO_POINTER (KEY_DEPRECATED)); g_hash_table_insert (config->priv->seat_keys, "type", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "pam-service", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "pam-autologin-service", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "pam-greeter-service", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "xserver-backend", GINT_TO_POINTER (KEY_DEPRECATED)); g_hash_table_insert (config->priv->seat_keys, "xserver-command", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "xmir-command", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "xserver-config", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "xserver-layout", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "xserver-allow-tcp", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "xserver-share", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "xserver-hostname", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "xserver-display-number", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "xdmcp-manager", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "xdmcp-port", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "xdmcp-key", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "unity-compositor-command", GINT_TO_POINTER (KEY_DEPRECATED)); g_hash_table_insert (config->priv->seat_keys, "unity-compositor-timeout", GINT_TO_POINTER (KEY_DEPRECATED)); g_hash_table_insert (config->priv->seat_keys, "greeter-session", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "greeter-hide-users", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "greeter-allow-guest", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "greeter-show-manual-login", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "greeter-show-remote-login", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "user-session", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "allow-user-switching", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "allow-guest", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "guest-session", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "session-wrapper", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "greeter-wrapper", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "guest-wrapper", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "display-setup-script", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "display-stopped-script", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "greeter-setup-script", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "session-setup-script", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "session-cleanup-script", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "autologin-guest", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "autologin-user", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "autologin-user-timeout", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "autologin-in-background", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "autologin-session", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "exit-on-failure", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->seat_keys, "xdg-seat", GINT_TO_POINTER (KEY_DEPRECATED)); g_hash_table_insert (config->priv->xdmcp_keys, "enabled", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->xdmcp_keys, "port", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->xdmcp_keys, "listen-address", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->xdmcp_keys, "key", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->xdmcp_keys, "hostname", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->vnc_keys, "enabled", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->vnc_keys, "command", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->vnc_keys, "port", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->vnc_keys, "listen-address", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->vnc_keys, "width", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->vnc_keys, "height", GINT_TO_POINTER (KEY_SUPPORTED)); g_hash_table_insert (config->priv->vnc_keys, "depth", GINT_TO_POINTER (KEY_SUPPORTED)); } static void config_finalize (GObject *object) { Configuration *self = CONFIGURATION (object); g_clear_pointer (&self->priv->dir, g_free); g_clear_pointer (&self->priv->key_file, g_key_file_free); g_list_free_full (self->priv->sources, g_free); g_hash_table_destroy (self->priv->key_sources); g_hash_table_destroy (self->priv->lightdm_keys); g_hash_table_destroy (self->priv->seat_keys); g_hash_table_destroy (self->priv->xdmcp_keys); g_hash_table_destroy (self->priv->vnc_keys); 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; } ubuntu-lightdm-e42f6d6/common/configuration.h000066400000000000000000000047061523516304700214310ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/common/dmrc.c000066400000000000000000000060251523516304700174760ustar00rootroot00000000000000/* * 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) { g_autoptr(GKeyFile) 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 */ g_autofree gchar *path = g_build_filename (common_user_get_home_directory (user), ".dmrc", NULL); /* Guard against privilege escalation through symlinks, etc. */ gboolean drop_privileges = geteuid () == 0; if (drop_privileges) privileges_drop (common_user_get_uid (user), common_user_get_gid (user)); gboolean have_dmrc = g_key_file_load_from_file (dmrc_file, path, G_KEY_FILE_KEEP_COMMENTS, NULL); if (drop_privileges) privileges_reclaim (); /* If no ~/.dmrc, then load from the cache */ if (!have_dmrc) { g_autofree gchar *filename = g_strdup_printf ("%s.dmrc", common_user_get_name (user)); g_autofree gchar *cache_dir = config_get_string (config_get_instance (), "LightDM", "cache-directory"); g_autofree gchar *cache_path = g_build_filename (cache_dir, "dmrc", filename, NULL); g_key_file_load_from_file (dmrc_file, cache_path, G_KEY_FILE_KEEP_COMMENTS, NULL); } return g_steal_pointer (&dmrc_file); } void dmrc_save (GKeyFile *dmrc_file, CommonUser *user) { gsize length; g_autofree gchar *data = g_key_file_to_data (dmrc_file, &length, NULL); /* Update the users .dmrc */ g_autofree gchar *path = g_build_filename (common_user_get_home_directory (user), ".dmrc", NULL); /* Guard against privilege escalation through symlinks, etc. */ gboolean 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 (); /* Update the .dmrc cache */ g_autofree gchar *cache_dir = config_get_string (config_get_instance (), "LightDM", "cache-directory"); g_autofree gchar *dmrc_cache_dir = g_build_filename (cache_dir, "dmrc", NULL); 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)); g_autofree gchar *filename = g_strdup_printf ("%s.dmrc", common_user_get_name (user)); g_autofree gchar *cache_path = g_build_filename (dmrc_cache_dir, filename, NULL); g_file_set_contents (cache_path, data, length, NULL); } ubuntu-lightdm-e42f6d6/common/dmrc.h000066400000000000000000000012211523516304700174740ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/common/privileges.c000066400000000000000000000023151523516304700207200ustar00rootroot00000000000000/* * 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 } ubuntu-lightdm-e42f6d6/common/privileges.h000066400000000000000000000011421523516304700207220ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/common/user-list.c000066400000000000000000002002371523516304700205010ustar00rootroot00000000000000/* -*- 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_NUM_USERS = 1, LIST_PROP_USERS, }; enum { USER_PROP_NAME = 1, 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, USER_PROP_IS_LOCKED, }; enum { USER_ADDED, USER_CHANGED, USER_REMOVED, LAST_LIST_SIGNAL }; static guint list_signals[LAST_LIST_SIGNAL] = { 0 }; enum { CHANGED, GET_LOGGED_IN, 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 { /* TRUE if have loaded the DMRC file */ gboolean loaded_dmrc; /* Bus we are listening for accounts service on */ GDBusConnection *bus; /* 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; /* TRUE if this user is locked */ gboolean is_locked; } CommonUserPrivate; typedef struct { GObject parent_instance; gchar *path; gchar *username; } CommonSession; typedef struct { GObjectClass parent_class; } CommonSessionClass; G_DEFINE_TYPE_WITH_PRIVATE (CommonUserList, common_user_list, G_TYPE_OBJECT) G_DEFINE_TYPE_WITH_PRIVATE (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 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 = common_user_list_get_instance_private (user_list); for (GList *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 = common_user_list_get_instance_private (user_list); for (GList *link = priv->users; link; link = link->next) { CommonUser *user = link->data; CommonUserPrivate *user_priv = common_user_get_instance_private (user); if (g_strcmp0 (user_priv->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 = common_user_get_instance_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 load_sessions (CommonUserList *user_list); static gboolean get_logged_in_cb (CommonUser *user, CommonUserList *user_list) { CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list); CommonUserPrivate *user_priv = common_user_get_instance_private (user); // Lazily decide to load/listen to sessions if (priv->session_added_signal == 0) load_sessions (user_list); const gchar *username = user_priv->name; for (GList *link = priv->sessions; link; link = link->next) { CommonSession *session = link->data; if (strcmp (session->username, username) == 0) return TRUE; } return FALSE; } static void user_changed_cb (CommonUser *user, CommonUserList *user_list) { g_signal_emit (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 = common_user_get_instance_private (user); g_signal_connect (user, "get-logged-in", G_CALLBACK (get_logged_in_cb), user_list); g_auto(GStrv) tokens = g_strsplit (entry->pw_gecos, ",", -1); gchar *real_name; if (tokens[0] != NULL && tokens[0][0] != '\0') real_name = g_strdup (tokens[0]); else real_name = g_strdup (""); gchar *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->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 = common_user_list_get_instance_private (user_list); g_debug ("Loading user config from %s", USER_CONFIG_FILE); g_autoptr(GKeyFile) config = g_key_file_new (); g_autoptr(GError) error = NULL; 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); gint minimum_uid = 500; if (g_key_file_has_key (config, "UserList", "minimum-uid", NULL)) minimum_uid = g_key_file_get_integer (config, "UserList", "minimum-uid", NULL); g_autofree gchar *hidden_users_list = g_key_file_get_string (config, "UserList", "hidden-users", NULL); if (!hidden_users_list) hidden_users_list = g_strdup ("nobody nobody4 noaccess"); g_auto(GStrv) hidden_users = g_strsplit (hidden_users_list, " ", -1); g_autofree gchar *hidden_shells_list = g_key_file_get_string (config, "UserList", "hidden-shells", NULL); if (!hidden_shells_list) hidden_shells_list = g_strdup ("/bin/false /usr/sbin/nologin"); g_auto(GStrv) hidden_shells = g_strsplit (hidden_shells_list, " ", -1); setpwent (); GList *users = NULL, *new_users = NULL, *changed_users = NULL; while (TRUE) { errno = 0; struct passwd *entry = getpwent (); if (!entry) break; /* Ignore system users */ if (entry->pw_uid < minimum_uid) continue; /* Ignore users disabled by shell */ if (entry->pw_shell) { int i; for (i = 0; hidden_shells[i] && strcmp (entry->pw_shell, hidden_shells[i]) != 0; i++); if (hidden_shells[i]) continue; } /* Ignore certain users */ int i; for (i = 0; hidden_users[i] && strcmp (entry->pw_name, hidden_users[i]) != 0; i++); if (hidden_users[i]) continue; CommonUser *user = make_passwd_user (user_list, entry); /* Update existing users if have them */ GList *link; 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); } if (errno != 0) g_warning ("Failed to read password database: %s", strerror (errno)); endpwent (); /* Use new user list */ GList *old_users = priv->users; priv->users = users; /* Notify of changes */ for (GList *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), user_list); if (emit_add_signal) g_signal_emit (user_list, list_signals[USER_ADDED], 0, info); } g_list_free (new_users); for (GList *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 (GList *link = old_users; link; link = link->next) { /* See if this user is in the current list */ GList *new_link; 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 = common_user_get_instance_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 = common_user_get_instance_private (user); /* Get the properties for this user */ if (!priv->changed_signal) priv->changed_signal = g_dbus_connection_signal_subscribe (priv->bus, "org.freedesktop.Accounts", "org.freedesktop.Accounts.User", "Changed", priv->path, NULL, G_DBUS_SIGNAL_FLAGS_NONE, accounts_user_changed_cb, user, NULL); g_autoptr(GError) error = NULL; g_autoptr(GVariant) result = g_dbus_connection_call_sync (priv->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); if (!result) return FALSE; /* Store the properties we need */ g_autoptr(GVariantIter) iter = NULL; g_variant_get (result, "(a{sv})", &iter); const gchar *name; GVariant *value; gboolean system_account = FALSE; 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_clear_pointer (&priv->image, g_free); } 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, "Uid") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_UINT64)) priv->uid = g_variant_get_uint64 (value); else if (strcmp (name, "Locked") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)) priv->is_locked = g_variant_get_boolean (value); } g_autoptr(GVariant) extra_result = g_dbus_connection_call_sync (priv->bus, "org.freedesktop.Accounts", priv->path, "org.freedesktop.DBus.Properties", "GetAll", g_variant_new ("(s)", "org.freedesktop.DisplayManager.AccountsService"), 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); if (extra_result) { g_autoptr(GVariantIter) extra_iter = NULL; g_variant_get (extra_result, "(a{sv})", &extra_iter); while (g_variant_iter_loop (extra_iter, "{&sv}", &name, &value)) { 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_clear_pointer (&priv->background, g_free); } else if (strcmp (name, "HasMessages") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)) priv->has_messages = g_variant_get_boolean (value); else if (strcmp (name, "KeyboardLayouts") == 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; } } } } return !system_account; } static void add_accounts_user (CommonUserList *user_list, const gchar *path, gboolean emit_signal) { CommonUserListPrivate *list_priv = common_user_list_get_instance_private (user_list); CommonUser *user = g_object_new (COMMON_TYPE_USER, NULL); CommonUserPrivate *priv = common_user_get_instance_private (user); g_debug ("User %s added", path); priv->bus = g_object_ref (list_priv->bus); priv->path = g_strdup (path); g_signal_connect (user, USER_SIGNAL_CHANGED, G_CALLBACK (user_changed_cb), user_list); g_signal_connect (user, "get-logged-in", G_CALLBACK (get_logged_in_cb), user_list); 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; 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; } const gchar *path; g_variant_get (parameters, "(&o)", &path); /* Add user if we haven't got them */ CommonUser *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 = common_user_list_get_instance_private (user_list); 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; } const gchar *path; g_variant_get (parameters, "(&o)", &path); /* Delete user if we know of them */ CommonUser *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 = common_user_list_get_instance_private (user_list); g_autoptr(GError) error = NULL; g_autoptr(GVariant) 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); if (!result) return NULL; g_autoptr(GVariant) username = NULL; g_variant_get (result, "(v)", &username); if (!g_variant_is_of_type (username, G_VARIANT_TYPE_STRING)) return NULL; const gchar *name; g_variant_get (username, "&s", &name); g_debug ("Loaded session %s (%s)", path, name); CommonSession *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); 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; 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; } const gchar *path; g_variant_get (parameters, "(&o)", &path); CommonSession *session = load_session (user_list, path); if (!session) return; CommonUser *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 = common_user_list_get_instance_private (user_list); 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; } const gchar *path; g_variant_get (parameters, "(&o)", &path); for (GList *link = priv->sessions; link; link = link->next) { CommonSession *session = link->data; if (strcmp (session->path, path) == 0) { g_debug ("Session %s removed", path); priv->sessions = g_list_delete_link (priv->sessions, link); CommonUser *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 = common_user_list_get_instance_private (user_list); 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); g_autoptr(GError) error = NULL; g_autoptr(GVariant) 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); if (result) { if (g_variant_is_of_type (result, G_VARIANT_TYPE ("(v)"))) { g_autoptr(GVariant) value = NULL; g_variant_get (result, "(v)", &value); g_debug ("Loading sessions from org.freedesktop.DisplayManager"); g_autoptr(GVariantIter) iter = NULL; g_variant_get (value, "ao", &iter); const gchar *path; while (g_variant_iter_loop (iter, "&o", &path)) load_session (user_list, path); } else g_warning ("Unexpected type from org.freedesktop.DisplayManager.Sessions: %s", g_variant_get_type_string (result)); } } static void load_users (CommonUserList *user_list) { CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list); 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); g_autoptr(GError) error = NULL; g_autoptr(GVariant) 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); if (result) { g_debug ("Loading users from org.freedesktop.Accounts"); g_autoptr(GVariantIter) iter = NULL; g_variant_get (result, "(ao)", &iter); const gchar *path; while (g_variant_iter_loop (iter, "&o", &path)) add_accounts_user (user_list, path, FALSE); } else { 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 */ g_autoptr(GFile) passwd_file = g_file_new_for_path (PASSWD_FILE); g_autoptr(GError) e = NULL; priv->passwd_monitor = g_file_monitor (passwd_file, G_FILE_MONITOR_NONE, NULL, &e); if (e) g_warning ("Error monitoring %s: %s", PASSWD_FILE, e->message); else g_signal_connect (priv->passwd_monitor, "changed", G_CALLBACK (passwd_changed_cb), user_list); } } /** * 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); CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list); load_users (user_list); return g_list_length (priv->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); CommonUserListPrivate *priv = common_user_list_get_instance_private (user_list); load_users (user_list); return priv->users; } /** * common_user_list_get_user_by_name: * @user_list: A #CommonUserList * @username: Name of user to get. * * Get information 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 = common_user_list_get_instance_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 = 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 = common_user_list_get_instance_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); 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) { CommonUserPrivate *priv = common_user_get_instance_private (user); g_autoptr(GError) error = NULL; g_autoptr(GVariant) answer = g_dbus_connection_call_sync (priv->bus, "org.freedesktop.Accounts", 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); if (!answer) return FALSE; if (result) *result = g_steal_pointer (&answer); return TRUE; } static void save_string_to_dmrc (CommonUser *user, const gchar *group, const gchar *key, const gchar *value) { g_autoptr(GKeyFile) dmrc = dmrc_load (user); g_key_file_set_string (dmrc, group, key, value); dmrc_save (dmrc, user); } /* Loads language/layout/session info for user */ static void load_dmrc (CommonUser *user) { CommonUserPrivate *priv = common_user_get_instance_private (user); /* We're using Accounts service instead */ if (priv->path) return; if (priv->loaded_dmrc) return; priv->loaded_dmrc = TRUE; g_autoptr(GKeyFile) 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); } /** * 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); CommonUserPrivate *priv = common_user_get_instance_private (user); return priv->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); CommonUserPrivate *priv = common_user_get_instance_private (user); return priv->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) { g_return_val_if_fail (COMMON_IS_USER (user), NULL); CommonUserPrivate *priv = common_user_get_instance_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); CommonUserPrivate *priv = common_user_get_instance_private (user); return priv->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); CommonUserPrivate *priv = common_user_get_instance_private (user); return priv->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); CommonUserPrivate *priv = common_user_get_instance_private (user); return priv->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); CommonUserPrivate *priv = common_user_get_instance_private (user); return priv->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); CommonUserPrivate *priv = common_user_get_instance_private (user); load_dmrc (user); const gchar *language = priv->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); CommonUserPrivate *priv = common_user_get_instance_private (user); load_dmrc (user); return priv->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); CommonUserPrivate *priv = common_user_get_instance_private (user); load_dmrc (user); return (const gchar * const *) priv->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); CommonUserPrivate *priv = common_user_get_instance_private (user); load_dmrc (user); const gchar *session = priv->session; return (session && session[0] == 0) ? NULL : session; /* Treat "" as NULL */ } /** * common_user_set_session: * @user: A #CommonUser * @session: 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) { g_return_val_if_fail (COMMON_IS_USER (user), FALSE); gboolean result; g_signal_emit (user, user_signals[GET_LOGGED_IN], 0, &result); return result; } /** * 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); CommonUserPrivate *priv = common_user_get_instance_private (user); return priv->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); CommonUserPrivate *priv = common_user_get_instance_private (user); return priv->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 = common_user_get_instance_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; } /** * common_user_get_is_locked: * @user: A #CommonUser * * Check if a user is locked. * * Return value: %TRUE if the user is locked. **/ gboolean common_user_get_is_locked (CommonUser *user) { g_return_val_if_fail (COMMON_IS_USER (user), FALSE); CommonUserPrivate *priv = common_user_get_instance_private (user); return priv->is_locked; } static void common_user_init (CommonUser *user) { CommonUserPrivate *priv = common_user_get_instance_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 = 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; case USER_PROP_IS_LOCKED: g_value_set_boolean (value, common_user_get_is_locked (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 = common_user_get_instance_private (self); g_clear_pointer (&priv->path, g_free); if (priv->changed_signal) g_dbus_connection_signal_unsubscribe (priv->bus, priv->changed_signal); g_clear_object (&priv->bus); g_clear_pointer (&priv->name, g_free); g_clear_pointer (&priv->real_name, g_free); g_clear_pointer (&priv->home_directory, g_free); g_clear_pointer (&priv->shell, g_free); g_clear_pointer (&priv->image, g_free); g_clear_pointer (&priv->background, g_free); g_clear_pointer (&priv->language, g_free); g_clear_pointer (&priv->layouts, g_strfreev); g_clear_pointer (&priv->session, g_free); } static void common_user_class_init (CommonUserClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); 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)); g_object_class_install_property (object_class, USER_PROP_IS_LOCKED, g_param_spec_boolean ("is-locked", "is-locked", "TRUE if the user is currently locked", FALSE, G_PARAM_READABLE)); /** * 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); user_signals[GET_LOGGED_IN] = g_signal_new ("get-logged-in", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, 0, g_signal_accumulator_first_wins, NULL, NULL, G_TYPE_BOOLEAN, 0); } static void common_session_init (CommonSession *common_session) { } static void common_session_finalize (GObject *object) { CommonSession *self = COMMON_SESSION (object); g_clear_pointer (&self->path, g_free); g_clear_pointer (&self->username, g_free); } static void common_session_class_init (CommonSessionClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = common_session_finalize; } ubuntu-lightdm-e42f6d6/common/user-list.h000066400000000000000000000077131523516304700205120ustar00rootroot00000000000000/* * 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); gboolean common_user_get_is_locked (CommonUser *user); G_END_DECLS #endif /* COMMON_USER_LIST_H_ */ ubuntu-lightdm-e42f6d6/configure.ac000066400000000000000000000177121523516304700174100ustar00rootroot00000000000000dnl Process this file with autoconf to produce a configure script. AC_INIT(lightdm, 1.33.0) 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) AC_PROG_CC_C99 LT_INIT AM_PROG_CC_C_O AC_PROG_CXX AC_PROG_LIBTOOL AC_PROG_LN_S AC_PROG_MKDIR_P AM_MAINTAINER_MODE dnl Check if the compiler really supports `-std=c99`. if test "x$ac_cv_prog_cc_c99" = xno; then AC_MSG_ERROR([$CC does not support '-std=c99'.]) fi 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 setusercontext clearenv __getgroups_chk) PKG_CHECK_MODULES(LIGHTDM, [ glib-2.0 >= 2.44 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 >= 2.44 gio-2.0 >= 2.26 gio-unix-2.0 gobject-2.0 libxklavier x11 ]) 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], [if test "x$enable_liblightdm_qt5" != xauto; then AC_MSG_FAILURE( [--enable-liblightdm-qt5 was given, but test for Qt5 failed]) fi ]) QT5_VALIDATE_MOC(MOC5) if test x$MOC5 = x; then compile_liblightdm_qt5=no if test "x$enable_liblightdm_qt5" != xauto; then AC_MSG_FAILURE( [--enable-liblightdm-qt5 was given, but MOC not found]) fi fi if test x"$MOC5" = xmoc; then if test x"$(readlink $(which $MOC5))" = xqtchooser; then MOC5="$MOC5 --qt=5" fi fi fi AM_CONDITIONAL(COMPILE_LIBLIGHTDM_QT5, test x"$compile_liblightdm_qt5" != "xno") AC_ARG_ENABLE(liblightdm-qt6, AS_HELP_STRING([--enable-liblightdm-qt6],[Enable LightDM client Qt6 libraries [[default=auto]]]), [enable_liblightdm_qt6=$enableval], [enable_liblightdm_qt6="auto"]) compile_liblightdm_qt6=no if test x"$enable_liblightdm_qt6" != "xno"; then PKG_CHECK_MODULES(LIBLIGHTDM_QT6, [ Qt6Core Qt6DBus Qt6Gui ], [compile_liblightdm_qt6=yes], [if test "x$enable_liblightdm_qt6" != xauto; then AC_MSG_FAILURE( [--enable-liblightdm-qt6 was given, but test for Qt6 failed]) fi ]) QT6_VALIDATE_MOC(MOC6) if test x$MOC6 = x; then compile_liblightdm_qt6=no if test "x$enable_liblightdm_qt6" != xauto; then AC_MSG_FAILURE( [--enable-liblightdm-qt6 was given, but MOC not found]) fi fi fi AM_CONDITIONAL(COMPILE_LIBLIGHTDM_QT6, test x"$compile_liblightdm_qt6" != "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 ########################################################################### DEFAULT_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 DEFAULT_USER_SESSION="$withval" fi ) AC_SUBST(DEFAULT_USER_SESSION) AC_DEFINE_UNQUOTED(DEFAULT_USER_SESSION, "$DEFAULT_USER_SESSION", User session) DEFAULT_GREETER_SESSION=default AC_ARG_WITH(greeter-session, AS_HELP_STRING(--with-greeter-session=, Greeter session), if test x$withval != x; then DEFAULT_GREETER_SESSION="$withval" fi ) AC_SUBST(DEFAULT_GREETER_SESSION) AC_DEFINE_UNQUOTED(DEFAULT_GREETER_SESSION, "$DEFAULT_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-qt5-3.pc liblightdm-qt/liblightdm-qt6-3.pc po/Makefile.in src/Makefile tests/Makefile tests/src/Makefile tests/scripts/login-pam-config.conf tests/scripts/login-pam.conf tests/scripts/switch-to-greeter-return-session-pam.conf ]) AC_OUTPUT dnl ########################################################################### dnl Summary dnl ########################################################################### echo " Light Display Manager $VERSION =========================== prefix: $prefix Greeter session: $DEFAULT_GREETER_SESSION Greeter user: $GREETER_USER User session: $DEFAULT_USER_SESSION GObject introspection: $found_introspection Vala bindings: $enable_vala liblightdm-qt5: $compile_liblightdm_qt5 liblightdm-qt6: $compile_liblightdm_qt6 libaudit support: $use_libaudit Enable tests: $enable_tests " ubuntu-lightdm-e42f6d6/data/000077500000000000000000000000001523516304700160235ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/data/Makefile.am000066400000000000000000000033301523516304700200560ustar00rootroot00000000000000initdir = ${sysconfdir}/init dist_init_DATA = init/lightdm.conf confdir = $(sysconfdir)/lightdm dist_conf_DATA = lightdm.conf users.conf keys.conf dbusconfdir = $(datadir)/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 accountsservice_interface = org.freedesktop.DisplayManager.AccountsService.xml dbusdir = $(datadir)/dbus-1/interfaces dist_dbus_DATA = \ $(accountsservice_interface) # AccountsService requires D-Bus interfaces to be symlinked install-exec-hook: $(MKDIR_P) $(DESTDIR)$(datadir)/accountsservice/interfaces $(LN_S) -f ../../dbus-1/interfaces/$(accountsservice_interface) $(DESTDIR)$(datadir)/accountsservice/interfaces/$(accountsservice_interface) polkitdir = $(datadir)/polkit-1/actions polkit_in_files = org.freedesktop.DisplayManager.AccountsService.policy.in polkit_DATA = $(polkit_in_files:.policy.in=.policy) @INTLTOOL_POLICY_RULE@ dist_man1_MANS = dm-tool.1 \ lightdm.1 EXTRA_DIST = apparmor/lightdm-guest-session.in $(polkit_in_files) CLEANFILES = lightdm-guest-session $(polkit_DATA) ubuntu-lightdm-e42f6d6/data/apparmor/000077500000000000000000000000001523516304700176445ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/data/apparmor/abstractions/000077500000000000000000000000001523516304700223405ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/data/apparmor/abstractions/lightdm000066400000000000000000000070761523516304700237250ustar00rootroot00000000000000# 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, /{,usr/}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/mir_socket rw, /{,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, accept, receive, send) 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, ubuntu-lightdm-e42f6d6/data/apparmor/abstractions/lightdm_chromium-browser000066400000000000000000000063721523516304700273070ustar00rootroot00000000000000# 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, } ubuntu-lightdm-e42f6d6/data/apparmor/lightdm-guest-session.in000066400000000000000000000014361523516304700244360ustar00rootroot00000000000000# 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 # fcitx and friends needs special treatment due to C/S design /usr/bin/fcitx ix, /tmp/fcitx-socket-* rwl, /dev/shm/* rwl, /usr/bin/fcitx-qimpanel ix, /usr/bin/sogou-qimpanel-watchdog ix, /usr/bin/sogou-sys-notify ix, /tmp/sogou-qimpanel:* rwl, # Allow ibus unix (bind, listen) type=stream addr="@tmp/ibus/*", # mozc_server needs special treatment due to C/S design unix (bind, listen) type=stream addr="@tmp/.mozc.*", } ubuntu-lightdm-e42f6d6/data/bash-completion/000077500000000000000000000000001523516304700211075ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/data/bash-completion/dm-tool000066400000000000000000000017441523516304700224130ustar00rootroot00000000000000#-*- 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 ubuntu-lightdm-e42f6d6/data/bash-completion/lightdm000066400000000000000000000004011523516304700224550ustar00rootroot00000000000000#-*- 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 ubuntu-lightdm-e42f6d6/data/dm-tool.1000066400000000000000000000043211523516304700174600ustar00rootroot00000000000000.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 ENVIRONMENT .TP .B XDG_SEAT_PATH Used by dm-tool to determine in which display manager session it's running. When executing .B dm-tool outside of a display-manager use its .B list-seats command to show active sessions and set the session to connect to with: .B export XDG_SEAT_PATH=/org/freedesktop/DisplayManager/SeatX where .B SeatX is one of the listed sessions. . .SH SEE ALSO .BR lightdm (1) ubuntu-lightdm-e42f6d6/data/init/000077500000000000000000000000001523516304700167665ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/data/init/lightdm.conf000066400000000000000000000005021523516304700212620ustar00rootroot00000000000000# 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 ubuntu-lightdm-e42f6d6/data/keys.conf000066400000000000000000000000501523516304700176400ustar00rootroot00000000000000[keyring] #a=0x0123456789ABCD #b=secret ubuntu-lightdm-e42f6d6/data/lightdm.1000066400000000000000000000020031523516304700175300ustar00rootroot00000000000000.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) ubuntu-lightdm-e42f6d6/data/lightdm.conf000066400000000000000000000147531523516304700203340ustar00rootroot00000000000000# # 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 # dbus-service = True if LightDM provides a D-Bus service to control it # [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=true #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=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters #backup-logs=true #dbus-service=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 (local, xremote) # 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) # 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=local #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= #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) # hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset) # # 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= #hostname= # # 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=24 ubuntu-lightdm-e42f6d6/data/org.freedesktop.DisplayManager.AccountsService.policy.in000066400000000000000000000030301523516304700307440ustar00rootroot00000000000000 <_description>Set properties of own user <_message>Authentication is required to set one's own greeter properties. yes yes yes <_description>Set properties of any user <_message>Authentication is required to get another user's greeter properties. yes yes yes <_description>Set properties of any user <_message>Authentication is required to set another user's greeter properties. no no no ubuntu-lightdm-e42f6d6/data/org.freedesktop.DisplayManager.AccountsService.xml000066400000000000000000000021361523516304700276460ustar00rootroot00000000000000 ubuntu-lightdm-e42f6d6/data/org.freedesktop.DisplayManager.conf000066400000000000000000000023751523516304700247010ustar00rootroot00000000000000 ubuntu-lightdm-e42f6d6/data/pam/000077500000000000000000000000001523516304700166005ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/data/pam/lightdm000066400000000000000000000007601523516304700201560ustar00rootroot00000000000000#%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 ubuntu-lightdm-e42f6d6/data/pam/lightdm-autologin000066400000000000000000000011541523516304700221530ustar00rootroot00000000000000#%PAM-1.0 # Block login if shell in nologin or false auth required pam_succeed_if.so shell notin /sbin/nologin:/usr/sbin/nologin:/bin/false:/usr/bin/false # 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 ubuntu-lightdm-e42f6d6/data/pam/lightdm-greeter000066400000000000000000000006311523516304700216060ustar00rootroot00000000000000#%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 ubuntu-lightdm-e42f6d6/data/users.conf000066400000000000000000000007221523516304700200340ustar00rootroot00000000000000# # 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 /sbin/nologin ubuntu-lightdm-e42f6d6/debian/000077500000000000000000000000001523516304700163345ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/debian/50-disable-guest.conf000066400000000000000000000002301523516304700221500ustar00rootroot00000000000000# Disable guest sessions due to them not being confined in systemd # CVE-2017-8900 # https://bugs.launchpad.net/bugs/1663157 [Seat:*] allow-guest=false ubuntu-lightdm-e42f6d6/debian/50-disable-log-backup.conf000066400000000000000000000001141523516304700230460ustar00rootroot00000000000000[LightDM] # Disable log backup - we use logrotate instead backup-logs=false ubuntu-lightdm-e42f6d6/debian/50-greeter-wrapper.conf000066400000000000000000000001021523516304700225310ustar00rootroot00000000000000[Seat:*] greeter-wrapper=/usr/lib/lightdm/lightdm-greeter-session ubuntu-lightdm-e42f6d6/debian/50-guest-wrapper.conf000066400000000000000000000000761523516304700222350ustar00rootroot00000000000000[Seat:*] guest-wrapper=/usr/lib/lightdm/lightdm-guest-session ubuntu-lightdm-e42f6d6/debian/50-xserver-command.conf000066400000000000000000000000551523516304700225370ustar00rootroot00000000000000[Seat:*] # Dump core xserver-command=X -core ubuntu-lightdm-e42f6d6/debian/changelog000066400000000000000000003256661523516304700202300ustar00rootroot00000000000000lightdm (1.32.0-0ubuntu1) UNRELEASED; urgency=medium * New upstream release: - Overwrite existing X authority files to avoid corruption - Change logind-check-graphical default config value to true - Block autologin if shell in nologin or false - Fix failure if with greeters sending two login requests quickly. - Drop Qt 4 support, it's been unsupported since 2015 - Fix lightdm_set_layout - Improve method of determining a session is Wayland - Don't call setenv with a NULL value - the behaviour is undefined - Replace deprecated QAbstractItemModel::setRoleNames - Move D-Bus conf file to $(datadir)/dbus-1/system.d - Fix tests failing when compiled with --with-greeter-user - Use Python 3 in tests - Disable compiler optimizations for test programs - Compilation fix for glibc 2.33 - Remove deprecated use of G_TYPE_INSTANCE_GET_PRIVATE, G_PARAM_PRIVATE - Fix compile failure due to use of clearenv on FreeBSD - Use a size_t to resolve a compile warning - Fix DesktopManager typo in man page * debian/lightdm.install: - Update for new D-Bus config location -- Robert Ancell Tue, 09 Aug 2022 12:30:51 +1200 lightdm (1.30.0-0ubuntu1) eoan; urgency=medium * New upstream release: - Add lightdm_user_get_is_locked () - Hide users with shell /bin/false - Remove unity-system-compositor support (dead upstream) - Fix dm-tool crash - Update documentation * debian/control: * debian/copyright: - Update links to GitHub * debian/liblightdm-gobject-1-0.symbols: - Updated -- Robert Ancell Wed, 14 Aug 2019 14:18:58 +1200 lightdm (1.28.0-0ubuntu1) cosmic; urgency=medium * New upstream release: - Continue to shutdown session is removing X authority fails - Set XDG_SEAT env variable in script hooks - Fix small leak in XDMCP server - liblightdm-qt: mark class PowerInterface as exported - Fix one qt5 test being run instead of a qt4 one - Remove use of deprecated g_type_class_add_private - Modernize private data in objects - Document XDG_SEAT_PATH in man page - Fix install failing if link already exists - Remove bashisms in configure.ac -- Robert Ancell Thu, 30 Aug 2018 14:34:55 +1200 lightdm (1.26.0-0ubuntu2) cosmic; urgency=medium * Cherrypick upstream PR to add support for usr-merge in apparmor profile. LP: #1784023 -- Dimitri John Ledkov Tue, 21 Aug 2018 00:05:28 +0100 lightdm (1.26.0-0ubuntu1) bionic; urgency=medium * debian/control: - Drop obsolete gnome-common build-depends and use explicit depends instead -- Robert Ancell Thu, 22 Mar 2018 12:12:06 +1300 lightdm (1.25.2-0ubuntu1) bionic; urgency=medium * New upstream release: - Fix incorrect use of ConsoleKit CanSuspend/Hibernate API - Correctly install AccountsService interface file - Fix build system to require C99 - Use standard format for arguments passed to qtchooser * debian/lightdm.install: - Install AccountsService D-Bus extension files -- Robert Ancell Tue, 13 Feb 2018 16:33:14 +1300 lightdm (1.25.1-0ubuntu1) bionic; urgency=medium * New upstream release: - Fixes for VNC and XDMCP connections - Use AccountsService extension system for extended greeter information - Modernise code style -- Robert Ancell Thu, 18 Jan 2018 09:43:40 +1300 lightdm (1.25.0-0ubuntu1) bionic; urgency=medium * New upstream release: - Support moc being called moc-qt5 (e.g. Fedora) - Fail configure if MOC can't be found - Expose autologin-session as a hint to the greeter - Fix timed autologins not using autologin-session when no session specified * debian/control: - Use standards version 4.1.1 - Fix package sections - Fix introspection dependencies - Use recent debhelper * debian/liblightdm-gobject-1-0.symbols: * debian/liblightdm-qt-3-0.symbols: * debian/liblightdm-qt5-3-0.symbols: - Updated * debian/watch: - Update to use github for tarballs -- Robert Ancell Mon, 20 Nov 2017 15:38:13 +1300 lightdm (1.24.0-0ubuntu1) artful; urgency=medium * New upstream release: - No changes from 1.22 -- Robert Ancell Tue, 05 Sep 2017 10:42:34 +1200 lightdm (1.22.0-0ubuntu6) artful; urgency=medium * debian/lightdm.config: When upgrading to this version, don't show the DM selection prompt. We're trying to suppress the prompt and switch Ubuntu desktop users to gdm3 smoothly, but lightdm's prompt is showing up as gdm3 is on the system when lightdm.config is executed. This means that if there is a situation when upgraders to this version *should* be shown the prompt, they won't be. If that is the case, we'll need to think again about how to implement this. -- Iain Lane Tue, 18 Jul 2017 10:21:45 +0100 lightdm (1.22.0-0ubuntu5) artful; urgency=medium * Change back the default session to 'ubuntu', as it now corresponds to GNOME Shell one with our ubuntu changes. -- Didier Roche Tue, 20 Jun 2017 12:14:37 +0200 lightdm (1.22.0-0ubuntu4) artful; urgency=medium * SECURITY UPDATE: Guest session not confined (LP: #1663157) - debian/50-disable-guest.conf: - debian/lightdm.install: - Disable guest sessions by default, this can be overridden by custom configuration (e.g. /etc/lightdm/lightdm.conf) - CVE-2017-8900 -- Robert Ancell Mon, 19 Jun 2017 16:32:24 +1200 lightdm (1.22.0-0ubuntu3) artful; urgency=medium * Change the default session to `gnome' (Shell). -- Iain Lane Tue, 06 Jun 2017 18:40:05 +0100 lightdm (1.22.0-0ubuntu2) zesty; urgency=medium * SECURITY UPDATE: Directory traversal allowing arbitrary directory ownership and privilege escalation (LP: #1677924) - debian/guest-account.sh: Detect existing malicious guest user home dirs before proceeding with guest user creation - CVE-2017-7358 -- Robert Ancell Wed, 05 Apr 2017 10:34:32 +1200 lightdm (1.22.0-0ubuntu1) zesty; urgency=medium * Allow guest sessions to talk to Mir (allowing unity8) -- Robert Ancell Wed, 22 Mar 2017 09:46:38 +1300 lightdm (1.21.5-0ubuntu1) zesty; urgency=medium * New upstream release: - Fix logic that checked if a session was being stopped. This fixes a race condition that could cause logging into an existing session from a greeter to not return to that session. (LP: #1656399) -- Robert Ancell Wed, 22 Feb 2017 12:38:50 +1300 lightdm (1.21.4-0ubuntu1) zesty; urgency=medium * New upstream release: - Use power management functions from ConsoleKit2 if available. - Correctly pass return value from sessions to LightDM. - Retry VT_WAITACTIVE if we get EINTR. - Ignore SIGHUP by default. - Use SA_RESTART with SIGPIPE. - liblightdm-qt: Use liblightdm-gobject power methods instead of re-implementing in Qt. * debian/liblightdm-qt-3-0.symbols: * debian/liblightdm-qt5-3-0.symbols: - Add symbols files for C++ libraries -- Robert Ancell Mon, 13 Feb 2017 16:31:48 +1300 lightdm (1.21.3-0ubuntu1) zesty; urgency=medium * New upstream release: - Fix crashes introduced in 1.21.2 due to environment variable changes - Fix incorrect unref in XDMCP server code - Fix logging warning -- Robert Ancell Fri, 09 Dec 2016 14:04:49 +1300 lightdm (1.21.2-0ubuntu1) zesty; urgency=medium * New upstream release: - Use SA_RESTART on signals so we don't get interrupted reads (LP: #1648637) - Use logind to terminate greeter sessions if it is available - Load greeters from XDG_DATA_DIRS instead of compile time value - Allow D-Bus interface to be disabled - Always pass through LD_PRELOAD, LD_LIBRARY_PATH and PATH to sessions/display servers * debian/patches/terminate-session.patch: - Merged upstream -- Robert Ancell Fri, 09 Dec 2016 10:51:07 +1300 lightdm (1.21.1-0ubuntu2) zesty; urgency=medium Restore patch from 1.20.0-0ubuntu3: * Add debian/patches/terminate-session.patch: Terminate leftover processes in greeter session. It can happen that the greeter session does not properly clean up itself on logout. This causes leaked processes like settings-daemon which act on the user session as they share the same $DISPLAY. Ask logind to terminate remaining processes in the greeter session on closing, which is more robust than trying to fix every greeter. (LP: #1637758) -- Martin Pitt Tue, 22 Nov 2016 09:43:39 +0100 lightdm (1.21.1-0ubuntu1) zesty; urgency=medium * New upstream release: - Fix greeters crashing with unknown configuration keys (regression from 1.21.0) (LP: #1643276) - Add an API version to the greeter-daemon protocol for future enhancements - More regression tests -- Robert Ancell Wed, 23 Nov 2016 09:47:00 +1300 lightdm (1.21.0-0ubuntu1) zesty; urgency=medium * New upstream release: - Add liblightdm functions for getting OS release information and the message of the day. - Warn if we find unknown keys in configuration. - Fix .profile errors not showing in .xsession-errors log. (LP: #1639533) - Remove duplicate Qt property in liblightdm. - Fix and improve liblightdm API documentation. - Minor GIR annotation fixes. * debian/liblightdm-gobject-1-0.symbols: - Updated -- Robert Ancell Mon, 14 Nov 2016 11:40:20 +1300 lightdm (1.20.0-0ubuntu2) zesty; urgency=medium * debian/lightdm-greeter-session: Don't launch another session D-Bus if one is already running (usually from dbus-user-session). -- Martin Pitt Tue, 25 Oct 2016 21:35:30 +0200 lightdm (1.20.0-0ubuntu1) yakkety; urgency=medium * New upstream release: - Use stable version number (no other changes) -- Robert Ancell Sat, 15 Oct 2016 18:14:22 +1300 lightdm (1.19.5-0ubuntu1) yakkety; urgency=medium * New upstream release: - Fix errors in documentation generation - Improve documentation - Fix guest AppArmor profile to allow guest sessions more access to the upstart session socket (LP: #1627304) - Fix small memory leak in liblightdm-gobject keyboard layout code * debian/control: - Drop duplicate dependency on gobject-introspection - Alphabetically order dependencies * debian/guest-session-auto.sh: - Don't show guest session dialog in MATE (LP: #1627395) -- Robert Ancell Fri, 30 Sep 2016 14:56:00 +1300 lightdm (1.19.4-0ubuntu1) yakkety; urgency=medium * New upstream release: - Fix various issues in new in-session greeter code - Fix user list memory management exposed by use of in-session greeters - Fix some spurious warnings in the log -- Robert Ancell Fri, 12 Aug 2016 11:07:57 +1200 lightdm (1.19.3-0ubuntu1) yakkety; urgency=medium * New upstream release: - Fix in-session greeters not working for greeter logins * debian/control: - Use standards version 3.9.8 -- Robert Ancell Tue, 12 Jul 2016 10:10:41 +1200 lightdm (1.19.2-0ubuntu1) yakkety; urgency=medium * New upstream release: * Add support for greeters running inside sessions. This is enabled by setting X-LightDM-Allow-Greeter inside the session .desktop file. The session can then use liblightdm to connect one greeter to the daemon. The communication is done using a socket (/var/run/lightdm//greeter-socket) that is accessible to any process run by that user. Consider controlling access to this socket using a MAC system such as AppArmor. (LP: #1582242) * Report errors for all liblightdm methods. This will require existing greeters to update their API usage. The ABI is unchanged. * Handle EAGAIN correctly when daemons communicate with the daemon. * Drop support for mir-container sessions - no-one ever used these. * debian/liblightdm-gobject-1-0.symbols: - Updated -- Robert Ancell Wed, 29 Jun 2016 15:29:17 +1200 lightdm (1.19.1-0ubuntu1) yakkety; urgency=medium * New upstream release: * debian/lightdm.dirs: - Rename "xlocal" seat type to "local". Using "xlocal" will continue to work but report a warning. - Ensure user configuration directories /etc/lightdm/lightdm.conf.d and /etc/guest-session exist - Use MIR_SERVER_HOST_SOCKET instead of MIR_SOCKET to report compositor socket to sessions. This used to work but no longer works in Mir 0.21 (LP: #1583624) - Allow XMir to run on the xlocal seat using the new x-server-backend=mir option - Use only a single compositor on local seats (LP: #1594229) - Fix Mir greeter log filename having "(null)" in the name (LP: #1590582) - Copy fcitx/mozc rules so session works when these aren't installed (LP #1581187) - Revert lxsession change - it caused the AppArmor to fail to compile * debian/rules: - Revert dh_installinit change - we don't want to start LightDM on install (LP: #1581106) * debian/guest-account.sh: * debian/guest-session-setup.sh: - Source prefs.sh as privileged user to allow user modification (LP: #1581853) -- Robert Ancell Mon, 20 Jun 2016 16:18:36 +1200 lightdm (1.19.0-0ubuntu1) yakkety; urgency=medium * New upstream release: - Use /dev/tty0 instead of /dev/console for VT operations (LP: #1566073) - Don't quit on SIGUSR1, SIGUSR2 or SIGHUP (LP: #960157) - Improve XDMCP IPv6 address selection (LP: #1575200) - Set XDMCP hostname field in to system hostname or configured value (LP: #1578442) - Allow fcitx and mozc to run in guest session (LP: #1509829) - Fix lxsession running in guest session - Drop support for legacy XMir - Fix g_spawn compiler warning * debian/rules: - Fix usage of dh_installinit (LP: #1292990) -- Robert Ancell Thu, 05 May 2016 12:23:45 +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 running 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 * Switch 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 functionality * 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 information 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. - Environment 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 ubuntu-lightdm-e42f6d6/debian/compat000066400000000000000000000000021523516304700175320ustar00rootroot000000000000009 ubuntu-lightdm-e42f6d6/debian/config-error-dialog.sh000066400000000000000000000017701523516304700225260ustar00rootroot00000000000000# 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 $(fold -s $ERR) $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 --no-markup --text="$TEXT" fi ubuntu-lightdm-e42f6d6/debian/control000066400000000000000000000113601523516304700177400ustar00rootroot00000000000000Source: lightdm Section: x11 Maintainer: Joshua Peisach Uploaders: Robert Ancell , Julien Lavergne Standards-Version: 4.1.1 Build-Depends: autoconf, automake, dbus, debhelper (>= 9.20160709), dh-autoreconf, dh-translations, gobject-introspection, gtk-doc-tools, intltool (>= 0.35.0), libaudit-dev [linux-any], libtool, libgcrypt20-dev, libglib2.0-dev, libgtk-3-dev, libpam0g-dev, libxcb1-dev, libxdmcp-dev, libxklavier-dev, pkgconf, qtbase5-dev, qt6-base-dev, quilt, valac, yelp-tools Homepage: https://github.com/ubuntu/lightdm Vcs-Git: https://github.com/ubuntu/lightdm Vcs-Browser: https://github.com/ubuntu/lightdm Package: lightdm Architecture: any Pre-Depends: dpkg (>= 1.15.7.2), Depends: ${misc:Depends}, ${shlibs:Depends}, adduser, bash (>= 4.3), dbus, libglib2.0-bin, libpam-runtime (>= 0.76-14), libpam-modules Recommends: xserver-xorg, unity-greeter | lightdm-greeter | lightdm-kde-greeter, plymouth (>= 0.8.8-0ubuntu18) [linux-any] 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 Section: libs 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: introspection Architecture: any Multi-Arch: same Depends: ${misc:Depends}, ${gir: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-qt5-3-0 Section: libs 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-qt6-3-0 Section: libs Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends}, Recommends: lightdm, Description: LightDM Qt 6 client library A Qt 6 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}), gir1.2-lightdm-1 (= ${binary:Version}), libdbus-glib-1-dev, libglib2.0-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-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-qt6-3-dev Section: libdevel Architecture: any Multi-Arch: same Depends: ${misc:Depends}, liblightdm-qt6-3-0 (= ${binary:Version}), qt6-base-dev, Description: LightDM Qt 6 client library (development files) A Qt 6 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. ubuntu-lightdm-e42f6d6/debian/copyright000066400000000000000000000064231523516304700202740ustar00rootroot00000000000000Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=59 Name: LightDM Maintainer: Joshua Peisach Source: https://github.com/ubuntu/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+ Files: m4/qt-validate-moc.m4 Copyright: 2019-2024 Marko Lindqvist 2026 Joshua Peisach 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’. ubuntu-lightdm-e42f6d6/debian/gir1.2-lightdm-1.install000066400000000000000000000000461523516304700225120ustar00rootroot00000000000000debian/tmp/usr/lib/*/girepository-1.0 ubuntu-lightdm-e42f6d6/debian/guest-account.sh000066400000000000000000000150041523516304700214510ustar00rootroot00000000000000#!/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/} if [ "${GUEST_HOME}" != "${temp_home}" ]; then mkdir -m 700 "${GUEST_HOME}" || { echo "Failed to create ${GUEST_USER}'s home directory (${GUEST_HOME})" exit 1 } rmdir "${temp_home}" fi # 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 # setup session su ${GUEST_USER} -c "env HOME=${GUEST_HOME} site_gs=${site_gs} ${dist_gs}/setup.sh" # set possible local guest session preferences source_local_prefs() { local USER=${GUEST_USER} local HOME=${GUEST_HOME} . ${site_gs}/prefs.sh chown -R ${USER}:${USER} ${HOME} } if [ -f ${site_gs}/prefs.sh ]; then source_local_prefs fi 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 ubuntu-lightdm-e42f6d6/debian/guest-session-auto.sh000066400000000000000000000044261523516304700224540ustar00rootroot00000000000000#!/bin/sh # # Copyright (C) 2013-2016 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" } if [ ! -f "$HOME"/.skip-guest-warning-dialog ] && [ "$XDG_CURRENT_DESKTOP" != 'MATE' ]; then 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 fi # run possible local startup commands test -f /etc/guest-session/auto.sh && . /etc/guest-session/auto.sh ubuntu-lightdm-e42f6d6/debian/guest-session-setup.sh000066400000000000000000000025211523516304700226360ustar00rootroot00000000000000#!/bin/sh HOME=${HOME:-$(getent passwd $(whoami) | cut -f6 -d:)} # 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 # delay the launch of info dialog echo "export DIALOG_SLEEP=4" >> ${HOME}/.profile ubuntu-lightdm-e42f6d6/debian/guest-session-startup.desktop000066400000000000000000000002231523516304700242340ustar00rootroot00000000000000[Desktop Entry] Name=Custom startup commands for LightDM guest session Type=Application NoDisplay=true Exec=/usr/lib/lightdm/guest-session-auto.sh ubuntu-lightdm-e42f6d6/debian/liblightdm-gobject-1-0.install000066400000000000000000000000441523516304700237470ustar00rootroot00000000000000usr/lib/*/liblightdm-gobject-*.so.* ubuntu-lightdm-e42f6d6/debian/liblightdm-gobject-1-0.symbols000066400000000000000000000077671523516304700240140ustar00rootroot00000000000000liblightdm-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_motd@Base 1.21.0 lightdm_get_os_id@Base 1.21.0 lightdm_get_os_name@Base 1.21.0 lightdm_get_os_pretty_name@Base 1.21.0 lightdm_get_os_version@Base 1.21.0 lightdm_get_os_version_id@Base 1.21.0 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_error_get_type@Base 1.19.2 lightdm_greeter_error_quark@Base 1.19.2 lightdm_greeter_get_authentication_user@Base 0.9.2 lightdm_greeter_get_autologin_guest_hint@Base 0.9.2 lightdm_greeter_get_autologin_session_hint@Base 1.25.0 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_is_locked@Base 1.30.0 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 ubuntu-lightdm-e42f6d6/debian/liblightdm-gobject-1-dev.install000066400000000000000000000002401523516304700243640ustar00rootroot00000000000000usr/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 ubuntu-lightdm-e42f6d6/debian/liblightdm-gobject-1-doc.install000066400000000000000000000000511523516304700243530ustar00rootroot00000000000000usr/share/gtk-doc/html/lightdm-gobject-* ubuntu-lightdm-e42f6d6/debian/liblightdm-qt5-3-0.install000066400000000000000000000000401523516304700230410ustar00rootroot00000000000000usr/lib/*/liblightdm-qt5-*.so.* ubuntu-lightdm-e42f6d6/debian/liblightdm-qt5-3-0.symbols000066400000000000000000000157111523516304700230760ustar00rootroot00000000000000liblightdm-qt5-3.so.0 liblightdm-qt5-3-0 #MINVER# (c++|regex)"^.*::qt_metacall\(QMetaObject::Call, int, void[*][*]\)@Base$" 0 (c++|regex)"^.*::qt_metacast\(char const[*]\)@Base$" 0 (c++|regex)"^.*::staticMetaObject@Base$" 0 (c++|regex)"^.*::metaObject\(\) const@Base$" 0 (c++|regex)"^typeinfo for .*@Base$" 0 (c++|regex)"^typeinfo name for .*@Base$" 0 (c++|regex)"^vtable for .*@Base$" 0 (c++|optional)"QByteArray::~QByteArray()@Base" 0 (c++|optional)"QString::~QString()@Base" 0 (c++|optional)"QVector::~QVector()@Base" 0 (c++|optional)"QHash::deleteNode2(QHashData::Node*)@Base" 0 (c++|optional)"QHash::duplicateNode(QHashData::Node*, void*)@Base" 0 (c++|optional)"QHash::findNode(int const&, unsigned int) const@Base" 0 (c++|optional)"QHash::~QHash()@Base" 0 (c++|optional)"SessionItem::~SessionItem()@Base" 1.21.3 (c++|optional)"SessionsModelPrivate::loadSessions(QLightDM::SessionsModel::SessionType)@Base" 1.21.3 (c++|optional)"SessionsModelPrivate::SessionsModelPrivate(QLightDM::SessionsModel*)@Base" 1.21.3 (c++|optional)"QList::detach_helper_grow(int, int)@Base" 1.21.3 (c++|optional)"QList::append(SessionItem const&)@Base" 1.21.3 (c++|optional)"UserItem::displayName() const@Base" 1.21.3 (c++|optional)"UserItem::~UserItem()@Base" 1.21.3 (c++|optional)"QList::detach_helper(int)@Base" 1.21.3 (c++|optional)"QList::detach_helper_grow(int, int)@Base" 1.21.3 (c++|optional)"QList::append(UserItem const&)@Base" 1.21.3 (c++)"QLightDM::UsersModel::UsersModel(QObject*)@Base" 1.21.3 (c++)"QLightDM::UsersModel::~UsersModel()@Base" 1.21.3 (c++)"QLightDM::SessionsModel::SessionsModel(QLightDM::SessionsModel::SessionType, QObject*)@Base" 1.21.3 (c++)"QLightDM::SessionsModel::SessionsModel(QObject*)@Base" 1.21.3 (c++)"QLightDM::SessionsModel::SessionsModel(QLightDM::SessionsModel::SessionType, QObject*)@Base" 1.21.3 (c++)"QLightDM::SessionsModel::SessionsModel(QObject*)@Base" 1.21.3 (c++)"QLightDM::SessionsModel::~SessionsModel()@Base" 1.21.3 (c++)"QLightDM::GreeterPrivate::cb_showPrompt(_LightDMGreeter*, char const*, LightDMPromptType, void*)@Base" 1.21.3 (c++)"QLightDM::GreeterPrivate::cb_showMessage(_LightDMGreeter*, char const*, LightDMMessageType, void*)@Base" 1.21.3 (c++)"QLightDM::GreeterPrivate::cb_autoLoginExpired(_LightDMGreeter*, void*)@Base" 1.21.3 (c++)"QLightDM::GreeterPrivate::cb_authenticationComplete(_LightDMGreeter*, void*)@Base" 1.21.3 (c++)"QLightDM::GreeterPrivate::cb_idle(_LightDMGreeter*, void*)@Base" 1.21.3 (c++)"QLightDM::GreeterPrivate::cb_reset(_LightDMGreeter*, void*)@Base" 1.21.3 (c++)"QLightDM::GreeterPrivate::GreeterPrivate(QLightDM::Greeter*)@Base" 1.21.3 (c++)"QLightDM::PowerInterface::canRestart()@Base" 1.21.3 (c++)"QLightDM::PowerInterface::canSuspend()@Base" 1.21.3 (c++)"QLightDM::PowerInterface::canShutdown()@Base" 1.21.3 (c++)"QLightDM::PowerInterface::canHibernate()@Base" 1.21.3 (c++)"QLightDM::PowerInterface::PowerInterfacePrivate::PowerInterfacePrivate()@Base" 1.21.3 (c++)"QLightDM::PowerInterface::restart()@Base" 1.21.3 (c++)"QLightDM::PowerInterface::suspend()@Base" 1.21.3 (c++)"QLightDM::PowerInterface::shutdown()@Base" 1.21.3 (c++)"QLightDM::PowerInterface::hibernate()@Base" 1.21.3 (c++)"QLightDM::PowerInterface::PowerInterface(QObject*)@Base" 1.21.3 (c++)"QLightDM::PowerInterface::~PowerInterface()@Base" 1.21.3 (c++)"QLightDM::UsersModelPrivate::cb_userAdded(_LightDMUserList*, _LightDMUser*, void*)@Base" 1.21.3 (c++)"QLightDM::UsersModelPrivate::cb_userChanged(_LightDMUserList*, _LightDMUser*, void*)@Base" 1.21.3 (c++)"QLightDM::UsersModelPrivate::cb_userRemoved(_LightDMUserList*, _LightDMUser*, void*)@Base" 1.21.3 (c++)"QLightDM::UsersModelPrivate::loadUsers()@Base" 1.21.3 (c++)"QLightDM::UsersModelPrivate::UsersModelPrivate(QLightDM::UsersModel*)@Base" 1.21.3 (c++)"QLightDM::UsersModelPrivate::~UsersModelPrivate()@Base" 1.21.3 (c++)"QLightDM::Greeter::showPrompt(QString, QLightDM::Greeter::PromptType)@Base" 1.21.3 (c++)"QLightDM::Greeter::connectSync()@Base" 1.21.3 (c++)"QLightDM::Greeter::setLanguage(QString const&)@Base" 1.21.3 (c++)"QLightDM::Greeter::showMessage(QString, QLightDM::Greeter::MessageType)@Base" 1.21.3 (c++)"QLightDM::Greeter::authenticate(QString const&)@Base" 1.21.3 (c++)"QLightDM::Greeter::setResettable(bool)@Base" 1.21.3 (c++)"QLightDM::Greeter::cancelAutologin()@Base" 1.21.3 (c++)"QLightDM::Greeter::startSessionSync(QString const&)@Base" 1.21.3 (c++)"QLightDM::Greeter::authenticateRemote(QString const&, QString const&)@Base" 1.21.3 (c++)"QLightDM::Greeter::authenticateAsGuest()@Base" 1.21.3 (c++)"QLightDM::Greeter::connectToDaemonSync()@Base" 1.21.3 (c++)"QLightDM::Greeter::cancelAuthentication()@Base" 1.21.3 (c++)"QLightDM::Greeter::authenticateAutologin()@Base" 1.21.3 (c++)"QLightDM::Greeter::autologinTimerExpired()@Base" 1.21.3 (c++)"QLightDM::Greeter::authenticationComplete()@Base" 1.21.3 (c++)"QLightDM::Greeter::ensureSharedDataDirSync(QString const&)@Base" 1.21.3 (c++)"QLightDM::Greeter::idle()@Base" 1.21.3 (c++)"QLightDM::Greeter::reset()@Base" 1.21.3 (c++)"QLightDM::Greeter::respond(QString const&)@Base" 1.21.3 (c++)"QLightDM::Greeter::Greeter(QObject*)@Base" 1.21.3 (c++)"QLightDM::Greeter::~Greeter()@Base" 1.21.3 (c++)"QLightDM::UsersModel::data(QModelIndex const&, int) const@Base" 1.21.3 (c++)"QLightDM::UsersModel::rowCount(QModelIndex const&) const@Base" 1.21.3 (c++)"QLightDM::SessionsModel::data(QModelIndex const&, int) const@Base" 1.21.3 (c++)"QLightDM::SessionsModel::rowCount(QModelIndex const&) const@Base" 1.21.3 (c++)"QLightDM::Greeter::osVersionId() const@Base" 1.21.3 (c++)"QLightDM::Greeter::osPrettyName() const@Base" 1.21.3 (c++)"QLightDM::Greeter::hideUsersHint() const@Base" 1.21.3 (c++)"QLightDM::Greeter::selectUserHint() const@Base" 1.21.3 (c++)"QLightDM::Greeter::isAuthenticated() const@Base" 1.21.3 (c++)"QLightDM::Greeter::selectGuestHint() const@Base" 1.21.3 (c++)"QLightDM::Greeter::inAuthentication() const@Base" 1.21.3 (c++)"QLightDM::Greeter::autologinSessionHint() const@Base" 1.25.0 (c++)"QLightDM::Greeter::autologinUserHint() const@Base" 1.21.3 (c++)"QLightDM::Greeter::authenticationUser() const@Base" 1.21.3 (c++)"QLightDM::Greeter::autologinGuestHint() const@Base" 1.21.3 (c++)"QLightDM::Greeter::defaultSessionHint() const@Base" 1.21.3 (c++)"QLightDM::Greeter::hasGuestAccountHint() const@Base" 1.21.3 (c++)"QLightDM::Greeter::showManualLoginHint() const@Base" 1.21.3 (c++)"QLightDM::Greeter::showRemoteLoginHint() const@Base" 1.21.3 (c++)"QLightDM::Greeter::autologinTimeoutHint() const@Base" 1.21.3 (c++)"QLightDM::Greeter::motd() const@Base" 1.21.3 (c++)"QLightDM::Greeter::osId() const@Base" 1.21.3 (c++)"QLightDM::Greeter::osName() const@Base" 1.21.3 (c++)"QLightDM::Greeter::getHint(QString const&) const@Base" 1.21.3 (c++)"QLightDM::Greeter::hostname() const@Base" 1.21.3 (c++)"QLightDM::Greeter::lockHint() const@Base" 1.21.3 (c++)"QLightDM::Greeter::osVersion() const@Base" 1.21.3 ubuntu-lightdm-e42f6d6/debian/liblightdm-qt5-3-dev.install000066400000000000000000000001401523516304700234610ustar00rootroot00000000000000usr/include/lightdm-qt5-* usr/lib/*/pkgconfig/liblightdm-qt5-*.pc usr/lib/*/liblightdm-qt5-*.so ubuntu-lightdm-e42f6d6/debian/liblightdm-qt6-3-0.install000066400000000000000000000000401523516304700230420ustar00rootroot00000000000000usr/lib/*/liblightdm-qt6-*.so.* ubuntu-lightdm-e42f6d6/debian/liblightdm-qt6-3-0.symbols000066400000000000000000000341351523516304700231000ustar00rootroot00000000000000liblightdm-qt6-3.so.0 liblightdm-qt6-3-0 #MINVER# _ZN20SessionsModelPrivate12loadSessionsEN8QLightDM13SessionsModel11SessionTypeE@Base 1.33.0 _ZN20SessionsModelPrivateC1EPN8QLightDM13SessionsModelE@Base 1.33.0 _ZN20SessionsModelPrivateC2EPN8QLightDM13SessionsModelE@Base 1.33.0 _ZN8QLightDM10UsersModel11qt_metacallEN11QMetaObject4CallEiPPv@Base 1.33.0 _ZN8QLightDM10UsersModel11qt_metacastEPKc@Base 1.33.0 _ZN8QLightDM10UsersModel16staticMetaObjectE@Base 1.33.0 _ZN8QLightDM10UsersModelC1EP7QObject@Base 1.33.0 _ZN8QLightDM10UsersModelC2EP7QObject@Base 1.33.0 _ZN8QLightDM10UsersModelD0Ev@Base 1.33.0 _ZN8QLightDM10UsersModelD1Ev@Base 1.33.0 _ZN8QLightDM10UsersModelD2Ev@Base 1.33.0 _ZN8QLightDM13SessionsModel11qt_metacallEN11QMetaObject4CallEiPPv@Base 1.33.0 _ZN8QLightDM13SessionsModel11qt_metacastEPKc@Base 1.33.0 _ZN8QLightDM13SessionsModel16staticMetaObjectE@Base 1.33.0 _ZN8QLightDM13SessionsModelC1ENS0_11SessionTypeEP7QObject@Base 1.33.0 _ZN8QLightDM13SessionsModelC1EP7QObject@Base 1.33.0 _ZN8QLightDM13SessionsModelC2ENS0_11SessionTypeEP7QObject@Base 1.33.0 _ZN8QLightDM13SessionsModelC2EP7QObject@Base 1.33.0 _ZN8QLightDM13SessionsModelD0Ev@Base 1.33.0 _ZN8QLightDM13SessionsModelD1Ev@Base 1.33.0 _ZN8QLightDM13SessionsModelD2Ev@Base 1.33.0 _ZN8QLightDM14GreeterPrivate13cb_showPromptEP15_LightDMGreeterPKc17LightDMPromptTypePv@Base 1.33.0 _ZN8QLightDM14GreeterPrivate14cb_showMessageEP15_LightDMGreeterPKc18LightDMMessageTypePv@Base 1.33.0 _ZN8QLightDM14GreeterPrivate19cb_autoLoginExpiredEP15_LightDMGreeterPv@Base 1.33.0 _ZN8QLightDM14GreeterPrivate25cb_authenticationCompleteEP15_LightDMGreeterPv@Base 1.33.0 _ZN8QLightDM14GreeterPrivate7cb_idleEP15_LightDMGreeterPv@Base 1.33.0 _ZN8QLightDM14GreeterPrivate8cb_resetEP15_LightDMGreeterPv@Base 1.33.0 _ZN8QLightDM14GreeterPrivateC1EPNS_7GreeterE@Base 1.33.0 _ZN8QLightDM14GreeterPrivateC2EPNS_7GreeterE@Base 1.33.0 _ZN8QLightDM14PowerInterface10canRestartEv@Base 1.33.0 _ZN8QLightDM14PowerInterface10canSuspendEv@Base 1.33.0 _ZN8QLightDM14PowerInterface11canShutdownEv@Base 1.33.0 _ZN8QLightDM14PowerInterface11qt_metacallEN11QMetaObject4CallEiPPv@Base 1.33.0 _ZN8QLightDM14PowerInterface11qt_metacastEPKc@Base 1.33.0 _ZN8QLightDM14PowerInterface12canHibernateEv@Base 1.33.0 _ZN8QLightDM14PowerInterface16staticMetaObjectE@Base 1.33.0 _ZN8QLightDM14PowerInterface21PowerInterfacePrivateC1Ev@Base 1.33.0 _ZN8QLightDM14PowerInterface21PowerInterfacePrivateC2Ev@Base 1.33.0 _ZN8QLightDM14PowerInterface7restartEv@Base 1.33.0 _ZN8QLightDM14PowerInterface7suspendEv@Base 1.33.0 _ZN8QLightDM14PowerInterface8shutdownEv@Base 1.33.0 _ZN8QLightDM14PowerInterface9hibernateEv@Base 1.33.0 _ZN8QLightDM14PowerInterfaceC1EP7QObject@Base 1.33.0 _ZN8QLightDM14PowerInterfaceC2EP7QObject@Base 1.33.0 _ZN8QLightDM14PowerInterfaceD0Ev@Base 1.33.0 _ZN8QLightDM14PowerInterfaceD1Ev@Base 1.33.0 _ZN8QLightDM14PowerInterfaceD2Ev@Base 1.33.0 _ZN8QLightDM17UsersModelPrivate12cb_userAddedEP16_LightDMUserListP12_LightDMUserPv@Base 1.33.0 _ZN8QLightDM17UsersModelPrivate14cb_userChangedEP16_LightDMUserListP12_LightDMUserPv@Base 1.33.0 _ZN8QLightDM17UsersModelPrivate14cb_userRemovedEP16_LightDMUserListP12_LightDMUserPv@Base 1.33.0 _ZN8QLightDM17UsersModelPrivate9loadUsersEv@Base 1.33.0 _ZN8QLightDM17UsersModelPrivateC1EPNS_10UsersModelE@Base 1.33.0 _ZN8QLightDM17UsersModelPrivateC2EPNS_10UsersModelE@Base 1.33.0 _ZN8QLightDM17UsersModelPrivateD0Ev@Base 1.33.0 _ZN8QLightDM17UsersModelPrivateD1Ev@Base 1.33.0 _ZN8QLightDM17UsersModelPrivateD2Ev@Base 1.33.0 _ZN8QLightDM7Greeter10showPromptE7QStringNS0_10PromptTypeE@Base 1.33.0 _ZN8QLightDM7Greeter11connectSyncEv@Base 1.33.0 _ZN8QLightDM7Greeter11qt_metacallEN11QMetaObject4CallEiPPv@Base 1.33.0 _ZN8QLightDM7Greeter11qt_metacastEPKc@Base 1.33.0 _ZN8QLightDM7Greeter11setLanguageERK7QString@Base 1.33.0 _ZN8QLightDM7Greeter11showMessageE7QStringNS0_11MessageTypeE@Base 1.33.0 _ZN8QLightDM7Greeter12authenticateERK7QString@Base 1.33.0 _ZN8QLightDM7Greeter13setResettableEb@Base 1.33.0 _ZN8QLightDM7Greeter15cancelAutologinEv@Base 1.33.0 _ZN8QLightDM7Greeter16startSessionSyncERK7QString@Base 1.33.0 _ZN8QLightDM7Greeter16staticMetaObjectE@Base 1.33.0 _ZN8QLightDM7Greeter18authenticateRemoteERK7QStringS3_@Base 1.33.0 _ZN8QLightDM7Greeter19authenticateAsGuestEv@Base 1.33.0 _ZN8QLightDM7Greeter19connectToDaemonSyncEv@Base 1.33.0 _ZN8QLightDM7Greeter20cancelAuthenticationEv@Base 1.33.0 _ZN8QLightDM7Greeter21authenticateAutologinEv@Base 1.33.0 _ZN8QLightDM7Greeter21autologinTimerExpiredEv@Base 1.33.0 _ZN8QLightDM7Greeter22authenticationCompleteEv@Base 1.33.0 _ZN8QLightDM7Greeter23ensureSharedDataDirSyncERK7QString@Base 1.33.0 _ZN8QLightDM7Greeter4idleEv@Base 1.33.0 _ZN8QLightDM7Greeter5resetEv@Base 1.33.0 _ZN8QLightDM7Greeter7respondERK7QString@Base 1.33.0 _ZN8QLightDM7GreeterC1EP7QObject@Base 1.33.0 _ZN8QLightDM7GreeterC2EP7QObject@Base 1.33.0 _ZN8QLightDM7GreeterD0Ev@Base 1.33.0 _ZN8QLightDM7GreeterD1Ev@Base 1.33.0 _ZN8QLightDM7GreeterD2Ev@Base 1.33.0 _ZN9QtPrivate16QMetaTypeForTypeIN8QLightDM10UsersModel14UserModelRolesEE4nameE@Base 1.33.0 _ZN9QtPrivate16QMetaTypeForTypeIN8QLightDM10UsersModelEE4nameE@Base 1.33.0 _ZN9QtPrivate16QMetaTypeForTypeIN8QLightDM13SessionsModel11SessionTypeEE4nameE@Base 1.33.0 _ZN9QtPrivate16QMetaTypeForTypeIN8QLightDM13SessionsModel17SessionModelRolesEE4nameE@Base 1.33.0 _ZN9QtPrivate16QMetaTypeForTypeIN8QLightDM13SessionsModelEE4nameE@Base 1.33.0 _ZN9QtPrivate16QMetaTypeForTypeIN8QLightDM14PowerInterfaceEE4nameE@Base 1.33.0 _ZN9QtPrivate16QMetaTypeForTypeIN8QLightDM7Greeter10PromptTypeEE4nameE@Base 1.33.0 _ZN9QtPrivate16QMetaTypeForTypeIN8QLightDM7Greeter11MessageTypeEE4nameE@Base 1.33.0 _ZN9QtPrivate16QMetaTypeForTypeIN8QLightDM7GreeterEE4nameE@Base 1.33.0 _ZN9QtPrivate17MetaObjectForTypeIN8QLightDM10UsersModelEvE18metaObjectFunctionEPKNS_18QMetaTypeInterfaceE@Base 1.33.0 _ZN9QtPrivate17MetaObjectForTypeIN8QLightDM13SessionsModelEvE18metaObjectFunctionEPKNS_18QMetaTypeInterfaceE@Base 1.33.0 _ZN9QtPrivate17MetaObjectForTypeIN8QLightDM14PowerInterfaceEvE18metaObjectFunctionEPKNS_18QMetaTypeInterfaceE@Base 1.33.0 _ZN9QtPrivate17MetaObjectForTypeIN8QLightDM7GreeterEvE18metaObjectFunctionEPKNS_18QMetaTypeInterfaceE@Base 1.33.0 _ZN9QtPrivate24QEqualityOperatorForTypeIN8QLightDM10UsersModel14UserModelRolesELb1EE6equalsEPKNS_18QMetaTypeInterfaceEPKvS9_@Base 1.33.0 _ZN9QtPrivate24QEqualityOperatorForTypeIN8QLightDM13SessionsModel11SessionTypeELb1EE6equalsEPKNS_18QMetaTypeInterfaceEPKvS9_@Base 1.33.0 _ZN9QtPrivate24QEqualityOperatorForTypeIN8QLightDM13SessionsModel17SessionModelRolesELb1EE6equalsEPKNS_18QMetaTypeInterfaceEPKvS9_@Base 1.33.0 _ZN9QtPrivate24QEqualityOperatorForTypeIN8QLightDM7Greeter10PromptTypeELb1EE6equalsEPKNS_18QMetaTypeInterfaceEPKvS9_@Base 1.33.0 _ZN9QtPrivate24QEqualityOperatorForTypeIN8QLightDM7Greeter11MessageTypeELb1EE6equalsEPKNS_18QMetaTypeInterfaceEPKvS9_@Base 1.33.0 _ZN9QtPrivate24QLessThanOperatorForTypeIN8QLightDM10UsersModel14UserModelRolesELb1EE8lessThanEPKNS_18QMetaTypeInterfaceEPKvS9_@Base 1.33.0 _ZN9QtPrivate24QLessThanOperatorForTypeIN8QLightDM13SessionsModel11SessionTypeELb1EE8lessThanEPKNS_18QMetaTypeInterfaceEPKvS9_@Base 1.33.0 _ZN9QtPrivate24QLessThanOperatorForTypeIN8QLightDM13SessionsModel17SessionModelRolesELb1EE8lessThanEPKNS_18QMetaTypeInterfaceEPKvS9_@Base 1.33.0 _ZN9QtPrivate24QLessThanOperatorForTypeIN8QLightDM7Greeter10PromptTypeELb1EE8lessThanEPKNS_18QMetaTypeInterfaceEPKvS9_@Base 1.33.0 _ZN9QtPrivate24QLessThanOperatorForTypeIN8QLightDM7Greeter11MessageTypeELb1EE8lessThanEPKNS_18QMetaTypeInterfaceEPKvS9_@Base 1.33.0 _ZN9QtPrivate25QMetaTypeInterfaceWrapperIN8QLightDM10UsersModel14UserModelRolesEE8metaTypeE@Base 1.33.0 _ZN9QtPrivate25QMetaTypeInterfaceWrapperIN8QLightDM10UsersModelEE8metaTypeE@Base 1.33.0 _ZN9QtPrivate25QMetaTypeInterfaceWrapperIN8QLightDM13SessionsModel11SessionTypeEE8metaTypeE@Base 1.33.0 _ZN9QtPrivate25QMetaTypeInterfaceWrapperIN8QLightDM13SessionsModel17SessionModelRolesEE8metaTypeE@Base 1.33.0 _ZN9QtPrivate25QMetaTypeInterfaceWrapperIN8QLightDM13SessionsModelEE8metaTypeE@Base 1.33.0 _ZN9QtPrivate25QMetaTypeInterfaceWrapperIN8QLightDM14PowerInterfaceEE8metaTypeE@Base 1.33.0 _ZN9QtPrivate25QMetaTypeInterfaceWrapperIN8QLightDM7Greeter10PromptTypeEE8metaTypeE@Base 1.33.0 _ZN9QtPrivate25QMetaTypeInterfaceWrapperIN8QLightDM7Greeter11MessageTypeEE8metaTypeE@Base 1.33.0 _ZN9QtPrivate25QMetaTypeInterfaceWrapperIN8QLightDM7GreeterEE8metaTypeE@Base 1.33.0 _ZN9QtPrivate25QMetaTypeInterfaceWrapperIvE8metaTypeE@Base 1.33.0 _ZN9QtPrivate26QDataStreamOperatorForTypeIN8QLightDM10UsersModel14UserModelRolesELb1EE12dataStreamInEPKNS_18QMetaTypeInterfaceER11QDataStreamPv@Base 1.33.0 _ZN9QtPrivate26QDataStreamOperatorForTypeIN8QLightDM10UsersModel14UserModelRolesELb1EE13dataStreamOutEPKNS_18QMetaTypeInterfaceER11QDataStreamPKv@Base 1.33.0 _ZN9QtPrivate26QDataStreamOperatorForTypeIN8QLightDM13SessionsModel11SessionTypeELb1EE12dataStreamInEPKNS_18QMetaTypeInterfaceER11QDataStreamPv@Base 1.33.0 _ZN9QtPrivate26QDataStreamOperatorForTypeIN8QLightDM13SessionsModel11SessionTypeELb1EE13dataStreamOutEPKNS_18QMetaTypeInterfaceER11QDataStreamPKv@Base 1.33.0 _ZN9QtPrivate26QDataStreamOperatorForTypeIN8QLightDM13SessionsModel17SessionModelRolesELb1EE12dataStreamInEPKNS_18QMetaTypeInterfaceER11QDataStreamPv@Base 1.33.0 _ZN9QtPrivate26QDataStreamOperatorForTypeIN8QLightDM13SessionsModel17SessionModelRolesELb1EE13dataStreamOutEPKNS_18QMetaTypeInterfaceER11QDataStreamPKv@Base 1.33.0 _ZN9QtPrivate26QDataStreamOperatorForTypeIN8QLightDM7Greeter10PromptTypeELb1EE12dataStreamInEPKNS_18QMetaTypeInterfaceER11QDataStreamPv@Base 1.33.0 _ZN9QtPrivate26QDataStreamOperatorForTypeIN8QLightDM7Greeter10PromptTypeELb1EE13dataStreamOutEPKNS_18QMetaTypeInterfaceER11QDataStreamPKv@Base 1.33.0 _ZN9QtPrivate26QDataStreamOperatorForTypeIN8QLightDM7Greeter11MessageTypeELb1EE12dataStreamInEPKNS_18QMetaTypeInterfaceER11QDataStreamPv@Base 1.33.0 _ZN9QtPrivate26QDataStreamOperatorForTypeIN8QLightDM7Greeter11MessageTypeELb1EE13dataStreamOutEPKNS_18QMetaTypeInterfaceER11QDataStreamPKv@Base 1.33.0 _ZN9QtPrivate27QDebugStreamOperatorForTypeIN8QLightDM10UsersModel14UserModelRolesELb1EE11debugStreamEPKNS_18QMetaTypeInterfaceER6QDebugPKv@Base 1.33.0 _ZN9QtPrivate27QDebugStreamOperatorForTypeIN8QLightDM13SessionsModel11SessionTypeELb1EE11debugStreamEPKNS_18QMetaTypeInterfaceER6QDebugPKv@Base 1.33.0 _ZN9QtPrivate27QDebugStreamOperatorForTypeIN8QLightDM13SessionsModel17SessionModelRolesELb1EE11debugStreamEPKNS_18QMetaTypeInterfaceER6QDebugPKv@Base 1.33.0 _ZN9QtPrivate27QDebugStreamOperatorForTypeIN8QLightDM7Greeter10PromptTypeELb1EE11debugStreamEPKNS_18QMetaTypeInterfaceER6QDebugPKv@Base 1.33.0 _ZN9QtPrivate27QDebugStreamOperatorForTypeIN8QLightDM7Greeter11MessageTypeELb1EE11debugStreamEPKNS_18QMetaTypeInterfaceER6QDebugPKv@Base 1.33.0 _ZNK8QLightDM10UsersModel10metaObjectEv@Base 1.33.0 _ZNK8QLightDM10UsersModel4dataERK11QModelIndexi@Base 1.33.0 _ZNK8QLightDM10UsersModel8rowCountERK11QModelIndex@Base 1.33.0 _ZNK8QLightDM10UsersModel9roleNamesEv@Base 1.33.0 _ZNK8QLightDM13SessionsModel10metaObjectEv@Base 1.33.0 _ZNK8QLightDM13SessionsModel4dataERK11QModelIndexi@Base 1.33.0 _ZNK8QLightDM13SessionsModel8rowCountERK11QModelIndex@Base 1.33.0 _ZNK8QLightDM13SessionsModel9roleNamesEv@Base 1.33.0 _ZNK8QLightDM14PowerInterface10metaObjectEv@Base 1.33.0 _ZNK8QLightDM7Greeter10metaObjectEv@Base 1.33.0 _ZNK8QLightDM7Greeter11osVersionIdEv@Base 1.33.0 _ZNK8QLightDM7Greeter12osPrettyNameEv@Base 1.33.0 _ZNK8QLightDM7Greeter13hideUsersHintEv@Base 1.33.0 _ZNK8QLightDM7Greeter14selectUserHintEv@Base 1.33.0 _ZNK8QLightDM7Greeter15isAuthenticatedEv@Base 1.33.0 _ZNK8QLightDM7Greeter15selectGuestHintEv@Base 1.33.0 _ZNK8QLightDM7Greeter16inAuthenticationEv@Base 1.33.0 _ZNK8QLightDM7Greeter17autologinUserHintEv@Base 1.33.0 _ZNK8QLightDM7Greeter18authenticationUserEv@Base 1.33.0 _ZNK8QLightDM7Greeter18autologinGuestHintEv@Base 1.33.0 _ZNK8QLightDM7Greeter18defaultSessionHintEv@Base 1.33.0 _ZNK8QLightDM7Greeter19hasGuestAccountHintEv@Base 1.33.0 _ZNK8QLightDM7Greeter19showManualLoginHintEv@Base 1.33.0 _ZNK8QLightDM7Greeter19showRemoteLoginHintEv@Base 1.33.0 _ZNK8QLightDM7Greeter20autologinSessionHintEv@Base 1.33.0 _ZNK8QLightDM7Greeter20autologinTimeoutHintEv@Base 1.33.0 _ZNK8QLightDM7Greeter4motdEv@Base 1.33.0 _ZNK8QLightDM7Greeter4osIdEv@Base 1.33.0 _ZNK8QLightDM7Greeter6osNameEv@Base 1.33.0 _ZNK8QLightDM7Greeter7getHintERK7QString@Base 1.33.0 _ZNK8QLightDM7Greeter8hostnameEv@Base 1.33.0 _ZNK8QLightDM7Greeter8lockHintEv@Base 1.33.0 _ZNK8QLightDM7Greeter9osVersionEv@Base 1.33.0 _ZNK8UserItem11displayNameEv@Base 1.33.0 _ZTIN8QLightDM10UsersModelE@Base 1.33.0 _ZTIN8QLightDM13SessionsModelE@Base 1.33.0 _ZTIN8QLightDM14PowerInterfaceE@Base 1.33.0 _ZTIN8QLightDM17UsersModelPrivateE@Base 1.33.0 _ZTIN8QLightDM7GreeterE@Base 1.33.0 _ZTSN8QLightDM10UsersModelE@Base 1.33.0 _ZTSN8QLightDM13SessionsModelE@Base 1.33.0 _ZTSN8QLightDM14PowerInterfaceE@Base 1.33.0 _ZTSN8QLightDM17UsersModelPrivateE@Base 1.33.0 _ZTSN8QLightDM7GreeterE@Base 1.33.0 _ZTVN8QLightDM10UsersModelE@Base 1.33.0 _ZTVN8QLightDM13SessionsModelE@Base 1.33.0 _ZTVN8QLightDM14PowerInterfaceE@Base 1.33.0 _ZTVN8QLightDM17UsersModelPrivateE@Base 1.33.0 _ZTVN8QLightDM7GreeterE@Base 1.33.0 _ZZN9QtPrivate16QMetaTypeForTypeIN8QLightDM10UsersModelEE13getDefaultCtrEvENUlPKNS_18QMetaTypeInterfaceEPvE_4_FUNES6_S7_@Base 1.33.0 _ZZN9QtPrivate16QMetaTypeForTypeIN8QLightDM10UsersModelEE7getDtorEvENUlPKNS_18QMetaTypeInterfaceEPvE_4_FUNES6_S7_@Base 1.33.0 _ZZN9QtPrivate16QMetaTypeForTypeIN8QLightDM13SessionsModelEE13getDefaultCtrEvENUlPKNS_18QMetaTypeInterfaceEPvE_4_FUNES6_S7_@Base 1.33.0 _ZZN9QtPrivate16QMetaTypeForTypeIN8QLightDM13SessionsModelEE7getDtorEvENUlPKNS_18QMetaTypeInterfaceEPvE_4_FUNES6_S7_@Base 1.33.0 _ZZN9QtPrivate16QMetaTypeForTypeIN8QLightDM14PowerInterfaceEE13getDefaultCtrEvENUlPKNS_18QMetaTypeInterfaceEPvE_4_FUNES6_S7_@Base 1.33.0 _ZZN9QtPrivate16QMetaTypeForTypeIN8QLightDM14PowerInterfaceEE7getDtorEvENUlPKNS_18QMetaTypeInterfaceEPvE_4_FUNES6_S7_@Base 1.33.0 _ZZN9QtPrivate16QMetaTypeForTypeIN8QLightDM7GreeterEE13getDefaultCtrEvENUlPKNS_18QMetaTypeInterfaceEPvE_4_FUNES6_S7_@Base 1.33.0 _ZZN9QtPrivate16QMetaTypeForTypeIN8QLightDM7GreeterEE7getDtorEvENUlPKNS_18QMetaTypeInterfaceEPvE_4_FUNES6_S7_@Base 1.33.0 ubuntu-lightdm-e42f6d6/debian/liblightdm-qt6-3-dev.install000066400000000000000000000001401523516304700234620ustar00rootroot00000000000000usr/include/lightdm-qt6-* usr/lib/*/pkgconfig/liblightdm-qt6-*.pc usr/lib/*/liblightdm-qt6-*.so ubuntu-lightdm-e42f6d6/debian/lightdm-failure-handler.service000066400000000000000000000005061523516304700244070ustar00rootroot00000000000000[Unit] Description=Handle LightDM failure [Service] Type=oneshot ExecStart=/bin/mv /etc/issue /etc/issue.restore; /bin/sh -c 'echo -e "LightDM has failed to start. You are now in a TTY for troubleshooting...\nYou can log in and check for details in logs." > /etc/issue; /usr/bin/chvt 4' [Install] WantedBy=multi-user.target ubuntu-lightdm-e42f6d6/debian/lightdm-greeter-session000066400000000000000000000016731523516304700230320ustar00rootroot00000000000000#!/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 } [ -n "$DBUS_SESSION_BUS_ADDRESS" ] || eval `dbus-launch --sh-syntax` exec $@ & CMD_PID=$! wait $CMD_PID CMD_PID= ubuntu-lightdm-e42f6d6/debian/lightdm-session000066400000000000000000000056461523516304700214030ustar00rootroot00000000000000#!/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" >&2 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 $@ ubuntu-lightdm-e42f6d6/debian/lightdm-success-handler.service000066400000000000000000000005171523516304700244320ustar00rootroot00000000000000[Unit] Description=Reset /etc/issue after LightDM starts successfully Requires=lightdm.service After=lightdm.service [Service] Type=oneshot ExecStart=/bin/sh -c 'test -f /etc/issue.restore && mv /etc/issue.restore /etc/issue || echo "File /etc/issue.restore not found. No restore action needed."' [Install] WantedBy=graphical.target ubuntu-lightdm-e42f6d6/debian/lightdm.config000066400000000000000000000043141523516304700211550ustar00rootroot00000000000000#!/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 # GDM transition: When upgrading from an old version, don't ask the question. 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 elif ! dpkg --compare-versions "$2" lt-nl "1.22.0-0ubuntu6~"; then 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 ubuntu-lightdm-e42f6d6/debian/lightdm.dirs000066400000000000000000000001621523516304700206460ustar00rootroot00000000000000/etc/guest-session /etc/lightdm/lightdm.conf.d /etc/X11 /var/cache/lightdm /var/lib/lightdm-data /var/log/lightdm ubuntu-lightdm-e42f6d6/debian/lightdm.init000066400000000000000000000065471523516304700206650ustar00rootroot00000000000000#!/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 ubuntu-lightdm-e42f6d6/debian/lightdm.install000066400000000000000000000016401523516304700213550ustar00rootroot00000000000000usr/sbin/lightdm usr/share/accountsservice usr/share/bash-completion usr/share/dbus-1 usr/share/man usr/share/locale usr/share/polkit-1 usr/lib/lightdm usr/bin 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 debian/50-disable-guest.conf usr/share/lightdm/lightdm.conf.d ubuntu-lightdm-e42f6d6/debian/lightdm.lightdm-autologin.pam000066400000000000000000000010471523516304700241130ustar00rootroot00000000000000#%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 ubuntu-lightdm-e42f6d6/debian/lightdm.lightdm-greeter.pam000066400000000000000000000013351523516304700235470ustar00rootroot00000000000000#%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 ubuntu-lightdm-e42f6d6/debian/lightdm.logrotate000066400000000000000000000001751523516304700217110ustar00rootroot00000000000000/var/log/lightdm/*.log { daily missingok rotate 7 compress notifempty maxsize 10M copytruncate } ubuntu-lightdm-e42f6d6/debian/lightdm.maintscript000066400000000000000000000003531523516304700222440ustar00rootroot00000000000000rm_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 ubuntu-lightdm-e42f6d6/debian/lightdm.pam000066400000000000000000000015721523516304700204700ustar00rootroot00000000000000#%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 ubuntu-lightdm-e42f6d6/debian/lightdm.postinst000066400000000000000000000066131523516304700215770ustar00rootroot00000000000000#!/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 ubuntu-lightdm-e42f6d6/debian/lightdm.postrm000066400000000000000000000011131523516304700212260ustar00rootroot00000000000000#!/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 ubuntu-lightdm-e42f6d6/debian/lightdm.preinst000066400000000000000000000003311523516304700213670ustar00rootroot00000000000000#!/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# ubuntu-lightdm-e42f6d6/debian/lightdm.prerm000066400000000000000000000037021523516304700210350ustar00rootroot00000000000000#!/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 ubuntu-lightdm-e42f6d6/debian/lightdm.service000066400000000000000000000011701523516304700213450ustar00rootroot00000000000000[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 systemd-hostnamed.service StartLimitIntervalSec=60s StartLimitBurst=5 OnFailure=lightdm-failure-handler.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 RestartSec=5s BusName=org.freedesktop.DisplayManager ubuntu-lightdm-e42f6d6/debian/lightdm.templates000066400000000000000000000020761523516304700217110ustar00rootroot00000000000000# 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. ubuntu-lightdm-e42f6d6/debian/lightdm.upstart000066400000000000000000000026441523516304700214160ustar00rootroot00000000000000# 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 ubuntu-lightdm-e42f6d6/debian/patches/000077500000000000000000000000001523516304700177635ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/debian/patches/04_language_handling.patch000066400000000000000000000056441523516304700247470ustar00rootroot00000000000000Description: Adjustments due to handling of languages Forwarded: not-needed Author: Gunnar Hjalmarsson Index: lightdm/liblightdm-gobject/language.c =================================================================== --- lightdm.orig/liblightdm-gobject/language.c +++ lightdm/liblightdm-gobject/language.c @@ -63,7 +63,7 @@ update_languages (void) if (have_languages) return; - const gchar *command = "locale -a"; + const gchar *command = "/usr/share/language-tools/language-options"; g_autofree gchar *stdout_text = NULL; g_autofree gchar *stderr_text = NULL; gint exit_status; @@ -150,14 +150,30 @@ get_locale_name (const gchar *code) LightDMLanguage * lightdm_get_language (void) { - const gchar *lang = g_getenv ("LANG"); - if (!lang) - return NULL; + static const gchar *short_lang = NULL; + if (!short_lang) + { + const gchar *lang = g_getenv ("LANG"); + if (!lang) + return NULL; + + /* Convert to a short form language code */ + g_autofree gchar *command = g_strconcat ("/usr/share/language-tools/language-validate ", lang, NULL); + g_autofree gchar *out = NULL; + g_autoptr(GError) error = NULL; + if (g_spawn_command_line_sync (command, &out, NULL, NULL, &error)) + short_lang = g_strdup (g_strchomp (out)); + else + { + g_warning ("Failed to run '%s': %s", command, error->message); + return NULL; + } + } for (GList *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: lightdm/tests/scripts/language-env.conf =================================================================== --- lightdm.orig/tests/scripts/language-env.conf +++ lightdm/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: lightdm/src/seat.c =================================================================== --- lightdm.orig/src/seat.c +++ lightdm/src/seat.c @@ -987,7 +987,10 @@ configure_session (Session *session, Se } if (language && language[0] != '\0') { - session_set_env (session, "LANG", language); + /* Only set LANGUAGE if not in a live session + https://launchpad.net/bugs/1861481 */ + if (system ("df | grep -q ^/cow") != 0) + session_set_env (session, "LANGUAGE", language); session_set_env (session, "GDM_LANG", language); } } ubuntu-lightdm-e42f6d6/debian/patches/05_translate_debian_files.patch000066400000000000000000000012271523516304700257730ustar00rootroot00000000000000Description: 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,6 +1,9 @@ # 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 data/org.freedesktop.DisplayManager.AccountsService.policy.in src/lightdm.c src/dm-tool.c ubuntu-lightdm-e42f6d6/debian/patches/autologin-session-workaround.patch000066400000000000000000000017121523516304700266600ustar00rootroot00000000000000Description: Workaround faulty setting from Ubuntu user-setup package Author: Robert Ancell Bug: https://bugs.launchpad.net/bugs/1484083 Index: lightdm/src/seat.c =================================================================== --- lightdm.orig/src/seat.c +++ lightdm/src/seat.c @@ -1011,7 +1011,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; } ubuntu-lightdm-e42f6d6/debian/patches/series000066400000000000000000000001361523516304700212000ustar00rootroot0000000000000004_language_handling.patch 05_translate_debian_files.patch autologin-session-workaround.patch ubuntu-lightdm-e42f6d6/debian/po/000077500000000000000000000000001523516304700167525ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/debian/po/POTFILES.in000066400000000000000000000000541523516304700205260ustar00rootroot00000000000000[type: gettext/rfc822deb] lightdm.templates ubuntu-lightdm-e42f6d6/debian/po/af.po000066400000000000000000000030611523516304700177000ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/am.po000066400000000000000000000030551523516304700177120ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/an.po000066400000000000000000000030611523516304700177100ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/ar.po000066400000000000000000000053601523516304700177200ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "تعليق" ubuntu-lightdm-e42f6d6/debian/po/ast.po000066400000000000000000000043421523516304700201040ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/az.po000066400000000000000000000030651523516304700177300ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/be.po000066400000000000000000000030631523516304700177020ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/bg.po000066400000000000000000000073171523516304700177120ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "Приспиване" ubuntu-lightdm-e42f6d6/debian/po/bn.po000066400000000000000000000051741523516304700177200ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "বন্ধ করুন" ubuntu-lightdm-e42f6d6/debian/po/bo.po000066400000000000000000000030551523516304700177150ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/br.po000066400000000000000000000030761523516304700177230ustar00rootroot00000000000000# 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: 2016-11-02 13:54+0000\n" "Last-Translator: Denis \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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Ardoer skrammañ dre ziouer :" #. 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 "" ubuntu-lightdm-e42f6d6/debian/po/bs.po000066400000000000000000000044321523516304700177210ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/ca.po000066400000000000000000000057361523516304700177100ustar00rootroot00000000000000# 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: 2017-03-24 06:56+0000\n" "Last-Translator: Walter Garcia-Fontes \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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Gestor de pantalla predeterminat:" #. 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 pantalla és un programa que proveeix la capacitat d'iniciar una " "sessió gràficament al Sistema de Finestres 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 "" "Només un gestor de pantalla pot gestionar un servidor X donat, però estan " "instal·lats múltiples paquets de gestió de pantalles. Si us plau, " "seleccioneu quin gestor de pantalla s'ha d'executar per defecte." #. 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últiples gestors de pantalla es poden executar simultàniament si estan " "configurats per gestionar servidors diferents; per aconseguir això, " "configureu els gestors de pantalla en la forma corresponent, editeu cada un " "dels seus scripts d'inici a /etc/init.d i inhabiliteu la comprovació per un " "gestor de pantalla predeterminat." #~ 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" ubuntu-lightdm-e42f6d6/debian/po/ca@valencia.po000066400000000000000000000044261523516304700215060ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/ce.po000066400000000000000000000030551523516304700177040ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/ckb.po000066400000000000000000000031001523516304700200430ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/co.po000066400000000000000000000030571523516304700177200ustar00rootroot00000000000000# Corsican 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-05-24 10:53+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Corsican \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/cs.po000066400000000000000000000054641523516304700177300ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/cy.po000066400000000000000000000030511523516304700177240ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/da.po000066400000000000000000000055321523516304700177030ustar00rootroot00000000000000# 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: 2017-03-07 03:55+0000\n" "Last-Translator: scootergrisen \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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Standard-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 "" "En display manager er et program som giver mulighed for et grafisk login til " "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 "" "Kun én display manager kan håndtere en given X-server, men der er " "installeret flere display manager-pakker. Vælg venligst hvilken display " "manager som skal køres 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 display managere kan køre på samme tid hvis de er konfigureret til at " "håndtere forskellige servere. For at opnå dette skal du konfigurere display " "managerne i overensstemmelse hermed, redigere hver af deres skripter i " "/etc/init.d og deaktivere tjek af standard-display manager." #~ 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" ubuntu-lightdm-e42f6d6/debian/po/de.po000066400000000000000000000060501523516304700177030ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 …" ubuntu-lightdm-e42f6d6/debian/po/el.po000066400000000000000000000050701523516304700177140ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" #~ "Είστε βέβαιοι ότι θέλετε να κλείσετε όλα τα προγράμματα και να " #~ "επανεκκινήσετε τον υπολογιστή;" ubuntu-lightdm-e42f6d6/debian/po/en_AU.po000066400000000000000000000044051523516304700203040ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/en_CA.po000066400000000000000000000031021523516304700202530ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/en_GB.po000066400000000000000000000055041523516304700202700ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/eo.po000066400000000000000000000043761523516304700177270ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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..." ubuntu-lightdm-e42f6d6/debian/po/es.po000066400000000000000000000055021523516304700177230ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/et.po000066400000000000000000000043731523516304700177310ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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..." ubuntu-lightdm-e42f6d6/debian/po/eu.po000066400000000000000000000043431523516304700177270ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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?" ubuntu-lightdm-e42f6d6/debian/po/fa.po000066400000000000000000000030551523516304700177030ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/fi.po000066400000000000000000000056521523516304700177200ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/fo.po000066400000000000000000000030551523516304700177210ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/fr.po000066400000000000000000000060021523516304700177170ustar00rootroot00000000000000# 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: Anne017 \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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/fr_CA.po000066400000000000000000000031001523516304700202560ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/fy.po000066400000000000000000000030551523516304700177330ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/ga.po000066400000000000000000000030511523516304700177000ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/gd.po000066400000000000000000000044111523516304700177040ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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?" ubuntu-lightdm-e42f6d6/debian/po/gl.po000066400000000000000000000043641523516304700177230ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/gu.po000066400000000000000000000030571523516304700177320ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/he.po000066400000000000000000000044741523516304700177170ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "השהיה" ubuntu-lightdm-e42f6d6/debian/po/hi.po000066400000000000000000000041771523516304700177230ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "फिर से चालू करें" ubuntu-lightdm-e42f6d6/debian/po/hr.po000066400000000000000000000056221523516304700177300ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/ht.po000066400000000000000000000031151523516304700177250ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/hu.po000066400000000000000000000045011523516304700177260ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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?" ubuntu-lightdm-e42f6d6/debian/po/hy.po000066400000000000000000000030571523516304700177370ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/ia.po000066400000000000000000000037571523516304700177170ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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..." ubuntu-lightdm-e42f6d6/debian/po/id.po000066400000000000000000000042561523516304700177150ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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..." ubuntu-lightdm-e42f6d6/debian/po/is.po000066400000000000000000000030621523516304700177260ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/it.po000066400000000000000000000043121523516304700177260ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/ja.po000066400000000000000000000045351523516304700177130ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "ハイバネート" ubuntu-lightdm-e42f6d6/debian/po/jv.po000066400000000000000000000030571523516304700177360ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/kk.po000066400000000000000000000070041523516304700177200ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "Қайта жүктеу..." ubuntu-lightdm-e42f6d6/debian/po/kl.po000066400000000000000000000031211523516304700177150ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/km.po000066400000000000000000000030511523516304700177200ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/kn.po000066400000000000000000000030551523516304700177250ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/ko.po000066400000000000000000000041221523516304700177220ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "절전모드" ubuntu-lightdm-e42f6d6/debian/po/ku.po000066400000000000000000000043561523516304700177410ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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î?" ubuntu-lightdm-e42f6d6/debian/po/lb.po000066400000000000000000000044711523516304700177150ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/ln.po000066400000000000000000000030551523516304700177260ustar00rootroot00000000000000# Lingala 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-10-01 16:54+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Lingala \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/lo.po000066400000000000000000000030451523516304700177260ustar00rootroot00000000000000# Lao 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-12-31 07:00+0000\n" "Last-Translator: FULL NAME \n" "Language-Team: Lao \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Launchpad-Export-Date: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/lt.po000066400000000000000000000055661523516304700177450ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/lv.po000066400000000000000000000030551523516304700177360ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/mhr.po000066400000000000000000000030721523516304700201020ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/mi.po000066400000000000000000000030511523516304700177160ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/ml.po000066400000000000000000000042001523516304700177160ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "ശിശിര നിദ്ര" ubuntu-lightdm-e42f6d6/debian/po/mr.po000066400000000000000000000030551523516304700177330ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/ms.po000066400000000000000000000043041523516304700177320ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/my.po000066400000000000000000000030551523516304700177420ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/nb.po000066400000000000000000000055631523516304700177220ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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?" ubuntu-lightdm-e42f6d6/debian/po/ne.po000066400000000000000000000030531523516304700177150ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/nl.po000066400000000000000000000057001523516304700177250ustar00rootroot00000000000000# 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: 2016-05-04 08:24+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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Standaardaanmeldbeheerder:" #. 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 aanmeldbeheerder 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 aanmeldbeheerder kan een bepaalde X-server beheren, maar er zijn " "meerdere aanmeldbeheerderpakketten geïnstalleerd. Kies a.u.b. welke " "aanmeldbeheerder 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 aanmeldbeheerders gelijktijdig draaien indien zij zijn " "ingesteld om verschillende servers te beheren; om dit te bereiken kunt u de " "aanmeldbeheerders dienovereenkomstig instellen, elk van hun init-scripts " "bewerken in /etc/init.d, en de controle uitschakelen op de aanwezigheid van " "een standaardaanmeldbeheerder." #~ 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..." ubuntu-lightdm-e42f6d6/debian/po/nn.po000066400000000000000000000031011523516304700177200ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/oc.po000066400000000000000000000031051523516304700177120ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/pa.po000066400000000000000000000030551523516304700177150ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/pl.po000066400000000000000000000044441523516304700177330ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/pothead.in000066400000000000000000000017471523516304700207370ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/debian/po/pt.po000066400000000000000000000056761523516304700177530ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/pt_BR.po000066400000000000000000000044531523516304700203260ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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…" ubuntu-lightdm-e42f6d6/debian/po/ro.po000066400000000000000000000044521523516304700177370ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/ru.po000066400000000000000000000047331523516304700177470ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "Выключить..." ubuntu-lightdm-e42f6d6/debian/po/sc.po000066400000000000000000000030611523516304700177170ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/sd.po000066400000000000000000000030531523516304700177210ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/shn.po000066400000000000000000000030501523516304700201000ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/si.po000066400000000000000000000030611523516304700177250ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/sk.po000066400000000000000000000056171523516304700177400ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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ť" ubuntu-lightdm-e42f6d6/debian/po/sl.po000066400000000000000000000055441523516304700177400ustar00rootroot00000000000000# 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: 2016-11-16 16:11+0000\n" "Last-Translator: renato \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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\n" #. Type: select #. Description #: ../lightdm.templates:2001 msgid "Default display manager:" msgstr "Privzeti 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, ki nam omogoča grafično prijavo v X okenski " "sistem." #. 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 "" "Le en upravitelj zaslona lahko upravlja dani X strežnik, a je nameščenih več " "paketov upraviteljev zaslona. Prosimo, izberite kateri upravitelj zaslona " "naj se privzeto zažene." #. 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 "" "Več upraviteljev zaslona lahko teče istočasno, če so nastavljeni za " "upravljanje različnih strežnikov; da to storite, nastavite upravitelje " "zaslona po tem, uredite vse njihove skripte init v /etc/init.d in " "onemogočite preverjanje za privzetim upraviteljem zaslona." #~ 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" ubuntu-lightdm-e42f6d6/debian/po/sq.po000066400000000000000000000044151523516304700177410ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/sr.po000066400000000000000000000072661523516304700177510ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "Поново покрени..." ubuntu-lightdm-e42f6d6/debian/po/sv.po000066400000000000000000000043631523516304700177500ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/ta.po000066400000000000000000000052731523516304700177250ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" #~ "அனைத்து நிரல்களையும் மூடி கணினியை முழுநிறுத்தம் செய்ய உறுதியாக உள்ளீர்களா?" ubuntu-lightdm-e42f6d6/debian/po/te.po000066400000000000000000000030531523516304700177230ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/templates.pot000066400000000000000000000027221523516304700214770ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/debian/po/tg.po000066400000000000000000000030511523516304700177230ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/th.po000066400000000000000000000052021523516304700177240ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "ปิดพักเครื่อง" ubuntu-lightdm-e42f6d6/debian/po/tl.po000066400000000000000000000030551523516304700177340ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/tr.po000066400000000000000000000057241523516304700177470ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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..." ubuntu-lightdm-e42f6d6/debian/po/ug.po000066400000000000000000000045041523516304700177300ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "بارلىق پروگراممىنى يېپىپ، كومپيۇتېرنى تاقامسىز؟" ubuntu-lightdm-e42f6d6/debian/po/uk.po000066400000000000000000000046621523516304700177410ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "Призупинити" ubuntu-lightdm-e42f6d6/debian/po/ur.po000066400000000000000000000030471523516304700177440ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "" ubuntu-lightdm-e42f6d6/debian/po/uz.po000066400000000000000000000046051523516304700177550ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "Ўчириш" ubuntu-lightdm-e42f6d6/debian/po/vi.po000066400000000000000000000044631523516304700177370ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/wae.po000066400000000000000000000041521523516304700200700ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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" ubuntu-lightdm-e42f6d6/debian/po/zh_CN.po000066400000000000000000000043041523516304700203140ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "待机" ubuntu-lightdm-e42f6d6/debian/po/zh_HK.po000066400000000000000000000043311523516304700203160ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "重新啟動" ubuntu-lightdm-e42f6d6/debian/po/zh_TW.po000066400000000000000000000041231523516304700203450ustar00rootroot00000000000000# 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: 2017-09-28 05:20+0000\n" "X-Generator: Launchpad (build 18463)\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 "大字型" ubuntu-lightdm-e42f6d6/debian/rules000077500000000000000000000033011523516304700174110ustar00rootroot00000000000000#!/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: # Don't automatically start LightDM since it could require configuration first dh_installinit --no-start override_dh_systemd_start: # Don't automatically start LightDM since it could require configuration first 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 ubuntu-lightdm-e42f6d6/debian/source/000077500000000000000000000000001523516304700176345ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/debian/source/format000066400000000000000000000000141523516304700210420ustar00rootroot000000000000003.0 (quilt) ubuntu-lightdm-e42f6d6/debian/source_lightdm.py000066400000000000000000000022661523516304700217240ustar00rootroot00000000000000import 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/seat0-greeter.log' display_manager_files['LightdmGreeterLogOld'] = \ 'cat /var/log/lightdm/seat0-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) ubuntu-lightdm-e42f6d6/debian/tests/000077500000000000000000000000001523516304700174765ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/debian/tests/control000066400000000000000000000001341523516304700210770ustar00rootroot00000000000000#Tests: upstream-tests #Depends: @, python-gi, xauth #Restrictions: build-needed needs-root ubuntu-lightdm-e42f6d6/debian/tests/upstream-tests000066400000000000000000000002631523516304700224220ustar00rootroot00000000000000#!/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 ubuntu-lightdm-e42f6d6/debian/watch000066400000000000000000000001261523516304700173640ustar00rootroot00000000000000version=3 https://github.com/Canonical/lightdm/releases .*/lightdm-([0-9.]+)\.tar\.xz ubuntu-lightdm-e42f6d6/doc/000077500000000000000000000000001523516304700156575ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/doc/Makefile.am000066400000000000000000000016441523516304700177200ustar00rootroot00000000000000DOC_MODULE = lightdm-gobject-1 DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.sgml DOC_SOURCE_DIR = $(top_srcdir)/liblightdm-gobject SCANGOBJ_OPTIONS = SCAN_OPTIONS = --deprecated-guards="LIGHTDM_DISABLE_DEPRECATED" --rebuild-types MKDB_OPTIONS = --output-format=xml --name-space=LightDM MKTMPL_OPTIONS = FIXXREF_OPTIONS = \ --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/glib \ --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/gobject \ --extra-dir=$(GLIB_PREFIX)/share/gtk-doc/html/gio HFILE_GLOB = $(top_srcdir)/liblightdm-gobject/lightdm.h CFILE_GLOB = $(top_srcdir)/liblightdm-gobject/*.c IGNORE_HFILES = \ snapd-glib.h \ snapd-enum-types.h EXTRA_HFILES = HTML_IMAGES = content_files = expand_content_files = AM_CPPFLAGS = -I$(top_srcdir)/liblightdm-gobject $(LIBLIGHTDM_GOBJECT_CFLAGS) GTKDOC_LIBS = $(top_builddir)/liblightdm-gobject/liblightdm-gobject-1.la $(LIBLIGHTDM_GOBJECT_LIBS) include $(top_srcdir)/gtk-doc.make ubuntu-lightdm-e42f6d6/doc/lightdm-gobject-1-docs.sgml000066400000000000000000000024131523516304700226720ustar00rootroot00000000000000 LightDM Reference Manual liblightdm-gobject Object Hierarchy API Index Index of deprecated API ubuntu-lightdm-e42f6d6/doc/lightdm-gobject-1-sections.txt000066400000000000000000000122121523516304700234440ustar00rootroot00000000000000
greeter LightDMGreeter LightDMPromptType LightDMMessageType LightDMGreeterError lightdm_greeter_error_quark 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_get_hint lightdm_greeter_get_default_session_hint lightdm_greeter_get_hide_users_hint lightdm_greeter_get_show_manual_login_hint lightdm_greeter_get_show_remote_login_hint lightdm_greeter_get_lock_hint lightdm_greeter_get_has_guest_account_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_session_hint lightdm_greeter_get_autologin_timeout_hint 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_set_language lightdm_greeter_start_session lightdm_greeter_start_session_finish lightdm_greeter_start_session_sync lightdm_greeter_ensure_shared_data_dir lightdm_greeter_ensure_shared_data_dir_finish lightdm_greeter_ensure_shared_data_dir_sync lightdm_greeter_connect_sync glib_autoptr_cleanup_LightDMGreeter LIGHTDM_GREETER LIGHTDM_GREETER_CLASS LIGHTDM_GREETER_ERROR LIGHTDM_GREETER_GET_CLASS LIGHTDM_IS_GREETER LIGHTDM_IS_GREETER_CLASS LIGHTDM_TYPE_GREETER LightDMGreeter LightDMGreeterClass LightDMGreeter_autoptr lightdm_greeter_error_get_type lightdm_greeter_get_type lightdm_message_type_get_type lightdm_prompt_type_get_type LIGHTDM_GREETER_SIGNAL_SHOW_PROMPT LIGHTDM_GREETER_SIGNAL_SHOW_MESSAGE LIGHTDM_GREETER_SIGNAL_AUTHENTICATION_COMPLETE LIGHTDM_GREETER_SIGNAL_AUTOLOGIN_TIMER_EXPIRED LIGHTDM_GREETER_SIGNAL_IDLE LIGHTDM_GREETER_SIGNAL_RESET
language LightDMLanguage lightdm_get_languages lightdm_get_language lightdm_language_get_code lightdm_language_get_name lightdm_language_get_territory lightdm_language_matches glib_autoptr_cleanup_LightDMLanguage LIGHTDM_IS_LANGUAGE LIGHTDM_IS_LANGUAGE_CLASS LIGHTDM_LANGUAGE LIGHTDM_LANGUAGE_CLASS LIGHTDM_LANGUAGE_GET_CLASS LIGHTDM_TYPE_LANGUAGE LightDMLanguage LightDMLanguageClass LightDMLanguage_autoptr lightdm_language_get_type
layout LightDMLayout lightdm_get_layouts lightdm_set_layout lightdm_get_layout lightdm_layout_get_name lightdm_layout_get_short_description lightdm_layout_get_description glib_autoptr_cleanup_LightDMLayout LIGHTDM_IS_LAYOUT LIGHTDM_IS_LAYOUT_CLASS LIGHTDM_LAYOUT LIGHTDM_LAYOUT_CLASS LIGHTDM_LAYOUT_GET_CLASS LIGHTDM_TYPE_LAYOUT LightDMLayout LightDMLayoutClass LightDMLayout_autoptr lightdm_layout_get_type
power lightdm_get_can_suspend lightdm_suspend lightdm_get_can_hibernate lightdm_hibernate lightdm_get_can_restart lightdm_restart lightdm_get_can_shutdown lightdm_shutdown
session LightDMSession lightdm_get_sessions lightdm_get_remote_sessions lightdm_session_get_key lightdm_session_get_session_type lightdm_session_get_name lightdm_session_get_comment glib_autoptr_cleanup_LightDMSession LIGHTDM_IS_SESSION LIGHTDM_IS_SESSION_CLASS LIGHTDM_SESSION LIGHTDM_SESSION_CLASS LIGHTDM_SESSION_GET_CLASS LIGHTDM_TYPE_SESSION LightDMSession LightDMSessionClass LightDMSession_autoptr lightdm_session_get_type
system lightdm_get_hostname lightdm_get_os_id lightdm_get_os_name lightdm_get_os_pretty_name lightdm_get_os_version lightdm_get_os_version_id lightdm_get_motd
user-list LightDMUserList lightdm_user_list_get_instance lightdm_user_list_get_length lightdm_user_list_get_user_by_name lightdm_user_list_get_users glib_autoptr_cleanup_LightDMUserList LIGHTDM_IS_USER_LIST LIGHTDM_IS_USER_LIST_CLASS LIGHTDM_TYPE_USER_LIST LIGHTDM_USER_LIST LIGHTDM_USER_LIST_CLASS LIGHTDM_USER_LIST_GET_CLASS LightDMUserList LightDMUserListClass LightDMUserList_autoptr lightdm_user_list_get_type LIGHTDM_USER_LIST_SIGNAL_USER_ADDED LIGHTDM_USER_LIST_SIGNAL_USER_CHANGED LIGHTDM_USER_LIST_SIGNAL_USER_REMOVED
user LightDMUser lightdm_user_get_name lightdm_user_get_real_name lightdm_user_get_display_name lightdm_user_get_home_directory lightdm_user_get_image lightdm_user_get_background lightdm_user_get_language lightdm_user_get_layout lightdm_user_get_layouts lightdm_user_get_session lightdm_user_get_logged_in lightdm_user_get_has_messages lightdm_user_get_uid lightdm_user_get_is_locked glib_autoptr_cleanup_LightDMUser LIGHTDM_IS_USER LIGHTDM_IS_USER_CLASS LIGHTDM_TYPE_USER LIGHTDM_USER LIGHTDM_USER_CLASS LIGHTDM_USER_GET_CLASS LightDMUser LightDMUserClass LightDMUser_autoptr lightdm_user_get_type LIGHTDM_SIGNAL_USER_CHANGED
ubuntu-lightdm-e42f6d6/help/000077500000000000000000000000001523516304700160425ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/help/C/000077500000000000000000000000001523516304700162245ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/help/C/autologin.page000066400000000000000000000023761523516304700210730ustar00rootroot00000000000000 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.

ubuntu-lightdm-e42f6d6/help/C/config.page000066400000000000000000000017041523516304700203310ustar00rootroot00000000000000 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.

ubuntu-lightdm-e42f6d6/help/C/default-greeter.page000066400000000000000000000003151523516304700221400ustar00rootroot00000000000000 Default Greeter

ubuntu-lightdm-e42f6d6/help/C/default-session.page000066400000000000000000000003301523516304700221630ustar00rootroot00000000000000 Setting the default session

ubuntu-lightdm-e42f6d6/help/C/diagnostics.page000066400000000000000000000004251523516304700213720ustar00rootroot00000000000000 Diagnostics

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

ubuntu-lightdm-e42f6d6/help/C/guest.page000066400000000000000000000010641523516304700202120ustar00rootroot00000000000000 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.

ubuntu-lightdm-e42f6d6/help/C/index.page000066400000000000000000000035731523516304700202010ustar00rootroot00000000000000 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.

ubuntu-lightdm-e42f6d6/help/C/legal.xml000066400000000000000000000007561523516304700200420ustar00rootroot00000000000000

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.

ubuntu-lightdm-e42f6d6/help/C/local-sessions.page000066400000000000000000000011441523516304700220200ustar00rootroot00000000000000 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

ubuntu-lightdm-e42f6d6/help/C/remote-sessions.page000066400000000000000000000020231523516304700222160ustar00rootroot00000000000000 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.

ubuntu-lightdm-e42f6d6/help/C/seat.page000066400000000000000000000004761523516304700200250ustar00rootroot00000000000000 Seats

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

ubuntu-lightdm-e42f6d6/help/C/standard-authentication.page000066400000000000000000000013601523516304700236770ustar00rootroot00000000000000 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.

ubuntu-lightdm-e42f6d6/help/C/user-list.page000066400000000000000000000007471523516304700210210ustar00rootroot00000000000000 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.

ubuntu-lightdm-e42f6d6/help/C/user-switching.page000066400000000000000000000022411523516304700220340ustar00rootroot00000000000000 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.

ubuntu-lightdm-e42f6d6/help/C/vnc.page000066400000000000000000000002711523516304700176500ustar00rootroot00000000000000 VNC

ubuntu-lightdm-e42f6d6/help/C/write-greeter.page000066400000000000000000000003141523516304700216450ustar00rootroot00000000000000 Writing a greeter

ubuntu-lightdm-e42f6d6/help/C/xdmcp.page000066400000000000000000000002751523516304700202010ustar00rootroot00000000000000 XDMCP

ubuntu-lightdm-e42f6d6/help/Makefile.am000066400000000000000000000011361523516304700200770ustar00rootroot00000000000000@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 = ubuntu-lightdm-e42f6d6/liblightdm-gobject/000077500000000000000000000000001523516304700206445ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/liblightdm-gobject/LightDM-1-custom.vala000066400000000000000000000002551523516304700244510ustar00rootroot00000000000000namespace LightDM { [CCode (type_id = "lightdm_user_list_get_type ()")] public class UserList : GLib.Object { public unowned GLib.List users { get; } } } ubuntu-lightdm-e42f6d6/liblightdm-gobject/LightDM-1.metadata000066400000000000000000000007231523516304700237760ustar00rootroot00000000000000Greeter .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" ubuntu-lightdm-e42f6d6/liblightdm-gobject/Makefile.am000066400000000000000000000044151523516304700227040ustar00rootroot00000000000000lib_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\" \ -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) \ $(VAPIGEN_VAPIS) \ $(pkgconfig_DATA) EXTRA_DIST = \ LightDM-1.metadata \ LightDM-1-custom.vala \ liblightdm-gobject-1.deps ubuntu-lightdm-e42f6d6/liblightdm-gobject/greeter.c000066400000000000000000002256401523516304700224560ustar00rootroot00000000000000/* * 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 #include "lightdm/greeter.h" /** * SECTION:greeter * @short_description: Make a connection to the LightDM daemon and authenticate users * @include: lightdm.h * * #LightDMGreeter is an object that manages the connection to the LightDM server and provides common greeter functionality. * * An example of a simple greeter: * |[ * int main () * { * GMainLoop *main_loop; * LightDMGreeter *greeter * * main_loop = g_main_loop_new (); * * greeter = lightdm_greeter_new (); * g_object_connect (greeter, "show-prompt", G_CALLBACK (show_prompt_cb), NULL); * g_object_connect (greeter, "authentication-complete", G_CALLBACK (authentication_complete_cb), NULL); * * // Connect to LightDM daemon * if (!lightdm_greeter_connect_to_daemon_sync (greeter, NULL)) * return EXIT_FAILURE; * * // Start authentication * lightdm_greeter_authenticate (greeter, NULL); * * g_main_loop_run (main_loop); * * return EXIT_SUCCESS; * } * * static void show_prompt_cb (LightDMGreeter *greeter, const char *text, LightDMPromptType type) * { * // Show the user the message and prompt for some response * gchar *secret = prompt_user (text, type); * * // Give the result to the user * lightdm_greeter_respond (greeter, response); * } * * static void authentication_complete_cb (LightDMGreeter *greeter) * { * // Start the session * if (!lightdm_greeter_get_is_authenticated (greeter) || * !lightdm_greeter_start_session_sync (greeter, NULL)) * { * // Failed authentication, try again * lightdm_greeter_authenticate (greeter, NULL); * } * } * ]| */ /** * LightDMGreeter: * * #LightDMGreeter is an opaque data structure and can only be accessed * using the provided functions. */ /** * LightDMGreeterClass: * * Class structure for #LightDMGreeter. */ G_DEFINE_QUARK (lightdm_greeter_error, lightdm_greeter_error) enum { PROP_DEFAULT_SESSION_HINT = 1, 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, PROP_AUTOLOGIN_SESSION_HINT, }; enum { SHOW_PROMPT, SHOW_MESSAGE, AUTHENTICATION_COMPLETE, AUTOLOGIN_TIMER_EXPIRED, IDLE, RESET, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; typedef struct { /* API version the daemon is using */ guint32 api_version; /* TRUE if the daemon can reuse this greeter */ gboolean resettable; /* Socket connection to daemon */ GSocket *socket; /* Channel to write to daemon */ GIOChannel *to_server_channel; /* Channel to read from daemon */ GIOChannel *from_server_channel; guint from_server_watch; /* 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_WITH_PRIVATE (LightDMGreeter, lightdm_greeter, G_TYPE_OBJECT) #define HEADER_SIZE 8 #define MAX_MESSAGE_LENGTH 1024 #define API_VERSION 1 /* 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, SERVER_MESSAGE_CONNECTED_V2, } ServerMessage; /* Request sent to server */ typedef struct { GObject parent_instance; LightDMGreeter *greeter; GCancellable *cancellable; GAsyncReadyCallback callback; gpointer user_data; gboolean complete; gboolean result; GError *error; 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)) static gboolean from_server_cb (GIOChannel *source, GIOCondition condition, gpointer data); GType lightdm_greeter_error_get_type (void) { static GType enum_type = 0; if (G_UNLIKELY(enum_type == 0)) { static const GEnumValue values[] = { { LIGHTDM_GREETER_ERROR_COMMUNICATION_ERROR, "LIGHTDM_GREETER_ERROR_COMMUNICATION_ERROR", "communication-error" }, { LIGHTDM_GREETER_ERROR_CONNECTION_FAILED, "LIGHTDM_GREETER_ERROR_CONNECTION_FAILED", "connection-failed" }, { LIGHTDM_GREETER_ERROR_SESSION_FAILED, "LIGHTDM_GREETER_ERROR_SESSION_FAILED", "session-failed" }, { LIGHTDM_GREETER_ERROR_NO_AUTOLOGIN, "LIGHTDM_GREETER_ERROR_NO_AUTOLOGIN", "no-autologin" }, { LIGHTDM_GREETER_ERROR_INVALID_USER, "LIGHTDM_GREETER_ERROR_INVALID_USER", "invalid-user" }, { 0, NULL, NULL } }; enum_type = g_enum_register_static (g_intern_static_string ("LightDMGreeterError"), values); } return enum_type; } 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) { g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); g_return_if_fail (!priv->connected); priv->resettable = resettable; } static Request * request_new (LightDMGreeter *greeter, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { Request *request = g_object_new (request_get_type (), NULL); request->greeter = greeter; if (cancellable) request->cancellable = g_object_ref (cancellable); request->callback = callback; request->user_data = user_data; return request; } static gboolean request_callback_cb (gpointer data) { Request *request = data; if (request->callback) request->callback (G_OBJECT (request->greeter), G_ASYNC_RESULT (request), request->user_data); g_object_unref (request); return G_SOURCE_REMOVE; } static void request_complete (Request *request) { request->complete = TRUE; if (!request->callback) return; if (request->cancellable && g_cancellable_is_cancelled (request->cancellable)) return; g_idle_add (request_callback_cb, g_object_ref (request)); } static gboolean timed_login_cb (gpointer data) { LightDMGreeter *greeter = data; LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_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 gboolean write_int (guint8 *buffer, gint buffer_length, guint32 value, gsize *offset, GError **error) { if (*offset + 4 >= buffer_length) { g_set_error_literal (error, LIGHTDM_GREETER_ERROR, LIGHTDM_GREETER_ERROR_COMMUNICATION_ERROR, "Not enough buffer space to write integer"); return FALSE; } buffer[*offset] = value >> 24; buffer[*offset+1] = (value >> 16) & 0xFF; buffer[*offset+2] = (value >> 8) & 0xFF; buffer[*offset+3] = value & 0xFF; *offset += 4; return TRUE; } static gboolean write_string (guint8 *buffer, gint buffer_length, const gchar *value, gsize *offset, GError **error) { gint length = 0; if (value) length = strlen (value); if (!write_int (buffer, buffer_length, length, offset, error)) return FALSE; if (*offset + length >= buffer_length) { g_set_error (error, LIGHTDM_GREETER_ERROR, LIGHTDM_GREETER_ERROR_COMMUNICATION_ERROR, "Not enough buffer space to write string of length %d octets", length); return FALSE; } if (value) memcpy (buffer + *offset, value, length); *offset += length; return TRUE; } static guint32 read_int (guint8 *message, gsize message_length, gsize *offset) { if (message_length - *offset < int_length ()) { g_warning ("Not enough space for int, need %i, got %zi", int_length (), message_length - *offset); return 0; } const guint8 *buffer = message + *offset; guint32 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 = 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 (""); } gchar *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 gboolean write_header (guint8 *buffer, gint buffer_length, guint32 id, guint32 length, gsize *offset, GError **error) { return write_int (buffer, buffer_length, id, offset, error) && write_int (buffer, buffer_length, length, offset, error); } static guint32 get_message_length (guint8 *message, gsize message_length) { gsize offset = 4; return read_int (message, message_length, &offset); } static gboolean connect_to_daemon (LightDMGreeter *greeter, GError **error) { LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); if (priv->to_server_channel || priv->from_server_channel) return TRUE; /* Use private connection if one exists */ const gchar *to_server_fd = g_getenv ("LIGHTDM_TO_SERVER_FD"); const gchar *from_server_fd = g_getenv ("LIGHTDM_FROM_SERVER_FD"); const gchar *pipe_path = g_getenv ("LIGHTDM_GREETER_PIPE"); if (to_server_fd && from_server_fd) { priv->to_server_channel = g_io_channel_unix_new (atoi (to_server_fd)); priv->from_server_channel = g_io_channel_unix_new (atoi (from_server_fd)); } else if (pipe_path) { priv->socket = g_socket_new (G_SOCKET_FAMILY_UNIX, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_DEFAULT, error); if (!priv->socket) return FALSE; g_autoptr(GSocketAddress) address = g_unix_socket_address_new (pipe_path); if (!g_socket_connect (priv->socket, address, NULL, error)) return FALSE; priv->from_server_channel = g_io_channel_unix_new (g_socket_get_fd (priv->socket)); priv->to_server_channel = g_io_channel_ref (priv->from_server_channel); } else { g_set_error_literal (error, LIGHTDM_GREETER_ERROR, LIGHTDM_GREETER_ERROR_CONNECTION_FAILED, "Unable to determine socket to daemon"); return FALSE; } priv->from_server_watch = g_io_add_watch (priv->from_server_channel, G_IO_IN, from_server_cb, greeter); if (!g_io_channel_set_encoding (priv->to_server_channel, NULL, error) || !g_io_channel_set_encoding (priv->from_server_channel, NULL, error)) return FALSE; return TRUE; } static gboolean send_message (LightDMGreeter *greeter, guint8 *message, gsize message_length, GError **error) { LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); if (!connect_to_daemon (greeter, error)) 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. */ guint32 stated_length = HEADER_SIZE + get_message_length (message, message_length); if (stated_length != message_length) { g_set_error (error, LIGHTDM_GREETER_ERROR, LIGHTDM_GREETER_ERROR_COMMUNICATION_ERROR, "Refusing to write malformed packet to daemon: declared size is %u, but actual size is %zu", stated_length, message_length); return FALSE; } gchar *data = (gchar *) message; gsize data_length = message_length; while (data_length > 0) { gsize n_written; g_autoptr(GError) write_error = NULL; GIOStatus status = g_io_channel_write_chars (priv->to_server_channel, data, data_length, &n_written, &write_error); if (write_error) g_set_error (error, LIGHTDM_GREETER_ERROR, LIGHTDM_GREETER_ERROR_COMMUNICATION_ERROR, "Failed to write to daemon: %s", write_error->message); if (status == G_IO_STATUS_AGAIN) continue; 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_autoptr(GError) flush_error = NULL; if (!g_io_channel_flush (priv->to_server_channel, &flush_error)) { g_set_error (error, LIGHTDM_GREETER_ERROR, LIGHTDM_GREETER_ERROR_COMMUNICATION_ERROR, "Failed to write to daemon: %s", flush_error->message); return FALSE; } return TRUE; } static void handle_connected (LightDMGreeter *greeter, gboolean v2, guint8 *message, gsize message_length, gsize *offset) { LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); int timeout; Request *request; g_autoptr(GString) debug_string = g_string_new ("Connected"); if (v2) { priv->api_version = read_int (message, message_length, offset); g_string_append_printf (debug_string, " api=%u", priv->api_version); g_autofree gchar *version = read_string (message, message_length, offset); g_string_append_printf (debug_string, " version=%s", version); guint32 n_env = read_int (message, message_length, offset); for (guint32 i = 0; i < n_env; i++) { gchar *name = read_string (message, message_length, offset); gchar *value = read_string (message, message_length, offset); g_hash_table_insert (priv->hints, name, value); g_string_append_printf (debug_string, " %s=%s", name, value); } } else { priv->api_version = 0; g_autofree gchar *version = read_string (message, message_length, offset); g_string_append_printf (debug_string, " version=%s", version); while (*offset < message_length) { gchar *name = read_string (message, message_length, offset); gchar *value = read_string (message, message_length, offset); g_hash_table_insert (priv->hints, name, value); g_string_append_printf (debug_string, " %s=%s", name, value); } } priv->connected = TRUE; g_debug ("%s", debug_string->str); /* 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->result = TRUE; request_complete (request); 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 = lightdm_greeter_get_instance_private (greeter); guint32 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 */ g_autofree gchar *username = read_string (message, message_length, offset); if (strcmp (username, "") == 0) { g_free (username); username = NULL; } g_free (priv->authentication_user); priv->authentication_user = g_steal_pointer (&username); g_list_free_full (priv->responses_received, g_free); priv->responses_received = NULL; priv->n_responses_waiting = 0; guint32 n_messages = read_int (message, message_length, offset); g_debug ("Prompt user with %d message(s)", n_messages); for (guint32 i = 0; i < n_messages; i++) { int style = read_int (message, message_length, offset); g_autofree gchar *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; } } } static void handle_end_authentication (LightDMGreeter *greeter, guint8 *message, gsize message_length, gsize *offset) { LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); guint32 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; } g_autofree gchar *username = read_string (message, message_length, offset); guint32 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 = g_steal_pointer (&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 = lightdm_greeter_get_instance_private (greeter); g_hash_table_remove_all (priv->hints); g_autoptr(GString) hint_string = g_string_new (""); while (*offset < message_length) { gchar *name = read_string (message, message_length, offset); gchar *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_signal_emit (G_OBJECT (greeter), signals[RESET], 0); } static void handle_session_result (LightDMGreeter *greeter, guint8 *message, gsize message_length, gsize *offset) { LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); /* Notify asynchronous caller */ Request *request = g_list_nth_data (priv->start_session_requests, 0); if (request) { guint32 return_code = read_int (message, message_length, offset); if (return_code == 0) request->result = TRUE; else request->error = g_error_new (LIGHTDM_GREETER_ERROR, LIGHTDM_GREETER_ERROR_SESSION_FAILED, "Session returned error code %d", return_code); request_complete (request); 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 = lightdm_greeter_get_instance_private (greeter); /* Notify asynchronous caller */ Request *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->error = g_error_new (LIGHTDM_GREETER_ERROR, LIGHTDM_GREETER_ERROR_INVALID_USER, "No such user"); } request_complete (request); 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 = read_int (message, message_length, &offset); read_int (message, message_length, &offset); switch (id) { case SERVER_MESSAGE_CONNECTED: handle_connected (greeter, FALSE, 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; case SERVER_MESSAGE_CONNECTED_V2: handle_connected (greeter, TRUE, message, message_length, &offset); break; default: g_warning ("Unknown message from server: %d", id); break; } } static gboolean recv_message (LightDMGreeter *greeter, gboolean block, guint8 **message, gsize *length, GError **error) { LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); if (!connect_to_daemon (greeter, error)) return FALSE; /* Read the header, or the whole message if we already have that */ gsize n_to_read = HEADER_SIZE; if (priv->n_read >= HEADER_SIZE) n_to_read += get_message_length (priv->read_buffer, priv->n_read); do { gsize n_read; g_autoptr(GError) read_error = NULL; GIOStatus 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, &read_error); if (status == G_IO_STATUS_AGAIN) { if (block) continue; } else if (status != G_IO_STATUS_NORMAL) { g_set_error (error, LIGHTDM_GREETER_ERROR, LIGHTDM_GREETER_ERROR_COMMUNICATION_ERROR, "Failed to read from daemon: %s", read_error->message); return FALSE; } 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) { if (message) *message = NULL; if (length) *length = 0; return TRUE; } /* 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, block, message, length, error); } } if (message) *message = priv->read_buffer; else g_free (priv->read_buffer); if (length) *length = priv->n_read; priv->read_buffer = g_malloc (priv->n_read); priv->n_read = 0; return TRUE; } static gboolean from_server_cb (GIOChannel *source, GIOCondition condition, gpointer data) { LightDMGreeter *greeter = data; /* Read one message and process it */ g_autofree guint8 *message = NULL; gsize message_length; g_autoptr(GError) error = NULL; if (!recv_message (greeter, FALSE, &message, &message_length, &error)) { // FIXME: Should push this up to the client somehow g_warning ("Failed to read from daemon: %s\n", error->message); return G_SOURCE_REMOVE; } if (message) handle_message (greeter, message, message_length); return G_SOURCE_CONTINUE; } static gboolean send_connect (LightDMGreeter *greeter, gboolean resettable, GError **error) { g_debug ("Connecting to display manager..."); guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; return write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_CONNECT, string_length (VERSION) + int_length () * 2, &offset, error) && write_string (message, MAX_MESSAGE_LENGTH, VERSION, &offset, error) && write_int (message, MAX_MESSAGE_LENGTH, resettable ? 1 : 0, &offset, error) && write_int (message, MAX_MESSAGE_LENGTH, API_VERSION, &offset, error) && send_message (greeter, message, offset, error); } static gboolean send_start_session (LightDMGreeter *greeter, const gchar *session, GError **error) { if (session) g_debug ("Starting session %s", session); else g_debug ("Starting default session"); guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; return write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_START_SESSION, string_length (session), &offset, error) && write_string (message, MAX_MESSAGE_LENGTH, session, &offset, error) && send_message (greeter, message, offset, error); } static gboolean send_ensure_shared_data_dir (LightDMGreeter *greeter, const gchar *username, GError **error) { g_debug ("Ensuring data directory for user %s", username); guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; return write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_ENSURE_SHARED_DIR, string_length (username), &offset, error) && write_string (message, MAX_MESSAGE_LENGTH, username, &offset, error) && send_message (greeter, message, offset, error); } /** * 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) { g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); Request *request = request_new (greeter, cancellable, callback, user_data); GError *error = NULL; if (send_connect (greeter, priv->resettable, &error)) priv->connect_requests = g_list_append (priv->connect_requests, request); else { request->error = error; request_complete (request); g_object_unref (request); } } /** * 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); Request *request = REQUEST (result); if (request->error) g_propagate_error (error, request->error); return request->result; } /** * 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) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); /* Read until we are connected */ if (!send_connect (greeter, priv->resettable, error)) return FALSE; Request *request = request_new (greeter, NULL, NULL, NULL); priv->connect_requests = g_list_append (priv->connect_requests, g_object_ref (request)); do { g_autofree guint8 *message = NULL; gsize message_length; if (!recv_message (greeter, TRUE, &message, &message_length, error)) return FALSE; handle_message (greeter, message, message_length); } while (!request->complete); return lightdm_greeter_connect_to_daemon_finish (greeter, G_ASYNC_RESULT (request), error); } /** * 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); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); return g_hash_table_lookup (priv->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"); } static gboolean get_boolean_hint (LightDMGreeter *greeter, const gchar *name) { const gchar *value = lightdm_greeter_get_hint (greeter, name); return g_strcmp0 (value, "true") == 0; } /** * 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) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); return get_boolean_hint (greeter, "hide-users"); } /** * 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) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); return get_boolean_hint (greeter, "show-manual-login"); } /** * 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) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); return get_boolean_hint (greeter, "show-remote-login"); } /** * 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) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); return get_boolean_hint (greeter, "lock-screen"); } /** * 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) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); return get_boolean_hint (greeter, "select-guest"); } /** * 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_session_hint: * @greeter: A #LightDMGreeter * * Get the session used to automatically log into when the timer expires. * * Return value: (nullable): The session name or %NULL if configured to use the default. */ const gchar * lightdm_greeter_get_autologin_session_hint (LightDMGreeter *greeter) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), NULL); return lightdm_greeter_get_hint (greeter, "autologin-session"); } /** * 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) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); return get_boolean_hint (greeter, "autologin-guest"); } /** * lightdm_greeter_get_autologin_timeout_hint: * @greeter: A #LightDMGreeter * * Get the number of seconds to wait before automatically 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) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); const gchar *value = lightdm_greeter_get_hint (greeter, "autologin-timeout"); gint timeout = 0; 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) { g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_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. * @error: return location for a #GError, or %NULL * * Starts the authentication procedure for a user. * * Return value: #TRUE if authentication request sent. **/ gboolean lightdm_greeter_authenticate (LightDMGreeter *greeter, const gchar *username, GError **error) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); g_return_val_if_fail (priv->connected, FALSE); 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); guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; return write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_AUTHENTICATE, int_length () + string_length (username), &offset, error) && write_int (message, MAX_MESSAGE_LENGTH, priv->authenticate_sequence_number, &offset, error) && write_string (message, MAX_MESSAGE_LENGTH, username, &offset, error) && send_message (greeter, message, offset, error); } /** * lightdm_greeter_authenticate_as_guest: * @greeter: A #LightDMGreeter * @error: return location for a #GError, or %NULL * * Starts the authentication procedure for the guest user. * * Return value: #TRUE if authentication request sent. **/ gboolean lightdm_greeter_authenticate_as_guest (LightDMGreeter *greeter, GError **error) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); g_return_val_if_fail (priv->connected, FALSE); 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..."); guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; return write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_AUTHENTICATE_AS_GUEST, int_length (), &offset, error) && write_int (message, MAX_MESSAGE_LENGTH, priv->authenticate_sequence_number, &offset, error) && send_message (greeter, message, offset, error); } /** * lightdm_greeter_authenticate_autologin: * @greeter: A #LightDMGreeter * @error: return location for a #GError, or %NULL * * Starts the authentication procedure for the automatic login user. * * Return value: #TRUE if authentication request sent. **/ gboolean lightdm_greeter_authenticate_autologin (LightDMGreeter *greeter, GError **error) { const gchar *user = lightdm_greeter_get_autologin_user_hint (greeter); if (lightdm_greeter_get_autologin_guest_hint (greeter)) return lightdm_greeter_authenticate_as_guest (greeter, error); else if (user) return lightdm_greeter_authenticate (greeter, user, error); else { g_set_error_literal (error, LIGHTDM_GREETER_ERROR, LIGHTDM_GREETER_ERROR_NO_AUTOLOGIN, "Can't authenticate autologin; autologin not configured"); return FALSE; } } /** * 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. * @error: return location for a #GError, or %NULL * * Start authentication for a remote session type. * * Return value: #TRUE if authentication request sent. **/ gboolean lightdm_greeter_authenticate_remote (LightDMGreeter *greeter, const gchar *session, const gchar *username, GError **error) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); g_return_val_if_fail (priv->connected, FALSE); 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); guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; return write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_AUTHENTICATE_REMOTE, int_length () + string_length (session) + string_length (username), &offset, error) && write_int (message, MAX_MESSAGE_LENGTH, priv->authenticate_sequence_number, &offset, error) && write_string (message, MAX_MESSAGE_LENGTH, session, &offset, error) && write_string (message, MAX_MESSAGE_LENGTH, username, &offset, error) && send_message (greeter, message, offset, error); } /** * lightdm_greeter_respond: * @greeter: A #LightDMGreeter * @response: Response to a prompt * @error: return location for a #GError, or %NULL * * Provide response to a prompt. May be one in a series. * * Return value: #TRUE if response sent. **/ gboolean lightdm_greeter_respond (LightDMGreeter *greeter, const gchar *response, GError **error) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); g_return_val_if_fail (response != NULL, FALSE); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); g_return_val_if_fail (priv->connected, FALSE); g_return_val_if_fail (priv->n_responses_waiting > 0, FALSE); priv->n_responses_waiting--; priv->responses_received = g_list_append (priv->responses_received, g_strdup (response)); guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; if (priv->n_responses_waiting == 0) { g_debug ("Providing response to display manager"); guint32 msg_length = int_length (); for (GList *iter = priv->responses_received; iter; iter = iter->next) msg_length += string_length ((gchar *)iter->data); if (!write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_CONTINUE_AUTHENTICATION, msg_length, &offset, error) || !write_int (message, MAX_MESSAGE_LENGTH, g_list_length (priv->responses_received), &offset, error)) return FALSE; for (GList *iter = priv->responses_received; iter; iter = iter->next) { if (!write_string (message, MAX_MESSAGE_LENGTH, (gchar *)iter->data, &offset, error)) return FALSE; } if (!send_message (greeter, message, offset, error)) return FALSE; g_list_free_full (priv->responses_received, g_free); priv->responses_received = NULL; } return TRUE; } /** * lightdm_greeter_cancel_authentication: * @greeter: A #LightDMGreeter * @error: return location for a #GError, or %NULL * * Cancel the current user authentication. * * Return value: #TRUE if cancel request sent. **/ gboolean lightdm_greeter_cancel_authentication (LightDMGreeter *greeter, GError **error) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); g_return_val_if_fail (priv->connected, FALSE); priv->cancelling_authentication = TRUE; guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; return write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_CANCEL_AUTHENTICATION, 0, &offset, error) && send_message (greeter, message, offset, error); } /** * 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); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); return priv->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); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); return priv->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); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); return priv->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"). * @error: return location for a #GError, or %NULL * * Set the language for the currently authenticated user. * * Return value: #TRUE if set language request sent. **/ gboolean lightdm_greeter_set_language (LightDMGreeter *greeter, const gchar *language, GError **error) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); g_return_val_if_fail (priv->connected, FALSE); guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; return write_header (message, MAX_MESSAGE_LENGTH, GREETER_MESSAGE_SET_LANGUAGE, string_length (language), &offset, error) && write_string (message, MAX_MESSAGE_LENGTH, language, &offset, error) && send_message (greeter, message, offset, error); } /** * 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) { g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); Request *request = request_new (greeter, cancellable, callback, user_data); priv->start_session_requests = g_list_append (priv->start_session_requests, request); GError *error = NULL; if (!send_start_session (greeter, session, &error)) { request->error = error; request_complete (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); Request *request = REQUEST (result); if (request->error) g_propagate_error (error, request->error); return request->result; } /** * 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) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), FALSE); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_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 */ if (!send_start_session (greeter, session, error)) return FALSE; Request *request = request_new (greeter, NULL, NULL, NULL); priv->start_session_requests = g_list_append (priv->start_session_requests, g_object_ref (request)); do { g_autofree guint8 *message = NULL; gsize message_length; if (!recv_message (greeter, TRUE, &message, &message_length, error)) return FALSE; handle_message (greeter, message, message_length); } while (!request->complete); return lightdm_greeter_start_session_finish (greeter, G_ASYNC_RESULT (request), error); } /** * 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) { g_return_if_fail (LIGHTDM_IS_GREETER (greeter)); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); Request *request = request_new (greeter, cancellable, callback, user_data); priv->ensure_shared_data_dir_requests = g_list_append (priv->ensure_shared_data_dir_requests, request); GError *error = NULL; if (!send_ensure_shared_data_dir (greeter, username, &error)) { request->error = error; request_complete (request); } } /** * lightdm_greeter_ensure_shared_data_dir_finish: * @result: A #GAsyncResult. * @greeter: A #LightDMGreeter * @error: return location for a #GError, or %NULL * * 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, GError **error) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), NULL); Request *request = REQUEST (result); if (request->error) g_propagate_error (error, request->error); return g_strdup (request->dir); } /** * lightdm_greeter_ensure_shared_data_dir_sync: * @greeter: A #LightDMGreeter * @username: A username * @error: return location for a #GError, 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. * * 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, GError **error) { g_return_val_if_fail (LIGHTDM_IS_GREETER (greeter), NULL); LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); g_return_val_if_fail (priv->connected, NULL); /* Read until a response */ if (!send_ensure_shared_data_dir (greeter, username, error)) return NULL; Request *request = request_new (greeter, NULL, NULL, NULL); priv->ensure_shared_data_dir_requests = g_list_append (priv->ensure_shared_data_dir_requests, g_object_ref (request)); do { g_autofree guint8 *message = NULL; gsize message_length; if (!recv_message (greeter, TRUE, &message, &message_length, error)) return FALSE; handle_message (greeter, message, message_length); } while (!request->complete); return lightdm_greeter_ensure_shared_data_dir_finish (greeter, G_ASYNC_RESULT (request), error); } static void lightdm_greeter_init (LightDMGreeter *greeter) { LightDMGreeterPrivate *priv = lightdm_greeter_get_instance_private (greeter); priv->read_buffer = g_malloc (HEADER_SIZE); priv->hints = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); } 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 = 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_SESSION_HINT: g_value_set_string (value, lightdm_greeter_get_autologin_session_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 = lightdm_greeter_get_instance_private (self); g_clear_object (&priv->socket); 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); if (priv->from_server_watch) g_source_remove (priv->from_server_watch); priv->from_server_watch = 0; g_clear_pointer (&priv->read_buffer, g_free); g_list_free_full (priv->responses_received, g_free); priv->responses_received = NULL; g_list_free_full (priv->connect_requests, g_object_unref); priv->connect_requests = NULL; g_list_free_full (priv->start_session_requests, g_object_unref); priv->start_session_requests = NULL; g_list_free_full (priv->ensure_shared_data_dir_requests, g_object_unref); priv->ensure_shared_data_dir_requests = NULL; g_clear_pointer (&priv->authentication_user, g_free); g_hash_table_unref (priv->hints); priv->hints = NULL; G_OBJECT_CLASS (lightdm_greeter_parent_class)->finalize (object); } static void lightdm_greeter_class_init (LightDMGreeterClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); 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_SESSION_HINT, g_param_spec_string ("autologin-session-hint", "autologin-session-hint", "Autologin session 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_authenticate_autologin(). **/ 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_clear_object (&request->cancellable); g_free (request->dir); 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 *result) { return g_object_ref (G_OBJECT (REQUEST (result)->greeter)); } static void request_iface_init (GAsyncResultIface *iface) { iface->get_user_data = request_get_user_data; iface->get_source_object = request_get_source_object; } ubuntu-lightdm-e42f6d6/liblightdm-gobject/language.c000066400000000000000000000260641523516304700226030ustar00rootroot00000000000000/* * 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" /** * SECTION:language * @short_description: Get information on available languages * @include: lightdm.h * * #LightDMLanguage is an object that describes a language that is available on the system. */ /** * LightDMLanguage: * * #LightDMLanguage is an opaque data structure and can only be accessed * using the provided functions. */ /** * LightDMLanguageClass: * * Class structure for #LightDMLanguage. */ enum { PROP_CODE = 1, PROP_NAME, PROP_TERRITORY }; typedef struct { gchar *code; gchar *name; gchar *territory; } LightDMLanguagePrivate; G_DEFINE_TYPE_WITH_PRIVATE (LightDMLanguage, lightdm_language, G_TYPE_OBJECT) static gboolean have_languages = FALSE; static GList *languages = NULL; static void update_languages (void) { if (have_languages) return; const gchar *command = "locale -a"; g_autofree gchar *stdout_text = NULL; g_autofree gchar *stderr_text = NULL; gint exit_status; g_autoptr(GError) error = NULL; gboolean 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); else if (exit_status != 0) g_warning ("Failed to get languages, '%s' returned %d", command, exit_status); else if (result) { g_auto(GStrv) tokens = g_strsplit_set (stdout_text, "\n\r", -1); for (int i = 0; tokens[i]; i++) { const gchar *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; LightDMLanguage *language = g_object_new (LIGHTDM_TYPE_LANGUAGE, "code", code, NULL); languages = g_list_append (languages, language); } } 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) { if (is_utf8 (code)) return g_strdup (code); g_autofree gchar *language = NULL; const char *at = strchr (code, '@'); if (at) language = g_strndup (code, at - code); else language = g_strdup (code); static gchar **avail_locales; if (!avail_locales) { g_autofree gchar *locales = NULL; g_autoptr(GError) error = NULL; if (g_spawn_command_line_sync ("locale -a", &locales, NULL, NULL, &error)) avail_locales = g_strsplit (g_strchomp (locales), "\n", -1); else g_warning ("Failed to run 'locale -a': %s", error->message); } if (!avail_locales) return NULL; for (gint i = 0; avail_locales[i]; i++) { const gchar *loc = avail_locales[i]; if (!g_strrstr (loc, ".utf8")) continue; if (g_str_has_prefix (loc, language)) return g_strdup (loc); } return NULL; } /** * 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 = g_getenv ("LANG"); if (!lang) return NULL; for (GList *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); LightDMLanguagePrivate *priv = lightdm_language_get_instance_private (language); return priv->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) { g_return_val_if_fail (LIGHTDM_IS_LANGUAGE (language), NULL); LightDMLanguagePrivate *priv = lightdm_language_get_instance_private (language); if (!priv->name) { g_autofree gchar *locale = get_locale_name (priv->code); if (locale) { const gchar *current = setlocale (LC_ALL, NULL); setlocale (LC_IDENTIFICATION, locale); setlocale (LC_MESSAGES, ""); const 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) { g_auto(GStrv) tokens = g_strsplit_set (priv->code, "_.@", 2); priv->name = g_strdup (tokens[0]); } } 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) { g_return_val_if_fail (LIGHTDM_IS_LANGUAGE (language), NULL); LightDMLanguagePrivate *priv = lightdm_language_get_instance_private (language); if (!priv->territory && strchr (priv->code, '_')) { g_autofree 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) { g_auto(GStrv) tokens = g_strsplit_set (priv->code, "_.@", 3); priv->territory = g_strdup (tokens[1]); } } 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) { g_return_val_if_fail (LIGHTDM_IS_LANGUAGE (language), FALSE); g_return_val_if_fail (code != NULL, FALSE); LightDMLanguagePrivate *priv = lightdm_language_get_instance_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 = lightdm_language_get_instance_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 = 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); 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)); } ubuntu-lightdm-e42f6d6/liblightdm-gobject/layout.c000066400000000000000000000245111523516304700223300ustar00rootroot00000000000000/* -*- 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" /** * SECTION:layout * @short_description: Control the keyboard layout * @include: lightdm.h * * #LightDMLayout is an object that describes a keyboard that is available on the system. */ /** * LightDMLayout: * * #LightDMLayout is an opaque data structure and can only be accessed * using the provided functions. */ /** * LightDMLayoutClass: * * Class structure for #LightDMLayout. */ enum { PROP_NAME = 1, PROP_SHORT_DESCRIPTION, PROP_DESCRIPTION }; typedef struct { gchar *name; gchar *short_description; gchar *description; } LightDMLayoutPrivate; G_DEFINE_TYPE_WITH_PRIVATE (LightDMLayout, lightdm_layout, G_TYPE_OBJECT) 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) { *layout = NULL; *variant = NULL; if (!name) return; g_auto(GStrv) split = g_strsplit (name, "\t", 2); if (split[0]) { *layout = g_strdup (split[0]); if (split[1]) *variant = g_strdup (split[1]); } } static void variant_cb (XklConfigRegistry *config, const XklConfigItem *item, gpointer data) { g_autofree gchar *full_name = make_layout_string (data, item->name); LightDMLayout *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); } static void layout_cb (XklConfigRegistry *config, const XklConfigItem *item, gpointer data) { LightDMLayout *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) { 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"); XklConfigRegistry *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) { g_return_if_fail (dmlayout != NULL); lightdm_get_layouts(); g_debug ("Setting keyboard layout to '%s'", lightdm_layout_get_name (dmlayout)); g_autofree gchar *layout = NULL; g_autofree gchar *variant = NULL; parse_layout_string (lightdm_layout_get_name (dmlayout), &layout, &variant); if (layouts && xkl_config) { xkl_config->layouts[0] = g_steal_pointer(&layout); xkl_config->layouts[1] = NULL; xkl_config->variants[0] = g_steal_pointer(&variant); xkl_config->variants[1] = NULL; default_layout = dmlayout; } if (!xkl_config_rec_activate (xkl_config, xkl_engine)) g_warning ("Failed to activate XKL 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) { g_autofree gchar *full_name = make_layout_string (xkl_config->layouts ? xkl_config->layouts[0] : NULL, xkl_config->variants ? xkl_config->variants[0] : NULL); for (GList *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; } } } 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); LightDMLayoutPrivate *priv = lightdm_layout_get_instance_private (layout); return priv->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); LightDMLayoutPrivate *priv = lightdm_layout_get_instance_private (layout); return priv->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); LightDMLayoutPrivate *priv = lightdm_layout_get_instance_private (layout); return priv->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 = lightdm_layout_get_instance_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 = 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_finalize (GObject *object) { LightDMLayout *self = LIGHTDM_LAYOUT (object); LightDMLayoutPrivate *priv = lightdm_layout_get_instance_private (self); g_free (priv->name); g_free (priv->short_description); g_free (priv->description); } static void lightdm_layout_class_init (LightDMLayoutClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->set_property = lightdm_layout_set_property; object_class->get_property = lightdm_layout_get_property; object_class->finalize = lightdm_layout_finalize; 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)); } ubuntu-lightdm-e42f6d6/liblightdm-gobject/liblightdm-gobject-1.deps000066400000000000000000000000161523516304700254060ustar00rootroot00000000000000posix gio-2.0 ubuntu-lightdm-e42f6d6/liblightdm-gobject/liblightdm-gobject-1.pc.in000066400000000000000000000004771523516304700254750ustar00rootroot00000000000000prefix=@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 ubuntu-lightdm-e42f6d6/liblightdm-gobject/lightdm.h000066400000000000000000000012421523516304700224440ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/liblightdm-gobject/lightdm/000077500000000000000000000000001523516304700222745ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/liblightdm-gobject/lightdm/greeter.h000066400000000000000000000170451523516304700241110ustar00rootroot00000000000000/* * 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)) typedef struct _LightDMGreeter LightDMGreeter; typedef struct _LightDMGreeterClass LightDMGreeterClass; #define LIGHTDM_GREETER_ERROR lightdm_greeter_error_quark () #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 publicly visible. * * Prompt types the client is required to display. */ 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); struct _LightDMGreeter { GObject parent_instance; }; struct _LightDMGreeterClass { /*< private >*/ 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); }; #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 /** * LightDMGreeterError: * @LIGHTDM_GREETER_ERROR_COMMUNICATION_ERROR: error communicating with daemon. * @LIGHTDM_GREETER_ERROR_CONNECTION_FAILED: failed to connect to the daemon. * @LIGHTDM_GREETER_ERROR_SESSION_FAILED: requested session failed to start. * @LIGHTDM_GREETER_ERROR_NO_AUTOLOGIN: autologin not configured. * @LIGHTDM_GREETER_ERROR_INVALID_USER: autologin not configured. * * Error codes returned by greeter operations. */ typedef enum { LIGHTDM_GREETER_ERROR_COMMUNICATION_ERROR, LIGHTDM_GREETER_ERROR_CONNECTION_FAILED, LIGHTDM_GREETER_ERROR_SESSION_FAILED, LIGHTDM_GREETER_ERROR_NO_AUTOLOGIN, LIGHTDM_GREETER_ERROR_INVALID_USER } LightDMGreeterError; GQuark lightdm_greeter_error_quark (void); GType lightdm_greeter_error_get_type (void); 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); const gchar *lightdm_greeter_get_autologin_session_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); gboolean lightdm_greeter_authenticate (LightDMGreeter *greeter, const gchar *username, GError **error); gboolean lightdm_greeter_authenticate_as_guest (LightDMGreeter *greeter, GError **error); gboolean lightdm_greeter_authenticate_autologin (LightDMGreeter *greeter, GError **error); gboolean lightdm_greeter_authenticate_remote (LightDMGreeter *greeter, const gchar *session, const gchar *username, GError **error); gboolean lightdm_greeter_respond (LightDMGreeter *greeter, const gchar *response, GError **error); gboolean lightdm_greeter_cancel_authentication (LightDMGreeter *greeter, GError **error); 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); gboolean lightdm_greeter_set_language (LightDMGreeter *greeter, const gchar *language, GError **error); 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, GError **error); gchar *lightdm_greeter_ensure_shared_data_dir_sync (LightDMGreeter *greeter, const gchar *username, GError **error); #ifndef LIGHTDM_DISABLE_DEPRECATED gboolean lightdm_greeter_connect_sync (LightDMGreeter *greeter, GError **error); #endif G_END_DECLS #endif /* LIGHTDM_GREETER_H_ */ ubuntu-lightdm-e42f6d6/liblightdm-gobject/lightdm/language.h000066400000000000000000000043711523516304700242350ustar00rootroot00000000000000/* * 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 _LightDMLanguage LightDMLanguage; typedef struct _LightDMLanguageClass LightDMLanguageClass; struct _LightDMLanguage { GObject parent_instance; }; struct _LightDMLanguageClass { /*< private >*/ GObjectClass parent_class; /* Reserved */ void (*reserved1) (void); void (*reserved2) (void); void (*reserved3) (void); void (*reserved4) (void); void (*reserved5) (void); void (*reserved6) (void); }; #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_ */ ubuntu-lightdm-e42f6d6/liblightdm-gobject/lightdm/layout.h000066400000000000000000000042251523516304700237650ustar00rootroot00000000000000/* * 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 _LightDMLayout LightDMLayout; typedef struct _LightDMLayoutClass LightDMLayoutClass; struct _LightDMLayout { GObject parent_instance; }; struct _LightDMLayoutClass { /*< private >*/ GObjectClass parent_class; /* Reserved */ void (*reserved1) (void); void (*reserved2) (void); void (*reserved3) (void); void (*reserved4) (void); void (*reserved5) (void); void (*reserved6) (void); }; #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_ */ ubuntu-lightdm-e42f6d6/liblightdm-gobject/lightdm/power.h000066400000000000000000000015501523516304700236020ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/liblightdm-gobject/lightdm/session.h000066400000000000000000000043051523516304700241320ustar00rootroot00000000000000/* * 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 _LightDMSession LightDMSession; typedef struct _LightDMSessionClass LightDMSessionClass; struct _LightDMSession { GObject parent_instance; }; struct _LightDMSessionClass { /*< private >*/ GObjectClass parent_class; /* Reserved */ void (*reserved1) (void); void (*reserved2) (void); void (*reserved3) (void); void (*reserved4) (void); void (*reserved5) (void); void (*reserved6) (void); }; #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_ */ ubuntu-lightdm-e42f6d6/liblightdm-gobject/lightdm/system.h000066400000000000000000000015311523516304700237710ustar00rootroot00000000000000/* * 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); const gchar *lightdm_get_os_id (void); const gchar *lightdm_get_os_name (void); const gchar *lightdm_get_os_pretty_name (void); const gchar *lightdm_get_os_version (void); const gchar *lightdm_get_os_version_id (void); gchar *lightdm_get_motd (void); G_END_DECLS #endif /* LIGHTDM_HOSTNAME_H_ */ ubuntu-lightdm-e42f6d6/liblightdm-gobject/lightdm/user.h000066400000000000000000000112441523516304700234250ustar00rootroot00000000000000/* * 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)) typedef struct _LightDMUserList LightDMUserList; typedef struct _LightDMUserListClass 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)) typedef struct _LightDMUser LightDMUser; typedef struct _LightDMUserClass 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" struct _LightDMUser { GObject parent_instance; }; struct _LightDMUserClass { /*< private >*/ 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); }; struct _LightDMUserList { GObject parent_instance; }; struct _LightDMUserListClass { /*< private >*/ 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); }; #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); gboolean lightdm_user_get_is_locked (LightDMUser *user); G_END_DECLS #endif /* LIGHTDM_USER_H_ */ ubuntu-lightdm-e42f6d6/liblightdm-gobject/power.c000066400000000000000000000246331523516304700221540ustar00rootroot00000000000000/* * 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" /** * SECTION:power * @title: Power Management * @short_description: Shutdown, restart, sleep the system * @include: lightdm.h * * Helper functions to perform power management operations. */ 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) { 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; } return g_dbus_proxy_call_sync (login1_proxy, function, parameters, G_DBUS_CALL_FLAGS_NONE, -1, NULL, error); } static GVariant * ck_call_function (const gchar *function, GVariant *parameters, GError **error) { 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; } return g_dbus_proxy_call_sync (ck_proxy, function, parameters, G_DBUS_CALL_FLAGS_NONE, -1, NULL, error); } /** * 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) { g_autoptr(GVariant) r = login1_call_function ("CanSuspend", NULL, NULL); gboolean can_suspend = FALSE; if (r) { const 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; } } if (!r) { const gchar *result; r = ck_call_function ("CanSuspend", NULL, NULL); if (r && g_variant_is_of_type (r, G_VARIANT_TYPE ("(s)"))) { g_variant_get (r, "(&s)", &result); can_suspend = g_strcmp0 (result, "yes") == 0; } } if (!r) { 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); } 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) { g_autoptr(GError) login1_error = NULL; g_autoptr(GVariant) login1_result = login1_call_function ("Suspend", g_variant_new("(b)", FALSE), &login1_error); if (login1_result) return TRUE; g_debug ("Can't suspend using logind; falling back to ConsoleKit: %s", login1_error->message); g_autoptr(GError) ck_error = NULL; g_autoptr(GVariant) ck_result = ck_call_function ("Suspend", g_variant_new ("(b)", FALSE), &ck_error); if (ck_result) return TRUE; g_debug ("Can't suspend using logind or ConsoleKit; falling back to UPower: %s", ck_error->message); g_autoptr(GVariant) upower_result = upower_call_function ("Suspend", error); return upower_result != NULL; } /** * 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) { g_autoptr(GVariant) r = login1_call_function ("CanHibernate", NULL, NULL); gboolean can_hibernate = FALSE; if (r) { const 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; } } if (!r) { const gchar *result; r = ck_call_function ("CanHibernate", NULL, NULL); if (r && g_variant_is_of_type (r, G_VARIANT_TYPE ("(s)"))) { g_variant_get (r, "(&s)", &result); can_hibernate = g_strcmp0 (result, "yes") == 0; } } if (!r) { 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); } 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) { g_autoptr(GError) login1_error = NULL; g_autoptr(GVariant) login1_result = login1_call_function ("Hibernate", g_variant_new("(b)", FALSE), &login1_error); if (login1_result) return TRUE; g_debug ("Can't hibernate using logind; falling back to ConsoleKit: %s", login1_error->message); g_autoptr(GError) ck_error = NULL; g_autoptr(GVariant) ck_result = ck_call_function ("Hibernate", g_variant_new ("(b)", FALSE), &ck_error); if (ck_result) return TRUE; g_debug ("Can't hibernate using logind or ConsoleKit; falling back to UPower: %s", ck_error->message); g_autoptr(GVariant) upower_result = upower_call_function ("Hibernate", error); return upower_result != NULL; } /** * 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) { g_autoptr(GVariant) r = login1_call_function ("CanReboot", NULL, NULL); gboolean can_restart = FALSE; if (r) { const 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, NULL); if (r && g_variant_is_of_type (r, G_VARIANT_TYPE ("(b)"))) g_variant_get (r, "(b)", &can_restart); } 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) { g_autoptr(GError) login1_error = NULL; g_autoptr(GVariant) login1_result = login1_call_function ("Reboot", g_variant_new("(b)", FALSE), &login1_error); if (login1_result) return TRUE; g_autoptr(GVariant) ck_result = ck_call_function ("Restart", NULL, error); return ck_result != NULL; } /** * 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) { g_autoptr(GVariant) r = login1_call_function ("CanPowerOff", NULL, NULL); gboolean can_shutdown = FALSE; if (r) { const 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, NULL); if (r && g_variant_is_of_type (r, G_VARIANT_TYPE ("(b)"))) g_variant_get (r, "(b)", &can_shutdown); } 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) { g_autoptr(GError) login1_error = NULL; g_autoptr(GVariant) login1_result = login1_call_function ("PowerOff", g_variant_new("(b)", FALSE), &login1_error); if (login1_result) return TRUE; g_autoptr(GVariant) ck_result = ck_call_function ("Stop", NULL, error); return ck_result != NULL; } ubuntu-lightdm-e42f6d6/liblightdm-gobject/session.c000066400000000000000000000265471523516304700225110ustar00rootroot00000000000000/* * 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" /** * SECTION:session * @short_description: Choose the session to use * @include: lightdm.h * * Object containing information about a session type. #LightDMSession objects are not created by the user, but provided by the #LightDMGreeter object. */ /** * LightDMSession: * * #LightDMSession is an opaque data structure and can only be accessed * using the provided functions. */ /** * LightDMSessionClass: * * Class structure for #LightDMSession. */ enum { PROP_KEY = 1, PROP_NAME, PROP_COMMENT }; typedef struct { gchar *key; gchar *type; gchar *name; gchar *comment; } LightDMSessionPrivate; G_DEFINE_TYPE_WITH_PRIVATE (LightDMSession, lightdm_session, G_TYPE_OBJECT) static gboolean have_sessions = FALSE; static GList *local_sessions = NULL; static GList *remote_sessions = NULL; static gint compare_session (gconstpointer a, gconstpointer b) { return strcmp (lightdm_session_get_name (LIGHTDM_SESSION (a)), lightdm_session_get_name (LIGHTDM_SESSION (b))); } static LightDMSession * load_session (GKeyFile *key_file, const gchar *key, const gchar *default_type) { 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 g_autofree gchar *domain = g_key_file_get_string (key_file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_GETTEXT_DOMAIN, NULL); #else g_autofree gchar *domain = g_key_file_get_string (key_file, G_KEY_FILE_DESKTOP_GROUP, "X-GNOME-Gettext-Domain", NULL); #endif g_autofree gchar *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"); return NULL; } g_autofree gchar *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) { g_autofree gchar *full_path = g_find_program_in_path (try_exec); if (!full_path) return NULL; } g_autofree gchar *type = g_key_file_get_string (key_file, G_KEY_FILE_DESKTOP_GROUP, "X-LightDM-Session-Type", NULL); if (!type) type = strdup (default_type); LightDMSession *session = g_object_new (LIGHTDM_TYPE_SESSION, NULL); LightDMSessionPrivate *priv = lightdm_session_get_instance_private (session); g_free (priv->key); priv->key = g_strdup (key); g_free (priv->type); priv->type = g_steal_pointer (&type); g_free (priv->name); priv->name = g_steal_pointer (&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 (""); return session; } static GList * load_sessions_dir (GList *sessions, const gchar *sessions_dir, const gchar *default_type) { g_autoptr(GError) error = NULL; GDir *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); if (!directory) return sessions; const size_t ext_len = strlen(".desktop"); while (TRUE) { const gchar *filename = g_dir_read_name (directory); if (filename == NULL) break; if (!g_str_has_suffix (filename, ".desktop")) continue; g_autofree gchar *path = g_build_filename (sessions_dir, filename, NULL); g_autoptr(GKeyFile) key_file = g_key_file_new (); g_autoptr(GError) e = NULL; gboolean result = g_key_file_load_from_file (key_file, path, G_KEY_FILE_NONE, &e); if (e) g_warning ("Failed to load session file %s: %s:", path, e->message); if (result) { g_autofree gchar *key = g_strndup (filename, strlen(filename) - ext_len); LightDMSession *session = load_session (key_file, key, default_type); LightDMSessionPrivate *priv = lightdm_session_get_instance_private (session); if (session) { g_debug ("Loaded session %s (%s, %s)", path, priv->name, priv->comment); sessions = g_list_insert_sorted (sessions, session, compare_session); } else g_debug ("Ignoring session %s", path); } } g_dir_close (directory); return sessions; } static GList * load_sessions (const gchar *sessions_dir) { g_auto(GStrv) dirs = g_strsplit (sessions_dir, ":", -1); GList *sessions = NULL; for (int i = 0; dirs[i]; i++) { const gchar *default_type = "x"; if (dirs[i] != NULL && g_str_has_suffix (dirs[i], "/wayland-sessions") == TRUE) default_type = "wayland"; sessions = load_sessions_dir (sessions, dirs[i], default_type); } return sessions; } static void update_sessions (void) { if (have_sessions) return; g_autofree gchar *sessions_dir = g_strdup (SESSIONS_DIR); g_autofree gchar *remote_sessions_dir = g_strdup (REMOTE_SESSIONS_DIR); /* Use session directory from configuration */ config_load_from_standard_locations (config_get_instance (), NULL, NULL); gchar *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); 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); LightDMSessionPrivate *priv = lightdm_session_get_instance_private (session); return priv->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); LightDMSessionPrivate *priv = lightdm_session_get_instance_private (session); return priv->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); LightDMSessionPrivate *priv = lightdm_session_get_instance_private (session); return priv->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); LightDMSessionPrivate *priv = lightdm_session_get_instance_private (session); return priv->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 = 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 = lightdm_session_get_instance_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); 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)); } ubuntu-lightdm-e42f6d6/liblightdm-gobject/system.c000066400000000000000000000106021523516304700223330ustar00rootroot00000000000000/* * 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" /** * SECTION:system * @title: System Information * @short_description: Get system information * @include: lightdm.h * * Helper functions to get system information. */ /** * lightdm_get_hostname: * * Return value: The name of the host we are running on. **/ const gchar * lightdm_get_hostname (void) { return g_get_host_name (); } static gboolean os_release_loaded = FALSE; static gchar *os_id = NULL; static gchar *os_name = NULL; static gchar *os_version = NULL; static gchar *os_version_id = NULL; static gchar *os_pretty_name = NULL; static void use_os_value (const gchar *name, const gchar *value) { if (strcmp (name, "ID") == 0) os_id = g_strdup (value); if (strcmp (name, "NAME") == 0) os_name = g_strdup (value); if (strcmp (name, "VERSION") == 0) os_version = g_strdup (value); if (strcmp (name, "VERSION_ID") == 0) os_version_id = g_strdup (value); if (strcmp (name, "PRETTY_NAME") == 0) os_pretty_name = g_strdup (value); } static void load_os_release (void) { if (os_release_loaded) return; g_autofree gchar *data = NULL; if (!g_file_get_contents ("/etc/os-release", &data, NULL, NULL)) return; g_auto(GStrv) lines = g_strsplit (data, "\n", -1); for (guint i = 0; lines[i] != NULL; i++) { g_auto(GStrv) tokens = g_strsplit (lines[i], "=", 2); if (tokens[0] != NULL && tokens[1] != NULL) { const gchar *name = g_strstrip (tokens[0]); gchar *value = g_strstrip (tokens[1]); size_t value_length = strlen (value); if (value_length > 1 && value[0] == '\"' && value[value_length - 1] == '\"') { value[value_length - 1] = '\0'; value++; use_os_value (name, value); } } } os_release_loaded = TRUE; } /** * lightdm_get_os_id: * * Get a word describing the OS, suitable for checking which OS the greeter is running on. * e.g. "ubuntu" * * Return value: (nullable): a string (ID variable from /etc/os-release) or %NULL if not set. **/ const gchar * lightdm_get_os_id (void) { load_os_release (); return os_id; } /** * lightdm_get_os_name: * * Get a line of text describing the OS without version information, suitable for presentation to the user. * e.g. "Ubuntu" * * Return value: (nullable): a string (NAME variable from /etc/os-release) or %NULL if not set. **/ const gchar * lightdm_get_os_name (void) { load_os_release (); return os_name; } /** * lightdm_get_os_pretty_name: * * Get a line of text describing the OS, suitable for presentation to the user. * e.g. "Ubuntu 16.04.1 LTS" * * Return value: (nullable): a string (PRETTY_NAME variable from /etc/os-release) or %NULL if not set. **/ const gchar * lightdm_get_os_pretty_name (void) { load_os_release (); return os_pretty_name; } /** * lightdm_get_os_version: * * Get a line of text describing the OS version, suitable for presentation to the user. * e.g. "16.04.1 LTS (Xenial Xapus)" * * Return value: (nullable): a string (VERSION variable from /etc/os-release) or %NULL if not set. **/ const gchar * lightdm_get_os_version (void) { load_os_release (); return os_version; } /** * lightdm_get_os_version_id: * * Get a word describing the OS version, suitable for checking which version of the OS this greeter is running on. * e.g. "16.04" * * Return value: (nullable): a string (VERSION_ID variable from /etc/os-release) or %NULL if not set. **/ const gchar * lightdm_get_os_version_id (void) { load_os_release (); return os_version_id; } /** * lightdm_get_motd: * * Get a system message that should be presented to the user. * e.g. "Welcome to Yoyodyne" * * Return value: (nullable): a string (the contents of /etc/motd) or %NULL if not set. **/ gchar * lightdm_get_motd (void) { gchar *data = NULL; g_file_get_contents ("/etc/motd", &data, NULL, NULL); return data; } ubuntu-lightdm-e42f6d6/liblightdm-gobject/user.c000066400000000000000000000722531523516304700217770ustar00rootroot00000000000000/* -*- 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" /** * SECTION:user-list * @short_description: Get information on user accounts on this system * @include: lightdm.h * * An object that contains information about local user accounts. */ /** * SECTION:user * @short_description: Get information on a user account * @include: lightdm.h * * Information about a local user account. */ /** * LightDMUserList: * * #LightDMUserList is an opaque data structure and can only be accessed * using the provided functions. */ /** * LightDMUserListClass: * * Class structure for #LightDMUserList. */ /** * LightDMUser: * * #LightDMUser is an opaque data structure and can only be accessed * using the provided functions. */ /** * LightDMUserClass: * * Class structure for #LightDMUser. */ enum { LIST_PROP_NUM_USERS = 1, LIST_PROP_LENGTH, LIST_PROP_USERS, }; enum { USER_PROP_COMMON_USER = 1, 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, USER_PROP_IS_LOCKED, }; 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_WITH_PRIVATE (LightDMUserList, lightdm_user_list, G_TYPE_OBJECT) G_DEFINE_TYPE_WITH_PRIVATE (LightDMUser, lightdm_user, G_TYPE_OBJECT) 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 = lightdm_user_list_get_instance_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 = lightdm_user_list_get_instance_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 = lightdm_user_list_get_instance_private (user_list); for (GList *link = priv->lightdm_list; link; link = link->next) { LightDMUser *lightdm_user = link->data; LightDMUserPrivate *user_priv = lightdm_user_get_instance_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 = lightdm_user_list_get_instance_private (user_list); if (priv->initialized) return; GList *common_users = common_user_list_get_users (common_user_list_get_instance ()); for (GList *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); LightDMUserListPrivate *priv = lightdm_user_list_get_instance_private (user_list); initialize_user_list_if_needed (user_list); return g_list_length (priv->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); LightDMUserListPrivate *priv = lightdm_user_list_get_instance_private (user_list); initialize_user_list_if_needed (user_list); return priv->lightdm_list; } /** * lightdm_user_list_get_user_by_name: * @user_list: A #LightDMUserList * @username: Name of user to get. * * Get information 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) { g_return_val_if_fail (LIGHTDM_IS_USER_LIST (user_list), NULL); g_return_val_if_fail (username != NULL, NULL); LightDMUserListPrivate *priv = lightdm_user_list_get_instance_private (user_list); initialize_user_list_if_needed (user_list); for (GList *link = priv->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 = 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 = lightdm_user_list_get_instance_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); 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 #LightDMUser 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 #LightDMUser 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 #LightDMUser 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); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_name (priv->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); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_real_name (priv->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); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_display_name (priv->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); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_home_directory (priv->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); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_image (priv->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); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_background (priv->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); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_language (priv->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); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_layout (priv->common_user); } /** * lightdm_user_get_layouts: * @user: A #LightDMUser * * Get the configured keyboard layouts for a user. * * Return value: (transfer none) (array zero-terminated=1): 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); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_layouts (priv->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); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_session (priv->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); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_logged_in (priv->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); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_has_messages (priv->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); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_uid (priv->common_user); } /** * lightdm_user_get_is_locked: * @user: A #LightDMUser * * Get if the user is locked. * * Returns: %TRUE if the user is locked **/ gboolean lightdm_user_get_is_locked (LightDMUser *user) { g_return_val_if_fail (LIGHTDM_IS_USER (user), FALSE); LightDMUserPrivate *priv = lightdm_user_get_instance_private (user); return common_user_get_is_locked (priv->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 = lightdm_user_get_instance_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 = 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; case USER_PROP_IS_LOCKED: g_value_set_boolean (value, lightdm_user_get_is_locked (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 = lightdm_user_get_instance_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); 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_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)); g_object_class_install_property (object_class, USER_PROP_IS_LOCKED, g_param_spec_boolean ("is-locked", "is-locked", "TRUE if the user is currently locked", FALSE, 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); } ubuntu-lightdm-e42f6d6/liblightdm-qt/000077500000000000000000000000001523516304700176535ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/liblightdm-qt/Makefile.am000066400000000000000000000040271523516304700217120ustar00rootroot00000000000000common_libadd = \ -L$(top_builddir)/liblightdm-gobject \ -llightdm-gobject-1 liblightdm_qt5_3_la_LIBADD = \ $(LIBLIGHTDM_QT5_LIBS) \ $(common_libadd) liblightdm_qt6_3_la_LIBADD = \ $(LIBLIGHTDM_QT6_LIBS) \ $(common_libadd) common_cflags = \ $(WARN_CXXFLAGS) \ -I$(top_srcdir)/liblightdm-gobject \ $(GLIB_CFLAGS) \ -DQT_NO_KEYWORDS liblightdm_qt5_3_la_CXXFLAGS = \ -fPIC \ -DQT_DISABLE_DEPRECATED_BEFORE="QT_VERSION_CHECK(4, 0, 0)" \ $(LIBLIGHTDM_QT5_CFLAGS) \ $(common_cflags) liblightdm_qt6_3_la_CXXFLAGS = \ -fPIC \ -DQT_DISABLE_DEPRECATED_BEFORE="QT_VERSION_CHECK(5, 0, 0)" \ $(LIBLIGHTDM_QT6_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_qt5_3includedir=$(includedir)/lightdm-qt5-3/QLightDM liblightdm_qt6_3includedir=$(includedir)/lightdm-qt6-3/QLightDM common_sources = \ greeter.cpp \ power.cpp \ sessionsmodel.cpp \ usersmodel.cpp liblightdm_qt5_3_la_SOURCES = \ $(common_sources) \ $(liblightdm_qt5_3include_HEADERS) liblightdm_qt6_3_la_SOURCES = \ $(common_sources) \ $(liblightdm_qt6_3include_HEADERS) pkgconfigdir = $(libdir)/pkgconfig CLEANFILES = \ *_moc*.cpp DISTCLEANFILES = \ $(pkgconfig_DATA) lib_LTLIBRARIES = BUILT_SOURCES = pkgconfig_DATA = 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 if COMPILE_LIBLIGHTDM_QT6 lib_LTLIBRARIES += liblightdm-qt6-3.la liblightdm_qt6_3include_HEADERS = $(common_headers) BUILT_SOURCES += $(common_sources:.cpp=_moc6.cpp) pkgconfig_DATA += liblightdm-qt6-3.pc endif # Support pretty printing MOC 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 $@ # qt6 %_moc6.cpp: QLightDM/%.h $(MOC6) $< -o $@ ubuntu-lightdm-e42f6d6/liblightdm-qt/QLightDM/000077500000000000000000000000001523516304700212645ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/liblightdm-qt/QLightDM/Greeter000066400000000000000000000000351523516304700226020ustar00rootroot00000000000000#include "QLightDM/greeter.h"ubuntu-lightdm-e42f6d6/liblightdm-qt/QLightDM/Power000066400000000000000000000000331523516304700222770ustar00rootroot00000000000000#include "QLightDM/power.h"ubuntu-lightdm-e42f6d6/liblightdm-qt/QLightDM/SessionsModel000066400000000000000000000000431523516304700237730ustar00rootroot00000000000000#include "QLightDM/sessionsmodel.h"ubuntu-lightdm-e42f6d6/liblightdm-qt/QLightDM/UsersModel000066400000000000000000000000401523516304700232630ustar00rootroot00000000000000#include "QLightDM/usersmodel.h"ubuntu-lightdm-e42f6d6/liblightdm-qt/QLightDM/greeter.h000066400000000000000000000070211523516304700230720ustar00rootroot00000000000000/* * 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(QString osId READ osId CONSTANT) Q_PROPERTY(QString osName READ osName CONSTANT) Q_PROPERTY(QString osPrettyName READ osPrettyName CONSTANT) Q_PROPERTY(QString osVersion READ osVersion CONSTANT) Q_PROPERTY(QString osVersionId READ osVersionId CONSTANT) Q_PROPERTY(QString motd READ motd CONSTANT) Q_PROPERTY(bool hasGuestAccount READ hasGuestAccountHint CONSTANT) Q_PROPERTY(bool locked READ lockHint 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; QString autologinSessionHint() const; bool autologinGuestHint() const; int autologinTimeoutHint() const; bool inAuthentication() const; bool isAuthenticated() const; QString authenticationUser() const; QString hostname() const; QString osId() const; QString osName() const; QString osPrettyName() const; QString osVersion() const; QString osVersionId() const; QString motd() 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 ubuntu-lightdm-e42f6d6/liblightdm-qt/QLightDM/power.h000066400000000000000000000024711523516304700225750ustar00rootroot00000000000000/* * 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 Q_DECL_EXPORT 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 ubuntu-lightdm-e42f6d6/liblightdm-qt/QLightDM/sessionsmodel.h000066400000000000000000000031061523516304700243240ustar00rootroot00000000000000/* * 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(); QHash roleNames() const; 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 ubuntu-lightdm-e42f6d6/liblightdm-qt/QLightDM/usersmodel.h000066400000000000000000000027131523516304700236220ustar00rootroot00000000000000/* * 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, IsLockedRole }; QHash roleNames() const; 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 ubuntu-lightdm-e42f6d6/liblightdm-qt/greeter.cpp000066400000000000000000000216111523516304700220150ustar00rootroot00000000000000/* * 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(), NULL); } void Greeter::authenticateAsGuest() { Q_D(Greeter); lightdm_greeter_authenticate_as_guest(d->ldmGreeter, NULL); } void Greeter::authenticateAutologin() { Q_D(Greeter); lightdm_greeter_authenticate_autologin(d->ldmGreeter, NULL); } void Greeter::authenticateRemote(const QString &session, const QString &username) { Q_D(Greeter); lightdm_greeter_authenticate_remote(d->ldmGreeter, session.toLocal8Bit().data(), username.toLocal8Bit().data(), NULL); } void Greeter::respond(const QString &response) { Q_D(Greeter); lightdm_greeter_respond(d->ldmGreeter, response.toLocal8Bit().data(), NULL); } void Greeter::cancelAuthentication() { Q_D(Greeter); lightdm_greeter_cancel_authentication(d->ldmGreeter, NULL); } 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(), NULL); } 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(), NULL)); } 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)); } QString Greeter::autologinSessionHint() const { Q_D(const Greeter); return QString::fromUtf8(lightdm_greeter_get_autologin_session_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()); } QString Greeter::osName() const { return QString::fromUtf8(lightdm_get_os_name()); } QString Greeter::osId() const { return QString::fromUtf8(lightdm_get_os_id()); } QString Greeter::osPrettyName() const { return QString::fromUtf8(lightdm_get_os_pretty_name()); } QString Greeter::osVersion() const { return QString::fromUtf8(lightdm_get_os_version()); } QString Greeter::osVersionId() const { return QString::fromUtf8(lightdm_get_os_version_id()); } QString Greeter::motd() const { return QString::fromUtf8(lightdm_get_motd()); } #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) #include "greeter_moc6.cpp" #else #include "greeter_moc5.cpp" #endif ubuntu-lightdm-e42f6d6/liblightdm-qt/liblightdm-qt5-3.pc.in000066400000000000000000000004041523516304700235700ustar00rootroot00000000000000prefix=@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 ubuntu-lightdm-e42f6d6/liblightdm-qt/liblightdm-qt6-3.pc.in000066400000000000000000000004141523516304700235720ustar00rootroot00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Name: liblightdm-qt6 Description: LightDM Qt6 client library Version: @VERSION@ Requires: Qt6Core Qt6Gui Qt6DBus Libs: -L${libdir} -llightdm-qt6-3 Cflags: -I${includedir}/lightdm-qt6-3 ubuntu-lightdm-e42f6d6/liblightdm-qt/power.cpp000066400000000000000000000030441523516304700215140ustar00rootroot00000000000000/* * 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 using namespace QLightDM; class PowerInterface::PowerInterfacePrivate { public: PowerInterfacePrivate(); }; PowerInterface::PowerInterfacePrivate::PowerInterfacePrivate() { } PowerInterface::PowerInterface(QObject *parent) : QObject(parent), d(new PowerInterfacePrivate) { } PowerInterface::~PowerInterface() { delete d; } bool PowerInterface::canSuspend() { return lightdm_get_can_suspend (); } bool PowerInterface::suspend() { return lightdm_suspend (NULL); } bool PowerInterface::canHibernate() { return lightdm_get_can_hibernate (); } bool PowerInterface::hibernate() { return lightdm_hibernate (NULL); } bool PowerInterface::canShutdown() { return lightdm_get_can_shutdown (); } bool PowerInterface::shutdown() { return lightdm_shutdown (NULL); } bool PowerInterface::canRestart() { return lightdm_get_can_restart (); } bool PowerInterface::restart() { return lightdm_restart (NULL); } #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) #include "power_moc6.cpp" #else #include "power_moc5.cpp" #endif ubuntu-lightdm-e42f6d6/liblightdm-qt/sessionsmodel.cpp000066400000000000000000000072301523516304700232500ustar00rootroot00000000000000/* * 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 compatibility. SessionsModel::SessionsModel(QObject *parent) : QAbstractListModel(parent), d_ptr(new SessionsModelPrivate(this)) { Q_D(SessionsModel); d->loadSessions(SessionsModel::LocalSessions); } SessionsModel::SessionsModel(SessionsModel::SessionType sessionType, QObject *parent) : QAbstractListModel(parent), d_ptr(new SessionsModelPrivate(this)) { Q_D(SessionsModel); d->loadSessions(sessionType); } SessionsModel::~SessionsModel() { delete d_ptr; } QHash SessionsModel::roleNames() const { QHash roles; roles[KeyRole] = "key"; roles[Qt::DisplayRole] = "display"; roles[Qt::ToolTipRole] = "toolTip"; return roles; } 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(6, 0, 0) #include "sessionsmodel_moc6.cpp" #else #include "sessionsmodel_moc5.cpp" #endif ubuntu-lightdm-e42f6d6/liblightdm-qt/usersmodel.cpp000066400000000000000000000206031523516304700225420ustar00rootroot00000000000000/* * 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; bool isLocked; 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); user.isLocked = lightdm_user_get_is_locked(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); user.isLocked = lightdm_user_get_is_locked(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); that->users[i].isLocked = lightdm_user_get_is_locked(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); d->loadUsers(); } UsersModel::~UsersModel() { delete d_ptr; } QHash UsersModel::roleNames() const { QHash roles; roles[Qt::DisplayRole] = "display"; roles[Qt::DecorationRole] = "decoration"; 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"; roles[IsLockedRole] = "isLocked"; return roles; } 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; case UsersModel::IsLockedRole: return d->users[row].isLocked; } return QVariant(); } #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) #include "usersmodel_moc6.cpp" #else #include "usersmodel_moc5.cpp" #endif ubuntu-lightdm-e42f6d6/lightdm.doap000066400000000000000000000015711523516304700174130ustar00rootroot00000000000000 lightdm X Display Manager Robert Ancell rancell ubuntu-lightdm-e42f6d6/m4/000077500000000000000000000000001523516304700154325ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/m4/introspection.m4000066400000000000000000000066141523516304700206030ustar00rootroot00000000000000dnl -*- 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]) ]) ubuntu-lightdm-e42f6d6/m4/qt-validate-moc.m4000066400000000000000000000051231523516304700206640ustar00rootroot00000000000000# Detect Qt5 and Qt6 moc executable # partially borrowed from freeciv qt m4 scripts # https://github.com/freeciv/freeciv/blob/main/m4/qt6.m4 # by Marko Lindqvist, which is licensed under GPL v2.0 dnl Qt5 AC_DEFUN([QT5_IF_QT5_MOC], AS_IF([$1 -v >/dev/null 2>/dev/null && (test "`$1 -v 2<&1 | grep -o 'Qt [[[0-9]]]\+'`" = "Qt 5" || test "`$1 -v 2<&1 | grep -o 'moc [[[0-9]]]\+'`" = "moc 5" || test "`$1 -v 2<&1 | grep -o 'moc-qt[[[0-9]]]\+'`" = "moc-qt5")], [$2])) dnl Set MOCCMD to $1 if it is the Qt 5 "moc". AC_DEFUN([QT5_TRY_MOC], [QT5_IF_QT5_MOC([$1], [MOCCMD="$1"])]) dnl If a usable moc command is found set $1 AC_DEFUN([QT5_VALIDATE_MOC], [ AC_MSG_CHECKING([the Qt 5 moc command]) dnl Try to find a Qt 5 'moc' AS_IF([test "x$MOCCMD" = "x"], [for mocpath in "moc" "qtchooser -run-tool=moc -qt=5" "moc-qt5" do if test "x$MOCCMD" = "x" ; then QT5_TRY_MOC([$mocpath]) fi done AS_IF([test "x$MOCCMD" = "x"], [AC_MSG_RESULT([not found]); AC_SUBST($1,"")], [AC_MSG_RESULT([$MOCCMD]); AC_SUBST($1,"$MOCCMD")]) MOCCMD=""], [AC_MSG_ERROR(["MOCCMD should not be set"])])]) dnl Qt6 AC_DEFUN([QT6_IF_QT6_MOC], AS_IF([$1 -v >/dev/null 2>/dev/null && (test "`$1 -v 2<&1 | grep -o 'Qt [[[0-9]]]\+'`" = "Qt 6" || test "`$1 -v 2<&1 | grep -o 'moc [[[0-9]]]\+'`" = "moc 6" || test "`$1 -v 2<&1 | grep -o 'moc-qt[[[0-9]]]\+'`" = "moc-qt6")], [$2])) dnl Set MOCCMD to $1 if it is the Qt 6 "moc". AC_DEFUN([QT6_TRY_MOC], [QT6_IF_QT6_MOC([$1], [MOCCMD="$1"])]) dnl If a usable moc command is found set $1 AC_DEFUN([QT6_VALIDATE_MOC], [ AC_MSG_CHECKING([the Qt 6 moc command]) dnl Try to find a Qt 6 'moc' AS_IF([test "x$MOCCMD" = "x"], [for mocpath in "moc" "qtchooser -run-tool=moc -qt=6" "moc-qt6" \ "/usr/lib/qt6/moc" "/usr/lib/qt6/libexec/moc" \ "/usr/lib64/qt6/moc" "/usr/lib64/qt6/libexec/moc" \ "$prefix/lib/qt6/moc" "$prefix/lib/qt6/libexec/moc" \ "$libexecdir/moc" "$libexecdir/qt6/moc" \ "$libdir/qt6/moc" "$libdir/qt6/libexec/moc" do if test "x$MOCCMD" = "x" ; then QT6_TRY_MOC([$mocpath]) fi done AS_IF([test "x$MOCCMD" = "x"], [AC_MSG_RESULT([not found]); AC_SUBST($1,"")], [AC_MSG_RESULT([$MOCCMD]); AC_SUBST($1,"$MOCCMD")]) MOCCMD=""], [AC_MSG_ERROR(["MOCCMD should not be set"])])]) ubuntu-lightdm-e42f6d6/m4/vapigen.m4000066400000000000000000000064771523516304700173430ustar00rootroot00000000000000dnl 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") ]) ubuntu-lightdm-e42f6d6/po/000077500000000000000000000000001523516304700155305ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/po/LINGUAS000066400000000000000000000004561523516304700165620ustar00rootroot00000000000000af 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 ubuntu-lightdm-e42f6d6/po/POTFILES.in000066400000000000000000000003231523516304700173030ustar00rootroot00000000000000# List of source files containing translatable strings. # Please keep this file sorted alphabetically. [encoding: UTF-8] data/org.freedesktop.DisplayManager.AccountsService.policy.in src/lightdm.c src/dm-tool.c ubuntu-lightdm-e42f6d6/po/af.po000066400000000000000000000047041523516304700164630ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/an.po000066400000000000000000000047041523516304700164730ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/ar.po000066400000000000000000000063701523516304700165000ustar00rootroot00000000000000# 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 أظهر خيارات المساعدة" ubuntu-lightdm-e42f6d6/po/ast.po000066400000000000000000000052311523516304700166600ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/az.po000066400000000000000000000065001523516304700165030ustar00rootroot00000000000000# 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. # Osman Kerimli , 2018. # msgid "" msgstr "" "Project-Id-Version: lightdm\n" "Report-Msgid-Bugs-To: Osman Kerimli \n" "POT-Creation-Date: 2010-12-06 11:05+0000\n" "PO-Revision-Date: 2018-12-18 00:11+0000\n" "Last-Translator: Osman Kerimli \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 "Bütün proqramları bağlayıb kompüteri yenidən başlatmaq istədiyinizə əmin" "sinizmi?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Ləğv et" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Yenidən başlat" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "" "Are you sure you want to close all programs and shutdown the computer?" msgstr "" "Bütün proqramları bağlayıb kompüteri yenidən başlatmaq istədiyinizə əminsinizmi?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Söndür" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Böyük Şrift" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Yüksək Kontrast" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Seçimlər" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Dil" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Klaviatura tərtibatı" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Sessiya" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Dayandır" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Qış yuxusu" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Yenidən başlat..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Söndür..." #. 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 "" "İstifadə:\n" " %s - Displey Menecer" #. 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 "" "Kömək Seçimləri:\n" " -c, --config Konfiqurasiya faylı istifadə et\n" " --pid-file PID-i yazmaq üçün fayl\n" " -d, --debug Xəta arıdıcı mesajlarını dərc et\n" " --test-mode İmtiyazsız istifadəçi kimi başlat\n" " -v, --version Buraxılış versiyasını göstər\n" " -h, --help Kömək seçimlərini göstər" ubuntu-lightdm-e42f6d6/po/be.po000066400000000000000000000047061523516304700164650ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/bg.po000066400000000000000000000061471523516304700164700ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/bn.po000066400000000000000000000060631523516304700164740ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/bo.po000066400000000000000000000047001523516304700164710ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/br.po000066400000000000000000000046761523516304700165100ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/bs.po000066400000000000000000000061441523516304700165010ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/ca.po000066400000000000000000000064071523516304700164620ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/ca@valencia.po000066400000000000000000000053121523516304700202570ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/ckb.po000066400000000000000000000047231523516304700166350ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/cs.po000066400000000000000000000061161523516304700165010ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/da.po000066400000000000000000000061661523516304700164650ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/de.po000066400000000000000000000063711523516304700164670ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/el.po000066400000000000000000000073161523516304700164770ustar00rootroot00000000000000# 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 Εμφάνιση αυτής της βοήθειας" ubuntu-lightdm-e42f6d6/po/en_AU.po000066400000000000000000000062131523516304700170610ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/en_CA.po000066400000000000000000000047251523516304700170450ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/en_GB.po000066400000000000000000000061641523516304700170510ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/eo.po000066400000000000000000000061711523516304700165000ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/es.po000066400000000000000000000063371523516304700165100ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/et.po000066400000000000000000000053431523516304700165050ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/eu.po000066400000000000000000000062451523516304700165100ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/fa.po000066400000000000000000000047001523516304700164570ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/fi.po000066400000000000000000000053601523516304700164720ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/fo.po000066400000000000000000000047001523516304700164750ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/fr.po000066400000000000000000000062031523516304700165000ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/fy.po000066400000000000000000000047001523516304700165070ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/gd.po000066400000000000000000000054001523516304700164610ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/gl.po000066400000000000000000000063001523516304700164710ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/gu.po000066400000000000000000000047021523516304700165060ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/he.po000066400000000000000000000063471523516304700164760ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/hi.po000066400000000000000000000070571523516304700165010ustar00rootroot00000000000000# 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 सहायक विकल्प दिखाएँ" ubuntu-lightdm-e42f6d6/po/hr.po000066400000000000000000000062001523516304700164770ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/hu.po000066400000000000000000000063001523516304700165030ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/ia.po000066400000000000000000000051761523516304700164720ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/id.po000066400000000000000000000061341523516304700164700ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/is.po000066400000000000000000000047051523516304700165110ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/it.po000066400000000000000000000062061523516304700165100ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/ja.po000066400000000000000000000066561523516304700164770ustar00rootroot00000000000000# 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 ヘルプのオプションを表示する" ubuntu-lightdm-e42f6d6/po/kk.po000066400000000000000000000070641523516304700165040ustar00rootroot00000000000000# 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 Көмек опцияларын көрсету" ubuntu-lightdm-e42f6d6/po/km.po000066400000000000000000000046741523516304700165120ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/kn.po000066400000000000000000000047001523516304700165010ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/ko.po000066400000000000000000000051621523516304700165050ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/ku.po000066400000000000000000000052451523516304700165150ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/lb.po000066400000000000000000000054361523516304700164750ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/lightdm.pot000066400000000000000000000055041523516304700177100ustar00rootroot00000000000000# 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: 2022-07-18 15:24+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" #: ../data/org.freedesktop.DisplayManager.AccountsService.policy.in.h:1 msgid "Set properties of own user" msgstr "" #: ../data/org.freedesktop.DisplayManager.AccountsService.policy.in.h:2 msgid "Authentication is required to set one's own greeter properties." msgstr "" #: ../data/org.freedesktop.DisplayManager.AccountsService.policy.in.h:3 msgid "Set properties of any user" msgstr "" #: ../data/org.freedesktop.DisplayManager.AccountsService.policy.in.h:4 msgid "Authentication is required to get another user's greeter properties." msgstr "" #: ../data/org.freedesktop.DisplayManager.AccountsService.policy.in.h:5 msgid "Authentication is required to set another user's greeter properties." msgstr "" #. Arguments and description for --help test #: ../src/lightdm.c:568 msgid "- Display Manager" msgstr "" #. Help string for command line --config flag #: ../src/lightdm.c:579 msgid "Use configuration file" msgstr "" #. Help string for command line --debug flag #: ../src/lightdm.c:582 msgid "Print debugging messages" msgstr "" #. Help string for command line --test-mode flag #: ../src/lightdm.c:585 msgid "Run as unprivileged user, skipping things that require root access" msgstr "" #. Help string for command line --pid-file flag #: ../src/lightdm.c:588 msgid "File to write PID into" msgstr "" #. Help string for command line --log-dir flag #: ../src/lightdm.c:591 msgid "Directory to write logs to" msgstr "" #. Help string for command line --run-dir flag #: ../src/lightdm.c:594 msgid "Directory to store running state" msgstr "" #. Help string for command line --cache-dir flag #: ../src/lightdm.c:597 msgid "Directory to cache information" msgstr "" #. Help string for command line --show-config flag #: ../src/lightdm.c:600 msgid "Show combined configuration" msgstr "" #. Help string for command line --version flag #: ../src/lightdm.c:603 msgid "Show release version" msgstr "" #. Text printed out when an unknown command-line argument provided #: ../src/lightdm.c:614 #, 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 "" ubuntu-lightdm-e42f6d6/po/lt.po000066400000000000000000000054561523516304700165210ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/lv.po000066400000000000000000000047001523516304700165120ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/mhr.po000066400000000000000000000047151523516304700166650ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/mi.po000066400000000000000000000046741523516304700165100ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/ml.po000066400000000000000000000053751523516304700165120ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/mr.po000066400000000000000000000047001523516304700165070ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/ms.po000066400000000000000000000060251523516304700165120ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/my.po000066400000000000000000000047001523516304700165160ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/nb.po000066400000000000000000000052731523516304700164760ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/nl.po000066400000000000000000000061021523516304700165000ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/nn.po000066400000000000000000000047241523516304700165120ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/oc.po000066400000000000000000000063341523516304700164770ustar00rootroot00000000000000# 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: 2021-10-01 20:05+0200\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: Poedit 3.0\n" "Last-Translator: Quentin PAGÈS\n" "Language: oc\n" #: ../greeters/gtk/lightdm-gtk-greeter.c:409 msgid "Are you sure you want to close all programs and restart the computer?" msgstr "Volètz vertadièrament quitar totes los programas e reaviar l’ordenador ?" #: ../greeters/gtk/greeter.ui.h:1 msgid "Cancel" msgstr "Anullar" #: ../greeters/gtk/lightdm-gtk-greeter.c:410 msgid "Restart" msgstr "Reaviar" #: ../greeters/gtk/lightdm-gtk-greeter.c:434 msgid "Are you sure you want to close all programs and shutdown the computer?" msgstr "Volètz vertadièrament tampar totes los programas e atudar l’ordenador ?" #: ../greeters/gtk/lightdm-gtk-greeter.c:435 msgid "Shutdown" msgstr "Atudar" #: ../greeters/gtk/greeter.ui.h:4 msgid "Large Font" msgstr "Granda poliça" #: ../greeters/ldm-gtk-greeter.c:611 msgid "High Constrast" msgstr "Contraste elevat" #: ../greeters/ldm-gtk-greeter.c:615 msgid "Options" msgstr "Opcions" #: ../greeters/ldm-gtk-greeter.c:620 msgid "Language" msgstr "Lenga" #: ../greeters/ldm-gtk-greeter.c:646 msgid "Keyboard Layout" msgstr "Agençament del clavièr" #: ../greeters/ldm-gtk-greeter.c:668 msgid "Session" msgstr "Session" #: ../greeters/gtk/greeter.ui.h:8 msgid "Suspend" msgstr "Metre en velha" #: ../greeters/gtk/greeter.ui.h:2 msgid "Hibernate" msgstr "Ivernar" #: ../greeters/gtk/greeter.ui.h:6 msgid "Restart..." msgstr "Reaviada..." #: ../greeters/gtk/greeter.ui.h:7 msgid "Shutdown..." msgstr "Extincion..." #. 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 "" "Utilizacion :\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 "" "Opcions d’ajuda :\n" " -c, --config Utilizar lo fichièr de configuracion\n" " --pid-file Fichièr ont escriure los PID\n" " -d, --debug Afichar los messatges de desbugatge\n" " --test-mode Executar coma utilizaire sens privilègi\n" " -v, --version Mostrar la version\n" " -h, --help Mostrar las opcions d’ajuda" ubuntu-lightdm-e42f6d6/po/pa.po000066400000000000000000000047001523516304700164710ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/pl.po000066400000000000000000000062671523516304700165160ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/pt.po000066400000000000000000000061311523516304700165140ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/pt_BR.po000066400000000000000000000063161523516304700171040ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/ro.po000066400000000000000000000064141523516304700165150ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/ru.po000066400000000000000000000070401523516304700165170ustar00rootroot00000000000000# 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 Показать справку по опциям" ubuntu-lightdm-e42f6d6/po/sc.po000066400000000000000000000047041523516304700165020ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/sd.po000066400000000000000000000046761523516304700165130ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/shn.po000066400000000000000000000046731523516304700166720ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/si.po000066400000000000000000000047041523516304700165100ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/sk.po000066400000000000000000000063421523516304700165120ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/sl.po000066400000000000000000000064031523516304700165110ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/sq.po000066400000000000000000000053331523516304700165170ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/sr.po000066400000000000000000000074061523516304700165230ustar00rootroot00000000000000# 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 Приказује опције помоћи" ubuntu-lightdm-e42f6d6/po/sv.po000066400000000000000000000062411523516304700165230ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/ta.po000066400000000000000000000063731523516304700165050ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/te.po000066400000000000000000000046761523516304700165150ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/tg.po000066400000000000000000000046741523516304700165150ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/th.po000066400000000000000000000060711523516304700165070ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/tl.po000066400000000000000000000047001523516304700165100ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/tr.po000066400000000000000000000064701523516304700165240ustar00rootroot00000000000000# 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" ubuntu-lightdm-e42f6d6/po/ug.po000066400000000000000000000070661523516304700165140ustar00rootroot00000000000000# 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 ياردەم ئۇچۇرىنى چىقىرىدۇ" ubuntu-lightdm-e42f6d6/po/uk.po000066400000000000000000000071641523516304700165170ustar00rootroot00000000000000# 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 Показати параметри довідки" ubuntu-lightdm-e42f6d6/po/uz.po000066400000000000000000000054771523516304700165430ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/vi.po000066400000000000000000000054471523516304700165200ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/wae.po000066400000000000000000000052351523516304700166510ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/zh_CN.po000066400000000000000000000057551523516304700171050ustar00rootroot00000000000000# 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 显示帮助信息" ubuntu-lightdm-e42f6d6/po/zh_HK.po000066400000000000000000000052231523516304700170750ustar00rootroot00000000000000# 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 "" ubuntu-lightdm-e42f6d6/po/zh_TW.po000066400000000000000000000077431523516304700171360ustar00rootroot00000000000000# 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: \n" "POT-Creation-Date: 2018-06-21 12:34+1200\n" "PO-Revision-Date: 2018-11-14 19:54+0800\n" "Last-Translator: pan93412 \n" "Language-Team: Chinese (Traditional) \n" "Language: zh_TW\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: Poedit 2.2\n" #: ../data/org.freedesktop.DisplayManager.AccountsService.policy.in.h:1 msgid "Set properties of own user" msgstr "設定使用者自己的屬性" #: ../data/org.freedesktop.DisplayManager.AccountsService.policy.in.h:2 msgid "Authentication is required to set one's own greeter properties." msgstr "設定某人自己的 greeter 屬性需要身份核對。" #: ../data/org.freedesktop.DisplayManager.AccountsService.policy.in.h:3 msgid "Set properties of any user" msgstr "設定任何使用者的屬性" #: ../data/org.freedesktop.DisplayManager.AccountsService.policy.in.h:4 msgid "Authentication is required to get another user's greeter properties." msgstr "取得其他使用者的 greeter 屬性需要身份核對。" #: ../data/org.freedesktop.DisplayManager.AccountsService.policy.in.h:5 msgid "Authentication is required to set another user's greeter properties." msgstr "設定其他使用者的 greeter 屬性需要身份核對。" #. Arguments and description for --help test #: ../src/lightdm.c:568 msgid "- Display Manager" msgstr "- 顯示管理器" #. Help string for command line --config flag #: ../src/lightdm.c:579 msgid "Use configuration file" msgstr "使用設定檔" #. Help string for command line --debug flag #: ../src/lightdm.c:582 msgid "Print debugging messages" msgstr "顯示偵錯訊息" #. Help string for command line --test-mode flag #: ../src/lightdm.c:585 msgid "Run as unprivileged user, skipping things that require root access" msgstr "以無特權使用者身份執行,跳過需要 root 存取權限的設定" #. Help string for command line --pid-file flag #: ../src/lightdm.c:588 msgid "File to write PID into" msgstr "要寫入 PID 的檔案" #. Help string for command line --log-dir flag #: ../src/lightdm.c:591 msgid "Directory to write logs to" msgstr "要寫入日誌檔案的目錄" #. Help string for command line --run-dir flag #: ../src/lightdm.c:594 msgid "Directory to store running state" msgstr "要存放執行狀態的目錄" #. Help string for command line --cache-dir flag #: ../src/lightdm.c:597 msgid "Directory to cache information" msgstr "要快取資訊的目錄" #. Help string for command line --show-config flag #: ../src/lightdm.c:600 msgid "Show combined configuration" msgstr "顯示結合設定" #. Help string for command line --version flag #: ../src/lightdm.c:603 msgid "Show release version" msgstr "顯示釋出版本" #. Text printed out when an unknown command-line argument provided #: ../src/lightdm.c:614 #, c-format msgid "Run '%s --help' to see a full list of available command line options." msgstr "執行「%s --help」顯示可用指令列選項的完整列表。" #. 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 "執行「dm-tool --help」顯示可用指令列選項的完整列表。" #~ 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 "大字型" #~ msgid "Suspend" #~ msgstr "暫停" #~ msgid "Hibernate" #~ msgstr "休眠" ubuntu-lightdm-e42f6d6/src/000077500000000000000000000000001523516304700157015ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/src/Makefile.am000066400000000000000000000042171523516304700177410ustar00rootroot00000000000000sbin_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-manager-service.c \ display-manager-service.h \ display-server.c \ display-server.h \ greeter.c \ greeter.h \ greeter-session.c \ greeter-session.h \ greeter-socket.c \ greeter-socket.h \ guest-account.c \ guest-account.h \ lightdm.c \ logger.c \ logger.h \ login1.c \ login1.h \ log-file.c \ log-file.h \ plymouth.c \ plymouth.h \ process.c \ process.h \ seat.c \ seat.h \ seat-local.c \ seat-local.h \ seat-xdmcp-session.c \ seat-xdmcp-session.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 \ 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 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\" \ -DREMOTE_SESSIONS_DIR=\"$(pkgdatadir)/remote-sessions\" 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 ubuntu-lightdm-e42f6d6/src/accounts.c000066400000000000000000000071271523516304700176730ustar00rootroot00000000000000/* -*- 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" typedef struct { /* Internal user object */ CommonUser *common_user; } UserPrivate; G_DEFINE_TYPE_WITH_PRIVATE (User, user, G_TYPE_OBJECT) User * accounts_get_user_by_name (const gchar *username) { g_return_val_if_fail (username != NULL, NULL); CommonUser *common_user = common_user_list_get_user_by_name (common_user_list_get_instance (), username); if (common_user == NULL) return NULL; User *user = g_object_new (USER_TYPE, NULL); UserPrivate *priv = user_get_instance_private (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) { UserPrivate *priv = user_get_instance_private (user); g_return_val_if_fail (user != NULL, NULL); return common_user_get_name (priv->common_user); } uid_t user_get_uid (User *user) { UserPrivate *priv = user_get_instance_private (user); g_return_val_if_fail (user != NULL, 0); return common_user_get_uid (priv->common_user); } gid_t user_get_gid (User *user) { UserPrivate *priv = user_get_instance_private (user); g_return_val_if_fail (user != NULL, 0); return common_user_get_gid (priv->common_user); } const gchar * user_get_home_directory (User *user) { UserPrivate *priv = user_get_instance_private (user); g_return_val_if_fail (user != NULL, NULL); return common_user_get_home_directory (priv->common_user); } const gchar * user_get_shell (User *user) { UserPrivate *priv = user_get_instance_private (user); g_return_val_if_fail (user != NULL, NULL); return common_user_get_shell (priv->common_user); } void user_set_language (User *user, const gchar *language) { UserPrivate *priv = user_get_instance_private (user); g_return_if_fail (user != NULL); common_user_set_language (priv->common_user, language); } const gchar * user_get_language (User *user) { UserPrivate *priv = user_get_instance_private (user); g_return_val_if_fail (user != NULL, NULL); return common_user_get_language (priv->common_user); } void user_set_xsession (User *user, const gchar *xsession) { UserPrivate *priv = user_get_instance_private (user); g_return_if_fail (user != NULL); common_user_set_session (priv->common_user, xsession); } const gchar * user_get_xsession (User *user) { UserPrivate *priv = user_get_instance_private (user); g_return_val_if_fail (user != NULL, NULL); return common_user_get_session (priv->common_user); } static void user_init (User *user) { } static void user_finalize (GObject *object) { User *self = USER (object); UserPrivate *priv = user_get_instance_private (self); g_clear_object (&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; } ubuntu-lightdm-e42f6d6/src/accounts.h000066400000000000000000000026461523516304700177010ustar00rootroot00000000000000/* -*- 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 { GObject parent_instance; } User; typedef struct { GObjectClass parent_class; } UserClass; G_DEFINE_AUTOPTR_CLEANUP_FUNC (User, g_object_unref) 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_ */ ubuntu-lightdm-e42f6d6/src/console-kit.c000066400000000000000000000255211523516304700203010ustar00rootroot00000000000000/* -*- 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) { g_return_val_if_fail (parameters != NULL, NULL); g_autoptr(GError) error = NULL; g_autoptr(GDBusConnection) bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); if (!bus) return NULL; g_autoptr(GVariant) 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); if (error) g_warning ("Failed to open CK session: %s", error->message); if (!result) return NULL; g_autofree gchar *cookie = NULL; g_variant_get (result, "(s)", &cookie); g_debug ("Opened ConsoleKit session %s", cookie); return g_steal_pointer (&cookie); } static gchar * get_ck_session (GDBusConnection *bus, const gchar *cookie) { g_autoptr(GError) error = NULL; g_autoptr(GVariant) 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); if (error) g_warning ("Error getting ConsoleKit session: %s", error->message); if (!result) return NULL; g_autofree gchar *session_path = NULL; g_variant_get (result, "(o)", &session_path); return g_steal_pointer (&session_path); } void ck_lock_session (const gchar *cookie) { g_return_if_fail (cookie != NULL); g_debug ("Locking ConsoleKit session %s", cookie); g_autoptr(GError) error = NULL; g_autoptr(GDBusConnection) bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); if (!bus) return; g_autofree gchar *session_path = get_ck_session (bus, cookie); if (!session_path) return; g_autoptr(GVariant) 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); } void ck_unlock_session (const gchar *cookie) { g_return_if_fail (cookie != NULL); g_debug ("Unlocking ConsoleKit session %s", cookie); g_autoptr(GError) error = NULL; g_autoptr(GDBusConnection) bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); if (!bus) return; g_autofree gchar *session_path = get_ck_session (bus, cookie); if (!session_path) return; g_autoptr(GVariant) 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); } void ck_activate_session (const gchar *cookie) { g_return_if_fail (cookie != NULL); g_debug ("Activating ConsoleKit session %s", cookie); g_autoptr(GError) error = NULL; g_autoptr(GDBusConnection) bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); if (!bus) return; g_autofree gchar *session_path = get_ck_session (bus, cookie); if (!session_path) return; g_autoptr(GVariant) 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); } void ck_close_session (const gchar *cookie) { g_return_if_fail (cookie != NULL); g_debug ("Ending ConsoleKit session %s", cookie); g_autoptr(GError) error = NULL; g_autoptr(GDBusConnection) bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); if (!bus) return; g_autoptr(GVariant) 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); if (error) g_warning ("Error ending ConsoleKit session: %s", error->message); if (!result) return; gboolean is_closed; g_variant_get (result, "(b)", &is_closed); if (!is_closed) g_warning ("ConsoleKit.Manager.CloseSession() returned false"); } gchar * ck_get_xdg_runtime_dir (const gchar *cookie) { g_return_val_if_fail (cookie != NULL, NULL); g_debug ("Getting XDG_RUNTIME_DIR from ConsoleKit for session %s", cookie); g_autoptr(GError) error = NULL; g_autoptr(GDBusConnection) bus = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); if (!bus) return NULL; g_autofree gchar *session_path = get_ck_session (bus, cookie); if (!session_path) return NULL; g_autoptr(GVariant) 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); if (!result) return NULL; const gchar *runtime_dir; g_variant_get (result, "(&s)", &runtime_dir); g_debug ("ConsoleKit XDG_RUNTIME_DIR is %s", runtime_dir); return g_strdup (runtime_dir); } ubuntu-lightdm-e42f6d6/src/console-kit.h000066400000000000000000000015331523516304700203030ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/src/display-manager-service.c000066400000000000000000000712061523516304700225660ustar00rootroot00000000000000/* * Copyright (C) 2016 Canonical Ltd. * * 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-manager-service.h" enum { READY, ADD_XLOCAL_SEAT, NAME_LOST, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; typedef struct { /* Display manager being exposed on D-Bus */ DisplayManager *manager; /* Bus connected to */ GDBusConnection *bus; /* Handle for D-Bus name */ guint bus_id; /* Handle for display manager D-Bus object */ guint reg_id; /* D-Bus interface information */ GDBusNodeInfo *seat_info; GDBusNodeInfo *session_info; /* Next index to use for seat / session entries */ guint seat_index; guint session_index; /* Bus entries for seats / session */ GHashTable *seat_bus_entries; GHashTable *session_bus_entries; } DisplayManagerServicePrivate; G_DEFINE_TYPE_WITH_PRIVATE (DisplayManagerService, display_manager_service, G_TYPE_OBJECT) typedef struct { DisplayManagerService *service; Seat *seat; gchar *path; guint bus_id; } SeatBusEntry; typedef struct { DisplayManagerService *service; Session *session; gchar *path; gchar *seat_path; guint bus_id; } SessionBusEntry; #define LIGHTDM_BUS_NAME "org.freedesktop.DisplayManager" DisplayManagerService * display_manager_service_new (DisplayManager *manager) { DisplayManagerService *service = g_object_new (DISPLAY_MANAGER_SERVICE_TYPE, NULL); DisplayManagerServicePrivate *priv = display_manager_service_get_instance_private (service); priv->manager = g_object_ref (manager); return service; } static SeatBusEntry * seat_bus_entry_new (DisplayManagerService *service, Seat *seat, const gchar *path) { SeatBusEntry *entry = g_malloc0 (sizeof (SeatBusEntry)); entry->service = service; entry->seat = seat; entry->path = g_strdup (path); return entry; } static SessionBusEntry * session_bus_entry_new (DisplayManagerService *service, Session *session, const gchar *path, const gchar *seat_path) { SessionBusEntry *entry = g_malloc0 (sizeof (SessionBusEntry)); entry->service = service; entry->session = session; 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; g_variant_builder_init (&builder, G_VARIANT_TYPE_ARRAY); g_variant_builder_add (&builder, "{sv}", property_name, property_value); g_autoptr(GError) error = NULL; 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); } static void emit_object_signal (GDBusConnection *bus, const gchar *path, const gchar *signal_name, const gchar *object_path) { g_autoptr(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); } 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 GVariant * get_seat_list (DisplayManagerService *service) { DisplayManagerServicePrivate *priv = display_manager_service_get_instance_private (service); GVariantBuilder builder; g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao")); GHashTableIter iter; g_hash_table_iter_init (&iter, priv->seat_bus_entries); gpointer value; 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 (DisplayManagerService *service, const gchar *seat_path) { DisplayManagerServicePrivate *priv = display_manager_service_get_instance_private (service); GVariantBuilder builder; g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao")); GHashTableIter iter; g_hash_table_iter_init (&iter, priv->session_bus_entries); gpointer value; while (g_hash_table_iter_next (&iter, NULL, &value)) { SessionBusEntry *entry = value; if (seat_path == NULL || g_strcmp0 (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) { DisplayManagerService *service = user_data; if (g_strcmp0 (property_name, "Seats") == 0) return get_seat_list (service); else if (g_strcmp0 (property_name, "Sessions") == 0) return get_session_list (service, 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) { DisplayManagerService *service = user_data; DisplayManagerServicePrivate *priv = display_manager_service_get_instance_private (service); 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) { 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; } gint display_number; g_variant_get (parameters, "(i)", &display_number); g_autoptr(Seat) seat = NULL; g_signal_emit (service, signals[ADD_XLOCAL_SEAT], 0, display_number, &seat); if (!seat) { g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED, "Unable to create local X seat"); return; } SeatBusEntry *entry = g_hash_table_lookup (priv->seat_bus_entries, seat); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(o)", entry->path)); } 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) { SeatBusEntry *entry = user_data; if (g_strcmp0 (property_name, "CanSwitch") == 0) return g_variant_new_boolean (seat_get_can_switch (entry->seat)); if (g_strcmp0 (property_name, "HasGuestAccount") == 0) return g_variant_new_boolean (seat_get_allow_guest (entry->seat)); else if (g_strcmp0 (property_name, "Sessions") == 0) return get_session_list (entry->service, 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) { SeatBusEntry *entry = 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 (entry->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) { 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"); const gchar *username, *session_name; g_variant_get (parameters, "(&s&s)", &username, &session_name); if (g_strcmp0 (session_name, "") == 0) session_name = NULL; if (seat_switch_to_user (entry->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) { 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"); const gchar *session_name; g_variant_get (parameters, "(&s)", &session_name); if (g_strcmp0 (session_name, "") == 0) session_name = NULL; if (seat_switch_to_guest (entry->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 (entry->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 (DisplayManagerService *service, Session *session) { DisplayManagerServicePrivate *priv = display_manager_service_get_instance_private (service); for (GList *seat_link = display_manager_get_seats (priv->manager); seat_link; seat_link = seat_link->next) { Seat *seat = seat_link->data; for (GList *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) { SessionBusEntry *entry = user_data; if (g_strcmp0 (property_name, "Seat") == 0) return g_variant_new_object_path (entry->seat_path); else if (g_strcmp0 (property_name, "UserName") == 0) return g_variant_new_string (session_get_username (entry->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) { SessionBusEntry *entry = user_data; 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"); Seat *seat = get_seat_for_session (entry->service, entry->session); /* FIXME: Should only allow locks if have a session on this seat */ seat_lock (seat, session_get_username (entry->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 void running_user_session_cb (Seat *seat, Session *session, DisplayManagerService *service) { DisplayManagerServicePrivate *priv = display_manager_service_get_instance_private (service); /* Set environment variables when session runs */ SeatBusEntry *seat_entry = g_hash_table_lookup (priv->seat_bus_entries, seat); session_set_env (session, "XDG_SEAT_PATH", seat_entry->path); g_autofree gchar *path = g_strdup_printf ("/org/freedesktop/DisplayManager/Session%d", priv->session_index); priv->session_index++; session_set_env (session, "XDG_SESSION_PATH", path); g_object_set_data_full (G_OBJECT (session), "XDG_SESSION_PATH", g_steal_pointer (&path), g_free); SessionBusEntry *session_entry = session_bus_entry_new (service, session, g_object_get_data (G_OBJECT (session), "XDG_SESSION_PATH"), seat_entry ? seat_entry->path : NULL); g_hash_table_insert (priv->session_bus_entries, g_object_ref (session), session_entry); g_debug ("Registering session with bus path %s", session_entry->path); static const GDBusInterfaceVTable session_vtable = { handle_session_call, handle_session_get_property }; g_autoptr(GError) error = NULL; session_entry->bus_id = g_dbus_connection_register_object (priv->bus, session_entry->path, priv->session_info->interfaces[0], &session_vtable, session_entry, NULL, &error); if (session_entry->bus_id == 0) g_warning ("Failed to register user session: %s", error->message); emit_object_value_changed (priv->bus, "/org/freedesktop/DisplayManager", "org.freedesktop.DisplayManager", "Sessions", get_session_list (service, NULL)); emit_object_signal (priv->bus, "/org/freedesktop/DisplayManager", "SessionAdded", session_entry->path); emit_object_value_changed (priv->bus, seat_entry->path, "org.freedesktop.DisplayManager.Seat", "Sessions", get_session_list (service, session_entry->seat_path)); emit_object_signal (priv->bus, seat_entry->path, "SessionAdded", session_entry->path); } static void session_removed_cb (Seat *seat, Session *session, DisplayManagerService *service) { DisplayManagerServicePrivate *priv = display_manager_service_get_instance_private (service); g_signal_handlers_disconnect_matched (session, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, seat); SessionBusEntry *entry = g_hash_table_lookup (priv->session_bus_entries, session); g_autofree gchar *seat_path = NULL; if (entry) { g_dbus_connection_unregister_object (priv->bus, entry->bus_id); emit_object_signal (priv->bus, "/org/freedesktop/DisplayManager", "SessionRemoved", entry->path); emit_object_signal (priv->bus, entry->seat_path, "SessionRemoved", entry->path); seat_path = g_strdup (entry->seat_path); } g_hash_table_remove (priv->session_bus_entries, session); if (seat_path) { emit_object_value_changed (priv->bus, "/org/freedesktop/DisplayManager", "org.freedesktop.DisplayManager", "Sessions", get_session_list (service, NULL)); emit_object_value_changed (priv->bus, seat_path, "org.freedesktop.DisplayManager.Seat", "Sessions", get_session_list (service, seat_path)); } } static void seat_added_cb (DisplayManager *display_manager, Seat *seat, DisplayManagerService *service) { DisplayManagerServicePrivate *priv = display_manager_service_get_instance_private (service); g_autofree gchar *path = g_strdup_printf ("/org/freedesktop/DisplayManager/Seat%d", priv->seat_index); priv->seat_index++; SeatBusEntry *entry = seat_bus_entry_new (service, seat, path); g_hash_table_insert (priv->seat_bus_entries, g_object_ref (seat), entry); g_debug ("Registering seat with bus path %s", entry->path); static const GDBusInterfaceVTable seat_vtable = { handle_seat_call, handle_seat_get_property }; g_autoptr(GError) error = NULL; entry->bus_id = g_dbus_connection_register_object (priv->bus, entry->path, priv->seat_info->interfaces[0], &seat_vtable, entry, NULL, &error); if (entry->bus_id == 0) g_warning ("Failed to register seat: %s", error->message); emit_object_value_changed (priv->bus, "/org/freedesktop/DisplayManager", "org.freedesktop.DisplayManager", "Seats", get_seat_list (service)); emit_object_signal (priv->bus, "/org/freedesktop/DisplayManager", "SeatAdded", entry->path); g_signal_connect (seat, SEAT_SIGNAL_RUNNING_USER_SESSION, G_CALLBACK (running_user_session_cb), service); g_signal_connect (seat, SEAT_SIGNAL_SESSION_REMOVED, G_CALLBACK (session_removed_cb), service); } static void seat_removed_cb (DisplayManager *display_manager, Seat *seat, DisplayManagerService *service) { DisplayManagerServicePrivate *priv = display_manager_service_get_instance_private (service); SeatBusEntry *entry = g_hash_table_lookup (priv->seat_bus_entries, seat); if (entry) { g_dbus_connection_unregister_object (priv->bus, entry->bus_id); emit_object_signal (priv->bus, "/org/freedesktop/DisplayManager", "SeatRemoved", entry->path); } g_hash_table_remove (priv->seat_bus_entries, seat); emit_object_value_changed (priv->bus, "/org/freedesktop/DisplayManager", "org.freedesktop.DisplayManager", "Seats", get_seat_list (service)); } static void bus_acquired_cb (GDBusConnection *connection, const gchar *name, gpointer user_data) { DisplayManagerService *service = user_data; DisplayManagerServicePrivate *priv = display_manager_service_get_instance_private (service); g_debug ("Acquired bus name %s", name); priv->bus = g_object_ref (connection); const gchar *display_manager_interface = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; GDBusNodeInfo *display_manager_info = g_dbus_node_info_new_for_xml (display_manager_interface, NULL); g_assert (display_manager_info != NULL); const gchar *seat_interface = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; priv->seat_info = g_dbus_node_info_new_for_xml (seat_interface, NULL); g_assert (priv->seat_info != NULL); const gchar *session_interface = "" " " " " " " " " " " ""; priv->session_info = g_dbus_node_info_new_for_xml (session_interface, NULL); g_assert (priv->session_info != NULL); static const GDBusInterfaceVTable display_manager_vtable = { handle_display_manager_call, handle_display_manager_get_property }; g_autoptr(GError) error = NULL; priv->reg_id = g_dbus_connection_register_object (connection, "/org/freedesktop/DisplayManager", display_manager_info->interfaces[0], &display_manager_vtable, service, NULL, &error); if (priv->reg_id == 0) g_warning ("Failed to register display manager: %s", error->message); g_dbus_node_info_unref (display_manager_info); /* Add objects for existing seats and listen to new ones */ g_signal_connect (priv->manager, DISPLAY_MANAGER_SIGNAL_SEAT_ADDED, G_CALLBACK (seat_added_cb), service); g_signal_connect (priv->manager, DISPLAY_MANAGER_SIGNAL_SEAT_REMOVED, G_CALLBACK (seat_removed_cb), service); for (GList *link = display_manager_get_seats (priv->manager); link; link = link->next) seat_added_cb (priv->manager, (Seat *) link->data, service); g_signal_emit (service, signals[READY], 0); } static void name_lost_cb (GDBusConnection *connection, const gchar *name, gpointer user_data) { DisplayManagerService *service = 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"); g_signal_emit (service, signals[NAME_LOST], 0); } void display_manager_service_start (DisplayManagerService *service) { DisplayManagerServicePrivate *priv = display_manager_service_get_instance_private (service); g_return_if_fail (service != NULL); g_debug ("Using D-Bus name %s", LIGHTDM_BUS_NAME); priv->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, service, NULL); } static void display_manager_service_init (DisplayManagerService *service) { DisplayManagerServicePrivate *priv = display_manager_service_get_instance_private (service); priv->seat_bus_entries = g_hash_table_new_full (g_direct_hash, g_direct_equal, g_object_unref, seat_bus_entry_free); priv->session_bus_entries = g_hash_table_new_full (g_direct_hash, g_direct_equal, g_object_unref, session_bus_entry_free); } static void display_manager_service_finalize (GObject *object) { DisplayManagerService *self = DISPLAY_MANAGER_SERVICE (object); DisplayManagerServicePrivate *priv = display_manager_service_get_instance_private (self); g_dbus_connection_unregister_object (priv->bus, priv->reg_id); g_bus_unown_name (priv->bus_id); if (priv->seat_info) g_dbus_node_info_unref (priv->seat_info); if (priv->session_info) g_dbus_node_info_unref (priv->session_info); g_hash_table_unref (priv->seat_bus_entries); g_hash_table_unref (priv->session_bus_entries); g_object_unref (priv->bus); g_clear_object (&priv->manager); G_OBJECT_CLASS (display_manager_service_parent_class)->finalize (object); } static void display_manager_service_class_init (DisplayManagerServiceClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = display_manager_service_finalize; signals[READY] = g_signal_new (DISPLAY_MANAGER_SERVICE_SIGNAL_READY, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DisplayManagerServiceClass, ready), NULL, NULL, NULL, G_TYPE_NONE, 0); signals[ADD_XLOCAL_SEAT] = g_signal_new (DISPLAY_MANAGER_SERVICE_SIGNAL_ADD_XLOCAL_SEAT, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DisplayManagerServiceClass, add_xlocal_seat), g_signal_accumulator_first_wins, NULL, NULL, SEAT_TYPE, 1, G_TYPE_INT); signals[NAME_LOST] = g_signal_new (DISPLAY_MANAGER_SERVICE_SIGNAL_NAME_LOST, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (DisplayManagerServiceClass, name_lost), NULL, NULL, NULL, G_TYPE_NONE, 0); } ubuntu-lightdm-e42f6d6/src/display-manager-service.h000066400000000000000000000027541523516304700225750ustar00rootroot00000000000000/* * Copyright (C) 2016 Canonical Ltd. * * 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_SERVICE_H_ #define DISPLAY_MANAGER_SERVICE_H_ #include #include "display-manager.h" G_BEGIN_DECLS #define DISPLAY_MANAGER_SERVICE_TYPE (display_manager_service_get_type()) #define DISPLAY_MANAGER_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DISPLAY_MANAGER_SERVICE_TYPE, DisplayManagerService)); #define DISPLAY_MANAGER_SERVICE_SIGNAL_READY "ready" #define DISPLAY_MANAGER_SERVICE_SIGNAL_ADD_XLOCAL_SEAT "add-xlocal-seat" #define DISPLAY_MANAGER_SERVICE_SIGNAL_NAME_LOST "name-lost" typedef struct { GObject parent_instance; } DisplayManagerService; typedef struct { GObjectClass parent_class; void (*ready)(DisplayManagerService *service); Seat *(*add_xlocal_seat)(DisplayManagerService *service, gint display_number); void (*name_lost)(DisplayManagerService *service); } DisplayManagerServiceClass; GType display_manager_service_get_type (void); DisplayManagerService *display_manager_service_new (DisplayManager *manager); void display_manager_service_start (DisplayManagerService *service); G_END_DECLS #endif /* DISPLAY_MANAGER_SERVICE_H_ */ ubuntu-lightdm-e42f6d6/src/display-manager.c000066400000000000000000000135321523516304700211260ustar00rootroot00000000000000/* * 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-local.h" #include "seat-xremote.h" #include "plymouth.h" enum { SEAT_ADDED, SEAT_REMOVED, STOPPED, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; typedef struct { /* The seats available */ GList *seats; /* TRUE if stopping the display manager (waiting for seats to stop) */ gboolean stopping; /* TRUE if stopped */ gboolean stopped; } DisplayManagerPrivate; G_DEFINE_TYPE_WITH_PRIVATE (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) { DisplayManagerPrivate *priv = display_manager_get_instance_private (manager); return priv->seats; } Seat * display_manager_get_seat (DisplayManager *manager, const gchar *name) { DisplayManagerPrivate *priv = display_manager_get_instance_private (manager); for (GList *link = 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) { DisplayManagerPrivate *priv = display_manager_get_instance_private (manager); if (priv->stopping && !priv->stopped && g_list_length (priv->seats) == 0) { priv->stopped = TRUE; g_debug ("Display manager stopped"); g_signal_emit (manager, signals[STOPPED], 0); } } static void seat_stopped_cb (Seat *seat, DisplayManager *manager) { DisplayManagerPrivate *priv = display_manager_get_instance_private (manager); priv->seats = g_list_remove (priv->seats, seat); g_signal_handlers_disconnect_matched (seat, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, manager); if (!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) { DisplayManagerPrivate *priv = display_manager_get_instance_private (manager); g_return_val_if_fail (!priv->stopping, FALSE); gboolean result = seat_start (SEAT (seat)); if (!result) return FALSE; priv->seats = g_list_append (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) { DisplayManagerPrivate *priv = display_manager_get_instance_private (manager); g_return_if_fail (manager != NULL); if (priv->stopping) return; g_debug ("Stopping display manager"); priv->stopping = TRUE; /* Stop all the seats. Copy the list as it might be modified if a seat stops during this loop */ GList *seats = g_list_copy (priv->seats); for (GList *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) { /* Load the seat modules */ seat_register_module ("local", SEAT_LOCAL_TYPE); seat_register_module ("xremote", SEAT_XREMOTE_TYPE); } static void display_manager_finalize (GObject *object) { DisplayManager *self = DISPLAY_MANAGER (object); DisplayManagerPrivate *priv = display_manager_get_instance_private (self); for (GList *link = 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 (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; 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); } ubuntu-lightdm-e42f6d6/src/display-manager.h000066400000000000000000000031541523516304700211320ustar00rootroot00000000000000/* * 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 { GObject parent_instance; } 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_ */ ubuntu-lightdm-e42f6d6/src/display-manager.xml000066400000000000000000000010651523516304700215020ustar00rootroot00000000000000 ubuntu-lightdm-e42f6d6/src/display-server.c000066400000000000000000000123241523516304700210200ustar00rootroot00000000000000/* * 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 }; typedef struct { /* TRUE when started */ gboolean is_ready; /* TRUE when being stopped */ gboolean stopping; /* TRUE when the display server has stopped */ gboolean stopped; } DisplayServerPrivate; static void display_server_logger_iface_init (LoggerInterface *iface); G_DEFINE_TYPE_WITH_CODE (DisplayServer, display_server, G_TYPE_OBJECT, G_ADD_PRIVATE (DisplayServer) G_IMPLEMENT_INTERFACE (LOGGER_TYPE, display_server_logger_iface_init)) const gchar * display_server_get_session_type (DisplayServer *server) { return DISPLAY_SERVER_GET_CLASS (server)->get_session_type (server); } DisplayServer * display_server_get_parent (DisplayServer *server) { g_return_val_if_fail (server != NULL, NULL); return DISPLAY_SERVER_GET_CLASS (server)->get_parent (server); } static DisplayServer * display_server_real_get_parent (DisplayServer *server) { return NULL; } gboolean display_server_get_can_share (DisplayServer *server) { g_return_val_if_fail (server != NULL, FALSE); 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); } gboolean display_server_get_is_ready (DisplayServer *server) { DisplayServerPrivate *priv = display_server_get_instance_private (server); g_return_val_if_fail (server != NULL, FALSE); return priv->is_ready; } static gboolean display_server_real_start (DisplayServer *server) { DisplayServerPrivate *priv = display_server_get_instance_private (server); priv->is_ready = TRUE; 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) { DisplayServerPrivate *priv = display_server_get_instance_private (server); g_return_if_fail (server != NULL); if (priv->stopping) return; priv->stopping = TRUE; DISPLAY_SERVER_GET_CLASS (server)->stop (server); } gboolean display_server_get_is_stopping (DisplayServer *server) { DisplayServerPrivate *priv = display_server_get_instance_private (server); g_return_val_if_fail (server != NULL, FALSE); return priv->stopping; } static void display_server_real_stop (DisplayServer *server) { g_signal_emit (server, signals[STOPPED], 0); } static void display_server_init (DisplayServer *server) { } static void display_server_class_init (DisplayServerClass *klass) { klass->get_parent = display_server_real_get_parent; 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; 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) { return g_snprintf (buf, buflen, "DisplayServer: "); } static void display_server_logger_iface_init (LoggerInterface *iface) { iface->logprefix = &display_server_real_logprefix; } ubuntu-lightdm-e42f6d6/src/display-server.h000066400000000000000000000047011523516304700210250ustar00rootroot00000000000000/* * 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" struct DisplayServer { GObject parent_instance; }; typedef struct { GObjectClass parent_class; void (*ready)(DisplayServer *server); void (*stopped)(DisplayServer *server); DisplayServer *(*get_parent)(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); const gchar *display_server_get_session_type (DisplayServer *server); DisplayServer *display_server_get_parent (DisplayServer *server); gboolean display_server_get_can_share (DisplayServer *server); gint display_server_get_vt (DisplayServer *server); gboolean display_server_start (DisplayServer *server); gboolean display_server_get_is_ready (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_ */ ubuntu-lightdm-e42f6d6/src/dm-tool.c000066400000000000000000000462071523516304700174310ustar00rootroot00000000000000/* * 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) { g_autoptr(GError) error = NULL; g_autoptr(GVariant) 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); } const gchar *path = NULL; g_variant_get (result, "(&o)", &path); g_print ("%s\n", path); exit (EXIT_SUCCESS); } static GDBusProxy * get_seat_proxy (void) { 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); } g_autoptr(GError) error = NULL; 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); } return seat_proxy; } int main (int argc, char **argv) { #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif gint arg_index; 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; } g_autoptr(GError) error = NULL; 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; } const gchar *command = argv[arg_index]; arg_index++; gint n_options = argc - arg_index; gchar **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) { if (n_options < 1 || n_options > 2) { g_printerr ("Usage switch-to-user USERNAME [SESSION]\n"); usage (); return EXIT_FAILURE; } const gchar *username = options[0]; const gchar *session = ""; 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) { if (n_options > 1) { g_printerr ("Usage switch-to-guest [SESSION]\n"); usage (); return EXIT_FAILURE; } const gchar *session = ""; 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) { if (!g_dbus_proxy_get_name_owner (dm_proxy)) { g_printerr ("Unable to contact display manager\n"); return EXIT_FAILURE; } g_autoptr(GVariant) seats = g_dbus_proxy_get_cached_property (dm_proxy, "Seats"); g_autoptr(GVariantIter) seat_iter = NULL; g_variant_get (seats, "ao", &seat_iter); gchar *seat_path; const size_t prefix_len = strlen ("/org/freedesktop/DisplayManager/"); while (g_variant_iter_loop (seat_iter, "&o", &seat_path)) { gchar *seat_name; g_autoptr(GDBusProxy) proxy = NULL; if (g_str_has_prefix (seat_path, "/org/freedesktop/DisplayManager/")) seat_name = seat_path + prefix_len; 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); g_auto(GStrv) property_names = g_dbus_proxy_get_cached_property_names (proxy); for (int i = 0; property_names[i]; i++) { if (strcmp (property_names[i], "Sessions") == 0) continue; g_autoptr(GVariant) 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_autoptr(GVariant) sessions = g_dbus_proxy_get_cached_property (proxy, "Sessions"); if (!sessions) continue; g_autoptr(GVariantIter) session_iter = NULL; g_variant_get (sessions, "ao", &session_iter); const gchar *session_path; while (g_variant_iter_loop (session_iter, "&o", &session_path)) { const gchar *session_name; if (g_str_has_prefix (session_path, "/org/freedesktop/DisplayManager/")) session_name = session_path + prefix_len; else session_name = session_path; g_autoptr(GDBusProxy) 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); g_auto(GStrv) property_names = g_dbus_proxy_get_cached_property_names (session_proxy); for (int i = 0; property_names[i]; i++) { if (strcmp (property_names[i], "Seat") == 0) continue; g_autoptr(GVariant) 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)); } } } return EXIT_SUCCESS; } else if (strcmp (command, "add-nested-seat") == 0) { const gchar *path = g_find_program_in_path ("Xephyr"); if (!path) { g_printerr ("Unable to find Xephyr, please install it\n"); return EXIT_FAILURE; } const gchar *dimensions = NULL; 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) { g_autofree gchar *lock_name = g_strdup_printf ("/tmp/.X%d-lock", xephyr_display_number); gboolean has_lock = g_file_test (lock_name, G_FILE_TEST_EXISTS); if (has_lock) xephyr_display_number++; else break; } /* Wait for signal from Xephyr is ready */ signal (SIGUSR1, xephyr_signal_cb); g_autofree gchar *xephyr_command; 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); } g_auto(GStrv) xephyr_argv = NULL; 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); } /* Block until ready */ g_autoptr(GMainLoop) loop = g_main_loop_new (NULL, FALSE); g_main_loop_run (loop); } else if (strcmp (command, "add-local-x-seat") == 0) { if (n_options != 1) { g_printerr ("Usage add-seat DISPLAY_NUMBER\n"); usage (); return EXIT_FAILURE; } gint display_number = atoi (options[0]); g_autoptr(GVariant) 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; } const gchar *path; g_variant_get (result, "(&o)", &path); g_print ("%s\n", path); return EXIT_SUCCESS; } else if (strcmp (command, "add-seat") == 0) { if (n_options < 1) { g_printerr ("Usage add-seat TYPE [NAME=VALUE...]\n"); usage (); return EXIT_FAILURE; } const gchar *type = options[0]; g_autoptr(GVariantBuilder) properties = g_variant_builder_new (G_VARIANT_TYPE ("a(ss)")); for (gint i = 1; i < n_options; i++) { g_autofree gchar *property = g_strdup (options[i]); gchar *name = property; gchar *value = strchr (property, '='); if (value) { *value = '\0'; value++; } else value = ""; g_variant_builder_add_value (properties, g_variant_new ("(ss)", name, value)); } g_autoptr(GVariant) result = g_dbus_proxy_call_sync (dm_proxy, "AddSeat", g_variant_new ("(sa(ss))", type, properties), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); 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; } const gchar *path; 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; } ubuntu-lightdm-e42f6d6/src/greeter-session.c000066400000000000000000000071161523516304700211700ustar00rootroot00000000000000/* * 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 "greeter-session.h" typedef struct { /* Greeter running inside this session */ Greeter *greeter; } GreeterSessionPrivate; G_DEFINE_TYPE_WITH_PRIVATE (GreeterSession, greeter_session, SESSION_TYPE) GreeterSession * greeter_session_new (void) { return g_object_new (GREETER_SESSION_TYPE, NULL); } Greeter * greeter_session_get_greeter (GreeterSession *session) { GreeterSessionPrivate *priv = greeter_session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); return priv->greeter; } static gboolean greeter_session_start (Session *session) { GreeterSessionPrivate *priv = greeter_session_get_instance_private (GREETER_SESSION (session)); /* Create a pipe to talk with the greeter */ int to_greeter_pipe[2], from_greeter_pipe[2]; if (pipe (to_greeter_pipe) != 0 || pipe (from_greeter_pipe) != 0) { g_warning ("Failed to create pipes: %s", strerror (errno)); return FALSE; } int to_greeter_input = to_greeter_pipe[1]; int to_greeter_output = to_greeter_pipe[0]; int from_greeter_input = from_greeter_pipe[1]; int from_greeter_output = from_greeter_pipe[0]; greeter_set_file_descriptors (priv->greeter, to_greeter_input, from_greeter_output); /* Don't allow the daemon end of the pipes to be accessed in child processes */ fcntl (to_greeter_input, F_SETFD, FD_CLOEXEC); fcntl (from_greeter_output, F_SETFD, FD_CLOEXEC); /* Let the greeter session know how to communicate with the daemon */ g_autofree gchar *to_server_value = g_strdup_printf ("%d", from_greeter_input); session_set_env (session, "LIGHTDM_TO_SERVER_FD", to_server_value); g_autofree gchar *from_server_value = g_strdup_printf ("%d", to_greeter_output); session_set_env (session, "LIGHTDM_FROM_SERVER_FD", from_server_value); gboolean result = SESSION_CLASS (greeter_session_parent_class)->start (session); /* Close the session ends of the pipe */ close (from_greeter_input); close (to_greeter_output); return result; } static void greeter_session_stop (Session *session) { GreeterSessionPrivate *priv = greeter_session_get_instance_private (GREETER_SESSION (session)); greeter_stop (priv->greeter); SESSION_CLASS (greeter_session_parent_class)->stop (session); } static void greeter_session_init (GreeterSession *session) { GreeterSessionPrivate *priv = greeter_session_get_instance_private (session); priv->greeter = greeter_new (); } static void greeter_session_finalize (GObject *object) { GreeterSession *self = GREETER_SESSION (object); GreeterSessionPrivate *priv = greeter_session_get_instance_private (self); g_clear_object (&priv->greeter); G_OBJECT_CLASS (greeter_session_parent_class)->finalize (object); } static void greeter_session_class_init (GreeterSessionClass *klass) { SessionClass *session_class = SESSION_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass); session_class->start = greeter_session_start; session_class->stop = greeter_session_stop; object_class->finalize = greeter_session_finalize; } ubuntu-lightdm-e42f6d6/src/greeter-session.h000066400000000000000000000025641523516304700211770ustar00rootroot00000000000000/* * 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_SESSION_H_ #define GREETER_SESSION_H_ #include "session.h" #include "greeter.h" G_BEGIN_DECLS #define GREETER_SESSION_TYPE (greeter_session_get_type()) #define GREETER_SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_SESSION_TYPE, GreeterSession)) #define GREETER_SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GREETER_SESSION_TYPE, GreeterSessionClass)) #define GREETER_SESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GREETER_SESSION_TYPE, GreeterSessionClass)) #define IS_GREETER_SESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_SESSION_TYPE)) typedef struct { Session parent_instance; } GreeterSession; typedef struct { SessionClass parent_class; } GreeterSessionClass; GType greeter_session_get_type (void); GreeterSession *greeter_session_new (void); Greeter *greeter_session_get_greeter (GreeterSession *session); G_END_DECLS #endif /* GREETER_SESSION_H_ */ ubuntu-lightdm-e42f6d6/src/greeter-socket.c000066400000000000000000000117251523516304700207760ustar00rootroot00000000000000/* * Copyright (C) 2010-2016 Canonical Ltd. * * 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 "greeter-socket.h" enum { CREATE_GREETER, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; typedef struct { /* Path of socket to use */ gchar *path; /* Listening UNIX socket */ GSocket *socket; /* Source for listening for connections */ GSource *source; /* Socket to greeter */ GSocket *greeter_socket; /* Greeter connected on this socket */ Greeter *greeter; } GreeterSocketPrivate; G_DEFINE_TYPE_WITH_PRIVATE (GreeterSocket, greeter_socket, G_TYPE_OBJECT) GreeterSocket * greeter_socket_new (const gchar *path) { GreeterSocket *socket = g_object_new (GREETER_SOCKET_TYPE, NULL); GreeterSocketPrivate *priv = greeter_socket_get_instance_private (socket); priv->path = g_strdup (path); return socket; } static void greeter_disconnected_cb (Greeter *greeter, GreeterSocket *socket) { GreeterSocketPrivate *priv = greeter_socket_get_instance_private (socket); if (greeter == priv->greeter) { g_clear_object (&priv->greeter); g_clear_object (&priv->greeter_socket); } } static gboolean greeter_connect_cb (GSocket *s, GIOCondition condition, GreeterSocket *socket) { GreeterSocketPrivate *priv = greeter_socket_get_instance_private (socket); g_autoptr(GError) error = NULL; g_autoptr(GSocket) new_socket = g_socket_accept (priv->socket, NULL, &error); if (error) g_warning ("Failed to accept greeter connection: %s", error->message); if (!new_socket) return G_SOURCE_CONTINUE; /* Greeter already connected */ if (priv->greeter) { g_socket_close (new_socket, NULL); return G_SOURCE_CONTINUE; } priv->greeter_socket = g_steal_pointer (&new_socket); g_signal_emit (socket, signals[CREATE_GREETER], 0, &priv->greeter); g_signal_connect (priv->greeter, GREETER_SIGNAL_DISCONNECTED, G_CALLBACK (greeter_disconnected_cb), socket); greeter_set_file_descriptors (priv->greeter, g_socket_get_fd (priv->greeter_socket), g_socket_get_fd (priv->greeter_socket)); return G_SOURCE_CONTINUE; } gboolean greeter_socket_start (GreeterSocket *socket, GError **error) { GreeterSocketPrivate *priv = greeter_socket_get_instance_private (socket); g_return_val_if_fail (socket != NULL, FALSE); g_return_val_if_fail (priv->socket == NULL, FALSE); priv->socket = g_socket_new (G_SOCKET_FAMILY_UNIX, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_DEFAULT, error); if (!priv->socket) return FALSE; unlink (priv->path); g_autoptr(GSocketAddress) address = g_unix_socket_address_new (priv->path); gboolean result = g_socket_bind (priv->socket, address, FALSE, error); if (!result) return FALSE; if (!g_socket_listen (priv->socket, error)) return FALSE; priv->source = g_socket_create_source (priv->socket, G_IO_IN, NULL); g_source_set_callback (priv->source, (GSourceFunc) greeter_connect_cb, socket, NULL); g_source_attach (priv->source, NULL); /* Allow to be written to */ if (chmod (priv->path, S_IRWXU | S_IRWXG | S_IRWXO) < 0) { g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno), "Failed to set permissions on greeter socket %s: %s", priv->path, g_strerror (errno)); return FALSE; } return TRUE; } static void greeter_socket_init (GreeterSocket *socket) { } static void greeter_socket_finalize (GObject *object) { GreeterSocket *self = GREETER_SOCKET (object); GreeterSocketPrivate *priv = greeter_socket_get_instance_private (self); if (priv->path) unlink (priv->path); g_clear_pointer (&priv->path, g_free); g_clear_object (&priv->socket); g_clear_object (&priv->source); g_clear_object (&priv->greeter_socket); g_clear_object (&priv->greeter); G_OBJECT_CLASS (greeter_socket_parent_class)->finalize (object); } static void greeter_socket_class_init (GreeterSocketClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = greeter_socket_finalize; signals[CREATE_GREETER] = g_signal_new (GREETER_SOCKET_SIGNAL_CREATE_GREETER, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GreeterSocketClass, create_greeter), g_signal_accumulator_first_wins, NULL, NULL, GREETER_TYPE, 0); } ubuntu-lightdm-e42f6d6/src/greeter-socket.h000066400000000000000000000026671523516304700210100ustar00rootroot00000000000000/* * Copyright (C) 2010-2016 Canonical Ltd. * * 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_SOCKET_H_ #define GREETER_SOCKET_H_ #include #include "greeter.h" G_BEGIN_DECLS #define GREETER_SOCKET_TYPE (greeter_socket_get_type()) #define GREETER_SOCKET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GREETER_SOCKET_TYPE, GreeterSocket)) #define GREETER_SOCKET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GREETER_SOCKET_TYPE, GreeterSocketClass)) #define GREETER_SOCKET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GREETER_SOCKET_TYPE, GreeterSocketClass)) #define IS_GREETER_SOCKET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GREETER_SOCKET_TYPE)) #define GREETER_SOCKET_SIGNAL_CREATE_GREETER "create-greeter" typedef struct { GObject parent_instance; } GreeterSocket; typedef struct { GObjectClass parent_class; Greeter *(*create_greeter)(GreeterSocket *socket); } GreeterSocketClass; GType greeter_socket_get_type (void); GreeterSocket *greeter_socket_new (const gchar *path); gboolean greeter_socket_start (GreeterSocket *socket, GError **error); G_END_DECLS #endif /* GREETER_SOCKET_H_ */ ubuntu-lightdm-e42f6d6/src/greeter.c000066400000000000000000001160101523516304700175010ustar00rootroot00000000000000/* * Copyright (C) 2010-2016 Canonical Ltd. * * 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 "greeter.h" #include "configuration.h" #include "shared-data-manager.h" enum { PROP_ACTIVE_USERNAME = 1, }; enum { CONNECTED, DISCONNECTED, CREATE_SESSION, START_SESSION, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; typedef struct { /* 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; /* API version the client can speak */ guint32 api_version; /* TRUE if the PAM session is being cancelled */ gboolean cancelling; /* 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; /* Avoid a race where we already sent SERVER_MESSAGE_END_AUTHENTICATION to the greeter, * but before it digests it, it handles more X11 events, sending us a GREETER_MESSAGE_CONTINUE_AUTHENTICATION * (before the GREETER_MESSAGE_START_SESSION) which will confuse handle_continue_authentication(), * calling session_respond_error(), which then sends a PAM_CONV_ERR to the session child, * which will confuse that because it's expecting the (length of the) session error file name. */ gboolean have_sent_end_authentication; /* 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; } GreeterPrivate; G_DEFINE_TYPE_WITH_PRIVATE (Greeter, greeter, G_TYPE_OBJECT) #define API_VERSION 1 /* 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, SERVER_MESSAGE_CONNECTED_V2, } 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_file_descriptors (Greeter *greeter, int to_greeter_fd, int from_greeter_fd) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_return_if_fail (greeter != NULL); g_return_if_fail (priv->to_greeter_input < 0); g_return_if_fail (priv->from_greeter_output < 0); priv->to_greeter_input = to_greeter_fd; priv->to_greeter_channel = g_io_channel_unix_new (priv->to_greeter_input); g_autoptr(GError) to_error = NULL; g_io_channel_set_encoding (priv->to_greeter_channel, NULL, &to_error); if (to_error) g_warning ("Failed to set encoding on to greeter channel to binary: %s\n", to_error->message); priv->from_greeter_output = from_greeter_fd; priv->from_greeter_channel = g_io_channel_unix_new (priv->from_greeter_output); g_autoptr(GError) from_error = NULL; g_io_channel_set_encoding (priv->from_greeter_channel, NULL, &from_error); if (from_error) g_warning ("Failed to set encoding on from greeter channel to binary: %s\n", from_error->message); g_io_channel_set_buffered (priv->from_greeter_channel, FALSE); priv->from_greeter_watch = g_io_add_watch (priv->from_greeter_channel, G_IO_IN | G_IO_HUP, read_cb, greeter); } void greeter_stop (Greeter *greeter) { GreeterPrivate *priv = greeter_get_instance_private (greeter); /* Stop any events occurring after we've stopped */ if (priv->authentication_session) g_signal_handlers_disconnect_matched (priv->authentication_session, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, greeter); } void greeter_set_pam_services (Greeter *greeter, const gchar *pam_service, const gchar *autologin_pam_service) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_return_if_fail (greeter != NULL); g_free (priv->pam_service); priv->pam_service = g_strdup (pam_service); g_free (priv->autologin_pam_service); priv->autologin_pam_service = g_strdup (autologin_pam_service); } void greeter_set_allow_guest (Greeter *greeter, gboolean allow_guest) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_return_if_fail (greeter != NULL); priv->allow_guest = allow_guest; } void greeter_clear_hints (Greeter *greeter) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_return_if_fail (greeter != NULL); g_hash_table_remove_all (priv->hints); } void greeter_set_hint (Greeter *greeter, const gchar *name, const gchar *value) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_return_if_fail (greeter != NULL); g_hash_table_insert (priv->hints, g_strdup (name), g_strdup (value)); } static void * secure_malloc (Greeter *greeter, size_t n) { GreeterPrivate *priv = greeter_get_instance_private (greeter); if (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) { GreeterPrivate *priv = greeter_get_instance_private (greeter); if (priv->use_secure_memory) return gcry_realloc (ptr, n); else return g_realloc (ptr, n); } static void secure_free (Greeter *greeter, void *ptr) { GreeterPrivate *priv = greeter_get_instance_private (greeter); if (priv->use_secure_memory) return gcry_free (ptr); else return g_free (ptr); } static void secure_freev (Greeter *greeter, gchar **v) { for (int i = 0; v[i]; i++) secure_free (greeter, v[i]); g_free (v); } 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) { GreeterPrivate *priv = greeter_get_instance_private (greeter); gchar *data = (gchar *) message; gsize data_length = message_length; while (data_length > 0) { GIOStatus status; gsize n_written; g_autoptr(GError) error = NULL; status = g_io_channel_write_chars (priv->to_greeter_channel, data, data_length, &n_written, &error); if (error) g_warning ("Error writing to greeter: %s", error->message); if (status != G_IO_STATUS_NORMAL) return; data_length -= n_written; data += n_written; } g_autoptr(GError) error = NULL; g_io_channel_flush (priv->to_greeter_channel, &error); if (error) g_warning ("Failed to flush data to greeter: %s", error->message); } 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, guint32 api_version) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_debug ("Greeter connected version=%s api=%u resettable=%s", version, api_version, resettable ? "true" : "false"); priv->api_version = api_version; priv->resettable = resettable; guint32 env_length = 0; GHashTableIter iter; g_hash_table_iter_init (&iter, priv->hints); gpointer key, value; while (g_hash_table_iter_next (&iter, &key, &value)) env_length += string_length (key) + string_length (value); guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; if (api_version == 0) { write_header (message, MAX_MESSAGE_LENGTH, SERVER_MESSAGE_CONNECTED, string_length (VERSION) + env_length, &offset); write_string (message, MAX_MESSAGE_LENGTH, VERSION, &offset); g_hash_table_iter_init (&iter, 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); } } else { write_header (message, MAX_MESSAGE_LENGTH, SERVER_MESSAGE_CONNECTED_V2, string_length (VERSION) + int_length () * 2 + env_length, &offset); write_int (message, MAX_MESSAGE_LENGTH, api_version <= API_VERSION ? api_version : API_VERSION, &offset); write_string (message, MAX_MESSAGE_LENGTH, VERSION, &offset); write_int (message, MAX_MESSAGE_LENGTH, g_hash_table_size (priv->hints), &offset); g_hash_table_iter_init (&iter, 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) { GreeterPrivate *priv = greeter_get_instance_private (greeter); const struct pam_message *messages = session_get_messages (session); size_t messages_length = session_get_messages_length (session); /* Respond to d-bus query with messages */ g_debug ("Prompt greeter with %zi message(s)", messages_length); guint32 size = int_length () + string_length (session_get_username (session)) + int_length (); for (int i = 0; i < messages_length; i++) size += int_length () + string_length (messages[i].msg); guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; write_header (message, MAX_MESSAGE_LENGTH, SERVER_MESSAGE_PROMPT_AUTHENTICATION, size, &offset); write_int (message, MAX_MESSAGE_LENGTH, 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); int n_prompts = 0; for (int 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 (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; GreeterPrivate *priv = greeter_get_instance_private (greeter); 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); priv->have_sent_end_authentication = TRUE; } 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) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_return_if_fail (greeter != NULL); GHashTableIter iter; g_hash_table_iter_init (&iter, priv->hints); gpointer key, value; guint32 length = 0; while (g_hash_table_iter_next (&iter, &key, &value)) length += string_length (key) + string_length (value); guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; write_header (message, MAX_MESSAGE_LENGTH, SERVER_MESSAGE_RESET, length, &offset); g_hash_table_iter_init (&iter, 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 reset_session (Greeter *greeter); static void authentication_complete_cb (Session *session, Greeter *greeter) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_debug ("Authenticate result for user %s: %s", session_get_username (session), session_get_authentication_result_string (session)); int result = session_get_authentication_result (session); if (session_get_is_authenticated (session)) { if (session_get_user (session)) g_debug ("User %s authorized", session_get_username (session)); else { g_debug ("User %s authorized, but no account of that name exists", session_get_username (session)); result = PAM_USER_UNKNOWN; } } if (priv->cancelling) reset_session (greeter); else priv->cancelling = FALSE; send_end_authentication (greeter, priv->authentication_sequence_number, session_get_username (session), result); } static void reset_session (Greeter *greeter) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_free (priv->remote_session); priv->remote_session = NULL; if (priv->authentication_session) { g_signal_handlers_disconnect_matched (priv->authentication_session, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, greeter); session_stop (priv->authentication_session); g_clear_object (&priv->authentication_session); } priv->guest_account_authenticated = FALSE; priv->have_sent_end_authentication = FALSE; priv->cancelling = FALSE; } static void handle_authenticate (Greeter *greeter, guint32 sequence_number, const gchar *username) { GreeterPrivate *priv = greeter_get_instance_private (greeter); if (username[0] == '\0') { g_debug ("Greeter start authentication"); username = NULL; } else g_debug ("Greeter start authentication for %s", username); reset_session (greeter); if (priv->active_username) g_free (priv->active_username); priv->active_username = g_strdup (username); g_object_notify (G_OBJECT (greeter), GREETER_PROPERTY_ACTIVE_USERNAME); priv->authentication_sequence_number = sequence_number; g_signal_emit (greeter, signals[CREATE_SESSION], 0, &priv->authentication_session); if (!priv->authentication_session) { send_end_authentication (greeter, sequence_number, "", PAM_USER_UNKNOWN); return; } g_signal_connect (G_OBJECT (priv->authentication_session), SESSION_SIGNAL_GOT_MESSAGES, G_CALLBACK (pam_messages_cb), greeter); g_signal_connect (G_OBJECT (priv->authentication_session), SESSION_SIGNAL_AUTHENTICATION_COMPLETE, G_CALLBACK (authentication_complete_cb), greeter); /* Use non-interactive service for autologin user */ const gchar *autologin_username = g_hash_table_lookup (priv->hints, "autologin-user"); const gchar *service; gboolean is_interactive; if (autologin_username != NULL && g_strcmp0 (username, autologin_username) == 0) { service = priv->autologin_pam_service; is_interactive = FALSE; } else { service = priv->pam_service; is_interactive = TRUE; } /* Run the session process */ session_set_pam_service (priv->authentication_session, service); session_set_username (priv->authentication_session, username); session_set_do_authenticate (priv->authentication_session, TRUE); session_set_is_interactive (priv->authentication_session, is_interactive); session_start (priv->authentication_session); } static void handle_authenticate_as_guest (Greeter *greeter, guint32 sequence_number) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_debug ("Greeter start authentication for guest account"); reset_session (greeter); if (!priv->allow_guest) { g_debug ("Guest account is disabled"); send_end_authentication (greeter, sequence_number, "", PAM_USER_UNKNOWN); return; } priv->guest_account_authenticated = TRUE; send_end_authentication (greeter, sequence_number, "", PAM_SUCCESS); } static gchar * get_remote_session_service (const gchar *session_name) { /* Validate session name doesn't contain directory separators */ for (const gchar *c = session_name; *c; c++) { if (*c == '/') return NULL; } /* Load the session file */ g_autoptr(GKeyFile) session_desktop_file = g_key_file_new (); g_autofree gchar *filename = g_strdup_printf ("%s.desktop", session_name); g_autofree gchar *remote_sessions_dir = config_get_string (config_get_instance (), "LightDM", "remote-sessions-directory"); g_autofree gchar *path = g_build_filename (remote_sessions_dir, filename, NULL); g_autoptr(GError) error = NULL; gboolean 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); if (!result) return NULL; return g_key_file_get_string (session_desktop_file, G_KEY_FILE_DESKTOP_GROUP, "X-LightDM-PAM-Service", NULL); } static void handle_authenticate_remote (Greeter *greeter, const gchar *session_name, const gchar *username, guint32 sequence_number) { GreeterPrivate *priv = greeter_get_instance_private (greeter); if (username[0] == '\0') { g_debug ("Greeter start authentication for remote session %s", session_name); username = NULL; } else g_debug ("Greeter start authentication for remote session %s as user %s", session_name, username); reset_session (greeter); g_autofree gchar *service = get_remote_session_service (session_name); if (!service) { send_end_authentication (greeter, sequence_number, "", PAM_SYSTEM_ERR); return; } priv->authentication_sequence_number = sequence_number; priv->remote_session = g_strdup (session_name); g_signal_emit (greeter, signals[CREATE_SESSION], 0, &priv->authentication_session); if (priv->authentication_session) { g_signal_connect (G_OBJECT (priv->authentication_session), SESSION_SIGNAL_GOT_MESSAGES, G_CALLBACK (pam_messages_cb), greeter); g_signal_connect (G_OBJECT (priv->authentication_session), SESSION_SIGNAL_AUTHENTICATION_COMPLETE, G_CALLBACK (authentication_complete_cb), greeter); /* Run the session process */ session_set_pam_service (priv->authentication_session, service); session_set_username (priv->authentication_session, username); session_set_do_authenticate (priv->authentication_session, TRUE); session_set_is_interactive (priv->authentication_session, TRUE); session_set_is_guest (priv->authentication_session, TRUE); session_start (priv->authentication_session); } if (!priv->authentication_session) { send_end_authentication (greeter, sequence_number, "", PAM_USER_UNKNOWN); return; } } static void handle_continue_authentication (Greeter *greeter, gchar **secrets) { GreeterPrivate *priv = greeter_get_instance_private (greeter); /* Not in authentication */ if (priv->authentication_session == NULL) return; size_t messages_length = session_get_messages_length (priv->authentication_session); const struct pam_message *messages = session_get_messages (priv->authentication_session); /* We may have already sent SERVER_MESSAGE_END_AUTHENTICATION, but the greeter may not have digested it yet. */ if (priv->have_sent_end_authentication) { g_debug ("Ignoring continue authentication"); return; } /* Check correct number of responses */ int n_prompts = 0; for (int 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 (priv->authentication_session, PAM_CONV_ERR); return; } g_debug ("Continue authentication"); /* Build response */ struct pam_response *response = calloc (messages_length, sizeof (struct pam_response)); for (int 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 (priv->authentication_session, response); for (int i = 0; i < messages_length; i++) secure_free (greeter, response[i].resp); free (response); } static void handle_cancel_authentication (Greeter *greeter) { GreeterPrivate *priv = greeter_get_instance_private (greeter); /* Not in authentication */ if (priv->authentication_session == NULL) return; g_debug ("Cancel authentication"); priv->cancelling = TRUE; session_stop (priv->authentication_session); } static void handle_start_session (Greeter *greeter, const gchar *session) { GreeterPrivate *priv = greeter_get_instance_private (greeter); if (strcmp (session, "") == 0) session = NULL; /* Use session type chosen in remote session */ SessionType session_type = SESSION_TYPE_LOCAL; if (priv->remote_session) { session_type = SESSION_TYPE_REMOTE; session = priv->remote_session; } gboolean result; if (priv->guest_account_authenticated || session_get_is_authenticated (priv->authentication_session)) { if (session) g_debug ("Greeter requests session %s", session); else g_debug ("Greeter requests default session"); priv->start_session = TRUE; g_signal_emit (greeter, signals[START_SESSION], 0, session_type, session, &result); } else { g_debug ("Ignoring start session request, user is not authorized"); result = FALSE; } guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; 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) { GreeterPrivate *priv = greeter_get_instance_private (greeter); if (!priv->guest_account_authenticated && !session_get_is_authenticated (priv->authentication_session)) { g_debug ("Ignoring set language request, user is not authorized"); return; } // FIXME: Could use this if (priv->guest_account_authenticated) { g_debug ("Ignoring set language request for guest user"); return; } g_debug ("Greeter sets language %s", language); User *user = session_get_user (priv->authentication_session); user_set_language (user, language); } static void handle_ensure_shared_dir (Greeter *greeter, const gchar *username) { g_debug ("Greeter requests data directory for user %s", username); g_autofree gchar *dir = shared_data_manager_ensure_user_dir (shared_data_manager_get_instance (), username); guint8 message[MAX_MESSAGE_LENGTH]; gsize offset = 0; 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); } static guint32 read_int (Greeter *greeter, gsize *offset) { GreeterPrivate *priv = greeter_get_instance_private (greeter); if (priv->n_read - *offset < sizeof (guint32)) { g_warning ("Not enough space for int, need %zu, got %zu", sizeof (guint32), priv->n_read - *offset); return 0; } guint8 *buffer = priv->read_buffer + *offset; guint32 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) { g_warning ("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)) { GreeterPrivate *priv = greeter_get_instance_private (greeter); guint32 length = read_int (greeter, offset); if (priv->n_read - *offset < length) { g_warning ("Not enough space for string, need %u, got %zu", length, priv->n_read - *offset); return g_strdup (""); } gchar *value = (*alloc_fn) (sizeof (gchar) * (length + 1)); memcpy (value, 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) { GreeterPrivate *priv = greeter_get_instance_private (greeter); if (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; GreeterPrivate *priv = greeter_get_instance_private (greeter); if (condition == G_IO_HUP) { g_debug ("Greeter closed communication channel"); priv->from_greeter_watch = 0; g_signal_emit (greeter, signals[DISCONNECTED], 0); return FALSE; } gsize n_to_read = HEADER_SIZE; if (priv->n_read >= HEADER_SIZE) { n_to_read = get_message_length (greeter); if (n_to_read <= HEADER_SIZE) { priv->from_greeter_watch = 0; return FALSE; } } gsize n_read; g_autoptr(GError) error = NULL; GIOStatus status = g_io_channel_read_chars (priv->from_greeter_channel, (gchar *) priv->read_buffer + priv->n_read, n_to_read - priv->n_read, &n_read, &error); if (error) g_warning ("Error reading from greeter: %s", error->message); if (status == G_IO_STATUS_EOF) { g_debug ("Greeter closed communication channel"); priv->from_greeter_watch = 0; g_signal_emit (greeter, signals[DISCONNECTED], 0); return FALSE; } else if (status != G_IO_STATUS_NORMAL) return TRUE; priv->n_read += n_read; if (priv->n_read != n_to_read) return TRUE; /* If have header, rerun for content */ if (priv->n_read == HEADER_SIZE) { n_to_read = get_message_length (greeter); if (n_to_read > HEADER_SIZE) { priv->read_buffer = secure_realloc (greeter, priv->read_buffer, n_to_read); read_cb (source, condition, greeter); return TRUE; } } gsize offset = 0; int id = read_int (greeter, &offset); int length = HEADER_SIZE + read_int (greeter, &offset); switch (id) { case GREETER_MESSAGE_CONNECT: { g_autofree gchar *version = read_string (greeter, &offset); gboolean resettable = FALSE; if (offset < length) resettable = read_int (greeter, &offset) != 0; guint32 api_version = 0; if (offset < length) api_version = read_int (greeter, &offset); handle_connect (greeter, version, resettable, api_version); } break; case GREETER_MESSAGE_AUTHENTICATE: { guint32 sequence_number = read_int (greeter, &offset); g_autofree gchar *username = read_string (greeter, &offset); handle_authenticate (greeter, sequence_number, username); } break; case GREETER_MESSAGE_AUTHENTICATE_AS_GUEST: { guint32 sequence_number = read_int (greeter, &offset); handle_authenticate_as_guest (greeter, sequence_number); } break; case GREETER_MESSAGE_AUTHENTICATE_REMOTE: { guint32 sequence_number = read_int (greeter, &offset); g_autofree gchar *session_name = read_string (greeter, &offset); g_autofree gchar *username = read_string (greeter, &offset); handle_authenticate_remote (greeter, session_name, username, sequence_number); } break; case GREETER_MESSAGE_CONTINUE_AUTHENTICATION: { guint32 n_secrets = read_int (greeter, &offset); guint32 max_secrets = (G_MAXUINT32 - 1) / sizeof (gchar *); if (n_secrets > max_secrets) { g_warning ("Array length of %u elements too long", n_secrets); priv->from_greeter_watch = 0; return FALSE; } gchar **secrets = g_malloc (sizeof (gchar *) * (n_secrets + 1)); guint32 i; for (i = 0; i < n_secrets; i++) secrets[i] = read_secret (greeter, &offset); secrets[i] = NULL; handle_continue_authentication (greeter, secrets); secure_freev (greeter, secrets); } break; case GREETER_MESSAGE_CANCEL_AUTHENTICATION: handle_cancel_authentication (greeter); break; case GREETER_MESSAGE_START_SESSION: { g_autofree gchar *session_name = read_string (greeter, &offset); handle_start_session (greeter, session_name); } break; case GREETER_MESSAGE_SET_LANGUAGE: { g_autofree gchar *language = read_string (greeter, &offset); handle_set_language (greeter, language); } break; case GREETER_MESSAGE_ENSURE_SHARED_DIR: { g_autofree gchar *username = read_string (greeter, &offset); handle_ensure_shared_dir (greeter, username); } break; default: g_warning ("Unknown message from greeter: %d", id); break; } priv->n_read = 0; return TRUE; } gboolean greeter_get_guest_authenticated (Greeter *greeter) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_return_val_if_fail (greeter != NULL, FALSE); return priv->guest_account_authenticated; } Session * greeter_take_authentication_session (Greeter *greeter) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_return_val_if_fail (greeter != NULL, NULL); Session *session = priv->authentication_session; if (priv->authentication_session) g_signal_handlers_disconnect_matched (priv->authentication_session, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, greeter); priv->authentication_session = NULL; return session; } gboolean greeter_get_resettable (Greeter *greeter) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_return_val_if_fail (greeter != NULL, FALSE); return priv->resettable; } gboolean greeter_get_start_session (Greeter *greeter) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_return_val_if_fail (greeter != NULL, FALSE); return priv->start_session; } const gchar * greeter_get_active_username (Greeter *greeter) { GreeterPrivate *priv = greeter_get_instance_private (greeter); g_return_val_if_fail (greeter != NULL, NULL); return priv->active_username; } 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_init (Greeter *greeter) { GreeterPrivate *priv = greeter_get_instance_private (greeter); priv->read_buffer = secure_malloc (greeter, HEADER_SIZE); priv->hints = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); priv->use_secure_memory = config_get_boolean (config_get_instance (), "LightDM", "lock-memory"); priv->to_greeter_input = -1; priv->from_greeter_output = -1; priv->cancelling = FALSE; } static void greeter_finalize (GObject *object) { Greeter *self = GREETER (object); GreeterPrivate *priv = greeter_get_instance_private (self); g_clear_pointer (&priv->pam_service, g_free); g_clear_pointer (&priv->autologin_pam_service, g_free); secure_free (self, priv->read_buffer); g_hash_table_unref (priv->hints); g_clear_pointer (&priv->remote_session, g_free); g_clear_pointer (&priv->active_username, g_free); if (priv->authentication_session) { g_signal_handlers_disconnect_matched (priv->authentication_session, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, self); g_object_unref (priv->authentication_session); } close (priv->to_greeter_input); close (priv->from_greeter_output); if (priv->to_greeter_channel) g_io_channel_unref (priv->to_greeter_channel); if (priv->from_greeter_channel) g_io_channel_unref (priv->from_greeter_channel); if (priv->from_greeter_watch) g_source_remove (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) { GObjectClass *object_class = G_OBJECT_CLASS (klass); klass->create_session = greeter_real_create_session; klass->start_session = greeter_real_start_session; 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[DISCONNECTED] = g_signal_new (GREETER_SIGNAL_DISCONNECTED, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GreeterClass, disconnected), 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)); } ubuntu-lightdm-e42f6d6/src/greeter.h000066400000000000000000000050371523516304700175140ustar00rootroot00000000000000/* * Copyright (C) 2010-2016 Canonical Ltd. * * 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_ typedef struct Greeter Greeter; #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_DISCONNECTED "disconnected" #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 struct Greeter { GObject parent_instance; }; typedef struct { GObjectClass parent_class; void (*connected)(Greeter *greeter); void (*disconnected)(Greeter *greeter); Session *(*create_session)(Greeter *greeter); gboolean (*start_session)(Greeter *greeter, SessionType type, const gchar *session); } GreeterClass; G_DEFINE_AUTOPTR_CLEANUP_FUNC (Greeter, g_object_unref) GType greeter_get_type (void); Greeter *greeter_new (void); void greeter_set_file_descriptors (Greeter *greeter, int to_greeter_fd, int from_greeter_fd); void greeter_stop (Greeter *greeter); 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_take_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_ */ ubuntu-lightdm-e42f6d6/src/guest-account.c000066400000000000000000000063261523516304700206350ustar00rootroot00000000000000/* * 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) { static gchar *setup_script = NULL; if (setup_script) return setup_script; g_autofree gchar *script = config_get_string (config_get_instance (), "LightDM", "guest-account-script"); if (!script) return NULL; setup_script = g_find_program_in_path (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; g_auto(GStrv) argv = NULL; if (!g_shell_parse_argv (script, &argc, &argv, error)) return FALSE; gboolean result = g_spawn_sync (NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, stdout_text, NULL, exit_status, error); return result; } gchar * guest_account_setup (void) { g_autofree gchar *command = g_strdup_printf ("%s add", get_setup_script ()); g_debug ("Opening guest account with command '%s'", command); g_autofree gchar *stdout_text = NULL; gint exit_status; g_autoptr(GError) error = NULL; gboolean result = run_script (command, &stdout_text, &exit_status, &error); if (error) g_warning ("Error running guest account setup script '%s': %s", get_setup_script (), error->message); if (!result) return NULL; if (exit_status != 0) { g_debug ("Guest account setup script returns %d: %s", exit_status, stdout_text); return NULL; } /* Use the last line and trim whitespace */ g_auto(GStrv) lines = g_strsplit (g_strstrip (stdout_text), "\n", -1); g_autofree gchar *username = NULL; if (lines) username = g_strdup (g_strstrip (lines[g_strv_length (lines) - 1])); else username = g_strdup (""); if (strcmp (username, "") == 0) { g_debug ("Guest account setup script didn't return a username"); return NULL; } g_debug ("Guest account %s setup", username); return g_steal_pointer (&username); } void guest_account_cleanup (const gchar *username) { g_autofree gchar *command = g_strdup_printf ("%s remove %s", get_setup_script (), username); g_debug ("Closing guest account %s with command '%s'", username, command); gint exit_status; g_autoptr(GError) error = NULL; gboolean result = run_script (command, NULL, &exit_status, &error); if (error) g_warning ("Error running guest account cleanup script '%s': %s", get_setup_script (), error->message); if (result && exit_status != 0) g_debug ("Guest account cleanup script returns %d", exit_status); } ubuntu-lightdm-e42f6d6/src/guest-account.h000066400000000000000000000012771523516304700206420ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/src/lightdm-guest-session.c000066400000000000000000000021501523516304700223010ustar00rootroot00000000000000/* -*- 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; } ubuntu-lightdm-e42f6d6/src/lightdm.c000066400000000000000000001104071523516304700175000ustar00rootroot00000000000000/* * 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 "display-manager-service.h" #include "xdmcp-server.h" #include "vnc-server.h" #include "vt.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 DisplayManagerService *display_manager_service = NULL; static XDMCPServer *xdmcp_server = NULL; static guint xdmcp_client_count = 0; static VNCServer *vnc_server = NULL; static guint vnc_client_count = 0; static gint exit_code = EXIT_SUCCESS; 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; 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; } g_autofree gchar *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 = 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); } static void log_init (void) { log_timer = g_timer_new (); /* Log to a file */ g_autofree gchar *log_dir = config_get_string (config_get_instance (), "LightDM", "log-directory"); g_autofree gchar *path = g_build_filename (log_dir, "lightdm.log", NULL); gboolean 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); } static GList* get_config_sections (const gchar *seat_name) { /* Load seat defaults first */ GList *config_sections = g_list_append (NULL, g_strdup ("Seat:*")); g_auto(GStrv) groups = config_get_groups (config_get_instance ()); const size_t seat_len = strlen ("Seat:"); for (gchar **i = groups; *i; i++) { if (g_str_has_prefix (*i, "Seat:") && strcmp (*i, "Seat:*") != 0) { const gchar *seat_name_glob = *i + seat_len; if (g_pattern_match_simple (seat_name_glob, seat_name ? seat_name : "")) config_sections = g_list_append (config_sections, g_strdup (*i)); } } return config_sections; } static void set_seat_properties (Seat *seat, const gchar *seat_name) { GList *sections = get_config_sections (seat_name); for (GList *link = sections; link; link = link->next) { const gchar *section = link->data; g_auto(GStrv) keys = NULL; keys = config_get_keys (config_get_instance (), section); l_debug (seat, "Loading properties from config section %s", section); for (gint i = 0; keys && keys[i]; i++) { g_autofree gchar *value = config_get_string (config_get_instance (), section, keys[i]); seat_set_property (seat, keys[i], value); } } g_list_free_full (sections, g_free); } static void signal_cb (Process *process, int signum) { switch (signum) { case SIGINT: case SIGTERM: g_debug ("Caught %s signal, shutting down", g_strsignal (signum)); display_manager_stop (display_manager); // FIXME: Stop XDMCP server break; case SIGUSR1: case SIGUSR2: case SIGHUP: break; } } static void display_manager_stopped_cb (DisplayManager *display_manager) { g_debug ("Stopping daemon"); g_main_loop_quit (loop); } static Seat * create_seat (const gchar *module_name, const gchar *name) { if (strcmp (module_name, "xlocal") == 0) { g_warning ("Seat type 'xlocal' is deprecated, use 'type=local' instead"); module_name = "local"; } Seat *seat = seat_new (module_name); if (!seat) return NULL; seat_set_name (seat, name); return seat; } static Seat * service_add_xlocal_seat_cb (DisplayManagerService *service, gint display_number) { g_debug ("Adding local X seat :%d", display_number); g_autoptr(Seat) seat = create_seat ("xremote", "xremote0"); // FIXME: What to use for a name? if (!seat) return NULL; set_seat_properties (seat, NULL); g_autofree gchar *display_number_string = g_strdup_printf ("%d", display_number); seat_set_property (seat, "xserver-display-number", display_number_string); if (!display_manager_add_seat (display_manager, seat)) return NULL; return g_steal_pointer (&seat); } static void display_manager_seat_removed_cb (DisplayManager *display_manager, Seat *seat) { /* If we have fallback types registered for the seat, let's try them before giving up. */ g_auto(GStrv) types = seat_get_string_list_property (seat, "type"); g_autoptr(GString) next_types = g_string_new (""); g_autoptr(Seat) next_seat = NULL; for (gchar **iter = types; iter && *iter; iter++) { if (iter == types) continue; // skip first one, that is our current seat type if (!next_seat) { next_seat = create_seat (*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); } } 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); } 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); } } static gboolean xdmcp_session_cb (XDMCPServer *server, XDMCPSession *session) { g_autoptr(SeatXDMCPSession) seat = seat_xdmcp_session_new (session); g_autofree gchar *name = g_strdup_printf ("xdmcp%d", xdmcp_client_count); xdmcp_client_count++; seat_set_name (SEAT (seat), name); set_seat_properties (SEAT (seat), NULL); return display_manager_add_seat (display_manager, SEAT (seat)); } static void vnc_connection_cb (VNCServer *server, GSocket *connection) { g_autoptr(SeatXVNC) seat = seat_xvnc_new (connection); g_autofree gchar *name = g_strdup_printf ("vnc%d", vnc_client_count); vnc_client_count++; seat_set_name (SEAT (seat), name); set_seat_properties (SEAT (seat), NULL); display_manager_add_seat (display_manager, SEAT (seat)); } static void start_display_manager (void) { display_manager_start (display_manager); /* Start the XDMCP server */ if (config_get_boolean (config_get_instance (), "XDMCPServer", "enabled")) { 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); } g_autofree gchar *listen_address = config_get_string (config_get_instance (), "XDMCPServer", "listen-address"); xdmcp_server_set_listen_address (xdmcp_server, listen_address); g_autofree gchar *hostname = config_get_string (config_get_instance (), "XDMCPServer", "hostname"); xdmcp_server_set_hostname (xdmcp_server, hostname); g_signal_connect (xdmcp_server, XDMCP_SERVER_SIGNAL_NEW_SESSION, G_CALLBACK (xdmcp_session_cb), NULL); g_autofree gchar *key_name = config_get_string (config_get_instance (), "XDMCPServer", "key"); g_autofree gchar *key = NULL; if (key_name) { g_autofree gchar *path = g_build_filename (config_get_directory (config_get_instance ()), "keys.conf", NULL); g_autoptr(GKeyFile) keys = g_key_file_new (); g_autoptr(GError) error = NULL; gboolean 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); 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); } } if (key) xdmcp_server_set_key (xdmcp_server, 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")) { /* Validate that a the VNC command is available. */ g_autofree gchar *command = config_get_string (config_get_instance (), "VNCServer", "command"); if (command) { g_auto(GStrv) tokens = g_strsplit (command, " ", 2); if (!g_find_program_in_path (tokens[0])) { g_warning ("Can't start VNC server; command '%s' not found", tokens[0]); return; } } else { /* Fallback to 'Xvnc'. */ if (!g_find_program_in_path ("Xvnc")) { g_warning ("Can't start VNC server; 'Xvnc' command not found"); return; } } vnc_server = vnc_server_new (); if (config_has_key (config_get_instance (), "VNCServer", "port")) { gint port = config_get_integer (config_get_instance (), "VNCServer", "port"); if (port > 0) vnc_server_set_port (vnc_server, port); } g_autofree gchar *listen_address = config_get_string (config_get_instance (), "VNCServer", "listen-address"); vnc_server_set_listen_address (vnc_server, 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); } } static void service_ready_cb (DisplayManagerService *service) { start_display_manager (); } static void service_name_lost_cb (DisplayManagerService *service) { exit (EXIT_FAILURE); } static gboolean add_login1_seat (Login1Seat *login1_seat) { const gchar *seat_name = login1_seat_get_id (login1_seat); g_debug ("New seat added from logind: %s", seat_name); gboolean is_seat0 = strcmp (seat_name, "seat0") == 0; GList *config_sections = get_config_sections (seat_name); g_auto(GStrv) types = NULL; for (GList *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); g_autoptr(Seat) seat = NULL; for (gchar **type = types; !seat && type && *type; type++) seat = create_seat (*type, seat_name); if (seat) { set_seat_properties (seat, seat_name); gboolean can_multi_session = login1_seat_get_can_multi_session (login1_seat); gboolean can_tty = login1_seat_get_can_tty (login1_seat); if (!can_multi_session) g_debug ("Seat %s has property CanMultiSession=no", seat_name); seat_set_supports_multi_session (seat, can_multi_session); seat_set_can_tty (seat, can_tty); if (is_seat0) seat_set_property (seat, "exit-on-failure", "true"); } else { g_debug ("Unable to create seat: %s", seat_name); return FALSE; } gboolean started = display_manager_add_seat (display_manager, seat); if (!started) g_debug ("Failed to start seat: %s", seat_name); return started; } static void remove_login1_seat (Login1Seat *login1_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)) { /* Wait for existing seat to stop or ignore if we already have a valid seat */ 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 = display_manager_get_seat (display_manager, login1_seat_get_id (login1_seat)); if (seat) { Session *active_session = seat_get_expected_active_session (seat); if (active_session != NULL && 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) { /* Disable the SIGPIPE handler - this is a stupid Unix hangover behaviour. * We will handle pipes / sockets being closed instead of having the whole daemon be killed... * http://stackoverflow.com/questions/8369506/why-does-sigpipe-exist * Similar case for SIGHUP. */ struct sigaction action; action.sa_handler = SIG_IGN; sigemptyset (&action.sa_mask); action.sa_flags = SA_RESTART; sigaction (SIGPIPE, &action, NULL); sigaction (SIGHUP, &action, 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); GList *messages = g_list_append (NULL, 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); g_autoptr(GOptionContext) option_context = g_option_context_new (/* Arguments and description for --help test */ _("- Display Manager")); gboolean test_mode = FALSE; gchar *pid_path = "/var/run/lightdm.pid"; gchar *log_dir = NULL; gchar *run_dir = NULL; gchar *cache_dir = NULL; gboolean show_config = FALSE, show_version = FALSE; 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 } }; g_option_context_add_main_entries (option_context, options, GETTEXT_PACKAGE); g_autoptr(GError) error = NULL; gboolean result = g_option_context_parse (option_context, &argc, &argv, &error); if (error) g_printerr ("%s\n", error->message); 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) { if (!config_load_from_standard_locations (config_get_instance (), config_path, NULL)) return EXIT_FAILURE; /* Number sources */ GList *sources = config_get_sources (config_get_instance ()); g_autoptr(GHashTable) source_ids = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); const gchar *last_source = ""; int i = 0; for (GList *link = sources; link; i++, link = link->next) { const gchar *path = link->data; gchar *id; 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; } g_autofree gchar *empty_source = g_strdup (last_source); for (i = 0; empty_source[i] != '\0'; i++) empty_source[i] = ' '; /* Print out keys */ g_auto(GStrv) groups = config_get_groups (config_get_instance ()); for (i = 0; groups[i]; i++) { if (i != 0) g_printerr ("\n"); g_printerr ("%s [%s]\n", empty_source, groups[i]); g_auto(GStrv) keys = config_get_keys (config_get_instance (), groups[i]); for (int j = 0; keys && keys[j]; j++) { const gchar *source, *id; g_autofree gchar *value = NULL; 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); } } /* Show mapping from source number to path */ g_printerr ("\n"); g_printerr ("Sources:\n"); for (GList *link = sources; link; link = link->next) { const gchar *path = link->data; const gchar *source = g_hash_table_lookup (source_ids, path); g_printerr ("%s %s\n", source, path); } 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) { g_autofree gchar *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; } } /* Make sure the system binary directory (where the greeters are installed) is in the path */ if (test_mode) { const gchar *path = g_getenv ("PATH"); g_autofree gchar *new_path = NULL; 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); } /* Write PID file */ 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 */ g_autofree gchar *default_log_dir = NULL; g_autofree gchar *default_run_dir = NULL; g_autofree gchar *default_cache_dir = NULL; if (getuid () != 0) { default_log_dir = g_build_filename (g_get_user_cache_dir (), "lightdm", "log", NULL); default_run_dir = g_build_filename (g_get_user_cache_dir (), "lightdm", "run", NULL); default_cache_dir = g_build_filename (g_get_user_cache_dir (), "lightdm", "cache", NULL); } else { default_log_dir = g_strdup (LOG_DIR); default_run_dir = g_strdup (RUN_DIR); default_cache_dir = g_strdup (CACHE_DIR); } /* 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 (), "LightDM", "dbus-service")) config_set_boolean (config_get_instance (), "LightDM", "dbus-service", TRUE); if (!config_has_key (config_get_instance (), "Seat:*", "type")) config_set_string (config_get_instance (), "Seat:*", "type", "local"); 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:*", "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", DEFAULT_GREETER_SESSION); if (!config_has_key (config_get_instance (), "Seat:*", "user-session")) config_set_string (config_get_instance (), "Seat:*", "user-session", DEFAULT_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); if (!config_has_key (config_get_instance (), "LightDM", "run-directory")) config_set_string (config_get_instance (), "LightDM", "run-directory", 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); 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")) { g_autoptr(GPtrArray) dirs = g_ptr_array_new_with_free_func (g_free); const gchar * const *data_dirs = g_get_system_data_dirs (); for (int i = 0; data_dirs[i]; i++) g_ptr_array_add (dirs, g_build_filename (data_dirs[i], "lightdm/greeters", NULL)); for (int i = 0; data_dirs[i]; i++) g_ptr_array_add (dirs, g_build_filename (data_dirs[i], "xgreeters", NULL)); g_ptr_array_add (dirs, NULL); g_autofree gchar *value = g_strjoinv (":", (gchar **) dirs->pdata); config_set_string (config_get_instance (), "LightDM", "greeters-directory", value); } if (!config_has_key (config_get_instance (), "XDMCPServer", "hostname")) config_set_string (config_get_instance (), "XDMCPServer", "hostname", g_get_host_name ()); if (!config_has_key (config_get_instance (), "LightDM", "logind-check-graphical")) config_set_boolean (config_get_instance (), "LightDM", "logind-check-graphical", TRUE); /* 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 */ g_autofree gchar *log_dir_path = config_get_string (config_get_instance (), "LightDM", "log-directory"); if (g_mkdir_with_parents (log_dir_path, S_IRWXU | S_IXGRP | S_IXOTH) < 0) g_warning ("Failed to make log directory %s: %s", log_dir_path, strerror (errno)); g_autofree gchar *run_dir_path = config_get_string (config_get_instance (), "LightDM", "run-directory"); if (g_mkdir_with_parents (run_dir_path, S_IRWXU | S_IXGRP | S_IXOTH) < 0) g_warning ("Failed to make run directory %s: %s", run_dir_path, strerror (errno)); g_autofree gchar *cache_dir_path = config_get_string (config_get_instance (), "LightDM", "cache-directory"); if (g_mkdir_with_parents (cache_dir_path, S_IRWXU | S_IXGRP | S_IXOTH) < 0) g_warning ("Failed to make cache directory %s: %s", cache_dir_path, strerror (errno)); log_init (); /* Show queued messages once logging is complete */ for (GList *link = messages; link; link = link->next) g_debug ("%s", (gchar *)link->data); g_list_free_full (messages, g_free); 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); if (config_get_boolean (config_get_instance (), "LightDM", "dbus-service")) { display_manager_service = display_manager_service_new (display_manager); g_signal_connect (display_manager_service, DISPLAY_MANAGER_SERVICE_SIGNAL_ADD_XLOCAL_SEAT, G_CALLBACK (service_add_xlocal_seat_cb), NULL); g_signal_connect (display_manager_service, DISPLAY_MANAGER_SERVICE_SIGNAL_READY, G_CALLBACK (service_ready_cb), NULL); g_signal_connect (display_manager_service, DISPLAY_MANAGER_SERVICE_SIGNAL_NAME_LOST, G_CALLBACK (service_name_lost_cb), NULL); display_manager_service_start (display_manager_service); } else start_display_manager (); 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 (GList *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")) { g_debug ("Adding default seat"); g_auto(GStrv) types = config_get_string_list (config_get_instance (), "Seat:*", "type"); g_autoptr(Seat) seat = NULL; for (gchar **type = types; type && *type; type++) { seat = create_seat (*type, "seat0"); if (seat) break; } if (seat) { set_seat_properties (seat, NULL); seat_set_property (seat, "exit-on-failure", "true"); /* in the absence of login1 we find out this using our own heuristics */ seat_set_can_tty (seat, vt_can_multi_seat ()); if (!display_manager_add_seat (display_manager, seat)) return EXIT_FAILURE; } 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 (); /* Remove D-Bus interface */ g_clear_object (&display_manager_service); /* Clean up display manager */ g_clear_object (&display_manager); g_debug ("Exiting with return value %d", exit_code); return exit_code; } ubuntu-lightdm-e42f6d6/src/log-file.c000066400000000000000000000026331523516304700175470ustar00rootroot00000000000000/* * 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; if (log_mode == LOG_MODE_BACKUP_AND_TRUNCATE) { /* Move old file out of the way */ g_autofree gchar *old_filename = NULL; old_filename = g_strdup_printf ("%s.old", log_filename); rename (log_filename, 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 */ int 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; } ubuntu-lightdm-e42f6d6/src/log-file.h000066400000000000000000000013011523516304700175430ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/src/logger.c000066400000000000000000000040101523516304700173170ustar00rootroot00000000000000#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) { /* figure out how long the prefix is */ gint 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_list ap_copy; 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); } ubuntu-lightdm-e42f6d6/src/logger.h000066400000000000000000000034641523516304700173400ustar00rootroot00000000000000#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_ */ ubuntu-lightdm-e42f6d6/src/login1.c000066400000000000000000000531731523516304700172470ustar00rootroot00000000000000/* -*- 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 }; typedef struct { /* 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; } Login1ServicePrivate; enum { CAN_GRAPHICAL_CHANGED, ACTIVE_SESSION_CHANGED, LAST_SEAT_SIGNAL }; static guint seat_signals[LAST_SEAT_SIGNAL] = { 0 }; typedef struct { /* 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; /* TRUE if seat has TTYs */ gboolean can_tty; } Login1SeatPrivate; G_DEFINE_TYPE_WITH_PRIVATE (Login1Service, login1_service, G_TYPE_OBJECT) G_DEFINE_TYPE_WITH_PRIVATE (Login1Seat, login1_seat, G_TYPE_OBJECT) G_DEFINE_AUTOPTR_CLEANUP_FUNC (Login1Seat, g_object_unref) 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) { Login1SeatPrivate *priv = login1_seat_get_instance_private (seat); if (strcmp (name, "CanGraphical") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)) { 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; Login1SeatPrivate *priv = login1_seat_get_instance_private (seat); g_autoptr(GVariantIter) iter = NULL; g_autoptr(GVariantIter) invalidated_properties = NULL; g_variant_get (parameters, "(sa{sv}as)", NULL, &iter, &invalidated_properties); const gchar *name; GVariant *value; while (g_variant_iter_loop (iter, "{&sv}", &name, &value)) update_property (seat, name, value); while (g_variant_iter_loop (invalidated_properties, "&s", &name)) { g_autoptr(GError) error = NULL; g_autoptr(GVariant) result = g_dbus_connection_call_sync (connection, LOGIN1_SERVICE_NAME, 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); if (result) { g_autoptr(GVariant) v = NULL; g_variant_get (result, "(v)", &v); update_property (seat, name, v); } } } static Login1Seat * add_seat (Login1Service *service, const gchar *id, const gchar *path) { Login1ServicePrivate *priv = login1_service_get_instance_private (service); Login1Seat *seat = g_object_new (LOGIN1_SEAT_TYPE, NULL); Login1SeatPrivate *s_priv = login1_seat_get_instance_private (seat); s_priv->connection = g_object_ref (priv->connection); s_priv->id = g_strdup (id); s_priv->path = g_strdup (path); s_priv->signal_id = g_dbus_connection_signal_subscribe (s_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 */ g_autoptr(GError) error = NULL; g_autoptr(GVariant) result = g_dbus_connection_call_sync (s_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); if (result) { g_autoptr(GVariantIter) properties = NULL; g_variant_get (result, "(a{sv})", &properties); const gchar *name; GVariant *value; while (g_variant_iter_loop (properties, "{&sv}", &name, &value)) { if (strcmp (name, "CanGraphical") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)) s_priv->can_graphical = g_variant_get_boolean (value); else if (strcmp (name, "CanMultiSession") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)) s_priv->can_multi_session = g_variant_get_boolean (value); else if (strcmp (name, "CanTTY") == 0 && g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)) s_priv->can_tty = g_variant_get_boolean (value); } } priv->seats = g_list_append (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; Login1ServicePrivate *priv = login1_service_get_instance_private (service); if (strcmp (signal_name, "SeatNew") == 0) { const gchar *id, *path; g_variant_get (parameters, "(&s&o)", &id, &path); Login1Seat *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; g_variant_get (parameters, "(&s&o)", &id, &path); g_autoptr(Login1Seat) seat = login1_service_get_seat (service, id); if (seat) { priv->seats = g_list_remove (priv->seats, seat); g_signal_emit (service, service_signals[SEAT_REMOVED], 0, seat); } } } gboolean login1_service_connect (Login1Service *service) { Login1ServicePrivate *priv = login1_service_get_instance_private (service); g_return_val_if_fail (service != NULL, FALSE); if (priv->connected) return TRUE; g_autoptr(GError) error = NULL; priv->connection = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (error) g_warning ("Failed to get system bus: %s", error->message); if (!priv->connection) return FALSE; priv->signal_id = g_dbus_connection_signal_subscribe (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); g_autoptr(GVariant) result = g_dbus_connection_call_sync (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); if (!result) return FALSE; g_autoptr(GVariantIter) seat_iter = NULL; g_variant_get (result, "(a(so))", &seat_iter); const gchar *id, *path; while (g_variant_iter_loop (seat_iter, "(&s&o)", &id, &path)) add_seat (service, id, path); priv->connected = TRUE; return TRUE; } gboolean login1_service_get_is_connected (Login1Service *service) { Login1ServicePrivate *priv = login1_service_get_instance_private (service); g_return_val_if_fail (service != NULL, FALSE); return priv->connected; } GList * login1_service_get_seats (Login1Service *service) { Login1ServicePrivate *priv = login1_service_get_instance_private (service); g_return_val_if_fail (service != NULL, NULL); return priv->seats; } Login1Seat * login1_service_get_seat (Login1Service *service, const gchar *id) { Login1ServicePrivate *priv = login1_service_get_instance_private (service); g_return_val_if_fail (service != NULL, NULL); for (GList *link = priv->seats; link; link = link->next) { Login1Seat *seat = link->data; Login1SeatPrivate *s_priv = login1_seat_get_instance_private (seat); if (strcmp (s_priv->id, id) == 0) return seat; } return NULL; } void login1_service_lock_session (Login1Service *service, const gchar *session_id) { Login1ServicePrivate *priv = login1_service_get_instance_private (service); g_return_if_fail (service != NULL); g_return_if_fail (session_id != NULL); g_debug ("Locking login1 session %s", session_id); if (!session_id) return; g_autoptr(GError) error = NULL; g_autoptr(GVariant) result = g_dbus_connection_call_sync (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); } void login1_service_unlock_session (Login1Service *service, const gchar *session_id) { Login1ServicePrivate *priv = login1_service_get_instance_private (service); g_return_if_fail (service != NULL); g_return_if_fail (session_id != NULL); g_debug ("Unlocking login1 session %s", session_id); if (!session_id) return; g_autoptr(GError) error = NULL; g_autoptr(GVariant) result = g_dbus_connection_call_sync (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); } void login1_service_activate_session (Login1Service *service, const gchar *session_id) { Login1ServicePrivate *priv = login1_service_get_instance_private (service); g_return_if_fail (service != NULL); g_return_if_fail (session_id != NULL); g_debug ("Activating login1 session %s", session_id); if (!session_id) return; g_autoptr(GError) error = NULL; g_autoptr(GVariant) result = g_dbus_connection_call_sync (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); } void login1_service_terminate_session (Login1Service *service, const gchar *session_id) { Login1ServicePrivate *priv = login1_service_get_instance_private (service); g_return_if_fail (service != NULL); g_return_if_fail (session_id != NULL); g_debug ("Terminating login1 session %s", session_id); if (!session_id) return; g_autoptr(GError) error = NULL; g_autoptr(GVariant) result = g_dbus_connection_call_sync (priv->connection, LOGIN1_SERVICE_NAME, LOGIN1_OBJECT_NAME, LOGIN1_MANAGER_INTERFACE_NAME, "TerminateSession", g_variant_new ("(s)", session_id), G_VARIANT_TYPE ("()"), G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); if (error) g_warning ("Error terminating login1 session: %s", error->message); } static void login1_service_init (Login1Service *service) { } static void login1_service_finalize (GObject *object) { Login1Service *self = LOGIN1_SERVICE (object); Login1ServicePrivate *priv = login1_service_get_instance_private (self); g_list_free_full (priv->seats, g_object_unref); g_dbus_connection_signal_unsubscribe (priv->connection, priv->signal_id); g_clear_object (&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; 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) { Login1SeatPrivate *priv = login1_seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, NULL); return priv->id; } gboolean login1_seat_get_can_graphical (Login1Seat *seat) { Login1SeatPrivate *priv = login1_seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, FALSE); return priv->can_graphical; } gboolean login1_seat_get_can_multi_session (Login1Seat *seat) { Login1SeatPrivate *priv = login1_seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, FALSE); return priv->can_multi_session; } gboolean login1_seat_get_can_tty (Login1Seat *seat) { Login1SeatPrivate *priv = login1_seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, FALSE); return priv->can_tty; } static void login1_seat_init (Login1Seat *seat) { } static void login1_seat_finalize (GObject *object) { Login1Seat *self = LOGIN1_SEAT (object); Login1SeatPrivate *priv = login1_seat_get_instance_private (self); g_clear_pointer (&priv->id, g_free); g_clear_pointer (&priv->path, g_free); g_dbus_connection_signal_unsubscribe (priv->connection, priv->signal_id); g_clear_object (&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; 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); } ubuntu-lightdm-e42f6d6/src/login1.h000066400000000000000000000051001523516304700172370ustar00rootroot00000000000000/* * 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 { GObject parent_instance; } 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 { GObject parent_instance; } 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); void login1_service_terminate_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); gboolean login1_seat_get_can_tty (Login1Seat *seat); G_END_DECLS #endif /* _LOGIN1_H_ */ ubuntu-lightdm-e42f6d6/src/plymouth.c000066400000000000000000000045371523516304700177370ustar00rootroot00000000000000/* * 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) { g_autofree gchar *command_line = g_strdup_printf ("plymouth %s", command); g_autoptr(GError) error = NULL; gboolean 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); 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); } ubuntu-lightdm-e42f6d6/src/plymouth.h000066400000000000000000000013661523516304700177410ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/src/process.c000066400000000000000000000324511523516304700175300ustar00rootroot00000000000000/* * 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 }; typedef struct { /* 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; } ProcessPrivate; G_DEFINE_TYPE_WITH_PRIVATE (Process, process, G_TYPE_OBJECT) static Process *current_process = NULL; static GHashTable *processes = NULL; static pid_t signal_pid; static int signal_pipe[2]; #ifndef HAVE_CLEARENV extern char **environ; #endif Process * process_get_current (void) { if (current_process) return current_process; current_process = process_new (NULL, NULL); ProcessPrivate *priv = process_get_instance_private (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); ProcessPrivate *priv = process_get_instance_private (process); priv->run_func = run_func; priv->run_func_data = run_func_data; priv->log_mode = LOG_MODE_INVALID; return process; } void process_set_log_file (Process *process, const gchar *path, gboolean log_stdout, LogMode log_mode) { ProcessPrivate *priv = process_get_instance_private (process); g_return_if_fail (process != NULL); g_free (priv->log_file); priv->log_file = g_strdup (path); priv->log_stdout = log_stdout; priv->log_mode = log_mode; } void process_set_clear_environment (Process *process, gboolean clear_environment) { ProcessPrivate *priv = process_get_instance_private (process); g_return_if_fail (process != NULL); priv->clear_environment = clear_environment; } gboolean process_get_clear_environment (Process *process) { ProcessPrivate *priv = process_get_instance_private (process); g_return_val_if_fail (process != NULL, FALSE); return priv->clear_environment; } void process_set_env (Process *process, const gchar *name, const gchar *value) { ProcessPrivate *priv = process_get_instance_private (process); g_return_if_fail (process != NULL); g_return_if_fail (name != NULL); g_hash_table_insert (priv->env, g_strdup (name), g_strdup (value)); } const gchar * process_get_env (Process *process, const gchar *name) { ProcessPrivate *priv = process_get_instance_private (process); g_return_val_if_fail (process != NULL, NULL); g_return_val_if_fail (name != NULL, NULL); return g_hash_table_lookup (priv->env, name); } void process_set_command (Process *process, const gchar *command) { ProcessPrivate *priv = process_get_instance_private (process); g_return_if_fail (process != NULL); g_free (priv->command); priv->command = g_strdup (command); } const gchar * process_get_command (Process *process) { ProcessPrivate *priv = process_get_instance_private (process); g_return_val_if_fail (process != NULL, NULL); return priv->command; } static void process_watch_cb (GPid pid, gint status, gpointer data) { Process *process = data; ProcessPrivate *priv = process_get_instance_private (process); priv->watch = 0; 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 (priv->quit_timeout) g_source_remove (priv->quit_timeout); priv->quit_timeout = 0; 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) { ProcessPrivate *priv = process_get_instance_private (process); g_return_val_if_fail (process != NULL, FALSE); g_return_val_if_fail (priv->command != NULL, FALSE); g_return_val_if_fail (priv->pid == 0, FALSE); gint argc; g_auto(GStrv) argv = NULL; g_autoptr(GError) error = NULL; if (!g_shell_parse_argv (priv->command, &argc, &argv, &error)) { g_warning ("Error parsing command %s: %s", priv->command, error->message); return FALSE; } int log_fd = -1; if (priv->log_file) log_fd = log_file_open (priv->log_file, priv->log_mode); /* Work out variables to set */ guint env_length = g_hash_table_size (priv->env); g_autofree gchar **env_keys = g_malloc (sizeof (gchar *) * env_length); g_autofree gchar **env_values = g_malloc (sizeof (gchar *) * env_length); GList *keys = g_hash_table_get_keys (priv->env); guint i = 0; for (GList *link = keys; i < env_length; i++, link = link->next) { env_keys[i] = link->data; env_values[i] = g_hash_table_lookup (priv->env, env_keys[i]); } g_list_free (keys); pid_t pid = fork (); if (pid == 0) { /* Do custom setup */ if (priv->run_func) priv->run_func (process, priv->run_func_data); /* Redirect output to logfile */ if (log_fd >= 0) { if (priv->log_stdout) dup2 (log_fd, STDOUT_FILENO); dup2 (log_fd, STDERR_FILENO); close (log_fd); } /* Set environment */ if (priv->clear_environment) #ifdef HAVE_CLEARENV clearenv (); #else environ = NULL; #endif for (guint i = 0; i < env_length; i++) { const gchar *value = env_values[i]; if (value != NULL) setenv (env_keys[i], value, TRUE); else unsetenv (env_keys[i]); } /* Reset SIGPIPE handler so the child has default behaviour (we disabled it at LightDM start) */ signal (SIGPIPE, SIG_DFL); execvp (argv[0], argv); _exit (EXIT_FAILURE); } close (log_fd); if (pid < 0) { g_warning ("Failed to fork: %s", strerror (errno)); return FALSE; } g_debug ("Launching process %d: %s", pid, priv->command); priv->pid = pid; if (block) { int exit_status; waitpid (priv->pid, &exit_status, 0); process_watch_cb (priv->pid, exit_status, process); } else { g_hash_table_insert (processes, GINT_TO_POINTER (priv->pid), g_object_ref (process)); priv->watch = g_child_watch_add (priv->pid, process_watch_cb, process); } return TRUE; } gboolean process_get_is_running (Process *process) { ProcessPrivate *priv = process_get_instance_private (process); g_return_val_if_fail (process != NULL, FALSE); return priv->pid != 0; } GPid process_get_pid (Process *process) { ProcessPrivate *priv = process_get_instance_private (process); g_return_val_if_fail (process != NULL, 0); return priv->pid; } void process_signal (Process *process, int signum) { ProcessPrivate *priv = process_get_instance_private (process); g_return_if_fail (process != NULL); if (priv->pid == 0) return; g_debug ("Sending signal %d to process %d", signum, priv->pid); if (kill (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, priv->pid, strerror (errno)); } } static gboolean quit_timeout_cb (Process *process) { ProcessPrivate *priv = process_get_instance_private (process); priv->quit_timeout = 0; process_signal (process, SIGKILL); return FALSE; } void process_stop (Process *process) { ProcessPrivate *priv = process_get_instance_private (process); g_return_if_fail (process != NULL); if (priv->stopping) return; priv->stopping = TRUE; /* If already stopped then we're done! */ if (priv->pid == 0) return; /* Send SIGTERM, and then SIGKILL if no response */ priv->quit_timeout = g_timeout_add (5000, (GSourceFunc) quit_timeout_cb, process); process_signal (process, SIGTERM); } int process_get_exit_status (Process *process) { ProcessPrivate *priv = process_get_instance_private (process); g_return_val_if_fail (process != NULL, -1); return priv->exit_status; } static void process_init (Process *process) { ProcessPrivate *priv = process_get_instance_private (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); ProcessPrivate *priv = process_get_instance_private (self); if (priv->pid > 0) g_hash_table_remove (processes, GINT_TO_POINTER (priv->pid)); g_clear_pointer (&priv->log_file, g_free); g_clear_pointer (&priv->command, g_free); g_hash_table_unref (priv->env); if (priv->quit_timeout) g_source_remove (priv->quit_timeout); if (priv->watch) g_source_remove (priv->watch); if (priv->pid) kill (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) { errno = 0; int signo; pid_t pid; 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 *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; 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 | SA_RESTART; sigaction (SIGTERM, &action, NULL); sigaction (SIGINT, &action, NULL); sigaction (SIGUSR1, &action, NULL); sigaction (SIGUSR2, &action, NULL); } ubuntu-lightdm-e42f6d6/src/process.h000066400000000000000000000044771523516304700175440ustar00rootroot00000000000000/* * 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 { GObject parent_instance; } Process; typedef struct { GObjectClass parent_class; void (*got_data)(Process *process); void (*got_signal)(Process *process, int signum); void (*stopped)(Process *process); } ProcessClass; G_DEFINE_AUTOPTR_CLEANUP_FUNC (Process, g_object_unref) 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_ */ ubuntu-lightdm-e42f6d6/src/seat-local.c000066400000000000000000000271721523516304700201020ustar00rootroot00000000000000/* * 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-local.h" #include "configuration.h" #include "x-server-local.h" #include "wayland-session.h" #include "plymouth.h" #include "vt.h" typedef struct { /* X server being used for XDMCP */ XServerLocal *xdmcp_x_server; } SeatLocalPrivate; G_DEFINE_TYPE_WITH_PRIVATE (SeatLocal, seat_local, SEAT_TYPE) static XServerLocal *create_x_server (SeatLocal *seat); static void check_stopped (SeatLocal *seat) { SeatLocalPrivate *priv = seat_local_get_instance_private (seat); if (!priv->xdmcp_x_server) SEAT_CLASS (seat_local_parent_class)->stop (SEAT (seat)); } static void xdmcp_x_server_stopped_cb (DisplayServer *display_server, SeatLocal *seat) { SeatLocalPrivate *priv = seat_local_get_instance_private (seat); l_debug (seat, "XDMCP X server stopped"); g_signal_handlers_disconnect_matched (priv->xdmcp_x_server, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, seat); g_clear_object (&priv->xdmcp_x_server); if (seat_get_is_stopping (SEAT (seat))) check_stopped (seat); else seat_stop (SEAT (seat)); } static gboolean seat_local_start (Seat *seat) { seat_set_share_display_server (seat, seat_get_boolean_property (seat, "xserver-share")); SeatLocalPrivate *priv = seat_local_get_instance_private (SEAT_LOCAL (seat)); /* If running as an XDMCP client then just start an X server */ const gchar *xdmcp_manager = seat_get_string_property (seat, "xdmcp-manager"); if (xdmcp_manager) { priv->xdmcp_x_server = create_x_server (SEAT_LOCAL (seat)); x_server_local_set_xdmcp_server (priv->xdmcp_x_server, xdmcp_manager); gint port = seat_get_integer_property (seat, "xdmcp-port"); if (port > 0) x_server_local_set_xdmcp_port (priv->xdmcp_x_server, port); const gchar *key_name = seat_get_string_property (seat, "xdmcp-key"); if (key_name) { g_autofree gchar *path = g_build_filename (config_get_directory (config_get_instance ()), "keys.conf", NULL); g_autoptr(GKeyFile) keys = g_key_file_new (); g_autoptr(GError) error = NULL; gboolean 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); if (result) { g_autofree 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 (priv->xdmcp_x_server, key); } } g_signal_connect (priv->xdmcp_x_server, DISPLAY_SERVER_SIGNAL_STOPPED, G_CALLBACK (xdmcp_x_server_stopped_cb), seat); return display_server_start (DISPLAY_SERVER (priv->xdmcp_x_server)); } return SEAT_CLASS (seat_local_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 (SeatLocal *seat, DisplayServer *display_server) { if (strcmp (seat_get_name (SEAT (seat)), "seat0") != 0 || !seat_get_can_tty ( SEAT (seat))) return -1; /* If Plymouth is running, stop it */ gint vt = -1; 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 (SeatLocal *seat) { g_autoptr(XServerLocal) x_server = x_server_local_new (); gint 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 */ const gchar *command = NULL; if (g_getenv ("DISPLAY")) command = "Xephyr"; if (!command) command = seat_get_string_property (SEAT (seat), "xserver-command"); if (command) x_server_local_set_command (x_server, command); x_server_set_local_authority (X_SERVER (x_server)); const gchar *layout = seat_get_string_property (SEAT (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 (seat))); const gchar *config_file = seat_get_string_property (SEAT (seat), "xserver-config"); if (config_file) x_server_local_set_config (x_server, config_file); gboolean allow_tcp = seat_get_boolean_property (SEAT (seat), "xserver-allow-tcp"); x_server_local_set_allow_tcp (x_server, allow_tcp); return g_steal_pointer (&x_server); } static DisplayServer * create_wayland_session (SeatLocal *seat) { g_autoptr(WaylandSession) session = wayland_session_new (); gint vt = get_vt (seat, DISPLAY_SERVER (session)); if (vt >= 0) wayland_session_set_vt (session, vt); return DISPLAY_SERVER (g_steal_pointer (&session)); } static DisplayServer * seat_local_create_display_server (Seat *s, Session *session) { SeatLocal *seat = SEAT_LOCAL (s); const gchar *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, "wayland") == 0) return create_wayland_session (seat); else { l_warning (seat, "Can't create unsupported display server '%s'", session_type); return NULL; } } static gboolean seat_local_display_server_is_used (Seat *seat, DisplayServer *display_server) { return SEAT_CLASS (seat_local_parent_class)->display_server_is_used (seat, display_server); } static GreeterSession * seat_local_create_greeter_session (Seat *seat) { GreeterSession *greeter_session = SEAT_CLASS (seat_local_parent_class)->create_greeter_session (seat); session_set_env (SESSION (greeter_session), "XDG_SEAT", seat_get_name (seat)); return greeter_session; } static Session * seat_local_create_session (Seat *seat) { Session *session = SEAT_CLASS (seat_local_parent_class)->create_session (seat); session_set_env (SESSION (session), "XDG_SEAT", seat_get_name (seat)); return session; } static void seat_local_set_active_session (Seat *seat, Session *session) { DisplayServer *display_server = session_get_display_server (session); gint vt = display_server_get_vt (display_server); if (vt >= 0) vt_set_active (vt); SEAT_CLASS (seat_local_parent_class)->set_active_session (seat, session); } static Session * seat_local_get_active_session (Seat *seat) { /* * In the past, virtual terminal switching was the only way to switch * between multiple sessions associated with a seat. Due to operating * system limitations, virtual terminal switching is limited to seat0, so * the vt_* family of functions from vt.h must only be used with seat0. * * Nowadays, systemd-logind (via the org.freedesktop.login1 dbus interface) * can be used to switch sessions. logind supports multiple sessions even * on non-seat0 seats. Whenever logind switches sessions, a callback * updates priv->active_session, so seat_get_expected_active_session should * always return the currently active session. * * FIXME: Use seat_get_expected_active_session even for seat0, falling back * to VT probing if the systemd-logind service is unavailable. */ if (strcmp (seat_get_name (seat), "seat0") != 0 || !seat_get_can_tty (seat)) return seat_get_expected_active_session (seat); gint vt = vt_get_active (); if (vt < 0) return NULL; /* Find out which session is on this VT */ for (GList *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_local_run_script (Seat *seat, DisplayServer *display_server, Process *script) { if (IS_X_SERVER_LOCAL (display_server)) { const gchar *path = x_server_local_get_authority_file_path (X_SERVER_LOCAL (display_server)); process_set_env (script, "DISPLAY", x_server_get_address (X_SERVER (display_server))); process_set_env (script, "XAUTHORITY", path); } SEAT_CLASS (seat_local_parent_class)->run_script (seat, display_server, script); } static void seat_local_stop (Seat *seat) { SeatLocalPrivate *priv = seat_local_get_instance_private (SEAT_LOCAL (seat)); /* Stop the XDMCP X server */ if (priv->xdmcp_x_server) display_server_stop (DISPLAY_SERVER (priv->xdmcp_x_server)); check_stopped (SEAT_LOCAL (seat)); } static void seat_local_init (SeatLocal *seat) { seat_set_supports_multi_session (SEAT (seat), TRUE); } static void seat_local_finalize (GObject *object) { SeatLocal *seat = SEAT_LOCAL (object); SeatLocalPrivate *priv = seat_local_get_instance_private (seat); if (priv->xdmcp_x_server) g_signal_handlers_disconnect_matched (priv->xdmcp_x_server, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, seat); g_clear_object (&priv->xdmcp_x_server); G_OBJECT_CLASS (seat_local_parent_class)->finalize (object); } static void seat_local_class_init (SeatLocalClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); SeatClass *seat_class = SEAT_CLASS (klass); object_class->finalize = seat_local_finalize; seat_class->start = seat_local_start; seat_class->create_display_server = seat_local_create_display_server; seat_class->display_server_is_used = seat_local_display_server_is_used; seat_class->create_greeter_session = seat_local_create_greeter_session; seat_class->create_session = seat_local_create_session; seat_class->set_active_session = seat_local_set_active_session; seat_class->get_active_session = seat_local_get_active_session; seat_class->run_script = seat_local_run_script; seat_class->stop = seat_local_stop; } ubuntu-lightdm-e42f6d6/src/seat-local.h000066400000000000000000000015501523516304700200770ustar00rootroot00000000000000/* * 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_LOCAL_H_ #define SEAT_LOCAL_H_ #include #include "seat.h" G_BEGIN_DECLS #define SEAT_LOCAL_TYPE (seat_local_get_type()) #define SEAT_LOCAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEAT_LOCAL_TYPE, SeatLocal)) typedef struct { Seat parent_instance; } SeatLocal; typedef struct { SeatClass parent_class; } SeatLocalClass; GType seat_local_get_type (void); G_END_DECLS #endif /* SEAT_LOCAL_H_ */ ubuntu-lightdm-e42f6d6/src/seat-xdmcp-session.c000066400000000000000000000050341523516304700215750ustar00rootroot00000000000000/* * 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" typedef struct { /* Session being serviced */ XDMCPSession *session; /* X server using XDMCP connection */ XServerRemote *x_server; } SeatXDMCPSessionPrivate; G_DEFINE_TYPE_WITH_PRIVATE (SeatXDMCPSession, seat_xdmcp_session, SEAT_TYPE) SeatXDMCPSession * seat_xdmcp_session_new (XDMCPSession *session) { SeatXDMCPSession *seat = g_object_new (SEAT_XDMCP_SESSION_TYPE, NULL); SeatXDMCPSessionPrivate *priv = seat_xdmcp_session_get_instance_private (seat); priv->session = g_object_ref (session); return seat; } static DisplayServer * seat_xdmcp_session_create_display_server (Seat *seat, Session *session) { SeatXDMCPSessionPrivate *priv = seat_xdmcp_session_get_instance_private (SEAT_XDMCP_SESSION (seat)); if (strcmp (session_get_session_type (session), "x") != 0) return NULL; /* Only create one server for the lifetime of this seat (XDMCP clients reconnect on logout) */ if (priv->x_server) return NULL; XAuthority *authority = xdmcp_session_get_authority (priv->session); g_autofree gchar *host = g_inet_address_to_string (xdmcp_session_get_address (priv->session)); priv->x_server = x_server_remote_new (host, xdmcp_session_get_display_number (priv->session), authority); return g_object_ref (DISPLAY_SERVER (priv->x_server)); } static void seat_xdmcp_session_init (SeatXDMCPSession *seat) { } static void seat_xdmcp_session_finalize (GObject *object) { SeatXDMCPSession *self = SEAT_XDMCP_SESSION (object); SeatXDMCPSessionPrivate *priv = seat_xdmcp_session_get_instance_private (self); g_clear_object (&priv->session); g_clear_object (&priv->x_server); 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; } ubuntu-lightdm-e42f6d6/src/seat-xdmcp-session.h000066400000000000000000000021041523516304700215750ustar00rootroot00000000000000/* * 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 { Seat parent_instance; } SeatXDMCPSession; typedef struct { SeatClass parent_class; } SeatXDMCPSessionClass; G_DEFINE_AUTOPTR_CLEANUP_FUNC (SeatXDMCPSession, g_object_unref) GType seat_xdmcp_session_get_type (void); SeatXDMCPSession *seat_xdmcp_session_new (XDMCPSession *session); G_END_DECLS #endif /* SEAT_XDMCP_SESSION_H_ */ ubuntu-lightdm-e42f6d6/src/seat-xremote.c000066400000000000000000000052431523516304700204660ustar00rootroot00000000000000/* * 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 DisplayServer * seat_xremote_create_display_server (Seat *seat, Session *session) { const gchar *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; } const gchar *hostname = seat_get_string_property (seat, "xserver-hostname"); gint number = seat_get_integer_property (seat, "xserver-display-number"); l_debug (seat, "Starting remote X display %s:%d", hostname ? hostname : "", number); return DISPLAY_SERVER (x_server_remote_new (hostname, number, NULL)); } static GreeterSession * seat_xremote_create_greeter_session (Seat *seat) { GreeterSession *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 = 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_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) { seat_set_supports_multi_session (SEAT (seat), FALSE); } static void seat_xremote_class_init (SeatXRemoteClass *klass) { SeatClass *seat_class = SEAT_CLASS (klass); 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; } ubuntu-lightdm-e42f6d6/src/seat-xremote.h000066400000000000000000000015761523516304700205000ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/src/seat-xvnc.c000066400000000000000000000102131523516304700177520ustar00rootroot00000000000000/* * 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" typedef struct { /* VNC connection */ GSocket *connection; /* X server using VNC connection */ XServerXVNC *x_server; } SeatXVNCPrivate; G_DEFINE_TYPE_WITH_PRIVATE (SeatXVNC, seat_xvnc, SEAT_TYPE) SeatXVNC *seat_xvnc_new (GSocket *connection) { SeatXVNC *seat = g_object_new (SEAT_XVNC_TYPE, NULL); SeatXVNCPrivate *priv = seat_xvnc_get_instance_private (seat); priv->connection = g_object_ref (connection); return seat; } static DisplayServer * seat_xvnc_create_display_server (Seat *seat, Session *session) { SeatXVNCPrivate *priv = seat_xvnc_get_instance_private (SEAT_XVNC (seat)); if (strcmp (session_get_session_type (session), "x") != 0) return NULL; /* Can only create one server for the lifetime of this seat (can't re-use VNC connection) */ if (priv->x_server) return NULL; g_autoptr(XServerXVNC) x_server = x_server_xvnc_new (); priv->x_server = g_object_ref (x_server); x_server_set_local_authority (X_SERVER (x_server)); x_server_xvnc_set_socket (x_server, g_socket_get_fd (priv->connection)); const gchar *command = config_get_string (config_get_instance (), "VNCServer", "command"); if (command) x_server_local_set_command (X_SERVER_LOCAL (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 (g_steal_pointer (&x_server)); } static void seat_xvnc_run_script (Seat *seat, DisplayServer *display_server, Process *script) { SeatXVNCPrivate *priv = seat_xvnc_get_instance_private (SEAT_XVNC (seat)); XServerXVNC *x_server = X_SERVER_XVNC (display_server); GInetSocketAddress *address = G_INET_SOCKET_ADDRESS (g_socket_get_remote_address (priv->connection, NULL)); g_autofree gchar *hostname = g_inet_address_to_string (g_inet_socket_address_get_address (address)); const gchar *path = x_server_local_get_authority_file_path (X_SERVER_LOCAL (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); SEAT_CLASS (seat_xvnc_parent_class)->run_script (seat, display_server, script); } static void seat_xvnc_init (SeatXVNC *seat) { seat_set_supports_multi_session (SEAT (seat), FALSE); } static void seat_xvnc_session_finalize (GObject *object) { SeatXVNC *self = SEAT_XVNC (object); SeatXVNCPrivate *priv = seat_xvnc_get_instance_private (self); g_clear_object (&priv->connection); g_clear_object (&priv->x_server); 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; } ubuntu-lightdm-e42f6d6/src/seat-xvnc.h000066400000000000000000000017071523516304700177670ustar00rootroot00000000000000/* * 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 { Seat parent_instance; } SeatXVNC; typedef struct { SeatClass parent_class; } SeatXVNCClass; G_DEFINE_AUTOPTR_CLEANUP_FUNC (SeatXVNC, g_object_unref) GType seat_xvnc_get_type (void); SeatXVNC *seat_xvnc_new (GSocket *connection); G_END_DECLS #endif /* SEAT_XVNC_H_ */ ubuntu-lightdm-e42f6d6/src/seat.c000066400000000000000000002027121523516304700170050ustar00rootroot00000000000000/* * 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-session.h" #include "session-config.h" enum { SESSION_ADDED, RUNNING_USER_SESSION, SESSION_REMOVED, STOPPED, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; typedef struct { /* 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 this seat has TTYs */ gboolean can_tty; /* 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 */ GreeterSession *replacement_greeter; } SeatPrivate; static void seat_logger_iface_init (LoggerInterface *iface); G_DEFINE_TYPE_WITH_CODE (Seat, seat, G_TYPE_OBJECT, G_ADD_PRIVATE (Seat) G_IMPLEMENT_INTERFACE ( LOGGER_TYPE, seat_logger_iface_init)) typedef struct { 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 gboolean start_display_server (Seat *seat, DisplayServer *display_server); static GreeterSession *create_greeter_session (Seat *seat); static void start_session (Seat *seat, Session *session); static void free_seat_module (gpointer data) { SeatModule *module = data; g_free (module->name); g_free (module); } void seat_register_module (const gchar *name, GType type) { if (!seat_modules) seat_modules = g_hash_table_new_full (g_str_hash, g_str_equal, free_seat_module, NULL); g_debug ("Registered seat module %s", name); SeatModule *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) { g_return_val_if_fail (module_name != NULL, NULL); SeatModule *m = NULL; if (seat_modules) m = g_hash_table_lookup (seat_modules, module_name); if (!m) return NULL; return g_object_new (m->type, NULL); } void seat_set_name (Seat *seat, const gchar *name) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_if_fail (seat != NULL); g_free (priv->name); priv->name = g_strdup (name); } void seat_set_property (Seat *seat, const gchar *name, const gchar *value) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_if_fail (seat != NULL); g_hash_table_insert (priv->properties, g_strdup (name), g_strdup (value)); } const gchar * seat_get_string_property (Seat *seat, const gchar *name) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, NULL); return g_hash_table_lookup (priv->properties, name); } gchar ** seat_get_string_list_property (Seat *seat, const gchar *name) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, NULL); return g_strsplit (g_hash_table_lookup (priv->properties, name), ";", 0); } gboolean seat_get_boolean_property (Seat *seat, const gchar *name) { const gchar *value = seat_get_string_property (seat, name); if (!value) return FALSE; /* Count the number of non-whitespace characters */ gint length = 0; for (gint 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 = seat_get_string_property (seat, name); return value ? atoi (value) : 0; } const gchar * seat_get_name (Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, NULL); return priv->name; } void seat_set_supports_multi_session (Seat *seat, gboolean supports_multi_session) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_if_fail (seat != NULL); priv->supports_multi_session = supports_multi_session; } void seat_set_share_display_server (Seat *seat, gboolean share_display_server) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_if_fail (seat != NULL); priv->share_display_server = share_display_server; } void seat_set_can_tty (Seat *seat, gboolean can_tty) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_if_fail (seat != NULL); priv->can_tty = can_tty; } gboolean seat_start (Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, FALSE); l_debug (seat, "Starting"); priv->started = SEAT_GET_CLASS (seat)->start (seat); return priv->started; } GList * seat_get_sessions (Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, NULL); return priv->sessions; } static gboolean set_greeter_idle (gpointer greeter) { greeter_idle (GREETER (greeter)); return FALSE; } void seat_set_active_session (Seat *seat, Session *session) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_if_fail (seat != NULL); SEAT_GET_CLASS (seat)->set_active_session (seat, session); /* Stop any greeters */ for (GList *link = priv->sessions; link; link = link->next) { Session *s = link->data; if (s == session || session_get_is_stopping (s)) continue; if (IS_GREETER_SESSION (s)) { Greeter *greeter = greeter_session_get_greeter (GREETER_SESSION (s)); if (greeter_get_resettable (greeter)) { if (priv->active_session == s) { 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 (priv->active_session && session != priv->active_session && !IS_GREETER_SESSION (priv->active_session)) session_lock (priv->active_session); session_activate (session); g_clear_object (&priv->active_session); 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) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, NULL); return 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 local 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) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, NULL); return 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) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_if_fail (seat != NULL); g_clear_object (&priv->active_session); priv->active_session = g_object_ref (session); } Session * seat_find_session_by_login1_id (Seat *seat, const gchar *login1_session_id) { SeatPrivate *priv = seat_get_instance_private (seat); for (GList *session_link = 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) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, FALSE); return seat_get_boolean_property (seat, "allow-user-switching") && priv->supports_multi_session; } gboolean seat_get_can_tty (Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, FALSE); return priv->can_tty; } 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, const gchar *home_directory) { g_autoptr(Process) 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"); if (g_getenv ("LD_PRELOAD")) process_set_env (script, "LD_PRELOAD", g_getenv ("LD_PRELOAD")); if (g_getenv ("LD_LIBRARY_PATH")) process_set_env (script, "LD_LIBRARY_PATH", g_getenv ("LD_LIBRARY_PATH")); if (g_getenv ("PATH")) process_set_env (script, "PATH", g_getenv ("PATH")); /* 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, "XDG_SEAT", seat_get_name (seat)); 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", home_directory ? home_directory : user_get_home_directory (user)); } else process_set_env (script, "HOME", "/"); SEAT_GET_CLASS (seat)->run_script (seat, display_server, script); gboolean result = FALSE; if (process_start (script, TRUE)) { int 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; } } 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); if (getuid () != 0) return; /* OK if it fails, probably not installed or not running upstart */ g_autoptr(GSubprocess) p = g_subprocess_new (G_SUBPROCESS_FLAGS_STDERR_SILENCE, NULL, "initctl", "-q", "emit", signal, "DISPLAY_MANAGER=lightdm", NULL); } static void check_stopped (Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); if (priv->stopping && !priv->stopped && g_list_length (priv->display_servers) == 0 && g_list_length (priv->sessions) == 0) { 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) { SeatPrivate *priv = seat_get_instance_private (seat); l_debug (seat, "Display server stopped"); /* Run a script right after stopping the display server */ const gchar *script = seat_get_string_property (seat, "display-stopped-script"); if (script) run_script (seat, NULL, script, NULL, NULL); g_signal_handlers_disconnect_matched (display_server, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, seat); priv->display_servers = g_list_remove (priv->display_servers, display_server); if (priv->stopping || !priv->started) { check_stopped (seat); g_object_unref (display_server); return; } /* Stop all sessions on this display server */ GList *list = g_list_copy (priv->sessions); for (GList *link = list; link; link = link->next) g_object_ref (link->data); for (GList *link = list; link; link = link->next) { Session *session = link->data; if (session_get_display_server (session) != display_server || session_get_is_stopping (session)) continue; gboolean is_failed_greeter = IS_GREETER_SESSION (session) && !session_get_is_started (session); l_debug (seat, "Stopping session"); session_stop (session); /* Stop seat if this is the only display server and it failed to start a greeter */ if (is_failed_greeter && g_list_length (priv->display_servers) == 0) { l_debug (seat, "Stopping; greeter display server failed to start"); seat_stop (seat); } } g_list_free_full (list, g_object_unref); if (!priv->stopping) { /* If we were the active session, switch to a greeter */ Session *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) { SeatPrivate *priv = seat_get_instance_private (seat); return priv->share_display_server && display_server_get_can_share (display_server); } static GreeterSession * find_greeter_session (Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); for (GList *link = priv->sessions; link; link = link->next) { Session *session = link->data; if (!session_get_is_stopping (session) && IS_GREETER_SESSION (session)) return GREETER_SESSION (session); } return NULL; } static GreeterSession * find_resettable_greeter (Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); for (GList *link = priv->sessions; link; link = link->next) { Session *session = link->data; if (!session_get_is_stopping (session) && IS_GREETER_SESSION (session) && greeter_get_resettable (greeter_session_get_greeter (GREETER_SESSION (session)))) return GREETER_SESSION (session); } return NULL; } static void set_greeter_hints (Seat *seat, Greeter *greeter) { greeter_clear_hints (greeter); greeter_set_hint (greeter, "default-session", seat_get_string_property (seat, "user-session")); greeter_set_hint (greeter, "hide-users", seat_get_boolean_property (seat, "greeter-hide-users") ? "true" : "false"); greeter_set_hint (greeter, "show-manual-login", seat_get_boolean_property (seat, "greeter-show-manual-login") ? "true" : "false"); greeter_set_hint (greeter, "show-remote-login", seat_get_boolean_property (seat, "greeter-show-remote-login") ? "true" : "false"); greeter_set_hint (greeter, "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) { SeatPrivate *priv = seat_get_instance_private (seat); /* Switch to greeter if one open */ GreeterSession *greeter_session = find_resettable_greeter (seat); gboolean existing = FALSE; if (greeter_session) { l_debug (seat, "Switching to existing greeter"); set_greeter_hints (seat, greeter_session_get_greeter (greeter_session)); existing = TRUE; } else { greeter_session = create_greeter_session (seat); } Greeter *greeter = greeter_session_get_greeter (greeter_session); if (session_get_is_guest (session)) greeter_set_hint (greeter, "select-guest", "true"); else greeter_set_hint (greeter, "select-user", session_get_username (session)); if (existing) { greeter_reset (greeter); seat_set_active_session (seat, SESSION (greeter_session)); } else { g_clear_object (&priv->session_to_activate); priv->session_to_activate = g_object_ref (SESSION (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 = create_display_server (seat, session); session_set_display_server (session, display_server); if (!start_display_server (seat, 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 (session)) { g_autofree gchar *log_dir = config_get_string (config_get_instance (), "LightDM", "log-directory"); g_autofree gchar *filename = g_strdup_printf ("%s-greeter.log", seat_get_name (seat)); g_autofree gchar *log_filename = g_build_filename (log_dir, filename, NULL); gboolean 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); } if (session_start (session)) return; if (IS_GREETER_SESSION (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) { SeatPrivate *priv = seat_get_instance_private (seat); const gchar *script; if (IS_GREETER_SESSION (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), session_get_home_directory (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 (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 == priv->session_to_activate) { seat_set_active_session (seat, session); g_clear_object (&priv->session_to_activate); } else if (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 (priv->active_session); } } static Session * find_user_session (Seat *seat, const gchar *username, Session *ignore_session) { SeatPrivate *priv = seat_get_instance_private (seat); if (!username) return NULL; for (GList *link = 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) { SeatPrivate *priv = seat_get_instance_private (seat); Session *session = find_user_session (seat, greeter_get_active_username (greeter), priv->active_session); g_clear_object (&priv->next_session); 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 = 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 (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) { SeatPrivate *priv = seat_get_instance_private (seat); l_debug (seat, "Session stopped"); g_signal_handlers_disconnect_matched (session, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, seat); priv->sessions = g_list_remove (priv->sessions, session); if (session == priv->active_session) g_clear_object (&priv->active_session); if (session == priv->next_session) g_clear_object (&priv->next_session); /* We were waiting for this session, but it didn't start :( */ // FIXME: Start a greeter on this? if (session == priv->session_to_activate) g_clear_object (&priv->session_to_activate); DisplayServer *display_server = session_get_display_server (session); /* Cleanup */ if (!IS_GREETER_SESSION (session)) { const gchar *script = seat_get_string_property (seat, "session-cleanup-script"); if (script) run_script (seat, display_server, script, session_get_user (session), session_get_home_directory (session)); } if (priv->stopping) { check_stopped (seat); g_object_unref (session); return; } /* If there is a pending replacement greeter, start it */ if (IS_GREETER_SESSION (session) && priv->replacement_greeter) { GreeterSession *replacement_greeter = priv->replacement_greeter; 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 (session) && can_share_display_server (seat, display_server) && greeter_get_start_session (greeter_session_get_greeter (GREETER_SESSION (session)))) { for (GList *link = 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 (session) && !greeter_get_start_session (greeter_session_get_greeter (GREETER_SESSION (session))) && g_list_length (priv->display_servers) == 1 && g_list_nth_data (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) && 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); } } g_signal_emit (seat, signals[SESSION_REMOVED], 0, session); g_object_unref (session); /* Stop the display server if no-longer required */ if (display_server && !display_server_get_is_stopping (display_server) && !SEAT_GET_CLASS (seat)->display_server_is_used (seat, display_server)) { l_debug (seat, "Stopping display server, no sessions require it"); display_server_stop (display_server); } } 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"); } /* 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, "GI_TYPELIB_PATH", g_getenv ("GI_TYPELIB_PATH")); } 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")); } static Session * create_session (Seat *seat, gboolean autostart) { SeatPrivate *priv = seat_get_instance_private (seat); Session *session = SEAT_GET_CLASS (seat)->create_session (seat); priv->sessions = g_list_append (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) { /* If configured, run sessions through a wrapper */ if (session_wrapper) { gchar **argv = g_malloc (sizeof (gchar *) * 3); g_autofree gchar *path = g_find_program_in_path (session_wrapper); argv[0] = path ? g_steal_pointer (&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 */ int argc; g_auto(GStrv) argv = NULL; g_autoptr(GError) error = NULL; gboolean 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); if (!result) return NULL; g_autofree gchar *path = g_find_program_in_path (argv[0]); if (path) { g_free (argv[0]); argv[0] = g_steal_pointer (&path); } return g_steal_pointer (&argv); } static SessionConfig * find_session_config (Seat *seat, const gchar *sessions_dir, const gchar *session_name) { g_return_val_if_fail (sessions_dir != NULL, NULL); g_return_val_if_fail (session_name != NULL, NULL); g_auto(GStrv) dirs = g_strsplit (sessions_dir, ":", -1); for (int i = 0; dirs[i]; i++) { const gchar *default_session_type = "x"; if (dirs[i] != NULL && g_str_has_suffix (dirs[i], "/wayland-sessions") == TRUE) default_session_type = "wayland"; g_autofree gchar *filename = g_strdup_printf ("%s.desktop", session_name); g_autofree gchar *path = g_build_filename (dirs[i], filename, NULL); g_autoptr(GError) error = NULL; SessionConfig *session_config = session_config_new_from_file (path, default_session_type, &error); if (session_config) return session_config; } l_debug (seat, "Failed to find session configuration %s", session_name); return NULL; } static void configure_session (Session *session, SessionConfig *config, const gchar *session_name, const gchar *language) { 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); gchar **desktop_names = session_config_get_desktop_names (config); if (desktop_names) { g_autofree gchar *value = g_strjoinv (":", desktop_names); session_set_env (session, "XDG_CURRENT_DESKTOP", 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) { l_debug (seat, "Creating user session"); /* Load user preferences */ g_autoptr(User) user = accounts_get_user_by_name (username); if (!user) { l_debug (seat, "Can't login unknown user '%s'", username); return NULL; } const gchar *session_name = user_get_xsession (user); const gchar *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"); g_autofree gchar *sessions_dir = config_get_string (config_get_instance (), "LightDM", "sessions-directory"); g_autoptr(SessionConfig) session_config = find_session_config (seat, sessions_dir, session_name); if (!session_config) { l_debug (seat, "Can't find session '%s'", session_name); return NULL; } g_autoptr(Session) session = create_session (seat, autostart); configure_session (session, session_config, session_name, language); session_set_username (session, username); session_set_do_authenticate (session, TRUE); g_auto(GStrv) argv = get_session_argv (seat, session_config, seat_get_string_property (seat, "session-wrapper")); session_set_argv (session, argv); return g_steal_pointer (&session); } static void prepend_argv (gchar ***argv, const gchar *value) { gchar **old_argv = *argv; gchar **new_argv = g_malloc (sizeof (gchar *) * (g_strv_length (*argv) + 2)); new_argv[0] = g_strdup (value); gint i; 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) { if (!session_name) session_name = seat_get_string_property (seat, "guest-session"); if (!session_name) session_name = seat_get_string_property (seat, "user-session"); g_autofree gchar *sessions_dir = config_get_string (config_get_instance (), "LightDM", "sessions-directory"); g_autoptr(SessionConfig) session_config = find_session_config (seat, sessions_dir, session_name); if (!session_config) { l_debug (seat, "Can't find session '%s'", session_name); return NULL; } g_autoptr(Session) 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); g_auto(GStrv) argv = get_session_argv (seat, session_config, seat_get_string_property (seat, "session-wrapper")); const gchar *guest_wrapper = seat_get_string_property (seat, "guest-wrapper"); if (guest_wrapper) { g_autofree gchar *path = g_find_program_in_path (guest_wrapper); prepend_argv (&argv, path ? path : guest_wrapper); } session_set_argv (session, argv); return g_steal_pointer (&session); } // FIXME: This is inefficient and we already know the greeter session when we set the callbacks... static Session * get_greeter_session (Seat *seat, Greeter *greeter) { SeatPrivate *priv = seat_get_instance_private (seat); /* Stop any greeters */ for (GList *link = priv->sessions; link; link = link->next) { Session *session = link->data; if (IS_GREETER_SESSION (session) && greeter_session_get_greeter (GREETER_SESSION (session))) return session; } return NULL; } static Session * greeter_create_session_cb (Greeter *greeter, Seat *seat) { Session *greeter_session, *session; greeter_session = get_greeter_session (seat, greeter); session = create_session (seat, FALSE); session_set_config (session, session_get_config (greeter_session)); session_set_display_server (session, session_get_display_server (greeter_session)); return g_object_ref (session); } static gboolean greeter_start_session_cb (Greeter *greeter, SessionType type, const gchar *session_name, Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); /* Get the session to use */ Session *session; if (greeter_get_guest_authenticated (greeter)) { session = g_object_ref (create_guest_session (seat, session_name)); if (!session) return FALSE; session_set_pam_service (session, seat_get_string_property (seat, "pam-autologin-service")); } else { session = greeter_take_authentication_session (greeter); /* Get session command to run */ g_autofree gchar *sessions_dir = NULL; 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 */ const gchar *language = NULL; User *user = session_get_user (session); if (user) { const gchar *autologin_username; /* Override session for autologin if configured */ autologin_username = seat_get_string_property (seat, "autologin-user"); if (!session_name && g_strcmp0 (user_get_name (user), autologin_username) == 0) session_name = seat_get_string_property (seat, "autologin-session"); 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); g_autoptr(SessionConfig) session_config = find_session_config (seat, sessions_dir, session_name); if (!session_config) { l_debug (seat, "Can't find session '%s'", session_name); return FALSE; } configure_session (session, session_config, session_name, language); g_auto(GStrv) argv = get_session_argv (seat, session_config, seat_get_string_property (seat, "session-wrapper")); session_set_argv (session, argv); } /* Switch to this session when it is ready */ g_clear_object (&priv->session_to_activate); priv->session_to_activate = session; /* Return to existing session if it is open */ const gchar *username = session_get_username (session); 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 */ Session *greeter_session = get_greeter_session (seat, greeter); if (greeter_session) { DisplayServer *display_server = session_get_display_server (greeter_session); if (display_server && !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 (greeter_session); return TRUE; } } /* Otherwise start a new display server for this session */ DisplayServer *display_server = create_display_server (seat, session); session_set_display_server (session, display_server); if (!start_display_server (seat, display_server)) { l_debug (seat, "Failed to start display server for new session"); return FALSE; } return TRUE; } static GreeterSession * create_greeter_session (Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); l_debug (seat, "Creating greeter session"); g_autofree gchar *sessions_dir = config_get_string (config_get_instance (), "LightDM", "greeters-directory"); g_autoptr(SessionConfig) session_config = find_session_config (seat, sessions_dir, seat_get_string_property (seat, "greeter-session")); if (!session_config) return NULL; g_auto(GStrv) argv = get_session_argv (seat, session_config, NULL); const gchar *greeter_wrapper = seat_get_string_property (seat, "greeter-wrapper"); if (greeter_wrapper) { g_autofree gchar *path = g_find_program_in_path (greeter_wrapper); prepend_argv (&argv, path ? path : greeter_wrapper); } GreeterSession *greeter_session = SEAT_GET_CLASS (seat)->create_greeter_session (seat); Greeter *greeter = greeter_session_get_greeter (greeter_session); session_set_config (SESSION (greeter_session), session_config); priv->sessions = g_list_append (priv->sessions, SESSION (greeter_session)); g_signal_connect (greeter, 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) { g_autofree gchar *greeter_user = config_get_string (config_get_instance (), "LightDM", "greeter-user"); session_set_username (SESSION (greeter_session), 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); greeter_set_pam_services (greeter, seat_get_string_property (seat, "pam-service"), seat_get_string_property (seat, "pam-autologin-service")); g_signal_connect (greeter, GREETER_SIGNAL_CREATE_SESSION, G_CALLBACK (greeter_create_session_cb), seat); g_signal_connect (greeter, GREETER_SIGNAL_START_SESSION, G_CALLBACK (greeter_start_session_cb), seat); /* Set hints to greeter */ greeter_set_allow_guest (greeter, seat_get_allow_guest (seat)); set_greeter_hints (seat, greeter); /* Configure for automatic login */ const gchar *autologin_username = seat_get_string_property (seat, "autologin-user"); if (g_strcmp0 (autologin_username, "") == 0) autologin_username = NULL; const gchar *autologin_session = seat_get_string_property (seat, "autologin-session"); if (g_strcmp0 (autologin_session, "") == 0) autologin_session = NULL; int autologin_timeout = seat_get_integer_property (seat, "autologin-user-timeout"); gboolean autologin_guest = seat_get_boolean_property (seat, "autologin-guest"); if (autologin_timeout > 0) { g_autofree gchar *value = g_strdup_printf ("%d", autologin_timeout); greeter_set_hint (greeter, "autologin-timeout", value); if (autologin_username) greeter_set_hint (greeter, "autologin-user", autologin_username); if (autologin_session) greeter_set_hint (greeter, "autologin-session", autologin_session); if (autologin_guest) greeter_set_hint (greeter, "autologin-guest", "true"); } return greeter_session; } static Session * find_session_for_display_server (Seat *seat, DisplayServer *display_server) { SeatPrivate *priv = seat_get_instance_private (seat); for (GList *link = priv->sessions; link; link = link->next) { Session *session = link->data; if (session_get_display_server (session) == display_server && !session_get_is_stopping (session) && !session_get_is_run (session)) return session; } return NULL; } static void display_server_ready_cb (DisplayServer *display_server, Seat *seat) { /* Run setup script */ const gchar *script = seat_get_string_property (seat, "display-setup-script"); if (script && !run_script (seat, display_server, script, NULL, 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 *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) { SeatPrivate *priv = seat_get_instance_private (seat); l_debug (seat, "Creating display server of type %s", session_get_session_type (session)); DisplayServer *display_server = SEAT_GET_CLASS (seat)->create_display_server (seat, session); if (!display_server) return NULL; /* Remember this display server */ if (!g_list_find (priv->display_servers, display_server)) { priv->display_servers = g_list_append (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; } static gboolean start_display_server (Seat *seat, DisplayServer *display_server) { if (display_server_get_is_ready (display_server)) { display_server_ready_cb (display_server, seat); return TRUE; } else { gboolean success = display_server_start (display_server); if (!success) { l_debug (seat, "Failed to start the display server"); } return success; } } gboolean seat_switch_to_greeter (Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, FALSE); /* Switch to greeter if one open */ GreeterSession *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; } if (!seat_get_can_switch (seat) && priv->sessions != NULL) { l_debug (seat, "Unable to switch to greeter because the seat already has a session and does not support session switching"); return FALSE; } greeter_session = create_greeter_session (seat); if (!greeter_session) { l_debug (seat, "Failed to create a greeter session"); return FALSE; } g_clear_object (&priv->session_to_activate); priv->session_to_activate = g_object_ref (SESSION (greeter_session)); DisplayServer *display_server = create_display_server (seat, SESSION (greeter_session)); if (!display_server) { l_debug (seat, "Failed to create a display server for the new greeter session"); g_clear_object (&priv->session_to_activate); return FALSE; } session_set_display_server (SESSION (greeter_session), display_server); return start_display_server (seat, display_server); } static void switch_authentication_complete_cb (Session *session, Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); /* If authenticated, then unlock existing session or start new one */ if (session_get_is_authenticated (session)) { Session *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 (&priv->session_to_activate); priv->session_to_activate = g_object_ref (session); DisplayServer *display_server = create_display_server (seat, session); session_set_display_server (session, display_server); start_display_server (seat, display_server); } return; } session_stop (session); /* See if we already have a greeter up and reuse it if so */ GreeterSession *greeter_session = find_resettable_greeter (seat); gboolean existing = FALSE; if (greeter_session) { l_debug (seat, "Switching to existing greeter to authenticate session"); set_greeter_hints (seat, greeter_session_get_greeter (greeter_session)); existing = TRUE; } else { l_debug (seat, "Starting greeter to authenticate session"); greeter_session = create_greeter_session (seat); } Greeter *greeter = greeter_session_get_greeter (greeter_session); if (session_get_is_guest (session)) greeter_set_hint (greeter, "select-guest", "true"); else greeter_set_hint (greeter, "select-user", session_get_username (session)); if (existing) { greeter_reset (greeter); seat_set_active_session (seat, SESSION (greeter_session)); } else { g_clear_object (&priv->session_to_activate); priv->session_to_activate = g_object_ref (SESSION (greeter_session)); DisplayServer *display_server = create_display_server (seat, SESSION (greeter_session)); session_set_display_server (SESSION (greeter_session), display_server); start_display_server (seat, display_server); } } gboolean seat_switch_to_user (Seat *seat, const gchar *username, const gchar *session_name) { SeatPrivate *priv = seat_get_instance_private (seat); 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 *session = find_user_session (seat, username, NULL); if (session && session == 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) { SeatPrivate *priv = seat_get_instance_private (seat); for (GList *link = 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) { SeatPrivate *priv = seat_get_instance_private (seat); 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 *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; DisplayServer *display_server = create_display_server (seat, session); g_clear_object (&priv->session_to_activate); 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 start_display_server (seat, display_server); } gboolean seat_lock (Seat *seat, const gchar *username) { SeatPrivate *priv = seat_get_instance_private (seat); 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 */ gboolean reset_existing = FALSE; gboolean reuse_xserver = FALSE; DisplayServer *display_server = NULL; GreeterSession *greeter_session = find_resettable_greeter (seat); if (greeter_session) { l_debug (seat, "Switching to existing greeter"); set_greeter_hints (seat, greeter_session_get_greeter (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 *greeter = greeter_session_get_greeter (greeter_session); greeter_set_hint (greeter, "lock-screen", "true"); if (username) greeter_set_hint (greeter, "select-user", username); if (reset_existing) { greeter_reset (greeter); 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 (&priv->session_to_activate); priv->session_to_activate = g_object_ref (SESSION (greeter_session)); if (reuse_xserver) { g_clear_object (&priv->replacement_greeter); priv->replacement_greeter = g_object_ref (greeter_session); return TRUE; } else return start_display_server (seat, display_server); } } void seat_stop (Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_if_fail (seat != NULL); if (priv->stopping) return; l_debug (seat, "Stopping"); priv->stopping = TRUE; SEAT_GET_CLASS (seat)->stop (seat); } gboolean seat_get_is_stopping (Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); g_return_val_if_fail (seat != NULL, FALSE); return priv->stopping; } static gboolean seat_real_start (Seat *seat) { SeatPrivate *priv = seat_get_instance_private (seat); /* Get autologin settings */ const gchar *autologin_username = seat_get_string_property (seat, "autologin-user"); if (g_strcmp0 (autologin_username, "") == 0) autologin_username = NULL; int autologin_timeout = seat_get_integer_property (seat, "autologin-user-timeout"); gboolean autologin_guest = seat_get_boolean_property (seat, "autologin-guest"); gboolean autologin_in_background = seat_get_boolean_property (seat, "autologin-in-background"); /* Autologin if configured */ Session *session = NULL, *background_session = NULL; 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) { g_clear_object (&priv->session_to_activate); priv->session_to_activate = g_object_ref (session); DisplayServer *display_server = create_display_server (seat, session); session_set_display_server (session, display_server); if (!display_server || !start_display_server (seat, 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) { GreeterSession *greeter_session = create_greeter_session (seat); if (!greeter_session) { l_debug (seat, "Failed to create greeter session"); return FALSE; } g_clear_object (&priv->session_to_activate); session = SESSION (greeter_session); priv->session_to_activate = g_object_ref (session); DisplayServer *display_server = create_display_server (seat, session); session_set_display_server (session, display_server); if (!display_server || !start_display_server (seat, 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 = create_display_server (seat, background_session); session_set_display_server (background_session, background_display_server); if (!start_display_server (seat, background_display_server)) l_warning (seat, "Failed to start display server for background session"); } return TRUE; } static DisplayServer * seat_real_create_display_server (Seat *seat, Session *session) { return NULL; } static gboolean seat_real_display_server_is_used (Seat *seat, DisplayServer *display_server) { SeatPrivate *priv = seat_get_instance_private (seat); for (GList *link = priv->sessions; link; link = link->next) { Session *session = link->data; DisplayServer *d = session_get_display_server (session); if (!d) continue; if (d == display_server || display_server_get_parent (d) == display_server) return TRUE; } return FALSE; } static GreeterSession * seat_real_create_greeter_session (Seat *seat) { return greeter_session_new (); } static Session * create_session_cb (Greeter *greeter, Seat *seat) { return g_object_ref (create_session (seat, FALSE)); } static Greeter * create_greeter_cb (Session *session, Seat *seat) { g_autoptr(Greeter) greeter = greeter_new (); greeter_set_pam_services (greeter, seat_get_string_property (seat, "pam-service"), seat_get_string_property (seat, "pam-autologin-service")); g_signal_connect (greeter, GREETER_SIGNAL_CREATE_SESSION, G_CALLBACK (create_session_cb), seat); g_signal_connect (greeter, GREETER_SIGNAL_START_SESSION, G_CALLBACK (greeter_start_session_cb), seat); /* Set hints to greeter */ greeter_set_allow_guest (greeter, seat_get_allow_guest (seat)); set_greeter_hints (seat, greeter); return g_steal_pointer (&greeter); } static Session * seat_real_create_session (Seat *seat) { g_autoptr(Session) session = session_new (); g_signal_connect (session, SESSION_SIGNAL_CREATE_GREETER, G_CALLBACK (create_greeter_cb), seat); return g_steal_pointer (&session); } 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) { SeatPrivate *priv = seat_get_instance_private (seat); check_stopped (seat); if (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 */ GList *list = g_list_copy (priv->display_servers); for (GList *link = list; link; link = link->next) g_object_ref (link->data); for (GList *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 (priv->sessions); for (GList *link = list; link; link = link->next) g_object_ref (link->data); for (GList *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) { SeatPrivate *priv = seat_get_instance_private (seat); priv->properties = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); priv->share_display_server = TRUE; } static void seat_finalize (GObject *object) { Seat *self = SEAT (object); SeatPrivate *priv = seat_get_instance_private (SEAT (self)); g_free (priv->name); g_hash_table_unref (priv->properties); for (GList *link = 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 (priv->display_servers, g_object_unref); for (GList *link = 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 (priv->sessions, g_object_unref); g_clear_object (&priv->active_session); g_clear_object (&priv->next_session); g_clear_object (&priv->session_to_activate); g_clear_object (&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->start = seat_real_start; klass->create_display_server = seat_real_create_display_server; klass->display_server_is_used = seat_real_display_server_is_used; 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; 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_get_name (SEAT (self))); } static void seat_logger_iface_init (LoggerInterface *iface) { iface->logprefix = &seat_real_logprefix; } ubuntu-lightdm-e42f6d6/src/seat.h000066400000000000000000000075531523516304700170200ustar00rootroot00000000000000/* * 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-session.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 { GObject parent_instance; } Seat; typedef struct { GObjectClass parent_class; gboolean (*start)(Seat *seat); DisplayServer *(*create_display_server) (Seat *seat, Session *session); gboolean (*display_server_is_used) (Seat *seat, DisplayServer *display_server); GreeterSession *(*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; G_DEFINE_AUTOPTR_CLEANUP_FUNC (Seat, g_object_unref) GType seat_get_type (void); void seat_register_module (const gchar *name, GType type); Seat *seat_new (const gchar *module_name); void seat_set_name (Seat *seat, 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); void seat_set_can_tty (Seat *seat, gboolean can_tty); 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_can_tty (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_ */ ubuntu-lightdm-e42f6d6/src/session-child.c000066400000000000000000000663371523516304700206300ustar00rootroot00000000000000#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #if HAVE_SETUSERCONTEXT #include #endif #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 = 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 = 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; 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; } gchar *value = (*alloc_fn) (sizeof (gchar) * (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) { /* 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 (int 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 */ gchar *username = NULL; pam_get_item (pam_handle, PAM_USER, (const void **) &username); /* Notify the daemon */ write_string (username); gboolean auth_complete = FALSE; write_data (&auth_complete, sizeof (auth_complete)); size_t length = msg_length; write_data (&length, sizeof (length)); for (int 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 */ int error; read_data (&error, sizeof (error)); if (error != PAM_SUCCESS) return error; struct pam_response *response = calloc (msg_length, sizeof (struct pam_response)); for (int 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) { g_autofree gchar *x_authority_name = read_string (); if (!x_authority_name) return NULL; guint16 x_authority_family; read_data (&x_authority_family, sizeof (x_authority_family)); gsize x_authority_address_length; read_data (&x_authority_address_length, sizeof (x_authority_address_length)); g_autofree guint8 *x_authority_address = g_malloc (x_authority_address_length); read_data (x_authority_address, x_authority_address_length); g_autofree gchar *x_authority_number = read_string (); gsize x_authority_data_length; read_data (&x_authority_data_length, sizeof (x_authority_data_length)); g_autofree guint8 *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 = audit_open (); if (auditfd < 0) { g_printerr ("Error opening audit socket: %s\n", strerror (errno)); return; } const char *op = NULL; if (type == AUDIT_USER_LOGIN) op = "login"; else if (type == AUDIT_USER_LOGOUT) op = "logout"; int 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) { #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 */ int 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 */ int version; read_data (&version, sizeof (version)); g_autofree gchar *service = read_string (); g_autofree gchar *username = read_string (); read_data (&do_authenticate, sizeof (do_authenticate)); read_data (&is_interactive, sizeof (is_interactive)); g_autofree gchar *unused_class = read_string (); /* Used to be class, now we just use the environment variable */ g_autofree gchar *tty = read_string (); g_autofree gchar *remote_host_name = read_string (); g_autofree gchar *xdisplay = read_string (); g_autoptr(XAuthority) x_authority = read_xauth (); /* Setup PAM */ struct pam_conv conversation = { pam_conv_cb, NULL }; int 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 */ int authentication_result = PAM_SUCCESS; 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; User *user = NULL; 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"); g_autofree gchar* user_env = g_strdup_printf ("USER=%s", username); pam_putenv (pam_handle, user_env); g_autofree gchar* logname_env = g_strdup_printf ("LOGNAME=%s", username); pam_putenv (pam_handle, logname_env); g_autofree gchar* home_env = g_strdup_printf ("HOME=%s",user_get_home_directory (user)); pam_putenv (pam_handle, home_env); g_autofree gchar* shell_env = g_strdup_printf ("SHELL=%s", user_get_shell (user)); pam_putenv (pam_handle, shell_env); /* Let the greeter and user session inherit the system default locale */ 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 }; for (int i = 0; locale_var_names[i] != NULL; i++) { const gchar *locale_value; if ((locale_value = g_getenv (locale_var_names[i])) != NULL) { g_autofree gchar *locale_var = g_strdup_printf ("%s=%s", locale_var_names[i], locale_value); pam_putenv (pam_handle, locale_var); } } } } g_autofree gchar *authentication_result_string = g_strdup (pam_strerror (pam_handle, authentication_result)); /* Report authentication result */ write_string (username); gboolean auth_complete = TRUE; 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) */ g_autofree gchar *log_filename = read_string (); LogMode log_mode = LOG_MODE_BACKUP_AND_TRUNCATE; if (version >= 3) read_data (&log_mode, sizeof (log_mode)); if (version >= 1) { g_free (tty); tty = read_string (); } g_autofree gchar *x_authority_filename = read_string (); if (version >= 1) { g_free (xdisplay); xdisplay = read_string (); g_clear_object (&x_authority); x_authority = read_xauth (); } gsize env_length; read_data (&env_length, sizeof (env_length)); for (int i = 0; i < env_length; i++) pam_putenv (pam_handle, read_string ()); gsize command_argc; read_data (&command_argc, sizeof (command_argc)); g_auto(GStrv) command_argv = g_malloc (sizeof (gchar *) * (command_argc + 1)); int i; 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)) { int fd = log_file_open (log_filename, log_mode); dup2 (fd, STDERR_FILENO); close (fd); g_clear_pointer (&log_filename, g_free); } } else { int fd = open ("/dev/null", O_WRONLY); dup2 (fd, STDERR_FILENO); close (fd); } /* Set group membership - these can be overridden 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; } /* try to get HOME from PAM since it might have been changed */ const gchar *home_directory = pam_getenv (pam_handle, "HOME"); if (!home_directory) { home_directory = user_get_home_directory (user); } if (version >= 4) write_string (home_directory); /* Open a connection to the system bus for ConsoleKit - we must keep it open or CK will close the session */ g_autoptr(GError) error = NULL; g_autoptr(GDBusConnection) 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 */ const gchar *login1_session_id = pam_getenv (pam_handle, "XDG_SESSION_ID"); g_autofree gchar *console_kit_cookie = NULL; if (login1_session_id) { write_string (login1_session_id); if (version >= 2) write_string (NULL); } else { GVariantBuilder ck_parameters; 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) { g_autofree gchar *value = NULL; g_autofree gchar *runtime_dir = NULL; value = g_strdup_printf ("XDG_SESSION_COOKIE=%s", console_kit_cookie); pam_putenv (pam_handle, value); runtime_dir = ck_get_xdg_runtime_dir (console_kit_cookie); if (runtime_dir) { g_autofree gchar *v = g_strdup_printf ("XDG_RUNTIME_DIR=%s", runtime_dir); pam_putenv (pam_handle, v); } } } /* Write X authority */ if (x_authority) { if (!g_path_is_absolute (x_authority_filename)) { gchar *x_authority_filename_new = g_build_filename (home_directory, x_authority_filename, NULL); g_free (x_authority_filename); x_authority_filename = x_authority_filename_new; } gboolean drop_privileges = geteuid () == 0; if (drop_privileges) privileges_drop (user_get_uid (user), user_get_gid (user)); g_autoptr(GError) error = NULL; gboolean 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); if (!result) { pam_end (pam_handle, 0); return EXIT_FAILURE; } g_autofree gchar *value = g_strdup_printf ("XAUTHORITY=%s", x_authority_filename); pam_putenv (pam_handle, value); } /* Catch terminate signal and pass it to the child */ signal (SIGTERM, signal_cb); /* Run the command as the authenticated user */ uid_t uid = user_get_uid (user); gid_t gid = user_get_gid (user); child_pid = fork (); if (child_pid == 0) { /* Make this process its own session */ if (setsid () < 0) _exit (errno); #if HAVE_SETUSERCONTEXT /* Setup user context * Reset the current environment to what is in the PAM context, * then setusercontext will add to it as necessary as there is no * option for setusercontext to add to a PAM context. */ extern char **environ; environ = pam_getenvlist (pam_handle); struct passwd* pwd = getpwnam (username); if (pwd) { if (setusercontext (NULL, pwd, pwd->pw_uid, LOGIN_SETALL) < 0) { int _errno = errno; fprintf(stderr, "setusercontext for \"%s\" (%d) failed: %s\n", username, user_get_uid (user), strerror (errno)); _exit (_errno); } endpwent(); } else { fprintf (stderr, "getpwname for \"%s\" failed: %s\n", username, strerror (errno)); _exit (ENOENT); } #else /* Change to this user */ if (getuid () == 0) { if (setgid (gid) != 0) _exit (errno); if (setuid (uid) != 0) _exit (errno); } #endif /* 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) { g_printerr ("chdir: %s\n", strerror (errno)); _exit (errno); } if (log_filename) { int fd = log_file_open (log_filename, log_mode); if (fd >= 0) { dup2 (fd, STDERR_FILENO); close (fd); } } /* Reset SIGPIPE handler so the child has default behaviour (we disabled it at LightDM start) */ signal (SIGPIPE, SIG_DFL); /* Run the command */ execve (command_argv[0], command_argv, #if HAVE_SETUSERCONTEXT environ #else pam_getenvlist (pam_handle) #endif ); _exit (EXIT_FAILURE); } /* Bail out if failed to fork */ int return_code = EXIT_SUCCESS; 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; 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)); struct timeval tv; 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 } int child_status; waitpid (child_pid, &child_status, 0); child_pid = 0; if (WIFEXITED (child_status)) return_code = WEXITSTATUS (child_status); else return_code = EXIT_FAILURE; /* Log to utmp */ if (g_strcmp0 (pam_getenv (pam_handle, "XDG_SESSION_CLASS"), "greeter") != 0) { struct utmpx ut; 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)); struct timeval tv; 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 = geteuid () == 0; if (drop_privileges) privileges_drop (user_get_uid (user), user_get_gid (user)); g_autoptr(GError) error = NULL; 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); /* Ignore this error, don't exit, continue closing the session. */ } /* 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; } ubuntu-lightdm-e42f6d6/src/session-child.h000066400000000000000000000010631523516304700206160ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/src/session-config.c000066400000000000000000000100221523516304700207660ustar00rootroot00000000000000/* * 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" typedef struct { /* Session type */ gchar *session_type; /* Desktop names */ gchar **desktop_names; /* Command to run */ gchar *command; /* TRUE if can run a greeter inside the session */ gboolean allow_greeter; } SessionConfigPrivate; G_DEFINE_TYPE_WITH_PRIVATE (SessionConfig, session_config, G_TYPE_OBJECT) SessionConfig * session_config_new_from_file (const gchar *filename, const gchar *default_session_type, GError **error) { g_autoptr(GKeyFile) desktop_file = g_key_file_new (); if (!g_key_file_load_from_file (desktop_file, filename, G_KEY_FILE_NONE, error)) return NULL; g_autofree gchar *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; } g_autoptr(SessionConfig) config = g_object_new (SESSION_CONFIG_TYPE, NULL); SessionConfigPrivate *priv = session_config_get_instance_private (config); priv->command = g_steal_pointer (&command); priv->session_type = g_key_file_get_string (desktop_file, G_KEY_FILE_DESKTOP_GROUP, "X-LightDM-Session-Type", NULL); if (!priv->session_type) priv->session_type = g_strdup (default_session_type); priv->desktop_names = g_key_file_get_string_list (desktop_file, G_KEY_FILE_DESKTOP_GROUP, "DesktopNames", NULL, NULL); if (!priv->desktop_names) { gchar *name; name = g_key_file_get_string (desktop_file, G_KEY_FILE_DESKTOP_GROUP, "X-LightDM-DesktopName", NULL); if (name) { priv->desktop_names = g_malloc (sizeof (gchar *) * 2); priv->desktop_names[0] = name; priv->desktop_names[1] = NULL; } } priv->allow_greeter = g_key_file_get_boolean (desktop_file, G_KEY_FILE_DESKTOP_GROUP, "X-LightDM-Allow-Greeter", NULL); return g_steal_pointer (&config); } const gchar * session_config_get_command (SessionConfig *config) { SessionConfigPrivate *priv = session_config_get_instance_private (config); g_return_val_if_fail (config != NULL, NULL); return priv->command; } const gchar * session_config_get_session_type (SessionConfig *config) { SessionConfigPrivate *priv = session_config_get_instance_private (config); g_return_val_if_fail (config != NULL, NULL); return priv->session_type; } gchar ** session_config_get_desktop_names (SessionConfig *config) { SessionConfigPrivate *priv = session_config_get_instance_private (config); g_return_val_if_fail (config != NULL, NULL); return priv->desktop_names; } gboolean session_config_get_allow_greeter (SessionConfig *config) { SessionConfigPrivate *priv = session_config_get_instance_private (config); g_return_val_if_fail (config != NULL, FALSE); return priv->allow_greeter; } static void session_config_init (SessionConfig *config) { } static void session_config_finalize (GObject *object) { SessionConfig *self = SESSION_CONFIG (object); SessionConfigPrivate *priv = session_config_get_instance_private (self); g_clear_pointer (&priv->session_type, g_free); g_clear_pointer (&priv->desktop_names, g_strfreev); g_clear_pointer (&priv->command, g_free); 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; } ubuntu-lightdm-e42f6d6/src/session-config.h000066400000000000000000000031051523516304700207770ustar00rootroot00000000000000/* * 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 { GObject parent_instance; } SessionConfig; typedef struct { GObjectClass parent_class; } SessionConfigClass; G_DEFINE_AUTOPTR_CLEANUP_FUNC (SessionConfig, g_object_unref) 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); gboolean session_config_get_allow_greeter (SessionConfig *config); G_END_DECLS #endif /* SESSION_CONFIG_H_ */ ubuntu-lightdm-e42f6d6/src/session.c000066400000000000000000001026371523516304700175410ustar00rootroot00000000000000/* * 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" #include "greeter-socket.h" enum { CREATE_GREETER, GOT_MESSAGES, AUTHENTICATION_COMPLETE, STOPPED, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; typedef struct { /* 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; /* Home directory of the authenticating user */ gchar *home_directory; /* 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 */ size_t 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; /* Socket to allow greeters to connect to (if allowed) */ GreeterSocket *greeter_socket; /* 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; } SessionPrivate; /* 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_ADD_PRIVATE (Session) 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) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); g_clear_object (&priv->config); priv->config = g_object_ref (config); } SessionConfig * session_get_config (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); return priv->config; } const gchar * session_get_session_type (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); return session_config_get_session_type (priv->config); } void session_set_pam_service (Session *session, const gchar *pam_service) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); g_free (priv->pam_service); priv->pam_service = g_strdup (pam_service); } void session_set_username (Session *session, const gchar *username) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); g_free (priv->username); priv->username = g_strdup (username); } void session_set_do_authenticate (Session *session, gboolean do_authenticate) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); priv->do_authenticate = do_authenticate; } void session_set_is_interactive (Session *session, gboolean is_interactive) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); priv->is_interactive = is_interactive; } void session_set_is_guest (Session *session, gboolean is_guest) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); priv->is_guest = is_guest; } gboolean session_get_is_guest (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, FALSE); return priv->is_guest; } void session_set_log_file (Session *session, const gchar *filename, LogMode log_mode) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); g_free (priv->log_filename); priv->log_filename = g_strdup (filename); priv->log_mode = log_mode; } void session_set_display_server (Session *session, DisplayServer *display_server) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); g_return_if_fail (display_server != NULL); if (priv->display_server == display_server) return; if (priv->display_server) display_server_disconnect_session (priv->display_server, session); g_clear_object (&priv->display_server); priv->display_server = g_object_ref (display_server); } DisplayServer * session_get_display_server (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); return priv->display_server; } void session_set_tty (Session *session, const gchar *tty) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); g_free (priv->tty); priv->tty = g_strdup (tty); } void session_set_xdisplay (Session *session, const gchar *xdisplay) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); g_free (priv->xdisplay); priv->xdisplay = g_strdup (xdisplay); } void session_set_x_authority (Session *session, XAuthority *authority, gboolean use_system_location) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); g_clear_object (&priv->x_authority); if (authority) priv->x_authority = g_object_ref (authority); priv->x_authority_use_system_location = use_system_location; } void session_set_remote_host_name (Session *session, const gchar *remote_host_name) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); g_free (priv->remote_host_name); priv->remote_host_name = g_strdup (remote_host_name); } static GList * find_env_entry (Session *session, const gchar *name) { SessionPrivate *priv = session_get_instance_private (session); const size_t name_len = strlen (name); for (GList *link = priv->env; link; link = link->next) { const gchar *entry = link->data; if (g_str_has_prefix (entry, name) && entry[name_len] == '=') return link; } return NULL; } void session_set_env (Session *session, const gchar *name, const gchar *value) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); g_return_if_fail (value != NULL); gchar *entry = g_strdup_printf ("%s=%s", name, value); GList *link = find_env_entry (session, name); if (link) { g_free (link->data); link->data = entry; } else priv->env = g_list_append (priv->env, entry); } const gchar * session_get_env (Session *session, const gchar *name) { GList *link = find_env_entry (session, name); if (!link) return NULL; gchar *entry = link->data; return entry + strlen (name) + 1; } void session_unset_env (Session *session, const gchar *name) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); GList *link = find_env_entry (session, name); if (!link) return; g_free (link->data); priv->env = g_list_delete_link (priv->env, link); } void session_set_argv (Session *session, gchar **argv) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); priv->argv = g_strdupv (argv); } User * session_get_user (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); if (priv->username == NULL) return NULL; if (!priv->user) priv->user = accounts_get_user_by_name (priv->username); return priv->user; } static void write_data (Session *session, const void *buf, size_t count) { SessionPrivate *priv = session_get_instance_private (session); if (write (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 = 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) { SessionPrivate *priv = session_get_instance_private (session); if (!x_authority) { write_string (session, NULL); return; } write_string (session, x_authority_get_authorization_name (priv->x_authority)); guint16 family = x_authority_get_family (priv->x_authority); write_data (session, &family, sizeof (family)); gsize length = x_authority_get_address_length (priv->x_authority); write_data (session, &length, sizeof (length)); write_data (session, x_authority_get_address (priv->x_authority), length); write_string (session, x_authority_get_number (priv->x_authority)); length = x_authority_get_authorization_data_length (priv->x_authority); write_data (session, &length, sizeof (length)); write_data (session, x_authority_get_authorization_data (priv->x_authority), length); } static ssize_t read_from_child (Session *session, void *buf, size_t count) { SessionPrivate *priv = session_get_instance_private (session); ssize_t n_read = read (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; 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; } char *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; SessionPrivate *priv = session_get_instance_private (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 */ priv->pid = 0; /* If failed during authentication then report this as an authentication failure */ if (priv->authentication_started && !priv->authentication_complete) { l_debug (session, "Failed during authentication"); priv->authentication_complete = TRUE; priv->authentication_result = PAM_CONV_ERR; g_free (priv->authentication_result_string); 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 (priv->is_guest) guest_account_cleanup (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; SessionPrivate *priv = session_get_instance_private (session); /* Remote end gone */ if (condition == G_IO_HUP) { priv->from_child_watch = 0; return FALSE; } /* Get the username currently being authenticated (may change during authentication) */ g_autofree gchar *username = read_string_from_child (session); if (g_strcmp0 (username, priv->username) != 0) { g_free (priv->username); priv->username = g_steal_pointer (&username); g_clear_object (&priv->user); } /* Check if authentication completed */ gboolean auth_complete; ssize_t 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) { priv->from_child_watch = 0; return FALSE; } if (auth_complete) { priv->authentication_complete = TRUE; read_from_child (session, &priv->authentication_result, sizeof (priv->authentication_result)); g_free (priv->authentication_result_string); priv->authentication_result_string = read_string_from_child (session); l_debug (session, "Authentication complete with return value %d: %s", priv->authentication_result, priv->authentication_result_string); /* No longer expect any more messages */ priv->from_child_watch = 0; g_signal_emit (G_OBJECT (session), signals[AUTHENTICATION_COMPLETE], 0); return FALSE; } else { priv->messages_length = 0; read_from_child (session, &priv->messages_length, sizeof (priv->messages_length)); priv->messages = calloc (priv->messages_length, sizeof (struct pam_message)); for (int i = 0; i < priv->messages_length; i++) { struct pam_message *m = &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 %zi message(s) from PAM", 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) { SessionPrivate *priv = session_get_instance_private (session); return priv->pid != 0; } static Greeter * create_greeter_cb (GreeterSocket *socket, Session *session) { Greeter *greeter = NULL; g_signal_emit (session, signals[CREATE_GREETER], 0, &greeter); return greeter; } static gboolean session_real_start (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (priv->pid == 0, FALSE); if (priv->display_server) display_server_connect_session (priv->display_server, session); /* Create pipes to talk to the child */ int to_child_pipe[2], from_child_pipe[2]; 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; } int to_child_output = to_child_pipe[0]; priv->to_child_input = to_child_pipe[1]; priv->from_child_output = from_child_pipe[0]; int from_child_input = from_child_pipe[1]; priv->from_child_channel = g_io_channel_unix_new (priv->from_child_output); priv->from_child_watch = g_io_add_watch (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 (priv->to_child_input, F_SETFD, FD_CLOEXEC); fcntl (priv->from_child_output, F_SETFD, FD_CLOEXEC); /* Create the guest account if it is one */ if (priv->is_guest && priv->username == NULL) { priv->username = guest_account_setup (); if (!priv->username) return FALSE; } /* Run the child */ g_autofree gchar *arg0 = g_strdup_printf ("%d", to_child_output); g_autofree gchar *arg1 = g_strdup_printf ("%d", from_child_input); priv->pid = fork (); if (priv->pid == 0) { /* Run us again in session child mode */ execlp ("lightdm", "lightdm", "--session-child", arg0, arg1, NULL); _exit (EXIT_FAILURE); } if (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 */ priv->authentication_started = TRUE; priv->child_watch = g_child_watch_add (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 */ int version = 4; write_data (session, &version, sizeof (version)); /* Send configuration */ write_string (session, priv->pam_service); write_string (session, priv->username); write_data (session, &priv->do_authenticate, sizeof (priv->do_authenticate)); write_data (session, &priv->is_interactive, sizeof (priv->is_interactive)); write_string (session, NULL); /* Used to be class, now we just use the environment variable */ write_string (session, priv->tty); write_string (session, priv->remote_host_name); write_string (session, priv->xdisplay); write_xauth (session, priv->x_authority); l_debug (session, "Started with service '%s', username '%s'", priv->pam_service, priv->username); return TRUE; } const gchar * session_get_username (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); return priv->username; } const gchar * session_get_home_directory (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); return priv->home_directory; } const gchar * session_get_login1_session_id (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); return priv->login1_session_id; } const gchar * session_get_console_kit_cookie (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); return priv->console_kit_cookie; } void session_respond (Session *session, struct pam_response *response) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); int error = PAM_SUCCESS; write_data (session, &error, sizeof (error)); for (size_t i = 0; i < 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 (size_t i = 0; i < priv->messages_length; i++) g_free ((char *) priv->messages[i].msg); g_free (priv->messages); priv->messages = NULL; 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)); } size_t session_get_messages_length (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, 0); return priv->messages_length; } const struct pam_message * session_get_messages (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); return priv->messages; } gboolean session_get_is_authenticated (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, FALSE); return priv->authentication_complete && priv->authentication_result == PAM_SUCCESS; } int session_get_authentication_result (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, 0); return priv->authentication_result; } const gchar * session_get_authentication_result_string (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); return priv->authentication_result_string; } void session_run (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); g_return_if_fail (priv->display_server != NULL); return SESSION_GET_CLASS (session)->run (session); } gboolean session_get_is_run (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, FALSE); return priv->command_run; } static void session_real_run (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); g_return_if_fail (!priv->command_run); g_return_if_fail (session_get_is_authenticated (session)); g_return_if_fail (priv->argv != NULL); g_return_if_fail (priv->pid != 0); display_server_connect_session (priv->display_server, session); priv->command_run = TRUE; g_autofree gchar *command = g_strjoinv (" ", priv->argv); l_debug (session, "Running command %s", command); /* Create authority location */ g_autofree gchar *x_authority_filename = NULL; if (priv->x_authority_use_system_location) { g_autofree gchar *run_dir = config_get_string (config_get_instance (), "LightDM", "run-directory"); g_autofree gchar *dir = g_build_filename (run_dir, priv->username, NULL); 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); } else x_authority_filename = g_strdup (".Xauthority"); /* Make sure shared user directory for this user exists */ if (!priv->remote_host_name) { g_autofree gchar *data_dir = shared_data_manager_ensure_user_dir (shared_data_manager_get_instance (), priv->username); if (data_dir) session_set_env (session, "XDG_GREETER_DATA_DIR", data_dir); } /* Open socket to allow in-session greeter */ if (priv->config && session_config_get_allow_greeter (priv->config)) { g_autofree gchar *run_dir = config_get_string (config_get_instance (), "LightDM", "run-directory"); g_autofree gchar *dir = g_build_filename (run_dir, priv->username, NULL); if (g_mkdir_with_parents (dir, S_IRWXU) < 0) l_warning (session, "Failed to create greeter socket 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 greeter socket dir: %s", strerror (errno)); } g_autofree gchar *path = g_build_filename (dir, "greeter-socket", NULL); priv->greeter_socket = greeter_socket_new (path); g_signal_connect (priv->greeter_socket, GREETER_SOCKET_SIGNAL_CREATE_GREETER, G_CALLBACK (create_greeter_cb), session); session_set_env (session, "LIGHTDM_GREETER_PIPE", path); g_autoptr(GError) error = NULL; if (!greeter_socket_start (priv->greeter_socket, &error)) l_warning (session, "Failed to start greeter socket: %s\n", error->message); } if (priv->log_filename) l_debug (session, "Logging to %s", priv->log_filename); write_string (session, priv->log_filename); write_data (session, &priv->log_mode, sizeof (priv->log_mode)); write_string (session, priv->tty); write_string (session, x_authority_filename); write_string (session, priv->xdisplay); write_xauth (session, priv->x_authority); gsize argc = g_list_length (priv->env); write_data (session, &argc, sizeof (argc)); for (GList *link = priv->env; link; link = link->next) write_string (session, (gchar *) link->data); argc = g_strv_length (priv->argv); write_data (session, &argc, sizeof (argc)); for (gsize i = 0; i < argc; i++) write_string (session, priv->argv[i]); /* Get the home directory of the user currently being authenticated (may change after opening PAM session) */ g_autofree gchar *home_directory = read_string_from_child (session); if (g_strcmp0 (home_directory, priv->home_directory) != 0) { g_free (priv->home_directory); priv->home_directory = g_steal_pointer (&home_directory); } priv->login1_session_id = read_string_from_child (session); priv->console_kit_cookie = read_string_from_child (session); } void session_lock (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); if (getuid () == 0) { if (priv->login1_session_id) login1_service_lock_session (login1_service_get_instance (), priv->login1_session_id); else if (priv->console_kit_cookie) ck_lock_session (priv->console_kit_cookie); } } void session_unlock (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); if (getuid () == 0) { if (priv->login1_session_id) login1_service_unlock_session (login1_service_get_instance (), priv->login1_session_id); else if (priv->console_kit_cookie) ck_unlock_session (priv->console_kit_cookie); } } void session_activate (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); if (getuid () == 0) { if (priv->login1_session_id) login1_service_activate_session (login1_service_get_instance (), priv->login1_session_id); else if (priv->console_kit_cookie) ck_activate_session (priv->console_kit_cookie); } } void session_stop (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); if (priv->stopping) return; priv->stopping = TRUE; /* Kill remaining processes in our logind session to avoid them leaking * to the user session (they share the same $DISPLAY) */ if (getuid () == 0 && priv->login1_session_id) login1_service_terminate_session (login1_service_get_instance (), priv->login1_session_id); /* If can cleanly stop then do that */ if (session_get_is_authenticated (session) && !priv->command_run) { priv->command_run = TRUE; write_string (session, NULL); // log filename LogMode log_mode = LOG_MODE_INVALID; 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 gsize n = 0; write_data (session, &n, sizeof (n)); // environment write_data (session, &n, sizeof (n)); // command return; } return SESSION_GET_CLASS (session)->stop (session); } static void session_real_stop (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_if_fail (session != NULL); if (priv->pid > 0) { l_debug (session, "Sending SIGTERM"); kill (priv->pid, SIGTERM); // FIXME: Handle timeout } else g_signal_emit (G_OBJECT (session), signals[STOPPED], 0); } gboolean session_get_is_stopping (Session *session) { SessionPrivate *priv = session_get_instance_private (session); g_return_val_if_fail (session != NULL, FALSE); return priv->stopping; } static void session_init (Session *session) { SessionPrivate *priv = session_get_instance_private (session); priv->log_filename = g_strdup (".xsession-errors"); priv->log_mode = LOG_MODE_BACKUP_AND_TRUNCATE; priv->to_child_input = -1; priv->from_child_output = -1; } static void session_finalize (GObject *object) { Session *self = SESSION (object); SessionPrivate *priv = session_get_instance_private (self); g_clear_object (&priv->config); g_clear_object (&priv->display_server); if (priv->pid) kill (priv->pid, SIGKILL); close (priv->to_child_input); close (priv->from_child_output); g_clear_pointer (&priv->from_child_channel, g_io_channel_unref); if (priv->from_child_watch) g_source_remove (priv->from_child_watch); if (priv->child_watch) g_source_remove (priv->child_watch); g_clear_pointer (&priv->username, g_free); g_clear_pointer (&priv->home_directory, g_free); g_clear_object (&priv->user); g_clear_pointer (&priv->pam_service, g_free); for (size_t i = 0; i < priv->messages_length; i++) g_free ((char *) priv->messages[i].msg); g_clear_pointer (&priv->messages, g_free); g_clear_pointer (&priv->authentication_result_string, g_free); g_clear_pointer (&priv->log_filename, g_free); g_clear_pointer (&priv->tty, g_free); g_clear_pointer (&priv->xdisplay, g_free); g_clear_object (&priv->x_authority); g_clear_pointer (&priv->remote_host_name, g_free); g_clear_pointer (&priv->login1_session_id, g_free); g_clear_pointer (&priv->console_kit_cookie, g_free); g_list_free_full (priv->env, g_free); g_clear_pointer (&priv->argv, g_strfreev); 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; signals[CREATE_GREETER] = g_signal_new (SESSION_SIGNAL_CREATE_GREETER, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (SessionClass, create_greeter), g_signal_accumulator_first_wins, NULL, NULL, GREETER_TYPE, 0); 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); SessionPrivate *priv = session_get_instance_private (session); if (priv->pid != 0) return g_snprintf (buf, buflen, "Session pid=%d: ", priv->pid); else return g_snprintf (buf, buflen, "Session: "); } static void session_logger_iface_init (LoggerInterface *iface) { iface->logprefix = &session_real_logprefix; } ubuntu-lightdm-e42f6d6/src/session.h000066400000000000000000000107331523516304700175410ustar00rootroot00000000000000/* * 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; typedef enum { SESSION_TYPE_LOCAL, SESSION_TYPE_REMOTE } SessionType; #include "session-config.h" #include "display-server.h" #include "accounts.h" #include "x-authority.h" #include "logger.h" #include "log-file.h" #include "greeter.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_CREATE_GREETER "create-greeter" #define SESSION_SIGNAL_GOT_MESSAGES "got-messages" #define SESSION_SIGNAL_AUTHENTICATION_COMPLETE "authentication-complete" #define SESSION_SIGNAL_STOPPED "stopped" struct Session { GObject parent_instance; }; typedef struct { GObjectClass parent_class; gboolean (*start)(Session *session); void (*run)(Session *session); void (*stop)(Session *session); Greeter *(*create_greeter)(Session *session); void (*got_messages)(Session *session); void (*authentication_complete)(Session *session); void (*stopped)(Session *session); } SessionClass; G_DEFINE_AUTOPTR_CLEANUP_FUNC (Session, g_object_unref) 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_home_directory (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); size_t 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); gboolean session_get_is_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_ */ ubuntu-lightdm-e42f6d6/src/shared-data-manager.c000066400000000000000000000202541523516304700216350ustar00rootroot00000000000000/* * 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 typedef struct { gchar *greeter_user; guint32 greeter_gid; GHashTable *starting_dirs; } SharedDataManagerPrivate; struct OwnerInfo { SharedDataManager *manager; guint32 uid; }; G_DEFINE_TYPE_WITH_PRIVATE (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; /* 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. */ g_autofree gchar *path = g_build_filename (USERS_DIR, user, NULL); g_autofree gchar *quoted_path = g_shell_quote (path); g_autofree gchar *cmd = g_strdup_printf ("/bin/rm -rf %s", quoted_path); g_autoptr(GError) error = NULL; g_spawn_command_line_async (cmd, &error); if (error) g_warning ("Could not delete unused user data directory %s: %s", path, error->message); } gchar * shared_data_manager_ensure_user_dir (SharedDataManager *manager, const gchar *user) { SharedDataManagerPrivate *priv = shared_data_manager_get_instance_private (manager); struct passwd *entry = getpwnam (user); if (!entry) return NULL; g_autofree gchar *path = g_build_filename (USERS_DIR, user, NULL); g_autoptr(GFile) file = g_file_new_for_path (path); g_debug ("Creating shared data directory %s", path); g_autoptr(GError) error = NULL; gboolean result = g_file_make_directory (file, NULL, &error); if (error) { if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_EXISTS)) { g_clear_error (&error); result = TRUE; } else g_warning ("Could not create user data directory %s: %s", path, error->message); } if (!result) { g_clear_pointer (&path, g_free); 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. */ g_autoptr(GFileInfo) 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, 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); if (error) g_warning ("Could not chown user data directory %s: %s", path, error->message); if (!result) return NULL; return g_steal_pointer (&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); SharedDataManagerPrivate *priv = shared_data_manager_get_instance_private (manager); g_autoptr(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_object_unref (manager); return; } for (GList *link = files; link; link = link->next) { GFileInfo *info = link->data; g_hash_table_insert (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 (GList *link = users; link; link = link->next) { CommonUser *user = link->data; g_hash_table_remove (priv->starting_dirs, common_user_get_name (user)); } g_hash_table_foreach (priv->starting_dirs, delete_unused_user, manager); g_hash_table_destroy (priv->starting_dirs); 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); g_autoptr(SharedDataManager) manager = SHARED_DATA_MANAGER (user_data); SharedDataManagerPrivate *priv = shared_data_manager_get_instance_private (manager); g_autoptr(GError) error = NULL; GFileEnumerator *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); if (!enumerator) return; 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, g_steal_pointer (&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) { /* Grab list of all current directories, so we know if any exist that we no longer need. */ g_autoptr(GFile) 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)); /* 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) { SharedDataManagerPrivate *priv = shared_data_manager_get_instance_private (manager); /* Grab current greeter-user gid */ priv->greeter_user = config_get_string (config_get_instance (), "LightDM", "greeter-user"); struct passwd *greeter_entry = getpwnam (priv->greeter_user); if (greeter_entry) priv->greeter_gid = greeter_entry->pw_gid; } static void shared_data_manager_finalize (GObject *object) { SharedDataManager *self = SHARED_DATA_MANAGER (object); SharedDataManagerPrivate *priv = shared_data_manager_get_instance_private (self); /* 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 (priv->starting_dirs) g_hash_table_destroy (priv->starting_dirs); g_clear_pointer (&priv->greeter_user, g_free); 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; } ubuntu-lightdm-e42f6d6/src/shared-data-manager.h000066400000000000000000000030531523516304700216400ustar00rootroot00000000000000/* * 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)) struct SharedDataManager { GObject parent_instance; }; typedef struct { GObjectClass parent_class; } SharedDataManagerClass; G_DEFINE_AUTOPTR_CLEANUP_FUNC (SharedDataManager, g_object_unref) 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_ */ ubuntu-lightdm-e42f6d6/src/vnc-server.c000066400000000000000000000135271523516304700201470ustar00rootroot00000000000000/* * 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 }; typedef struct { /* Port to listen on */ guint port; /* Address to listen on */ gchar *listen_address; /* Listening sockets */ GSocket *socket, *socket6; } VNCServerPrivate; G_DEFINE_TYPE_WITH_PRIVATE (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) { VNCServerPrivate *priv = vnc_server_get_instance_private (server); g_return_if_fail (server != NULL); priv->port = port; } guint vnc_server_get_port (VNCServer *server) { VNCServerPrivate *priv = vnc_server_get_instance_private (server); g_return_val_if_fail (server != NULL, 0); return priv->port; } void vnc_server_set_listen_address (VNCServer *server, const gchar *listen_address) { VNCServerPrivate *priv = vnc_server_get_instance_private (server); g_return_if_fail (server != NULL); g_free (priv->listen_address); priv->listen_address = g_strdup (listen_address); } const gchar * vnc_server_get_listen_address (VNCServer *server) { VNCServerPrivate *priv = vnc_server_get_instance_private (server); g_return_val_if_fail (server != NULL, NULL); return priv->listen_address; } static gboolean read_cb (GSocket *socket, GIOCondition condition, VNCServer *server) { g_autoptr(GError) error = NULL; g_autoptr(GSocket) client_socket = g_socket_accept (socket, NULL, &error); if (error) g_warning ("Failed to get connection from from VNC socket: %s", error->message); if (client_socket) { GInetSocketAddress *address = G_INET_SOCKET_ADDRESS (g_socket_get_remote_address (client_socket, NULL)); g_autofree gchar *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_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) { g_autoptr(GSocket) socket = g_socket_new (family, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_TCP, error); if (!socket) return NULL; g_autoptr(GSocketAddress) address = NULL; if (listen_address) { GList *addresses = g_resolver_lookup_by_name (g_resolver_get_default (), listen_address, NULL, error); if (!addresses) 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)) return NULL; return g_steal_pointer (&socket); } gboolean vnc_server_start (VNCServer *server) { VNCServerPrivate *priv = vnc_server_get_instance_private (server); g_return_val_if_fail (server != NULL, FALSE); // Bind to IPv6 first, as this implies binding to 0.0.0.0 in the // Linux kernel default configuration, which would otherwise cause // IPv6 clients to fail with "Error binding to address [::]:5900: // Address already in use" (#266). g_autoptr(GError) ipv6_error = NULL; priv->socket6 = open_tcp_socket (G_SOCKET_FAMILY_IPV6, priv->port, priv->listen_address, &ipv6_error); if (ipv6_error) g_warning ("Failed to create IPv6 VNC socket: %s", ipv6_error->message); if (priv->socket6) { GSource *source = g_socket_create_source (priv->socket6, G_IO_IN, NULL); g_source_set_callback (source, (GSourceFunc) read_cb, server, NULL); g_source_attach (source, NULL); } g_autoptr(GError) ipv4_error = NULL; priv->socket = open_tcp_socket (G_SOCKET_FAMILY_IPV4, priv->port, priv->listen_address, &ipv4_error); if (ipv4_error) g_warning ("Failed to create IPv4 VNC socket: %s", ipv4_error->message); if (priv->socket) { GSource *source = g_socket_create_source (priv->socket, G_IO_IN, NULL); g_source_set_callback (source, (GSourceFunc) read_cb, server, NULL); g_source_attach (source, NULL); } if (!priv->socket && !priv->socket6) return FALSE; return TRUE; } static void vnc_server_init (VNCServer *server) { VNCServerPrivate *priv = vnc_server_get_instance_private (server); priv->port = 5900; } static void vnc_server_finalize (GObject *object) { VNCServer *self = VNC_SERVER (object); VNCServerPrivate *priv = vnc_server_get_instance_private (self); g_clear_pointer (&priv->listen_address, g_free); g_clear_object (&priv->socket); g_clear_object (&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; 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); } ubuntu-lightdm-e42f6d6/src/vnc-server.h000066400000000000000000000024621523516304700201500ustar00rootroot00000000000000/* * 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 { GObject parent_instance; } 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_ */ ubuntu-lightdm-e42f6d6/src/vt.c000066400000000000000000000104111523516304700164730ustar00rootroot00000000000000/* * 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 __FreeBSD__ #include #endif #ifdef __linux__ #include #endif #include "vt.h" #include "configuration.h" #if defined(__FreeBSD__) #define CONSOLE "/dev/console" #else #define CONSOLE "/dev/tty0" #endif static GList *used_vts = NULL; static gint open_tty (void) { int fd = g_open (CONSOLE, O_RDONLY | O_NOCTTY, 0); if (fd < 0) g_warning ("Error opening " CONSOLE ": %s", strerror (errno)); return fd; } gboolean vt_can_multi_seat (void) { #if defined(__linux__) /* 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; #else return FALSE; #endif } gint vt_get_active (void) { #if defined(__FreeBSD__) int active, res; int tty_fd = open_tty (); if (tty_fd >= 0) { res = ioctl (tty_fd, VT_GETACTIVE, &active); close (tty_fd); if (res == 0) return active; g_warning ("Error using VT_GETACTIVE on " CONSOLE ": %s", strerror (errno)); } return -1; #elif defined(__linux__) /* Pretend always active */ if (getuid () != 0) return 1; gint tty_fd = open_tty (); gint active = -1; 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) { #if defined(__FreeBSD__) || defined(__linux__) g_debug ("Activating VT %d", number); /* Pretend always active */ if (getuid () != 0) return; gint 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 " CONSOLE ": %s", n, strerror (errno)); close (tty_fd); return; } /* 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 */ /* This call sometimes get interrupted (not sure what signal is causing it), so retry if that is the case */ while (TRUE) { if (ioctl (tty_fd, VT_WAITACTIVE, n) < 0) { if (errno == EINTR) continue; g_warning ("Error using VT_WAITACTIVE %d on " CONSOLE ": %s", n, strerror (errno)); } break; } close (tty_fd); } #endif } static gboolean vt_is_used (gint number) { for (GList *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 = config_get_integer (config_get_instance (), "LightDM", "minimum-vt"); if (number < 1) number = 1; return number; } gint vt_get_unused (void) { if (getuid () != 0) return -1; gint 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)); } ubuntu-lightdm-e42f6d6/src/vt.h000066400000000000000000000013161523516304700165040ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/src/wayland-session.c000066400000000000000000000061541523516304700211730ustar00rootroot00000000000000/* * 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" typedef struct { /* VT to run on */ gint vt; gboolean have_vt_ref; } WaylandSessionPrivate; G_DEFINE_TYPE_WITH_PRIVATE (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) { WaylandSessionPrivate *priv = wayland_session_get_instance_private (session); g_return_if_fail (session != NULL); if (priv->have_vt_ref) vt_unref (priv->vt); priv->have_vt_ref = FALSE; priv->vt = vt; if (vt > 0) { vt_ref (vt); priv->have_vt_ref = TRUE; } } static gint wayland_session_get_vt (DisplayServer *server) { WaylandSessionPrivate *priv = wayland_session_get_instance_private (WAYLAND_SESSION (server)); g_return_val_if_fail (server != NULL, 0); return priv->vt; } static void wayland_session_connect_session (DisplayServer *display_server, Session *session) { WaylandSession *wayland_session = WAYLAND_SESSION (display_server); WaylandSessionPrivate *priv = wayland_session_get_instance_private (wayland_session); session_set_env (session, "XDG_SESSION_TYPE", "wayland"); if (priv->vt >= 0) { g_autofree gchar *value = g_strdup_printf ("%d", priv->vt); session_set_env (session, "XDG_VTNR", value); g_autofree gchar *tty_text = NULL; tty_text = g_strdup_printf("/dev/tty/%d",priv->vt); session_set_tty(session,tty_text); } } 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) { WaylandSessionPrivate *priv = wayland_session_get_instance_private (session); priv->vt = -1; } static void wayland_session_finalize (GObject *object) { WaylandSession *self = WAYLAND_SESSION (object); WaylandSessionPrivate *priv = wayland_session_get_instance_private (self); if (priv->have_vt_ref) vt_unref (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; } ubuntu-lightdm-e42f6d6/src/wayland-session.h000066400000000000000000000023051523516304700211720ustar00rootroot00000000000000/* * 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 { DisplayServer parent_instance; } WaylandSession; typedef struct { DisplayServerClass parent_class; } WaylandSessionClass; G_DEFINE_AUTOPTR_CLEANUP_FUNC (WaylandSession, g_object_unref) 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_ */ ubuntu-lightdm-e42f6d6/src/x-authority.c000066400000000000000000000274601523516304700203530ustar00rootroot00000000000000/* * 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" typedef struct { /* 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; } XAuthorityPrivate; G_DEFINE_TYPE_WITH_PRIVATE (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]; for (gint 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) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_if_fail (auth != NULL); priv->family = family; } guint16 x_authority_get_family (XAuthority *auth) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_val_if_fail (auth != NULL, 0); return priv->family; } void x_authority_set_address (XAuthority *auth, const guint8 *address, gsize address_length) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_if_fail (auth != NULL); g_free (priv->address); priv->address = g_malloc (address_length); memcpy (priv->address, address, address_length); priv->address_length = address_length; } const guint8 * x_authority_get_address (XAuthority *auth) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_val_if_fail (auth != NULL, NULL); return priv->address; } gsize x_authority_get_address_length (XAuthority *auth) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_val_if_fail (auth != NULL, 0); return priv->address_length; } void x_authority_set_number (XAuthority *auth, const gchar *number) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_if_fail (auth != NULL); g_free (priv->number); priv->number = g_strdup (number); } const gchar * x_authority_get_number (XAuthority *auth) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_val_if_fail (auth != NULL, NULL); return priv->number; } void x_authority_set_authorization_name (XAuthority *auth, const gchar *name) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_if_fail (auth != NULL); g_free (priv->authorization_name); priv->authorization_name = g_strdup (name); } const gchar * x_authority_get_authorization_name (XAuthority *auth) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_val_if_fail (auth != NULL, NULL); return priv->authorization_name; } void x_authority_set_authorization_data (XAuthority *auth, const guint8 *data, gsize data_length) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_if_fail (auth != NULL); g_free (priv->authorization_data); priv->authorization_data = g_malloc (data_length); memcpy (priv->authorization_data, data, data_length); priv->authorization_data_length = data_length; } const guint8 * x_authority_get_authorization_data (XAuthority *auth) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_val_if_fail (auth != NULL, NULL); return priv->authorization_data; } guint8 * x_authority_copy_authorization_data (XAuthority *auth) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_val_if_fail (auth != NULL, NULL); guint8 *data = g_malloc (priv->authorization_data_length); memcpy (data, priv->authorization_data, priv->authorization_data_length); return data; } gsize x_authority_get_authorization_data_length (XAuthority *auth) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_val_if_fail (auth != NULL, 0); return 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) { g_free (*value); *value = NULL; if (data_length - *offset < length) return FALSE; *value = g_malloc0 (length + 1); for (int 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) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); g_return_val_if_fail (auth != NULL, FALSE); g_return_val_if_fail (filename != NULL, FALSE); /* Read out existing records */ g_autofree gchar *input = NULL; gsize input_length = 0, input_offset = 0; if (mode != XAUTH_WRITE_MODE_SET) { g_autoptr(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); } GList *records = NULL; gboolean matched = FALSE; while (input_offset != input_length) { g_autoptr(XAuthority) a = g_object_new (X_AUTHORITY_TYPE, NULL); XAuthorityPrivate *a_priv = x_authority_get_instance_private (a); guint16 address_length = 0; guint16 authorization_data_length = 0; gboolean 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) break; gboolean address_matches = FALSE; if (priv->address_length == a_priv->address_length) { guint16 i; for (i = 0; i < priv->address_length && priv->address[i] == a_priv->address[i]; i++); address_matches = i == priv->address_length; } /* If this record matches, then update or delete it */ if (!matched && priv->family == a_priv->family && address_matches && strcmp (priv->number, a_priv->number) == 0) { matched = TRUE; if (mode == XAUTH_WRITE_MODE_REMOVE) continue; else x_authority_set_authorization_data (a, priv->authorization_data, priv->authorization_data_length); } records = g_list_append (records, g_steal_pointer (&a)); } /* 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; int output_fd = g_open (filename, O_WRONLY | O_CREAT | O_TRUNC , 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; gboolean result = TRUE; for (GList *link = records; link && result; link = link->next) { XAuthority *a = link->data; XAuthorityPrivate *a_priv = x_authority_get_instance_private (a); 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_list_free_full (records, g_object_unref); 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) { XAuthorityPrivate *priv = x_authority_get_instance_private (auth); priv->number = g_strdup (""); } static void x_authority_finalize (GObject *object) { XAuthority *self = X_AUTHORITY (object); XAuthorityPrivate *priv = x_authority_get_instance_private (self); g_clear_pointer (&priv->address, g_free); g_clear_pointer (&priv->number, g_free); g_clear_pointer (&priv->authorization_name, g_free); g_clear_pointer (&priv->authorization_data, g_free); 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; } ubuntu-lightdm-e42f6d6/src/x-authority.h000066400000000000000000000052151523516304700203520ustar00rootroot00000000000000/* * 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 { GObject parent_instance; } XAuthority; typedef struct { GObjectClass parent_class; } XAuthorityClass; G_DEFINE_AUTOPTR_CLEANUP_FUNC (XAuthority, g_object_unref) #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); 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_ */ ubuntu-lightdm-e42f6d6/src/x-server-local.c000066400000000000000000000466611523516304700207250ustar00rootroot00000000000000/* * 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-local.h" #include "configuration.h" #include "process.h" #include "vt.h" typedef struct { /* X server process */ Process *x_server_process; /* Command to run the X server */ gchar *command; /* Display number to use */ guint display_number; /* 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; /* TRUE when received ready signal */ gboolean got_signal; /* VT to run on */ gint vt; gboolean have_vt_ref; /* Background to set */ gchar *background; } XServerLocalPrivate; static void x_server_local_logger_iface_init (LoggerInterface *iface); G_DEFINE_TYPE_WITH_CODE (XServerLocal, x_server_local, X_SERVER_TYPE, G_ADD_PRIVATE (XServerLocal) G_IMPLEMENT_INTERFACE (LOGGER_TYPE, x_server_local_logger_iface_init)) 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)); } static const gchar * x_server_local_get_version (void) { if (version) return version; g_autofree gchar *stderr_text = NULL; gint exit_status; if (!g_spawn_command_line_sync ("X -version", NULL, &stderr_text, &exit_status, NULL)) return NULL; if (exit_status == EXIT_SUCCESS) { g_auto(GStrv) lines = g_strsplit (stderr_text, "\n", -1); for (int i = 0; lines[i] && !version; i++) version = find_version (lines[i]); } g_auto(GStrv) tokens = g_strsplit (version, ".", 3); guint n_tokens = g_strv_length (tokens); version_major = n_tokens > 0 ? atoi (tokens[0]) : 0; version_minor = n_tokens > 1 ? atoi (tokens[1]) : 0; return version; } static 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) { /* See if we know we are managing a server with that number */ for (GList *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 */ g_autofree gchar *path = g_strdup_printf ("/tmp/.X%u-lock", display_number); gboolean 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 */ g_autofree gchar *data = NULL; if (in_use && g_file_get_contents (path, &data, NULL, NULL)) { int pid = atoi (g_strstrip (data)); errno = 0; if (pid < 0 || (kill (pid, 0) < 0 && errno == ESRCH)) in_use = FALSE; } return in_use; } static guint x_server_local_get_unused_display_number (void) { guint 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; } static void x_server_local_release_display_number (guint display_number) { for (GList *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) { return g_object_new (X_SERVER_LOCAL_TYPE, NULL); } void x_server_local_set_command (XServerLocal *server, const gchar *command) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_if_fail (server != NULL); g_free (priv->command); priv->command = g_strdup (command); } void x_server_local_set_vt (XServerLocal *server, gint vt) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_if_fail (server != NULL); if (priv->have_vt_ref) vt_unref (priv->vt); priv->have_vt_ref = FALSE; priv->vt = vt; if (vt > 0) { vt_ref (vt); priv->have_vt_ref = TRUE; } } void x_server_local_set_config (XServerLocal *server, const gchar *path) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_if_fail (server != NULL); g_free (priv->config_file); priv->config_file = g_strdup (path); } void x_server_local_set_layout (XServerLocal *server, const gchar *layout) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_if_fail (server != NULL); g_free (priv->layout); priv->layout = g_strdup (layout); } void x_server_local_set_xdg_seat (XServerLocal *server, const gchar *xdg_seat) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_if_fail (server != NULL); g_free (priv->xdg_seat); priv->xdg_seat = g_strdup (xdg_seat); } void x_server_local_set_allow_tcp (XServerLocal *server, gboolean allow_tcp) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_if_fail (server != NULL); priv->allow_tcp = allow_tcp; } void x_server_local_set_xdmcp_server (XServerLocal *server, const gchar *hostname) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_if_fail (server != NULL); g_free (priv->xdmcp_server); priv->xdmcp_server = g_strdup (hostname); } const gchar * x_server_local_get_xdmcp_server (XServerLocal *server) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_val_if_fail (server != NULL, 0); return priv->xdmcp_server; } void x_server_local_set_xdmcp_port (XServerLocal *server, guint port) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_if_fail (server != NULL); priv->xdmcp_port = port; } guint x_server_local_get_xdmcp_port (XServerLocal *server) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_val_if_fail (server != NULL, 0); return priv->xdmcp_port; } void x_server_local_set_xdmcp_key (XServerLocal *server, const gchar *key) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_if_fail (server != NULL); g_free (priv->xdmcp_key); 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) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_if_fail (server != NULL); g_free (priv->background); priv->background = g_strdup (background); } static guint x_server_local_get_display_number (XServer *server) { XServerLocalPrivate *priv = x_server_local_get_instance_private (X_SERVER_LOCAL (server)); return priv->display_number; } static gint x_server_local_get_vt (DisplayServer *server) { XServerLocalPrivate *priv = x_server_local_get_instance_private (X_SERVER_LOCAL (server)); return priv->vt; } const gchar * x_server_local_get_authority_file_path (XServerLocal *server) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_val_if_fail (server != NULL, 0); return priv->authority_file; } static gchar * get_absolute_command (const gchar *command) { g_auto(GStrv) tokens = g_strsplit (command, " ", 2); g_autofree gchar *absolute_binary = g_find_program_in_path (tokens[0]); gchar *absolute_command = NULL; if (absolute_binary) { if (tokens[1]) absolute_command = g_strjoin (" ", absolute_binary, tokens[1], NULL); else absolute_command = g_strdup (absolute_binary); } return absolute_command; } static void x_server_local_run (Process *process, gpointer user_data) { /* Make input non-blocking */ int 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 ProcessRunFunc x_server_local_get_run_function (XServerLocal *server) { return x_server_local_run; } static gboolean x_server_local_get_log_stdout (XServerLocal *server) { return TRUE; } static void got_signal_cb (Process *process, int signum, XServerLocal *server) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); if (signum == SIGUSR1 && !priv->got_signal) { priv->got_signal = TRUE; l_debug (server, "Got signal from X server :%u", priv->display_number); // FIXME: Check return value DISPLAY_SERVER_CLASS (x_server_local_parent_class)->start (DISPLAY_SERVER (server)); } } static void stopped_cb (Process *process, XServerLocal *server) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); l_debug (server, "X server stopped"); /* Release VT and display number for re-use */ if (priv->have_vt_ref) { vt_unref (priv->vt); priv->have_vt_ref = FALSE; } x_server_local_release_display_number (priv->display_number); if (x_server_get_authority (X_SERVER (server)) && priv->authority_file) { l_debug (server, "Removing X server authority %s", priv->authority_file); g_unlink (priv->authority_file); g_free (priv->authority_file); priv->authority_file = NULL; } DISPLAY_SERVER_CLASS (x_server_local_parent_class)->stop (DISPLAY_SERVER (server)); } static void write_authority_file (XServerLocal *server) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); XAuthority *authority = x_server_get_authority (X_SERVER (server)); if (!authority) return; /* Get file to write to if have authority */ if (!priv->authority_file) { g_autofree gchar *run_dir = NULL; g_autofree gchar *dir = NULL; run_dir = config_get_string (config_get_instance (), "LightDM", "run-directory"); dir = g_build_filename (run_dir, "root", NULL); if (g_mkdir_with_parents (dir, S_IRWXU) < 0) l_warning (server, "Failed to make authority directory %s: %s", dir, strerror (errno)); priv->authority_file = g_build_filename (dir, x_server_get_address (X_SERVER (server)), NULL); } l_debug (server, "Writing X server authority to %s", priv->authority_file); g_autoptr(GError) error = NULL; x_authority_write (authority, XAUTH_WRITE_MODE_REPLACE, priv->authority_file, &error); if (error) l_warning (server, "Failed to write authority: %s", error->message); } static gboolean x_server_local_start (DisplayServer *display_server) { XServerLocal *server = X_SERVER_LOCAL (display_server); XServerLocalPrivate *priv = x_server_local_get_instance_private (server); g_return_val_if_fail (priv->x_server_process == NULL, FALSE); priv->got_signal = FALSE; g_return_val_if_fail (priv->command != NULL, FALSE); ProcessRunFunc run_cb = X_SERVER_LOCAL_GET_CLASS (server)->get_run_function (server); priv->x_server_process = process_new (run_cb, server); process_set_clear_environment (priv->x_server_process, TRUE); g_signal_connect (priv->x_server_process, PROCESS_SIGNAL_GOT_SIGNAL, G_CALLBACK (got_signal_cb), server); g_signal_connect (priv->x_server_process, PROCESS_SIGNAL_STOPPED, G_CALLBACK (stopped_cb), server); /* Setup logging */ g_autofree gchar *filename = g_strdup_printf ("x-%u.log", x_server_get_display_number (X_SERVER (server))); g_autofree gchar *dir = config_get_string (config_get_instance (), "LightDM", "log-directory"); g_autofree gchar *log_file = g_build_filename (dir, filename, NULL); gboolean backup_logs = config_get_boolean (config_get_instance (), "LightDM", "backup-logs"); process_set_log_file (priv->x_server_process, log_file, X_SERVER_LOCAL_GET_CLASS (server)->get_log_stdout (server), backup_logs ? LOG_MODE_BACKUP_AND_TRUNCATE : LOG_MODE_APPEND); l_debug (display_server, "Logging to %s", log_file); g_autofree gchar *absolute_command = get_absolute_command (priv->command); g_auto(GStrv) tokens = g_strsplit (absolute_command, " ", 2); const gchar* binary = tokens[0]; const gchar *extra_options = tokens[1]; if (!absolute_command) { l_debug (display_server, "Can't launch X server %s, not found in path", priv->command); stopped_cb (priv->x_server_process, X_SERVER_LOCAL (server)); return FALSE; } g_autoptr(GString) command = g_string_new (binary); /* The display argument must be given first when the X server used * is Xvnc. */ g_string_append_printf (command, " :%u", priv->display_number); if (priv->config_file) g_string_append_printf (command, " -config %s", priv->config_file); if (priv->layout) g_string_append_printf (command, " -layout %s", priv->layout); if (priv->xdg_seat) g_string_append_printf (command, " -seat %s", priv->xdg_seat); write_authority_file (server); if (priv->authority_file) g_string_append_printf (command, " -auth %s", priv->authority_file); /* Connect to a remote server using XDMCP */ if (priv->xdmcp_server != NULL) { if (priv->xdmcp_port != 0) g_string_append_printf (command, " -port %u", priv->xdmcp_port); g_string_append_printf (command, " -query %s", priv->xdmcp_server); if (priv->xdmcp_key) g_string_append_printf (command, " -cookie %s", priv->xdmcp_key); } else if (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 (priv->vt >= 0) g_string_append_printf (command, " vt%d -novtswitch", priv->vt); if (priv->background) g_string_append_printf (command, " -background %s", priv->background); /* Allow sub-classes to add arguments */ if (X_SERVER_LOCAL_GET_CLASS (server)->add_args) X_SERVER_LOCAL_GET_CLASS (server)->add_args (server, command); /* Any extra user options provided via the VNCServer 'command' * config option are appended last, so the user can override any * of the above. */ if (extra_options) g_string_append_printf (command, " %s", extra_options); process_set_command (priv->x_server_process, command->str); l_debug (display_server, "Launching X Server"); /* If running inside another display then pass through those variables */ if (g_getenv ("DISPLAY")) { process_set_env (priv->x_server_process, "DISPLAY", g_getenv ("DISPLAY")); if (g_getenv ("XAUTHORITY")) process_set_env (priv->x_server_process, "XAUTHORITY", g_getenv ("XAUTHORITY")); else { g_autofree gchar *path = g_build_filename (g_get_home_dir (), ".Xauthority", NULL); process_set_env (priv->x_server_process, "XAUTHORITY", path); } } /* Pass through library variables */ if (g_getenv ("LD_PRELOAD")) process_set_env (priv->x_server_process, "LD_PRELOAD", g_getenv ("LD_PRELOAD")); if (g_getenv ("LD_LIBRARY_PATH")) process_set_env (priv->x_server_process, "LD_LIBRARY_PATH", g_getenv ("LD_LIBRARY_PATH")); if (g_getenv ("PATH")) process_set_env (priv->x_server_process, "PATH", g_getenv ("PATH")); /* Variable required for regression tests */ if (g_getenv ("LIGHTDM_TEST_ROOT")) process_set_env (priv->x_server_process, "LIGHTDM_TEST_ROOT", g_getenv ("LIGHTDM_TEST_ROOT")); gboolean result = process_start (priv->x_server_process, FALSE); if (result) l_debug (display_server, "Waiting for ready signal from X server :%u", priv->display_number); else stopped_cb (priv->x_server_process, X_SERVER_LOCAL (server)); return result; } static void x_server_local_stop (DisplayServer *server) { XServerLocalPrivate *priv = x_server_local_get_instance_private (X_SERVER_LOCAL (server)); process_stop (priv->x_server_process); } static void x_server_local_init (XServerLocal *server) { XServerLocalPrivate *priv = x_server_local_get_instance_private (server); priv->vt = -1; priv->command = g_strdup ("X"); priv->display_number = x_server_local_get_unused_display_number (); } static void x_server_local_finalize (GObject *object) { XServerLocal *self = X_SERVER_LOCAL (object); XServerLocalPrivate *priv = x_server_local_get_instance_private (self); if (priv->x_server_process) g_signal_handlers_disconnect_matched (priv->x_server_process, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, self); g_clear_object (&priv->x_server_process); g_clear_pointer (&priv->command, g_free); g_clear_pointer (&priv->config_file, g_free); g_clear_pointer (&priv->layout, g_free); g_clear_pointer (&priv->xdg_seat, g_free); g_clear_pointer (&priv->xdmcp_server, g_free); g_clear_pointer (&priv->xdmcp_key, g_free); g_clear_pointer (&priv->authority_file, g_free); if (priv->have_vt_ref) vt_unref (priv->vt); g_clear_pointer (&priv->background, g_free); 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); XServerClass *x_server_class = X_SERVER_CLASS (klass); DisplayServerClass *display_server_class = DISPLAY_SERVER_CLASS (klass); klass->get_run_function = x_server_local_get_run_function; klass->get_log_stdout = x_server_local_get_log_stdout; x_server_class->get_display_number = x_server_local_get_display_number; display_server_class->get_vt = x_server_local_get_vt; display_server_class->start = klass->start = x_server_local_start; display_server_class->stop = x_server_local_stop; object_class->finalize = x_server_local_finalize; } static gint x_server_local_real_logprefix (Logger *self, gchar *buf, gulong buflen) { XServerLocal *server = X_SERVER_LOCAL (self); XServerLocalPrivate *priv = x_server_local_get_instance_private (server); return g_snprintf (buf, buflen, "XServer %u: ", priv->display_number); } static void x_server_local_logger_iface_init (LoggerInterface *iface) { iface->logprefix = &x_server_local_real_logprefix; } ubuntu-lightdm-e42f6d6/src/x-server-local.h000066400000000000000000000047671523516304700207330ustar00rootroot00000000000000/* * 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" #include "process.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 X_SERVER_LOCAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), X_SERVER_LOCAL_TYPE, XServerLocalClass)) #define X_SERVER_LOCAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), X_SERVER_LOCAL_TYPE, XServerLocalClass)) #define IS_X_SERVER_LOCAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), X_SERVER_LOCAL_TYPE)) typedef struct { XServer parent_instance; } XServerLocal; typedef struct { XServerClass parent_class; ProcessRunFunc (*get_run_function)(XServerLocal *server); gboolean (*get_log_stdout)(XServerLocal *server); void (*add_args)(XServerLocal *server, GString *command); gboolean (*start)(DisplayServer *server); } XServerLocalClass; G_DEFINE_AUTOPTR_CLEANUP_FUNC (XServerLocal, g_object_unref) 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); const gchar *x_server_local_get_authority_file_path (XServerLocal *server); G_END_DECLS #endif /* X_SERVER_LOCAL_H_ */ ubuntu-lightdm-e42f6d6/src/x-server-remote.c000066400000000000000000000030311523516304700211060ustar00rootroot00000000000000/* * 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" typedef struct { /* Display number to use */ guint display_number; } XServerRemotePrivate; G_DEFINE_TYPE_WITH_PRIVATE (XServerRemote, x_server_remote, X_SERVER_TYPE) XServerRemote * x_server_remote_new (const gchar *hostname, guint number, XAuthority *authority) { XServerRemote *server = g_object_new (X_SERVER_REMOTE_TYPE, NULL); XServerRemotePrivate *priv = x_server_remote_get_instance_private (server); priv->display_number = number; x_server_set_hostname (X_SERVER (server), hostname); x_server_set_authority (X_SERVER (server), authority); return server; } static guint x_server_remote_get_display_number (XServer *server) { XServerRemotePrivate *priv = x_server_remote_get_instance_private (X_SERVER_REMOTE (server)); return priv->display_number; } static void x_server_remote_init (XServerRemote *server) { } static void x_server_remote_class_init (XServerRemoteClass *klass) { XServerClass *x_server_class = X_SERVER_CLASS (klass); x_server_class->get_display_number = x_server_remote_get_display_number; } ubuntu-lightdm-e42f6d6/src/x-server-remote.h000066400000000000000000000017571523516304700211300ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/src/x-server-xvnc.c000066400000000000000000000074541523516304700206060ustar00rootroot00000000000000/* * 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 "x-server-xvnc.h" #include "configuration.h" #include "process.h" typedef struct { /* File descriptor to use for standard input */ gint socket_fd; /* Geometry and colour depth */ gint width, height, depth; } XServerXVNCPrivate; G_DEFINE_TYPE_WITH_PRIVATE (XServerXVNC, x_server_xvnc, X_SERVER_LOCAL_TYPE) XServerXVNC * x_server_xvnc_new (void) { XServerXVNC *server = g_object_new (X_SERVER_XVNC_TYPE, NULL); x_server_local_set_command (X_SERVER_LOCAL (server), "Xvnc"); return server; } void x_server_xvnc_set_socket (XServerXVNC *server, int fd) { XServerXVNCPrivate *priv = x_server_xvnc_get_instance_private (server); g_return_if_fail (server != NULL); priv->socket_fd = fd; } int x_server_xvnc_get_socket (XServerXVNC *server) { XServerXVNCPrivate *priv = x_server_xvnc_get_instance_private (server); g_return_val_if_fail (server != NULL, 0); return priv->socket_fd; } void x_server_xvnc_set_geometry (XServerXVNC *server, gint width, gint height) { XServerXVNCPrivate *priv = x_server_xvnc_get_instance_private (server); g_return_if_fail (server != NULL); priv->width = width; priv->height = height; } void x_server_xvnc_set_depth (XServerXVNC *server, gint depth) { XServerXVNCPrivate *priv = x_server_xvnc_get_instance_private (server); g_return_if_fail (server != NULL); priv->depth = depth; } static void x_server_xvnc_run (Process *process, gpointer user_data) { XServerXVNC *server = user_data; XServerXVNCPrivate *priv = x_server_xvnc_get_instance_private (server); /* Connect input */ dup2 (priv->socket_fd, STDIN_FILENO); dup2 (priv->socket_fd, STDOUT_FILENO); close (priv->socket_fd); /* Set SIGUSR1 to ignore so the X server can indicate it when it is ready */ signal (SIGUSR1, SIG_IGN); } static ProcessRunFunc x_server_xvnc_get_run_function (XServerLocal *server) { return x_server_xvnc_run; } static gboolean x_server_xvnc_get_log_stdout (XServerLocal *server) { return FALSE; } static gboolean x_server_xvnc_get_can_share (DisplayServer *server) { return TRUE; } static void x_server_xvnc_add_args (XServerLocal *x_server, GString *command) { XServerXVNC *server = X_SERVER_XVNC (x_server); XServerXVNCPrivate *priv = x_server_xvnc_get_instance_private (server); g_string_append (command, " -inetd"); if (priv->width > 0 && priv->height > 0) g_string_append_printf (command, " -geometry %dx%d", priv->width, priv->height); if (priv->depth > 0) g_string_append_printf (command, " -depth %d", priv->depth); } static void x_server_xvnc_init (XServerXVNC *server) { XServerXVNCPrivate *priv = x_server_xvnc_get_instance_private (server); priv->width = 1024; priv->height = 768; priv->depth = 24; } static void x_server_xvnc_class_init (XServerXVNCClass *klass) { XServerLocalClass *x_server_local_class = X_SERVER_LOCAL_CLASS (klass); DisplayServerClass *display_server_class = DISPLAY_SERVER_CLASS (klass); x_server_local_class->get_run_function = x_server_xvnc_get_run_function; x_server_local_class->get_log_stdout = x_server_xvnc_get_log_stdout; x_server_local_class->add_args = x_server_xvnc_add_args; display_server_class->get_can_share = x_server_xvnc_get_can_share; } ubuntu-lightdm-e42f6d6/src/x-server-xvnc.h000066400000000000000000000026471523516304700206120ustar00rootroot00000000000000/* * 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-local.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 { XServerLocal parent_instance; } XServerXVNC; typedef struct { XServerLocalClass parent_class; void (*ready)(XServerXVNC *server); } XServerXVNCClass; G_DEFINE_AUTOPTR_CLEANUP_FUNC (XServerXVNC, g_object_unref) 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_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); G_END_DECLS #endif /* X_SERVER_XVNC_H_ */ ubuntu-lightdm-e42f6d6/src/x-server.c000066400000000000000000000212201523516304700176150ustar00rootroot00000000000000/* * 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" typedef struct { /* Host running the server */ gchar *hostname; /* Cached server address */ gchar *address; /* Authority */ XAuthority *authority; /* Cached hostname for the authority */ gchar local_hostname[1024]; /* Connection to this X server */ xcb_connection_t *connection; } XServerPrivate; G_DEFINE_TYPE_WITH_PRIVATE (XServer, x_server, DISPLAY_SERVER_TYPE) void x_server_set_hostname (XServer *server, const gchar *hostname) { XServerPrivate *priv = x_server_get_instance_private (server); g_return_if_fail (server != NULL); g_free (priv->hostname); priv->hostname = g_strdup (hostname); g_free (priv->address); priv->address = NULL; } gchar * x_server_get_hostname (XServer *server) { XServerPrivate *priv = x_server_get_instance_private (server); g_return_val_if_fail (server != NULL, NULL); return priv->hostname; } guint x_server_get_display_number (XServer *server) { g_return_val_if_fail (server != NULL, 0); return X_SERVER_GET_CLASS (server)->get_display_number (server); } const gchar * x_server_get_address (XServer *server) { XServerPrivate *priv = x_server_get_instance_private (server); g_return_val_if_fail (server != NULL, NULL); if (!priv->address) { if (priv->hostname) priv->address = g_strdup_printf("%s:%d", priv->hostname, x_server_get_display_number (server)); else priv->address = g_strdup_printf(":%d", x_server_get_display_number (server)); } return priv->address; } void x_server_set_authority (XServer *server, XAuthority *authority) { XServerPrivate *priv = x_server_get_instance_private (server); g_return_if_fail (server != NULL); g_clear_object (&priv->authority); if (authority) priv->authority = g_object_ref (authority); } void x_server_set_local_authority (XServer *server) { XServerPrivate *priv = x_server_get_instance_private (server); g_return_if_fail (server != NULL); g_clear_object (&priv->authority); char display_number[12]; g_snprintf(display_number, sizeof(display_number), "%d", x_server_get_display_number (server)); gethostname (priv->local_hostname, 1024); priv->authority = x_authority_new_cookie (XAUTH_FAMILY_LOCAL, (guint8 *) priv->local_hostname, strlen (priv->local_hostname), display_number); } XAuthority * x_server_get_authority (XServer *server) { XServerPrivate *priv = x_server_get_instance_private (server); g_return_val_if_fail (server != NULL, NULL); return priv->authority; } static const gchar * x_server_get_session_type (DisplayServer *server) { return "x"; } static gboolean x_server_get_can_share (DisplayServer *server) { XServerPrivate *priv = x_server_get_instance_private ((XServer*) server); gchar actual_local_hostname[1024]; g_return_val_if_fail (server != NULL, FALSE); if (priv->local_hostname[0] == '\0') return TRUE; /* The XAuthority depends on the hostname so we can't share the display * server if the hostname has been changed */ gethostname (actual_local_hostname, 1024); return g_strcmp0 (actual_local_hostname, priv->local_hostname) == 0; } static gboolean x_server_start (DisplayServer *display_server) { XServer *server = X_SERVER (display_server); XServerPrivate *priv = x_server_get_instance_private (server); xcb_auth_info_t *auth = NULL, a; if (priv->authority) { a.namelen = strlen (x_authority_get_authorization_name (priv->authority)); a.name = (char *) x_authority_get_authorization_name (priv->authority); a.datalen = x_authority_get_authorization_data_length (priv->authority); a.data = (char *) x_authority_get_authorization_data (priv->authority); auth = &a; } /* Open connection */ l_debug (server, "Connecting to XServer %s", x_server_get_address (server)); priv->connection = xcb_connect_to_display_with_auth_info (x_server_get_address (server), auth, NULL); if (xcb_connection_has_error (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) { session_set_env (session, "XDG_SESSION_TYPE", "x11"); display_server = session_get_display_server (session); gint vt = display_server_get_vt (display_server); if (vt > 0) { g_autofree gchar *tty_text = NULL; g_autofree gchar *vt_text = NULL; #ifdef __FreeBSD__ char vty_num32[6]; int num; const int base = 32; size_t offset = 0; num = vt - 1; if (num == 0) { vty_num32[offset++] = '0'; vty_num32[offset] = '\0'; } else { for (int remaning = num; remaning > 0; remaning /= base, offset++) { if (offset + 1 >= 6) { g_error ("tty number buffer too small"); goto error; } const int value = remaning % base; if (value >= 10) { vty_num32[offset] = 'a' + value - 10; } else { vty_num32[offset] = '0' + value; } } for (size_t i = 0; i < offset / 2; i++) { const size_t p1 = i; const size_t p2 = offset - 1 - i; const char tmp = vty_num32[p1]; vty_num32[p1] = vty_num32[p2]; vty_num32[p2] = tmp; } vty_num32[offset] = '\0'; } tty_text = g_strdup_printf ("/dev/ttyv%s", vty_num32); #else tty_text = g_strdup_printf ("/dev/tty%d", vt); #endif session_set_tty (session, tty_text); #ifdef __FreeBSD__ vt_text = g_strdup_printf ("%d", num); #else vt_text = g_strdup_printf ("%d", vt); #endif session_set_env (session, "XDG_VTNR", vt_text); } else #ifdef __FreeBSD__ error: #endif 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) { session_unset_env (session, "XDG_SESSION_TYPE"); gint 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) { } static void x_server_finalize (GObject *object) { XServer *self = X_SERVER (object); XServerPrivate *priv = x_server_get_instance_private (self); g_clear_pointer (&priv->hostname, g_free); g_clear_pointer (&priv->address, g_free); g_clear_object (&priv->authority); if (priv->connection) xcb_disconnect (priv->connection); priv->connection = NULL; 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; } ubuntu-lightdm-e42f6d6/src/x-server.h000066400000000000000000000035401523516304700176270ustar00rootroot00000000000000/* * 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 { DisplayServer parent_instance; } XServer; typedef struct { DisplayServerClass parent_class; guint (*get_display_number) (XServer *server); } XServerClass; G_DEFINE_AUTOPTR_CLEANUP_FUNC (XServer, g_object_unref) GType x_server_get_type (void); void x_server_set_hostname (XServer *server, const gchar *hostname); gchar *x_server_get_hostname (XServer *server); 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); void x_server_set_local_authority (XServer *server); XAuthority *x_server_get_authority (XServer *server); G_END_DECLS #endif /* X_SERVER_H_ */ ubuntu-lightdm-e42f6d6/src/xdmcp-protocol.c000066400000000000000000000467171523516304700210360ustar00rootroot00000000000000/* * 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) { if (reader->remaining < 1) { reader->overflow = TRUE; return 0; } guint8 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) { data->length = read_card16 (reader); data->data = g_malloc (sizeof (guint8) * data->length); for (guint16 i = 0; i < data->length; i++) data->data[i] = read_card8 (reader); } static gchar * read_string (PacketReader *reader) { guint16 length = read_card16 (reader); gchar *string = g_malloc (sizeof (gchar) * (length + 1)); guint16 i; 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 = read_card8 (reader); gchar **strings = g_malloc (sizeof (gchar *) * (n_strings + 1)); guint8 i; 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) { write_card16 (writer, value->length); for (guint16 i = 0; i < value->length; i++) write_card8 (writer, value->data[i]); } static void write_string (PacketWriter *writer, const gchar *value) { write_card16 (writer, strlen (value)); for (const gchar *c = value; *c; c++) write_card8 (writer, *c); } static void write_string_array (PacketWriter *writer, gchar **values) { write_card8 (writer, g_strv_length (values)); for (gchar **value = values; *value; value++) write_string (writer, *value); } XDMCPPacket * xdmcp_packet_alloc (XDMCPOpcode opcode) { XDMCPPacket *packet = g_malloc0 (sizeof (XDMCPPacket)); packet->opcode = opcode; return packet; } XDMCPPacket * xdmcp_packet_decode (const guint8 *data, gsize data_length) { PacketReader reader; reader.data = data; reader.remaining = data_length; reader.overflow = FALSE; guint16 version = read_card16 (&reader); guint16 opcode = read_card16 (&reader); guint16 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; } XDMCPPacket *packet = xdmcp_packet_alloc (opcode); gboolean failed = FALSE; 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 (int 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 (int 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) { if (max_length < 6) return -1; PacketWriter writer; 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 (int i = 0; i < packet->Request.n_connections; i++) write_card16 (&writer, packet->Request.connections[i].type); write_card8 (&writer, packet->Request.n_connections); for (int 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; } guint16 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) { g_autoptr(GString) s = g_string_new (""); for (guint16 i = 0; i < data->length; i++) g_string_append_printf (s, "%02X", data->data[i]); return g_steal_pointer (&s->str); } static gchar * string_list_tostring (gchar **strings) { g_autoptr(GString) s = g_string_new (""); for (gchar **i = strings; *i; i++) { if (i != strings) g_string_append (s, " "); g_string_append_printf (s, "'%s'", *i); } return g_steal_pointer (&s->str); } gchar * xdmcp_packet_tostring (XDMCPPacket *packet) { switch (packet->opcode) { case XDMCP_BroadcastQuery: { g_autofree gchar *names = string_list_tostring (packet->Query.authentication_names); return g_strdup_printf ("BroadcastQuery(authentication_names=[%s])", names); } case XDMCP_Query: { g_autofree gchar *names = string_list_tostring (packet->Query.authentication_names); return g_strdup_printf ("Query(authentication_names=[%s])", names); } case XDMCP_IndirectQuery: { g_autofree gchar *names = string_list_tostring (packet->Query.authentication_names); return g_strdup_printf ("IndirectQuery(authentication_names=[%s])", names); } case XDMCP_ForwardQuery: { g_autofree gchar *address_text = data_tostring (&packet->ForwardQuery.client_address); g_autofree gchar *port_text = data_tostring (&packet->ForwardQuery.client_port); g_autofree gchar *names_text = string_list_tostring (packet->ForwardQuery.authentication_names); return g_strdup_printf ("ForwardQuery(client_address=%s client_port=%s authentication_names=[%s])", address_text, port_text, names_text); } 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: { g_autofree gchar *names_text = string_list_tostring (packet->Request.authorization_names); g_autofree gchar *data_text = data_tostring (&packet->Request.authentication_data); g_autoptr(GString) connections_text = g_string_new (""); for (gint i = 0; i < packet->Request.n_connections; i++) { XDMCPConnection *connection = &packet->Request.connections[i]; if (i != 0) g_string_append (connections_text, " "); GSocketFamily family = G_SOCKET_FAMILY_INVALID; 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) { g_autoptr(GInetAddress) address = g_inet_address_new_from_bytes (connection->address.data, family); g_autofree gchar *text = g_inet_address_to_string (address); g_string_append (connections_text, text); } else { g_autofree gchar *text = data_tostring (&connection->address); g_string_append_printf (connections_text, "(%d, %s)", connection->type, text); } } return 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, connections_text->str, packet->Request.authentication_name, data_text, names_text, packet->Request.manufacturer_display_id); } case XDMCP_Accept: { g_autofree gchar *authentication_text = data_tostring (&packet->Accept.authentication_data); g_autofree gchar *authorization_text = data_tostring (&packet->Accept.authorization_data); return g_strdup_printf ("Accept(session_id=%u authentication_name='%s' authentication_data=%s authorization_name='%s' authorization_data=%s)", packet->Accept.session_id, packet->Accept.authentication_name, authentication_text, packet->Accept.authorization_name, authorization_text); } case XDMCP_Decline: { g_autofree gchar *t = data_tostring (&packet->Decline.authentication_data); return g_strdup_printf ("Decline(status='%s' authentication_name='%s' authentication_data=%s)", packet->Decline.status, packet->Decline.authentication_name, t); } case XDMCP_Manage: return g_strdup_printf ("Manage(session_id=%u 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=%u)", packet->Refuse.session_id); case XDMCP_Failed: return g_strdup_printf ("Failed(session_id=%u status='%s')", packet->Failed.session_id, packet->Failed.status); case XDMCP_KeepAlive: return g_strdup_printf ("KeepAlive(display_number=%d session_id=%u)", packet->KeepAlive.display_number, packet->KeepAlive.session_id); case XDMCP_Alive: return g_strdup_printf ("Alive(session_running=%s session_id=%u)", 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) { 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 (gint 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); } ubuntu-lightdm-e42f6d6/src/xdmcp-protocol.h000066400000000000000000000063631523516304700210340ustar00rootroot00000000000000/* * 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_ */ ubuntu-lightdm-e42f6d6/src/xdmcp-server.c000066400000000000000000000707721523516304700205010ustar00rootroot00000000000000/* * 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 "x-authority.h" enum { NEW_SESSION, LAST_SIGNAL }; static guint signals[LAST_SIGNAL] = { 0 }; typedef struct { /* 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; /* Known XDMCP sessions */ GHashTable *sessions; } XDMCPServerPrivate; G_DEFINE_TYPE_WITH_PRIVATE (XDMCPServer, xdmcp_server, G_TYPE_OBJECT) /* Maximum number of milliseconds client will resend manage requests before giving up */ #define MANAGE_TIMEOUT 126000 /* Address sort support structure */ typedef struct { gsize index; GInetAddress *address; } AddrSortItem; XDMCPServer * xdmcp_server_new (void) { return g_object_new (XDMCP_SERVER_TYPE, NULL); } void xdmcp_server_set_port (XDMCPServer *server, guint port) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); g_return_if_fail (server != NULL); priv->port = port; } guint xdmcp_server_get_port (XDMCPServer *server) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); g_return_val_if_fail (server != NULL, 0); return priv->port; } void xdmcp_server_set_listen_address (XDMCPServer *server, const gchar *listen_address) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); g_return_if_fail (server != NULL); g_free (priv->listen_address); priv->listen_address = g_strdup (listen_address); } const gchar * xdmcp_server_get_listen_address (XDMCPServer *server) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); g_return_val_if_fail (server != NULL, NULL); return priv->listen_address; } void xdmcp_server_set_hostname (XDMCPServer *server, const gchar *hostname) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); g_return_if_fail (server != NULL); g_free (priv->hostname); priv->hostname = g_strdup (hostname); } const gchar * xdmcp_server_get_hostname (XDMCPServer *server) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); g_return_val_if_fail (server != NULL, NULL); return priv->hostname; } void xdmcp_server_set_status (XDMCPServer *server, const gchar *status) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); g_return_if_fail (server != NULL); g_free (priv->status); priv->status = g_strdup (status); } const gchar * xdmcp_server_get_status (XDMCPServer *server) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); g_return_val_if_fail (server != NULL, NULL); return priv->status; } void xdmcp_server_set_key (XDMCPServer *server, const gchar *key) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); g_return_if_fail (server != NULL); g_free (priv->key); priv->key = g_strdup (key); } typedef struct { XDMCPServer *server; XDMCPSession *session; guint timeout_source; } SessionData; static void session_data_free (SessionData *data) { g_object_unref (data->session); if (data->timeout_source != 0) g_source_remove (data->timeout_source); g_free (data); } G_DEFINE_AUTOPTR_CLEANUP_FUNC (SessionData, session_data_free) static gboolean session_timeout_cb (gpointer user_data) { g_autoptr(SessionData) data = user_data; XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (data->server); g_debug ("Timing out unmanaged session %d", xdmcp_session_get_id (data->session)); g_hash_table_remove (priv->sessions, GINT_TO_POINTER ((gint) xdmcp_session_get_id (data->session))); return G_SOURCE_REMOVE; } static XDMCPSession * add_session (XDMCPServer *server, GInetAddress *address, guint16 display_number, XAuthority *authority) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); guint16 id; do { id = g_random_int () & 0xFFFFFFFF; } while (g_hash_table_lookup (priv->sessions, GINT_TO_POINTER ((gint) id))); SessionData *data = g_malloc0 (sizeof (SessionData)); data->server = server; data->session = xdmcp_session_new (id, address, display_number, authority); data->timeout_source = g_timeout_add (MANAGE_TIMEOUT, session_timeout_cb, data); g_hash_table_insert (priv->sessions, GINT_TO_POINTER ((gint) id), data); return data->session; } static SessionData * get_session_data (XDMCPServer *server, guint16 id) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); return g_hash_table_lookup (priv->sessions, GINT_TO_POINTER ((gint) id)); } static gchar * socket_address_to_string (GSocketAddress *address) { g_autofree gchar *inet_text = g_inet_address_to_string (g_inet_socket_address_get_address (G_INET_SOCKET_ADDRESS (address))); return g_strdup_printf ("%s:%d", inet_text, g_inet_socket_address_get_port (G_INET_SOCKET_ADDRESS (address))); } static void send_packet (GSocket *socket, GSocketAddress *address, XDMCPPacket *packet) { g_autofree gchar *address_string = socket_address_to_string (address); g_debug ("Send %s to %s", xdmcp_packet_tostring (packet), address_string); guint8 data[1024]; gssize n_written = xdmcp_packet_encode (packet, data, 1024); if (n_written < 0) g_critical ("Failed to encode XDMCP packet"); else { g_autoptr(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); } } static const gchar * get_authentication_name (XDMCPServer *server) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); if (priv->key) return "XDM-AUTHENTICATION-1"; else return ""; } static void handle_query (XDMCPServer *server, GSocket *socket, GSocketAddress *address, gchar **authentication_names) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); /* If no authentication requested and we are configured for none then allow */ const gchar *authentication_name = NULL; if (authentication_names[0] == NULL && priv->key == NULL) authentication_name = ""; for (gchar **i = authentication_names; *i; i++) { if (strcmp (*i, get_authentication_name (server)) == 0 && priv->key != NULL) { authentication_name = *i; break; } } XDMCPPacket *response; if (authentication_name) { response = xdmcp_packet_alloc (XDMCP_Willing); response->Willing.authentication_name = g_strdup (authentication_name); response->Willing.hostname = g_strdup (priv->hostname); response->Willing.status = g_strdup (priv->status); } else { response = xdmcp_packet_alloc (XDMCP_Unwilling); response->Unwilling.hostname = g_strdup (priv->hostname); if (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 = 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; } guint16 port = 0; for (int i = 0; i < packet->ForwardQuery.client_port.length; i++) port = port << 8 | packet->ForwardQuery.client_port.data[i]; g_autoptr(GInetAddress) client_inet_address = g_inet_address_new_from_bytes (packet->ForwardQuery.client_address.data, family); g_autoptr(GSocketAddress) client_address = g_inet_socket_address_new (client_inet_address, port); handle_query (server, socket, client_address, packet->ForwardQuery.authentication_names); } 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) { memset (data, 0, 8); if (strncmp (key, "0x", 2) == 0 || strncmp (key, "0X", 2) == 0) { for (gint 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 (gint 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; } } /* Sort function to order XDMCP addresses by which is best to connect to */ static gint compare_addresses (gconstpointer a, gconstpointer b, gpointer user_data) { const AddrSortItem *item_a = a; const AddrSortItem *item_b = b; GInetAddress *source_address = user_data; /* Prefer non link-local addresses */ gboolean is_link_local = g_inet_address_get_is_link_local (item_a->address); if (is_link_local != g_inet_address_get_is_link_local (item_b->address)) return is_link_local ? 1 : -1; /* Prefer the source address family */ GSocketFamily family_a = g_inet_address_get_family (item_a->address); GSocketFamily family_b = g_inet_address_get_family (item_b->address); if (family_a != family_b) { GSocketFamily family = g_inet_address_get_family (source_address); if (family_a == family) return -1; if (family_b == family) return 1; return family_a < family_b ? -1 : 1; } /* Check equality */ if (g_inet_address_equal (item_a->address, item_b->address)) return 0; /* Prefer the source address */ if (g_inet_address_equal (source_address, item_a->address)) return -1; if (g_inet_address_equal (source_address, item_b->address)) return 1; /* Addresses are not equal, but preferences are: order is undefined */ return 0; } static XDMCPConnection * choose_connection (XDMCPPacket *packet, GInetAddress *source_address) { gsize addresses_length = packet->Request.n_connections; if (addresses_length == 0) return NULL; AddrSortItem addr; GArray *addresses = g_array_sized_new (FALSE, FALSE, sizeof addr, addresses_length); if (!addresses) return NULL; for (gsize i = 0; i < addresses_length; i++) { addr.address = connection_to_address (&packet->Request.connections[i]); if (addr.address) { addr.index = i; g_array_append_val (addresses, addr); } } /* Sort the addresses according to our preferences */ g_array_sort_with_data (addresses, compare_addresses, source_address); /* Use the best address */ gssize index = -1; if (addresses->len) index = g_array_index (addresses, AddrSortItem, 0).index; /* Free the local sort array and items */ for (gsize i = 0; i < addresses->len; i++) g_object_unref (g_array_index (addresses, AddrSortItem, i).address); g_array_unref (addresses); return index >= 0 ? &packet->Request.connections[index] : NULL; } static gboolean has_string (gchar **list, const gchar *text) { for (gchar **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) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); /* Check authentication */ g_autofree gchar *authentication_name = NULL; g_autofree guint8 *authentication_data = NULL; gsize authentication_data_length = 0; g_autofree gchar *decline_status = NULL; XdmAuthKeyRec rho; if (strcmp (packet->Request.authentication_name, "") == 0) { if (!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 && 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 (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 (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 */ XDMCPConnection *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) { XDMCPPacket *response = xdmcp_packet_alloc (XDMCP_Decline); response->Decline.status = g_steal_pointer (&decline_status); response->Decline.authentication_name = g_steal_pointer (&authentication_name); response->Decline.authentication_data.data = g_steal_pointer (&authentication_data); response->Decline.authentication_data.length = authentication_data_length; send_packet (socket, address, response); xdmcp_packet_free (response); return; } /* Generate authorization data */ g_autofree gchar *authorization_name = NULL; g_autofree guint8 *authorization_data = NULL; gsize authorization_data_length = 0; g_autofree guint8 *session_authorization_data = NULL; gsize session_authorization_data_length = 0; if (priv->key) { /* Setup key */ guint8 key[8]; decode_key (priv->key, key); /* Generate a private session key */ // FIXME: Pick a good DES key? guint8 session_key[8]; session_key[0] = 0; for (gint 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 { /* Data is the cookie */ g_autoptr(XAuthority) 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); } /* 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 */ g_autoptr(GInetAddress) session_address = connection_to_address (connection); g_autofree gchar *display_number = g_strdup_printf ("%d", packet->Request.display_number); g_autoptr(XAuthority) authority = NULL; if (g_inet_address_get_is_loopback (session_address)) { gchar hostname[1024]; gethostname (hostname, 1024); authority = x_authority_new (XAUTH_FAMILY_LOCAL, (guint8 *) hostname, strlen (hostname), display_number, authorization_name, session_authorization_data, session_authorization_data_length); } else authority = x_authority_new (connection->type, connection->address.data, connection->address.length, display_number, authorization_name, session_authorization_data, session_authorization_data_length); XDMCPSession *session = add_session (server, session_address, packet->Request.display_number, authority); XDMCPPacket *response = xdmcp_packet_alloc (XDMCP_Accept); response->Accept.session_id = xdmcp_session_get_id (session); response->Accept.authentication_name = g_steal_pointer (&authentication_name); response->Accept.authentication_data.data = g_steal_pointer (&authentication_data); response->Accept.authentication_data.length = authentication_data_length; response->Accept.authorization_name = g_steal_pointer (&authorization_name); response->Accept.authorization_data.data = g_steal_pointer (&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) { SessionData *data = get_session_data (server, packet->Manage.session_id); if (!data->session) { XDMCPPacket *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 (data->timeout_source == 0) { if (xdmcp_session_get_display_number (data->session) != packet->Manage.display_number || strcmp (xdmcp_session_get_display_class (data->session), 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 != xdmcp_session_get_display_number (data->session)) { XDMCPPacket *response; g_debug ("Received Manage for display number %d, but Request was %d", packet->Manage.display_number, xdmcp_session_get_display_number (data->session)); response = xdmcp_packet_alloc (XDMCP_Refuse); response->Refuse.session_id = packet->Manage.session_id; send_packet (socket, address, response); xdmcp_packet_free (response); } xdmcp_session_set_display_class (data->session, packet->Manage.display_class); gboolean result = FALSE; g_signal_emit (server, signals[NEW_SESSION], 0, data->session, &result); if (result) { /* Cancel the inactive timer */ if (data->timeout_source != 0) g_source_remove (data->timeout_source); data->timeout_source = 0; } 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) { SessionData *data = get_session_data (server, packet->KeepAlive.session_id); gboolean alive = FALSE; if (data) alive = TRUE; // FIXME: xdmcp_session_get_alive (session); XDMCPPacket *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]; g_autoptr(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); if (n_read > 0) { XDMCPPacket *packet; packet = xdmcp_packet_decode ((guint8 *)data, n_read); if (packet) { g_autofree gchar *packet_string = NULL; g_autofree gchar *address_string = NULL; packet_string = xdmcp_packet_tostring (packet); address_string = socket_address_to_string (address); g_debug ("Got %s from %s", packet_string, 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) { g_autoptr(GSocket) socket = NULL; g_autoptr(GSocketAddress) address = NULL; 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) 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) return NULL; return g_steal_pointer (&socket); } gboolean xdmcp_server_start (XDMCPServer *server) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); g_return_val_if_fail (server != NULL, FALSE); g_autoptr(GError) ipv4_error = NULL; priv->socket = open_udp_socket (G_SOCKET_FAMILY_IPV4, priv->port, priv->listen_address, &ipv4_error); if (ipv4_error) g_warning ("Failed to create IPv4 XDMCP socket: %s", ipv4_error->message); if (priv->socket) { GSource *source = g_socket_create_source (priv->socket, G_IO_IN, NULL); g_source_set_callback (source, (GSourceFunc) read_cb, server, NULL); g_source_attach (source, NULL); } g_autoptr(GError) ipv6_error = NULL; priv->socket6 = open_udp_socket (G_SOCKET_FAMILY_IPV6, priv->port, priv->listen_address, &ipv6_error); if (ipv6_error) g_warning ("Failed to create IPv6 XDMCP socket: %s", ipv6_error->message); if (priv->socket6) { GSource *source = g_socket_create_source (priv->socket6, G_IO_IN, NULL); g_source_set_callback (source, (GSourceFunc) read_cb, server, NULL); g_source_attach (source, NULL); } if (!priv->socket && !priv->socket6) return FALSE; return TRUE; } static void xdmcp_server_init (XDMCPServer *server) { XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (server); priv->port = XDM_UDP_PORT; priv->hostname = g_strdup (""); priv->status = g_strdup (""); priv->sessions = g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, (GDestroyNotify) session_data_free); } static void xdmcp_server_finalize (GObject *object) { XDMCPServer *self = XDMCP_SERVER (object); XDMCPServerPrivate *priv = xdmcp_server_get_instance_private (self); g_clear_object (&priv->socket); g_clear_object (&priv->socket6); g_clear_pointer (&priv->listen_address, g_free); g_clear_pointer (&priv->hostname, g_free); g_clear_pointer (&priv->status, g_free); g_clear_pointer (&priv->key, g_free); g_clear_pointer (&priv->sessions, g_hash_table_unref); 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; 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); } ubuntu-lightdm-e42f6d6/src/xdmcp-server.h000066400000000000000000000033251523516304700204740ustar00rootroot00000000000000/* * 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 { GObject parent_instance; } 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_ */ ubuntu-lightdm-e42f6d6/src/xdmcp-session.c000066400000000000000000000064231523516304700206460ustar00rootroot00000000000000/* * 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 "x-authority.h" typedef struct { guint16 id; GInetAddress *address; guint inactive_timeout; XAuthority *authority; guint16 display_number; gchar *display_class; } XDMCPSessionPrivate; G_DEFINE_TYPE_WITH_PRIVATE (XDMCPSession, xdmcp_session, G_TYPE_OBJECT) XDMCPSession * xdmcp_session_new (guint16 id, GInetAddress *address, guint16 display_number, XAuthority *authority) { XDMCPSession *self = g_object_new (XDMCP_SESSION_TYPE, NULL); XDMCPSessionPrivate *priv = xdmcp_session_get_instance_private (self); priv->id = id; priv->address = g_object_ref (address); priv->display_number = display_number; priv->authority = g_object_ref (authority); return self; } guint16 xdmcp_session_get_id (XDMCPSession *session) { XDMCPSessionPrivate *priv = xdmcp_session_get_instance_private (session); g_return_val_if_fail (session != NULL, 0); return priv->id; } GInetAddress * xdmcp_session_get_address (XDMCPSession *session) { XDMCPSessionPrivate *priv = xdmcp_session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); return priv->address; } guint16 xdmcp_session_get_display_number (XDMCPSession *session) { XDMCPSessionPrivate *priv = xdmcp_session_get_instance_private (session); g_return_val_if_fail (session != NULL, 0); return priv->display_number; } XAuthority * xdmcp_session_get_authority (XDMCPSession *session) { XDMCPSessionPrivate *priv = xdmcp_session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); return priv->authority; } void xdmcp_session_set_display_class (XDMCPSession *session, const gchar *display_class) { XDMCPSessionPrivate *priv = xdmcp_session_get_instance_private (session); g_return_if_fail (session != NULL); g_free (priv->display_class); priv->display_class = g_strdup (display_class); } const gchar * xdmcp_session_get_display_class (XDMCPSession *session) { XDMCPSessionPrivate *priv = xdmcp_session_get_instance_private (session); g_return_val_if_fail (session != NULL, NULL); return priv->display_class; } static void xdmcp_session_init (XDMCPSession *session) { XDMCPSessionPrivate *priv = xdmcp_session_get_instance_private (session); priv->display_class = g_strdup (""); } static void xdmcp_session_finalize (GObject *object) { XDMCPSession *self = XDMCP_SESSION (object); XDMCPSessionPrivate *priv = xdmcp_session_get_instance_private (self); g_clear_object (&priv->address); g_clear_object (&priv->authority); g_clear_pointer (&priv->display_class, g_free); 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; } ubuntu-lightdm-e42f6d6/src/xdmcp-session.h000066400000000000000000000027021523516304700206470ustar00rootroot00000000000000/* * 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 { GObject parent_instance; } XDMCPSession; typedef struct { GObjectClass parent_class; } XDMCPSessionClass; GType xdmcp_session_get_type (void); XDMCPSession *xdmcp_session_new (guint16 id, GInetAddress *address, guint16 display_number, XAuthority *authority); guint16 xdmcp_session_get_id (XDMCPSession *session); GInetAddress *xdmcp_session_get_address (XDMCPSession *session); guint16 xdmcp_session_get_display_number (XDMCPSession *session); XAuthority *xdmcp_session_get_authority (XDMCPSession *session); void xdmcp_session_set_display_class (XDMCPSession *session, const gchar *display_class); const gchar *xdmcp_session_get_display_class (XDMCPSession *session); G_END_DECLS #endif /* XDMCP_SESSION_H_ */ ubuntu-lightdm-e42f6d6/tests/000077500000000000000000000000001523516304700162545ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/tests/Makefile.am000066400000000000000000000530611523516304700203150ustar00rootroot00000000000000SUBDIRS = 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-unknown-config \ test-deprecated-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-xlocal-legacy \ 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-session-timeout-gobject \ 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-sessions-gobject \ 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-login-greeter-return-failure \ test-multiple-authenticate \ 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-no-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-session-greeter \ test-session-greeter-autologin \ test-session-greeter-reconnect \ test-session-greeter-unlock \ test-session-greeter-unlock-twice \ test-session-greeter-switch \ test-session-greeter-multiple-login \ test-session-greeter-default-session \ test-session-greeter-allow-guest \ test-session-greeter-hide-users \ test-session-greeter-show-manual-login \ test-session-greeter-show-remote-login \ test-vnc-login \ test-vnc-command \ test-vnc-dimensions \ test-vnc-open-file-descriptors \ test-vnc-guest \ test-xremote-autologin \ test-xremote-login \ test-xremote-login-logout \ test-xdmcp-client \ test-xdmcp-client-xorg-1.16 \ test-xdmcp-server-autologin \ test-xdmcp-server-login \ test-xdmcp-server-login-logout \ test-xdmcp-server-double-login \ test-xdmcp-server-guest \ test-xdmcp-server-keep-alive \ test-xdmcp-server-hostname \ 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-login1-terminate \ test-no-login1 \ test-no-console-kit-or-login1 \ test-power-gobject \ test-power-no-console-kit \ test-power-no-login1 \ test-power-no-login1-or-console-kit \ test-power-no-services \ test-open-file-descriptors \ test-xdmcp-server-open-file-descriptors \ test-add-local-x-seat \ test-multi-seat \ test-multi-seat-login \ test-multi-seat-autologin-seat0 \ test-multi-seat-autologin-seat1 \ test-multi-seat-seat0-non-graphical \ test-multi-seat-seat0-non-graphical-disabled \ test-multi-seat-no-multi-session \ 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-multi-seat-wayland \ test-mir-autologin \ test-mir-greeter \ test-mir-session \ test-unity \ test-wayland-autologin \ test-wayland-greeter \ test-wayland-session \ test-invalid-seat \ test-seatdefaults-still-supported \ test-change-home-dir-on-session # test-switch-to-greeter-return-session-repeat # test-session-exit-error # test-greeter-no-exit # test-change-password-gobject # test-change-password-qt # test-autologin-create-directory TESTS += \ test-autologin-timeout-python \ test-autologin-guest-timeout-python \ test-autologin-session-timeout-python \ test-cancel-authentication-python \ test-sessions-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-power-python if COMPILE_LIBLIGHTDM_QT5 TESTS += \ test-autologin-timeout-qt5 \ test-autologin-guest-timeout-qt5 \ test-autologin-session-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-sessions-qt5 \ test-users-qt5 \ test-power-qt5 endif if COMPILE_LIBLIGHTDM_QT6 TESTS += \ test-autologin-timeout-qt6 \ test-autologin-guest-timeout-qt6 \ test-autologin-session-timeout-qt6 \ test-cancel-authentication-qt6 \ test-login-qt6 \ test-login-manual-qt6 \ test-login-manual-previous-session-qt6 \ test-login-no-password-qt6 \ test-login-long-username-qt6 \ test-login-long-password-qt6 \ test-login-two-factor-qt6 \ test-login-new-authtok-qt6 \ test-login-info-prompt-qt6 \ test-login-multi-info-prompt-qt6 \ test-login-previous-session-qt6 \ test-login-wrong-password-qt6 \ test-login-invalid-user-qt6 \ test-login-invalid-session-qt6 \ test-login-logout-qt6 \ test-login-pick-session-qt6 \ test-login-remember-session-qt6 \ test-login-manual-remember-session-qt6 \ test-login-guest-qt6 \ test-login-guest-pick-session-qt6 \ test-login-guest-disabled-qt6 \ test-login-guest-no-setup-script-qt6 \ test-login-guest-fail-setup-script-qt6 \ test-login-guest-logout-qt6 \ test-login-remote-session-qt6 \ test-sessions-qt6 \ test-users-qt6 \ test-power-qt6 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-qt5-greeter.desktop \ data/greeters/test-qt6-greeter.desktop \ data/greeters/test-wayland-greeter.desktop \ data/keys.conf \ data/sessions/alternative.desktop \ data/sessions/default.desktop \ data/sessions/greeter.desktop \ data/sessions/mir.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-session-timeout.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/change-home-dir-on-session.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/deprecated-config.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/invalid-seat.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/login1-terminate.conf \ scripts/login.conf \ scripts/login-crash-authenticate.conf \ scripts/login-greeter-return-failure.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-greeter.conf \ scripts/mir-session.conf \ scripts/multiple-authenticate.conf \ scripts/multi-seat.conf \ scripts/multi-seat-autologin-seat0.conf \ scripts/multi-seat-autologin-seat1.conf \ scripts/multi-seat-change-graphical.conf \ scripts/multi-seat-change-graphical-disabled.conf \ scripts/multi-seat-login.conf \ scripts/multi-seat-no-multi-session \ 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/multi-seat-wayland.conf \ scripts/no-accounts-service.conf \ scripts/no-config.conf \ scripts/no-console-kit.conf \ scripts/no-console-kit-or-login1.conf \ scripts/no-dbus.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/power-no-login1-or-console-kit.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/seatdefaults-still-supported.conf \ scripts/sessions.conf \ scripts/session-greeter.conf \ scripts/session-greeter-allow-guest.conf \ scripts/session-greeter-autologin.conf \ scripts/session-greeter-default-session.conf \ scripts/session-greeter-hide-users.conf \ scripts/session-greeter-multiple-login.conf \ scripts/session-greeter-reconnect.conf \ scripts/session-greeter-show-manual-login.conf \ scripts/session-greeter-show-remote-login.conf \ scripts/session-greeter-switch.conf \ scripts/session-greeter-unlock.conf \ scripts/session-greeter-unlock-twice.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-greeter-return-session-repeat.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.conf \ scripts/unknown-config.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-hostname.conf \ scripts/xdmcp-server-invalid-authentication.conf \ scripts/xdmcp-server-keep-alive.conf \ scripts/xdmcp-server-login.conf \ scripts/xdmcp-server-login-logout.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/xlocal-legacy.conf \ scripts/xremote-autologin.conf \ scripts/xremote-login.conf \ scripts/xremote-login-logout.conf \ scripts/xserver-config.conf \ scripts/xserver-fail-start.conf \ scripts/xserver-no-share.conf ubuntu-lightdm-e42f6d6/tests/data/000077500000000000000000000000001523516304700171655ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/tests/data/greeters/000077500000000000000000000000001523516304700210055ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/tests/data/greeters/test-gobject-greeter.desktop000066400000000000000000000001511523516304700264220ustar00rootroot00000000000000[Desktop Entry] Name=Test GObject Greeter Comment=LightDM test GObject greeter Exec=test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/data/greeters/test-mir-greeter.desktop000066400000000000000000000001741523516304700256010ustar00rootroot00000000000000[Desktop Entry] Name=Test Mir Greeter Comment=LightDM test Mir greeter Exec=test-gobject-greeter X-LightDM-Session-Type=mir ubuntu-lightdm-e42f6d6/tests/data/greeters/test-python-greeter.desktop000066400000000000000000000001461523516304700263320ustar00rootroot00000000000000[Desktop Entry] Name=Test Python Greeter Comment=LightDM test Python greeter Exec=test-python-greeter ubuntu-lightdm-e42f6d6/tests/data/greeters/test-qt5-greeter.desktop000066400000000000000000000001351523516304700255200ustar00rootroot00000000000000[Desktop Entry] Name=Test Qt5 Greeter Comment=LightDM test Qt5 greeter Exec=test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/data/greeters/test-qt6-greeter.desktop000066400000000000000000000001351523516304700255210ustar00rootroot00000000000000[Desktop Entry] Name=Test Qt6 Greeter Comment=LightDM test Qt6 greeter Exec=test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/data/greeters/test-wayland-greeter.desktop000066400000000000000000000002101523516304700264400ustar00rootroot00000000000000[Desktop Entry] Name=Test Wayland Greeter Comment=LightDM test Wayland greeter Exec=test-gobject-greeter X-LightDM-Session-Type=wayland ubuntu-lightdm-e42f6d6/tests/data/keys.conf000066400000000000000000000000441523516304700210050ustar00rootroot00000000000000[keyring] test-key=0123456789ABCDEF ubuntu-lightdm-e42f6d6/tests/data/remote-sessions/000077500000000000000000000000001523516304700223245ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/tests/data/remote-sessions/test-remote.desktop000066400000000000000000000002011523516304700261600ustar00rootroot00000000000000[Desktop Entry] Name=Test Remote Session Comment=LightDM remote test session Exec=test-session X-LightDM-PAM-Service=test-remote ubuntu-lightdm-e42f6d6/tests/data/session.conf000066400000000000000000000003401523516304700215140ustar00rootroot00000000000000 session unix:dir=/tmp ubuntu-lightdm-e42f6d6/tests/data/sessions/000077500000000000000000000000001523516304700210335ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/tests/data/sessions/alternative.desktop000066400000000000000000000001651523516304700247460ustar00rootroot00000000000000[Desktop Entry] Name=Alternative Test Session Comment=LightDM alternative test session Exec=test-session alternative ubuntu-lightdm-e42f6d6/tests/data/sessions/default.desktop000066400000000000000000000001211523516304700240440ustar00rootroot00000000000000[Desktop Entry] Name=Test Session Comment=LightDM test session Exec=test-session ubuntu-lightdm-e42f6d6/tests/data/sessions/greeter.desktop000066400000000000000000000002311523516304700240570ustar00rootroot00000000000000[Desktop Entry] Name=Test Session with greeter Comment=LightDM test session that can run a greeter inside Exec=test-session X-LightDM-Allow-Greeter=true ubuntu-lightdm-e42f6d6/tests/data/sessions/mir.desktop000066400000000000000000000001601523516304700232120ustar00rootroot00000000000000[Desktop Entry] Name=Test Session Comment=LightDM test Mir session Exec=test-session X-LightDM-Session-Type=mir ubuntu-lightdm-e42f6d6/tests/data/sessions/named-legacy.desktop000066400000000000000000000001631523516304700247540ustar00rootroot00000000000000[Desktop Entry] Name=Test Session Comment=LightDM test session Exec=test-session X-LightDM-DesktopName=TestDesktop ubuntu-lightdm-e42f6d6/tests/data/sessions/named.desktop000066400000000000000000000001711523516304700235110ustar00rootroot00000000000000[Desktop Entry] Name=Test Session Comment=LightDM test session Exec=test-session DesktopNames=TestDesktop1;TestDesktop2; ubuntu-lightdm-e42f6d6/tests/data/sessions/wayland.desktop000066400000000000000000000001701523516304700240630ustar00rootroot00000000000000[Desktop Entry] Name=Test Session Comment=LightDM test Wayland session Exec=test-session X-LightDM-Session-Type=wayland ubuntu-lightdm-e42f6d6/tests/data/system.conf000066400000000000000000000003371523516304700213630ustar00rootroot00000000000000 system unix:dir=/tmp ubuntu-lightdm-e42f6d6/tests/scripts/000077500000000000000000000000001523516304700177435ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/tests/scripts/0-additional.conf000066400000000000000000000000471523516304700230600ustar00rootroot00000000000000[Seat:*] autologin-user=have-password1 ubuntu-lightdm-e42f6d6/tests/scripts/1-additional.conf000066400000000000000000000000471523516304700230610ustar00rootroot00000000000000[Seat:*] autologin-user=have-password2 ubuntu-lightdm-e42f6d6/tests/scripts/add-local-x-seat.conf000066400000000000000000000021551523516304700236340ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/additional-config-priority.conf000066400000000000000000000014641523516304700260510ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/additional-config.conf000066400000000000000000000014451523516304700241710ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/additional-system-config-priority.conf000066400000000000000000000014741523516304700273740ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/additional-system-config.conf000066400000000000000000000014631523516304700255130ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/allow-tcp-xorg-1.16.conf000066400000000000000000000014651523516304700240620ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/allow-tcp.conf000066400000000000000000000013401523516304700225120ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/audit-autologin.conf000066400000000000000000000030641523516304700237220ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-guest-fail-setup-script.conf000066400000000000000000000014661523516304700273200ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-guest-in-background.conf000066400000000000000000000022541523516304700264640ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-guest-logout.conf000066400000000000000000000025021523516304700252460ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-guest-session-config.conf000066400000000000000000000015351523516304700266700ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-guest-timeout.conf000066400000000000000000000025261523516304700254310ustar00rootroot00000000000000# # 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-HINT #?GREETER-X-0 AUTOLOGIN-TIMEOUT-HINT=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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-guest.conf000066400000000000000000000014411523516304700237400ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-in-background.conf000066400000000000000000000021751523516304700253410ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-invalid-greeter.conf000066400000000000000000000013311523516304700256700ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-invalid-session.conf000066400000000000000000000013661523516304700257260ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-invalid-user.conf000066400000000000000000000013111523516304700252070ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-logout.conf000066400000000000000000000024771523516304700241340ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-new-authtok.conf000066400000000000000000000014201523516304700250540ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-pam-config.conf000066400000000000000000000021641523516304700246340ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-pam.conf000066400000000000000000000020501523516304700233630ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-password.conf000066400000000000000000000014341523516304700244550ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-previous-session.conf000066400000000000000000000013171523516304700261500ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-session-crash.conf000066400000000000000000000023241523516304700253730ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-session-error.conf000066400000000000000000000017031523516304700254240ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-session-timeout.conf000066400000000000000000000026131523516304700257620ustar00rootroot00000000000000# # Check autologin session is passed to greeter # [Seat:*] autologin-user=have-password1 autologin-user-timeout=99 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 # 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-HINT=have-password1 #?GREETER-X-0 AUTOLOGIN-SESSION-HINT=alternative #?GREETER-X-0 AUTOLOGIN-TIMEOUT-HINT=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=alternative NAME=alternative 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-session.conf000066400000000000000000000034451523516304700243020ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-timeout-in-background.conf000066400000000000000000000030521523516304700270200ustar00rootroot00000000000000# # 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-HINT=have-password1 #?GREETER-X-0 AUTOLOGIN-TIMEOUT-HINT=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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-timeout-logout.conf000066400000000000000000000037131523516304700256120ustar00rootroot00000000000000# # 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-HINT=have-password1 #?GREETER-X-0 AUTOLOGIN-TIMEOUT-HINT=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-HINT=have-password1 #?GREETER-X-0 AUTOLOGIN-TIMEOUT-HINT=99 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-timeout.conf000066400000000000000000000024431523516304700243020ustar00rootroot00000000000000# # 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-HINT=have-password1 #?GREETER-X-0 AUTOLOGIN-TIMEOUT-HINT=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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin-xserver-crash.conf000066400000000000000000000023121523516304700254030ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/autologin.conf000066400000000000000000000013101523516304700226060ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/cancel-authentication.conf000066400000000000000000000017641523516304700250640ustar00rootroot00000000000000# # 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 #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=FALSE # 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 ubuntu-lightdm-e42f6d6/tests/scripts/change-authentication.conf000066400000000000000000000015471523516304700250630ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/change-home-dir-on-session.conf000066400000000000000000000015651523516304700256430ustar00rootroot00000000000000# # Check home directory is set correctly in session after having been changed by PAM # [Seat:*] autologin-user=change-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=.*/change-home-dir XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=change-home-dir #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Check environment variables #?*SESSION-X-0 READ-ENV NAME=HOME #?SESSION-X-0 READ-ENV NAME=HOME VALUE=.*/users/change-home-dir # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/console-kit-no-xdg-runtime.conf000066400000000000000000000017201523516304700257140ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/console-kit.conf000066400000000000000000000016661523516304700230520ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/corrupt-xauthority.conf000066400000000000000000000017341523516304700245330ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/crash-authenticate.conf000066400000000000000000000014351523516304700243710ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/cred-error.conf000066400000000000000000000017071523516304700226630ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/cred-expired.conf000066400000000000000000000017051523516304700231700ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/cred-unavail.conf000066400000000000000000000017061523516304700231700ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/dbus.conf000066400000000000000000000063201523516304700215500ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/denied.conf000066400000000000000000000014101523516304700220360ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/deprecated-config.conf000066400000000000000000000012651523516304700241610ustar00rootroot00000000000000# # Check handles deprecated configuration item # [Seat:*] xdg-seat=no-longer-used 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 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/expired.conf000066400000000000000000000014001523516304700222450ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/greeter-allow-guest.conf000066400000000000000000000014331523516304700245110ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/greeter-crash.conf000066400000000000000000000012171523516304700233460ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/greeter-default-session.conf000066400000000000000000000014461523516304700253570ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/greeter-fail-start.conf000066400000000000000000000011401523516304700243070ustar00rootroot00000000000000# # Check that LightDM quits when the greeter fails to start # [test-greeter-config] exit-on-startup=true 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 ubuntu-lightdm-e42f6d6/tests/scripts/greeter-hide-users.conf000066400000000000000000000013621523516304700243170ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/greeter-not-installed.conf000066400000000000000000000003141523516304700250200ustar00rootroot00000000000000# # Check that LightDM quits when the greeter does not exist # #?*START-DAEMON #?RUNNER DAEMON-START # Invalid greeter attempted, fails to start # Daemon stops with error #?RUNNER DAEMON-EXIT STATUS=1 ubuntu-lightdm-e42f6d6/tests/scripts/greeter-show-manual-login.conf000066400000000000000000000014121523516304700256040ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/greeter-show-remote-login.conf000066400000000000000000000014471523516304700256320ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/greeter-wrapper.conf000066400000000000000000000013231523516304700237240ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/greeter-xserver-crash.conf000066400000000000000000000022341523516304700250420ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/group-membership.conf000066400000000000000000000015461523516304700241050ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/guest-wrapper.conf000066400000000000000000000015471523516304700234260ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/headless.conf000066400000000000000000000003371523516304700224050ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/home-dir-on-authenticate.conf000066400000000000000000000013601523516304700254040ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/home-dir-on-session.conf000066400000000000000000000013631523516304700244140ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/invalid-seat.conf000066400000000000000000000003301523516304700231660ustar00rootroot00000000000000# # Check stops on an unknown seat type # [Seat:*] type=invalid autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # Can't start an unknown seat #?RUNNER DAEMON-EXIT STATUS=1 ubuntu-lightdm-e42f6d6/tests/scripts/language-env.conf000066400000000000000000000016151523516304700231660ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/language-no-accounts-service.conf000066400000000000000000000015631523516304700262670ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/language.conf000066400000000000000000000024471523516304700224040ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/lock-seat-after-vt-switch.conf000066400000000000000000000042261523516304700255250ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/lock-seat-console-kit.conf000066400000000000000000000030001523516304700247120ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/lock-seat-resettable.conf000066400000000000000000000031751523516304700246320ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/lock-seat-return-session-console-kit.conf000066400000000000000000000037321523516304700277240ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/lock-seat-return-session.conf000066400000000000000000000034641523516304700255010ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/lock-seat-twice.conf000066400000000000000000000035071523516304700236120ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/lock-seat.conf000066400000000000000000000025511523516304700224770ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/lock-session-no-password.conf000066400000000000000000000030161523516304700254750ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/lock-session-resettable.conf000066400000000000000000000033311523516304700253530ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/lock-session-return-session.conf000066400000000000000000000036331523516304700262260ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/lock-session-twice.conf000066400000000000000000000037551523516304700243460ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/lock-session.conf000066400000000000000000000027131523516304700232260ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-crash-authenticate.conf000066400000000000000000000015071523516304700254770ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-greeter-return-failure.conf000066400000000000000000000024571523516304700263270ustar00rootroot00000000000000# # Check can login even if the greeter returns an error code (it otherwise works fine) # [Seat:*] user-session=default [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 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-guest-disabled.conf000066400000000000000000000014721523516304700246200ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-guest-fail-setup-script.conf000066400000000000000000000023071523516304700264220ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-guest-logout.conf000066400000000000000000000033131523516304700243560ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-guest-no-setup-script.conf000066400000000000000000000015041523516304700261210ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-guest-pick-session.conf000066400000000000000000000023761523516304700254640ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-guest-session-config.conf000066400000000000000000000023421523516304700257740ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-guest.conf000066400000000000000000000022761523516304700230560ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-info-prompt.conf000066400000000000000000000020171523516304700241720ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-invalid-greeter.conf000066400000000000000000000001641523516304700250020ustar00rootroot00000000000000# # Check fails to start if invalid greeter # #?*START-DAEMON #?RUNNER DAEMON-START #?RUNNER DAEMON-EXIT STATUS=1 ubuntu-lightdm-e42f6d6/tests/scripts/login-invalid-session.conf000066400000000000000000000017411523516304700250320ustar00rootroot00000000000000# # 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 ERROR=.* # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/login-invalid-user.conf000066400000000000000000000015751523516304700243320ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-logout.conf000066400000000000000000000033111523516304700232270ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-long-password.conf000066400000000000000000000017351523516304700245250ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-long-username.conf000066400000000000000000000020551523516304700244760ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-manual-previous-session.conf000066400000000000000000000023751523516304700265370ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-manual-remember-session.conf000066400000000000000000000045151523516304700264570ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-manual.conf000066400000000000000000000025141523516304700231770ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-multi-info-prompt.conf000066400000000000000000000022351523516304700253240ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-multi-prompt.conf000066400000000000000000000020711523516304700243710ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-new-authtok.conf000066400000000000000000000023661523516304700241750ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-no-password.conf000066400000000000000000000022501523516304700241730ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-pam-config.conf.in000066400000000000000000000037541523516304700243560ustar00rootroot00000000000000# # 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-@GREETER_USER@ START SERVICE=lightdm-greeter-alternative USER=@GREETER_USER@ #?PAM-@GREETER_USER@ SETCRED ESTABLISH_CRED #?PAM-@GREETER_USER@ 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-@GREETER_USER@ CLOSE-SESSION #?PAM-@GREETER_USER@ SETCRED DELETE_CRED #?PAM-@GREETER_USER@ 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-pam.conf.in000066400000000000000000000035701523516304700231070ustar00rootroot00000000000000# # 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-@GREETER_USER@ START SERVICE=lightdm-greeter USER=@GREETER_USER@ #?PAM-@GREETER_USER@ SETCRED ESTABLISH_CRED #?PAM-@GREETER_USER@ 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-@GREETER_USER@ CLOSE-SESSION #?PAM-@GREETER_USER@ SETCRED DELETE_CRED #?PAM-@GREETER_USER@ 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-pick-session.conf000066400000000000000000000022151523516304700243270ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-previous-session.conf000066400000000000000000000022271523516304700252600ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-remember-session.conf000066400000000000000000000043121523516304700251770ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-remote-session.conf000066400000000000000000000026011523516304700246730ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-session-crash.conf000066400000000000000000000033551523516304700245070ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-two-factor.conf000066400000000000000000000016551523516304700240140ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-wrong-password.conf000066400000000000000000000015641523516304700247220ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login-xserver-crash.conf000066400000000000000000000033401523516304700245140ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login.conf000066400000000000000000000023051523516304700217220ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/login1-terminate.conf000066400000000000000000000035141523516304700237740ustar00rootroot00000000000000# # Check login1 session is terminated for greeters # [Seat:*] user-session=default [test-runner-config] log-login1-terminate=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 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 #?LOGIN1 TERMINATE-SESSION SESSION=c0 # 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 #?LOGIN1 TERMINATE-SESSION SESSION=c2 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/mir-autologin.conf000066400000000000000000000013411523516304700233770ustar00rootroot00000000000000# # Check deprecated Mir session no longer works (autologin) # [Seat:*] autologin-user=have-password1 user-session=mir #?*START-DAEMON #?RUNNER DAEMON-START # Session fails to 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 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/mir-greeter.conf000066400000000000000000000002261523516304700230340ustar00rootroot00000000000000# # Check deprecated Mir greeter no longer works # #?*START-DAEMON #?RUNNER DAEMON-START # Fails to start greeter... #?RUNNER DAEMON-EXIT STATUS=1 ubuntu-lightdm-e42f6d6/tests/scripts/mir-session.conf000066400000000000000000000016531523516304700230670ustar00rootroot00000000000000# # Check deprecated Mir session no longer works # [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 # Attempt to start the session, it will fail #?*GREETER-X-0 START-SESSION #?GREETER-X-0 SESSION-FAILED ERROR=.* # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/multi-seat-autologin-seat0.conf000066400000000000000000000021611523516304700257070ustar00rootroot00000000000000# # Check autologin works on one seat only # [Seat:*] user-session=default [Seat:seat0] autologin-user=have-password1 #?*START-DAEMON #?RUNNER DAEMON-START # seat0 starts with autologin #?XSERVER-0 START VT=7 SEAT=seat0 #?*XSERVER-0 INDICATE-READY #?XSERVER-0 INDICATE-READY #?XSERVER-0 ACCEPT-CONNECT #?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 seat1 #?*ADD-SEAT ID=seat1 # seat1 starts with greeter #?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 #?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 ubuntu-lightdm-e42f6d6/tests/scripts/multi-seat-autologin-seat1.conf000066400000000000000000000021611523516304700257100ustar00rootroot00000000000000# # Check autologin works on one seat only # [Seat:*] user-session=default [Seat:seat1] autologin-user=have-password1 #?*START-DAEMON #?RUNNER DAEMON-START # seat0 starts with greeter #?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 with autologin #?XSERVER-1 START SEAT=seat1 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 START XDG_SEAT=seat1 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 # 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 ubuntu-lightdm-e42f6d6/tests/scripts/multi-seat-change-graphical-disabled.conf000066400000000000000000000023611523516304700276200ustar00rootroot00000000000000# # Check seat graphical status is ignored # [LightDM] logind-check-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 # 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 ubuntu-lightdm-e42f6d6/tests/scripts/multi-seat-change-graphical.conf000066400000000000000000000031001523516304700260430ustar00rootroot00000000000000# # Check seat can change graphical status # #?*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 ubuntu-lightdm-e42f6d6/tests/scripts/multi-seat-globbing-config-sections.conf000066400000000000000000000057451523516304700275620ustar00rootroot00000000000000# # 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-HINT=have-password2 #?GREETER-X-1 AUTOLOGIN-TIMEOUT-HINT=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-HINT=have-password3 #?GREETER-X-2 AUTOLOGIN-TIMEOUT-HINT=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 ubuntu-lightdm-e42f6d6/tests/scripts/multi-seat-login.conf000066400000000000000000000036601523516304700240110ustar00rootroot00000000000000# # Check can log in on both seats # [Seat:*] user-session=default #?*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 # Login seat0 #?*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 # Login seat1 #?*GREETER-X-1 AUTHENTICATE USERNAME=no-password2 #?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=no-password2 AUTHENTICATED=TRUE #?*GREETER-X-1 START-SESSION #?GREETER-X-1 TERMINATE SIGNAL=15 # Session starts #?SESSION-X-1 START XDG_SEAT=seat1 XDG_GREETER_DATA_DIR=.*/no-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password2 #?LOGIN1 ACTIVATE-SESSION SESSION=c3 #?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 ubuntu-lightdm-e42f6d6/tests/scripts/multi-seat-no-multi-session.conf000066400000000000000000000054171523516304700261300ustar00rootroot00000000000000# # Check that logging out from a CanMultiSession=false seat activates greeter on # that seat. # [Seat:*] user-session=default #?*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-MULTI-SESSION=FALSE #?XSERVER-1 START SEAT=seat1 #?*SEAT-CAN-SWITCH PATH=/org/freedesktop/DisplayManager/Seat1 #?RUNNER SEAT-CAN-SWITCH PATH=/org/freedesktop/DisplayManager/Seat1 CAN-SWITCH=FALSE #?*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 # Log in seat0 so that its active session is not a greeter (in case there is a # cross-seat bug). #?*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 # Log in seat1 #?*GREETER-X-1 AUTHENTICATE USERNAME=no-password2 #?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=no-password2 AUTHENTICATED=TRUE #?*GREETER-X-1 START-SESSION #?GREETER-X-1 TERMINATE SIGNAL=15 #?SESSION-X-1 START XDG_SEAT=seat1 XDG_GREETER_DATA_DIR=.*/no-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=no-password2 #?LOGIN1 ACTIVATE-SESSION SESSION=c3 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Logout seat1 #?*SESSION-X-1 LOGOUT #?XSERVER-1 TERMINATE SIGNAL=15 # Ensure that the X server and greeter for seat1 are not restarted until after # the user logs out. WAIT is not needed here because XSERVER-1 cannot terminate # and start concurrently. #?*FENCE #?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=c4 #?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 ubuntu-lightdm-e42f6d6/tests/scripts/multi-seat-non-graphical-disabled.conf000066400000000000000000000020741523516304700271660ustar00rootroot00000000000000# # Check non graphical seats are started anyway # [LightDM] logind-check-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 # 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 ubuntu-lightdm-e42f6d6/tests/scripts/multi-seat-non-graphical.conf000066400000000000000000000012211523516304700254120ustar00rootroot00000000000000# # Check non graphical seats are 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 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 ubuntu-lightdm-e42f6d6/tests/scripts/multi-seat-seat0-non-graphical-disabled.conf000066400000000000000000000012501523516304700301730ustar00rootroot00000000000000# # Check seat0 is started even if it is marked as non-graphical # [LightDM] logind-check-graphical=false [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 ubuntu-lightdm-e42f6d6/tests/scripts/multi-seat-seat0-non-graphical.conf000066400000000000000000000013261523516304700264320ustar00rootroot00000000000000# # Check seat0 is started only once it becomes graphical # [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 ubuntu-lightdm-e42f6d6/tests/scripts/multi-seat-wayland.conf000066400000000000000000000037561523516304700243460ustar00rootroot00000000000000# # Check that non-seat0 Wayland sessions are started properly. # [Seat:*] user-session=wayland #?*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 #?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 # Log in to seat1. #?*GREETER-X-1 AUTHENTICATE USERNAME=no-password2 #?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=no-password2 AUTHENTICATED=TRUE #?*GREETER-X-1 START-SESSION #?GREETER-X-1 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?SESSION-WAYLAND START XDG_SEAT=seat1 XDG_GREETER_DATA_DIR=.*/no-password2 XDG_SESSION_TYPE=wayland XDG_SESSION_DESKTOP=wayland USER=no-password2 #?LOGIN1 ACTIVATE-SESSION SESSION=c2 # Ensure that the X server and greeter for seat1 are not restarted until after # the user logs out. #?*WAIT #?*FENCE # Log out. The X server and greeter for seat1 should start again. #?*SESSION-WAYLAND LOGOUT #?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=c3 #?XSERVER-1 ACCEPT-CONNECT #?GREETER-X-1 CONNECT-XSERVER #?GREETER-X-1 CONNECT-TO-DAEMON #?GREETER-X-1 CONNECTED-TO-DAEMON # Clean up. #?*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 ubuntu-lightdm-e42f6d6/tests/scripts/multi-seat.conf000066400000000000000000000020761523516304700227030ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/multiple-authenticate.conf000066400000000000000000000032071523516304700251230ustar00rootroot00000000000000# # Check can do many authentications from a 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 # Start authentication, but switch user before it is complete #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" # Authenticate and complete, but don't start session #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password2 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password2 AUTHENTICATED=TRUE # Authenticate and login #?*GREETER-X-0 AUTHENTICATE USERNAME=have-password3 #?GREETER-X-0 SHOW-PROMPT TEXT="Password:" #?*GREETER-X-0 RESPOND TEXT="password" #?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password3 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-password3 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password3 #?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 ubuntu-lightdm-e42f6d6/tests/scripts/no-accounts-service.conf000066400000000000000000000014131523516304700245000ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/no-config.conf000066400000000000000000000012701523516304700224710ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/no-console-kit-or-login1.conf000066400000000000000000000013761523516304700252670ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/no-console-kit.conf000066400000000000000000000014011523516304700234470ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/no-dbus.conf000066400000000000000000000015571523516304700221710ustar00rootroot00000000000000# # Check D-Bus interface can be disabled # [test-runner-config] log-dbus=true [LightDM] dbus-service=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 # Can't access D-Bus interface #?*LIST-SEATS #?RUNNER LIST-SEATS ERROR=SERVICE_UNKNOWN #?*LIST-SESSIONS #?RUNNER LIST-SESSIONS ERROR=SERVICE_UNKNOWN # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/no-login1.conf000066400000000000000000000014511523516304700224160ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/open-file-descriptors.conf000066400000000000000000000026521523516304700250340ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/plymouth-active-vt.conf000066400000000000000000000017121523516304700243740ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/plymouth-inactive-vt.conf000066400000000000000000000015531523516304700247260ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/plymouth-no-seat.conf000066400000000000000000000005661523516304700240460ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/power-no-console-kit.conf000066400000000000000000000025601523516304700246100ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/power-no-login1-or-console-kit.conf000066400000000000000000000025741523516304700264220ustar00rootroot00000000000000# # Check can do power operations from the greeter when no login1 or ConsoleKit service (falls back to upower for some) # [test-runner-config] disable-login1=true 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 #?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 #?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 ubuntu-lightdm-e42f6d6/tests/scripts/power-no-login1.conf000066400000000000000000000027231523516304700235530ustar00rootroot00000000000000# # 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 #?CONSOLE-KIT CAN-SUSPEND #?GREETER-X-0 CAN-SUSPEND ALLOWED=TRUE # Suspend #?*GREETER-X-0 SUSPEND #?CONSOLE-KIT SUSPEND # See if can hibernate #?*GREETER-X-0 GET-CAN-HIBERNATE #?CONSOLE-KIT CAN-HIBERNATE #?GREETER-X-0 CAN-HIBERNATE ALLOWED=TRUE # Hibernate #?*GREETER-X-0 HIBERNATE #?CONSOLE-KIT 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 ubuntu-lightdm-e42f6d6/tests/scripts/power-no-services.conf000066400000000000000000000025061523516304700242040ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/power.conf000066400000000000000000000024461523516304700217540ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/restart-authentication.conf000066400000000000000000000015441523516304700253170ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/script-hook-display-setup-fail.conf000066400000000000000000000007771523516304700266010ustar00rootroot00000000000000# # 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 XDG_SEAT=seat0 #?XSERVER-0 TERMINATE SIGNAL=15 # Cleanup #?RUNNER DAEMON-EXIT STATUS=1 ubuntu-lightdm-e42f6d6/tests/scripts/script-hook-display-setup-missing.conf000066400000000000000000000007061523516304700273270ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/script-hook-greeter-setup-fail.conf000066400000000000000000000010071523516304700265540ustar00rootroot00000000000000# # 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 XDG_SEAT=seat0 USER=.* #?XSERVER-0 TERMINATE SIGNAL=15 # Cleanup #?RUNNER DAEMON-EXIT STATUS=1 ubuntu-lightdm-e42f6d6/tests/scripts/script-hook-greeter-setup-missing.conf000066400000000000000000000007061523516304700273170ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/script-hook-session-setup-fail.conf000066400000000000000000000016551523516304700266130ustar00rootroot00000000000000# # 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 XDG_SEAT=seat0 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 ubuntu-lightdm-e42f6d6/tests/scripts/script-hook-session-setup-missing.conf000066400000000000000000000015531523516304700273460ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/script-hooks.conf000066400000000000000000000037521523516304700232460ustar00rootroot00000000000000# # 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 XDG_SEAT=seat0 #?SCRIPT-HOOK SESSION-SETUP XDG_SEAT=seat0 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 XDG_SEAT=seat0 USER=have-password1 # X server stops #?XSERVER-0 TERMINATE SIGNAL=15 # Script hooks run #?SCRIPT-HOOK DISPLAY-STOPPED XDG_SEAT=seat0 # 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 XDG_SEAT=seat0 #?SCRIPT-HOOK GREETER-SETUP XDG_SEAT=seat0 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 XDG_SEAT=seat0 # Finish cleanup #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/seatdefaults-still-supported.conf000066400000000000000000000014631523516304700264520ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/session-greeter-allow-guest.conf000066400000000000000000000017141523516304700261740ustar00rootroot00000000000000# # Check in-session greeter is informed if manual login should be showed (it defaults to show) # [Seat:*] autologin-user=have-password1 user-session=greeter 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 # 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=greeter USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Start greeter inside session #?*SESSION-X-0 GREETER-START #?SESSION-X-0 GREETER-STARTED # Check has correct hint to allow guest #?SESSION-X-0 GREETER-HAS-GUEST-ACCOUNT-HINT=FALSE # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/session-greeter-autologin.conf000066400000000000000000000032271523516304700257330ustar00rootroot00000000000000# # Check can run greeter inside session after autologin # [Seat:*] autologin-user=have-password1 user-session=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 # 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=greeter USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Start greeter inside session #?*SESSION-X-0 GREETER-START #?SESSION-X-0 GREETER-STARTED # Log into account with a password #?*SESSION-X-0 GREETER-AUTHENTICATE USERNAME=have-password2 #?SESSION-X-0 GREETER-SHOW-PROMPT TEXT="Password:" #?*SESSION-X-0 GREETER-RESPOND TEXT="password" #?SESSION-X-0 GREETER-AUTHENTICATION-COMPLETE USERNAME=have-password2 AUTHENTICATED=TRUE #?*SESSION-X-0 GREETER-START-SESSION # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # 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=greeter USER=have-password2 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to new session #?VT ACTIVATE VT=8 #?LOGIN1 LOCK-SESSION SESSION=c0 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/session-greeter-default-session.conf000066400000000000000000000017441523516304700270410ustar00rootroot00000000000000# # Check in-session greeter is informed of the default user session # [Seat:*] autologin-user=have-password1 autologin-session=greeter 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 # 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=greeter USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Start greeter inside session #?*SESSION-X-0 GREETER-START #?SESSION-X-0 GREETER-STARTED # Check has correct user session #?*SESSION-X-0 GREETER-LOG-DEFAULT-SESSION #?SESSION-X-0 GREETER-LOG-DEFAULT-SESSION SESSION=alternative # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/session-greeter-hide-users.conf000066400000000000000000000016441523516304700260030ustar00rootroot00000000000000# # Check in-session greeter is informed if user list should be hidden # [Seat:*] autologin-user=have-password1 user-session=greeter 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 # 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=greeter USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Start greeter inside session #?*SESSION-X-0 GREETER-START #?SESSION-X-0 GREETER-STARTED # Check has correct hint to allow guest #?SESSION-X-0 GREETER-HIDE-USERS-HINT # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/session-greeter-multiple-login.conf000066400000000000000000000035171523516304700266750ustar00rootroot00000000000000# # Check continuing to use an in-session greeter doesn't break things # [Seat:*] autologin-user=no-password1 user-session=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 # 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=greeter USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Start greeter inside session #?*SESSION-X-0 GREETER-START #?SESSION-X-0 GREETER-STARTED # Log into account with a password #?*SESSION-X-0 GREETER-AUTHENTICATE USERNAME=no-password2 #?SESSION-X-0 GREETER-AUTHENTICATION-COMPLETE USERNAME=no-password2 AUTHENTICATED=TRUE #?*SESSION-X-0 GREETER-START-SESSION # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # 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=greeter USER=no-password2 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to new session #?VT ACTIVATE VT=8 #?LOGIN1 LOCK-SESSION SESSION=c0 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 # Log in again from the greeter #?*SESSION-X-0 GREETER-AUTHENTICATE USERNAME=no-password2 #?SESSION-X-0 GREETER-AUTHENTICATION-COMPLETE USERNAME=no-password2 AUTHENTICATED=TRUE #?*SESSION-X-0 GREETER-START-SESSION # Session is activated again #?LOGIN1 ACTIVATE-SESSION SESSION=c1 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/session-greeter-reconnect.conf000066400000000000000000000034041523516304700257070ustar00rootroot00000000000000# # Check can reconnect in-session greeter # [Seat:*] autologin-user=have-password1 user-session=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 # 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=greeter USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Start greeter inside session #?*SESSION-X-0 GREETER-START #?SESSION-X-0 GREETER-STARTED # Stop greeter #?*SESSION-X-0 GREETER-STOP # Re-start greeter #?*SESSION-X-0 GREETER-START #?SESSION-X-0 GREETER-STARTED # Log into account with a password #?*SESSION-X-0 GREETER-AUTHENTICATE USERNAME=have-password2 #?SESSION-X-0 GREETER-SHOW-PROMPT TEXT="Password:" #?*SESSION-X-0 GREETER-RESPOND TEXT="password" #?SESSION-X-0 GREETER-AUTHENTICATION-COMPLETE USERNAME=have-password2 AUTHENTICATED=TRUE #?*SESSION-X-0 GREETER-START-SESSION # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # 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=greeter USER=have-password2 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to new session #?VT ACTIVATE VT=8 #?LOGIN1 LOCK-SESSION SESSION=c0 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/session-greeter-show-manual-login.conf000066400000000000000000000016651523516304700272770ustar00rootroot00000000000000# # Check in-session greeter is informed if manual login should be showed # [Seat:*] autologin-user=have-password1 user-session=greeter 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 # 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=greeter USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Start greeter inside session #?*SESSION-X-0 GREETER-START #?SESSION-X-0 GREETER-STARTED # Check has correct hint to allow guest #?SESSION-X-0 GREETER-SHOW-MANUAL-LOGIN-HINT # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/session-greeter-show-remote-login.conf000066400000000000000000000017301523516304700273060ustar00rootroot00000000000000# # Check in-session greeter is informed if remote login should be showed (it defaults to show) # [Seat:*] autologin-user=have-password1 user-session=greeter 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 # 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=greeter USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Start greeter inside session #?*SESSION-X-0 GREETER-START #?SESSION-X-0 GREETER-STARTED # Check has correct hint to show remote login #?SESSION-X-0 GREETER-SHOW-REMOTE-LOGIN-HINT=FALSE # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/session-greeter-switch.conf000066400000000000000000000035541523516304700252360ustar00rootroot00000000000000# # Check can unlock existing session with an in-session greeter # [Seat:*] autologin-user=no-password1 user-session=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 # 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=greeter USER=no-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Start a second account #?*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 # 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=greeter USER=no-password2 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to session #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?VT ACTIVATE VT=8 # Start greeter inside session #?*SESSION-X-1 GREETER-START #?SESSION-X-1 GREETER-STARTED # Log into first account #?*SESSION-X-1 GREETER-AUTHENTICATE USERNAME=no-password1 #?SESSION-X-1 GREETER-AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE #?*SESSION-X-1 GREETER-START-SESSION # Switch back to first session #?VT ACTIVATE VT=7 #?LOGIN1 UNLOCK-SESSION SESSION=c0 #?LOGIN1 LOCK-SESSION SESSION=c1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # 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 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/session-greeter-unlock-twice.conf000066400000000000000000000030311523516304700263270ustar00rootroot00000000000000# # Check can unlock user with an in-session greeter and re-lock again # [Seat:*] autologin-user=have-password1 user-session=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 # 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=greeter USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Start greeter inside session #?*SESSION-X-0 GREETER-START #?SESSION-X-0 GREETER-STARTED # Log into our account #?*SESSION-X-0 GREETER-AUTHENTICATE USERNAME=have-password1 #?SESSION-X-0 GREETER-SHOW-PROMPT TEXT="Password:" #?*SESSION-X-0 GREETER-RESPOND TEXT="password" #?SESSION-X-0 GREETER-AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*SESSION-X-0 GREETER-START-SESSION # We are reactivated #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Authenticate again #?*SESSION-X-0 GREETER-AUTHENTICATE USERNAME=have-password1 #?SESSION-X-0 GREETER-SHOW-PROMPT TEXT="Password:" #?*SESSION-X-0 GREETER-RESPOND TEXT="password" #?SESSION-X-0 GREETER-AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*SESSION-X-0 GREETER-START-SESSION # We are reactivated #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/session-greeter-unlock.conf000066400000000000000000000022321523516304700252200ustar00rootroot00000000000000# # Check can unlock user with an in-session greeter # [Seat:*] autologin-user=have-password1 user-session=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 # 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=greeter USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c0 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Start greeter inside session #?*SESSION-X-0 GREETER-START #?SESSION-X-0 GREETER-STARTED # Log into our account #?*SESSION-X-0 GREETER-AUTHENTICATE USERNAME=have-password1 #?SESSION-X-0 GREETER-SHOW-PROMPT TEXT="Password:" #?*SESSION-X-0 GREETER-RESPOND TEXT="password" #?SESSION-X-0 GREETER-AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE #?*SESSION-X-0 GREETER-START-SESSION # We are reactivated #?LOGIN1 ACTIVATE-SESSION SESSION=c0 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/session-greeter.conf000066400000000000000000000042351523516304700237340ustar00rootroot00000000000000# # Check can run greeter inside session # [Seat:*] user-session=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 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=greeter USER=have-password1 #?LOGIN1 ACTIVATE-SESSION SESSION=c1 #?XSERVER-0 ACCEPT-CONNECT #?SESSION-X-0 CONNECT-XSERVER # Start greeter inside session #?*SESSION-X-0 GREETER-START #?SESSION-X-0 GREETER-STARTED # Log into account with a password #?*SESSION-X-0 GREETER-AUTHENTICATE USERNAME=have-password2 #?SESSION-X-0 GREETER-SHOW-PROMPT TEXT="Password:" #?*SESSION-X-0 GREETER-RESPOND TEXT="password" #?SESSION-X-0 GREETER-AUTHENTICATION-COMPLETE USERNAME=have-password2 AUTHENTICATED=TRUE #?*SESSION-X-0 GREETER-START-SESSION # New X server starts #?XSERVER-1 START VT=8 SEAT=seat0 #?*XSERVER-1 INDICATE-READY #?XSERVER-1 INDICATE-READY #?XSERVER-1 ACCEPT-CONNECT # 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=greeter USER=have-password2 #?XSERVER-1 ACCEPT-CONNECT #?SESSION-X-1 CONNECT-XSERVER # Switch to new session #?VT ACTIVATE VT=8 #?LOGIN1 LOCK-SESSION SESSION=c1 #?LOGIN1 ACTIVATE-SESSION SESSION=c2 # Cleanup #?*STOP-DAEMON #?SESSION-X-0 TERMINATE SIGNAL=15 #?XSERVER-1 TERMINATE SIGNAL=15 #?SESSION-X-1 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/session-stderr-backup.conf000066400000000000000000000064011523516304700250420ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/session-stderr-multi-write.conf000066400000000000000000000017361523516304700260650ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/session-stderr.conf000066400000000000000000000017061523516304700236020ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/session-stdout.conf000066400000000000000000000017561523516304700236260ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/sessions.conf000066400000000000000000000017151523516304700224640ustar00rootroot00000000000000# # Check can list available sessions # [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 sessions #?*GREETER-X-0 LOG-SESSIONS #?GREETER-X-0 LOG-SESSION KEY=alternative #?GREETER-X-0 LOG-SESSION KEY=default #?GREETER-X-0 LOG-SESSION KEY=greeter #?GREETER-X-0 LOG-SESSION KEY=mir #?GREETER-X-0 LOG-SESSION KEY=named #?GREETER-X-0 LOG-SESSION KEY=named-legacy #?GREETER-X-0 LOG-SESSION KEY=wayland # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/shared-data-greeter-to-session.conf000066400000000000000000000027171523516304700265320ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/shared-data-invalid-user.conf000066400000000000000000000014431523516304700253710ustar00rootroot00000000000000# # 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=.* # Cleanup #?*STOP-DAEMON #?XSERVER-0 TERMINATE SIGNAL=15 #?GREETER-X-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/shared-data-session-to-greeter-autologin.conf000066400000000000000000000030331523516304700305210ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/shared-data-session-to-greeter.conf000066400000000000000000000037241523516304700265310ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-greeter-disabled.conf000066400000000000000000000016361523516304700257410ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-greeter-new-session.conf000066400000000000000000000036411523516304700264420ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-greeter-resettable.conf000066400000000000000000000034001523516304700263130ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-greeter-return-session-logout.conf000066400000000000000000000044031523516304700304740ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-greeter-return-session-pam.conf.in000066400000000000000000000052271523516304700303520ustar00rootroot00000000000000# # 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-@GREETER_USER@ START SERVICE=lightdm-greeter USER=@GREETER_USER@ #?PAM-@GREETER_USER@ SETCRED ESTABLISH_CRED #?PAM-@GREETER_USER@ 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-@GREETER_USER@ CLOSE-SESSION #?PAM-@GREETER_USER@ SETCRED DELETE_CRED #?PAM-@GREETER_USER@ 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-greeter-return-session-repeat.conf000066400000000000000000000077141523516304700304530ustar00rootroot00000000000000# # Use D-Bus interface to show the greeter, then return to the same session (repeat three times) # [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 # Show the greeter #?*SWITCH-TO-GREETER #?RUNNER SWITCH-TO-GREETER # 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=c0 # 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 # Switch to greeter #?LOGIN1 ACTIVATE-SESSION SESSION=c2 #?VT ACTIVATE VT=9 # Login as existing user #?*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 # 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-2 TERMINATE SIGNAL=15 #?XSERVER-2 TERMINATE SIGNAL=15 # 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=c3 #?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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-greeter-return-session.conf000066400000000000000000000034551523516304700271730ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-greeter.conf000066400000000000000000000026711523516304700241740ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-guest-disabled.conf000066400000000000000000000020451523516304700254260ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-guest-fail-resettable.conf000066400000000000000000000037661523516304700267350ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-guest.conf000066400000000000000000000035401523516304700236620ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-user-active.conf000066400000000000000000000015601523516304700247620ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-user-disabled.conf000066400000000000000000000017341523516304700252610ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-user-existing-no-password.conf000066400000000000000000000034121523516304700276110ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-user-existing-resettable.conf000066400000000000000000000050711523516304700274720ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-user-existing.conf000066400000000000000000000052051523516304700253410ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-user-logout-active-resettable.conf000066400000000000000000000045201523516304700304200ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-user-logout-active.conf000066400000000000000000000036601523516304700262740ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-user-logout-inactive.conf000066400000000000000000000027011523516304700266160ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-user-no-password.conf000066400000000000000000000027151523516304700257660ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-user-resettable.conf000066400000000000000000000037231523516304700256440ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-user.conf000066400000000000000000000033041523516304700235070ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/switch-to-users.conf000066400000000000000000000042261523516304700236760ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/system-xauthority.conf000066400000000000000000000020211523516304700243470ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/unity.conf000066400000000000000000000003351523516304700217630ustar00rootroot00000000000000# # Check deprecated unity seat doesn't work # [Seat:*] type=unity autologin-user=have-password1 user-session=default #?*START-DAEMON #?RUNNER DAEMON-START # Fails to start unity seat... #?RUNNER DAEMON-EXIT STATUS=1 ubuntu-lightdm-e42f6d6/tests/scripts/unknown-config.conf000066400000000000000000000013341523516304700235550ustar00rootroot00000000000000# # Check handles unknown configuration item # [Seat:*] not-an-option=does-not-exist user-session=default [NOT-A-SECTION] some-key=some-value #?*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 # Cleanup #?*STOP-DAEMON #?GREETER-X-0 TERMINATE SIGNAL=15 #?XSERVER-0 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/upstart-autologin.conf000066400000000000000000000015521523516304700243160ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/upstart-login.conf000066400000000000000000000025751523516304700234330ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/user-background.conf000066400000000000000000000022301523516304700237020ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/user-has-messages.conf000066400000000000000000000022621523516304700241500ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/user-image.conf000066400000000000000000000021631523516304700226520ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/user-layout.conf000066400000000000000000000027631523516304700231130ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/user-logged-in.conf000066400000000000000000000046231523516304700234400ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/user-name.conf000066400000000000000000000032151523516304700225070ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/user-renamed-invalid.conf000066400000000000000000000015031523516304700246240ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/user-renamed.conf000066400000000000000000000013571523516304700232070ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/user-session.conf000066400000000000000000000055501523516304700232560ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/user-uid.conf000066400000000000000000000013771523516304700223570ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/users.conf000066400000000000000000000032331523516304700217540ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/utmp-autologin.conf000066400000000000000000000031421523516304700235760ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/utmp-login.conf000066400000000000000000000041521523516304700227070ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/utmp-wrong-password.conf000066400000000000000000000017601523516304700245750ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/vnc-command.conf000066400000000000000000000017431523516304700230210ustar00rootroot00000000000000# # 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=24 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 #?VNC-CLIENT DISCONNECTED #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/vnc-dimensions.conf000066400000000000000000000017611523516304700235530ustar00rootroot00000000000000# # 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 #?VNC-CLIENT DISCONNECTED #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/vnc-guest.conf000066400000000000000000000027761523516304700225410ustar00rootroot00000000000000# # 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=24 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-.* #?VNC-CLIENT DISCONNECTED #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/vnc-login.conf000066400000000000000000000031651523516304700225130ustar00rootroot00000000000000# # 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=24 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 # Logout session #?*SESSION-X-0 LOGOUT # X server stops #?XVNC-0 TERMINATE SIGNAL=15 # VNC connection ends #?VNC-CLIENT DISCONNECTED # Clean up #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/vnc-open-file-descriptors.conf000066400000000000000000000032061523516304700256140ustar00rootroot00000000000000# # 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=24 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 #?VNC-CLIENT DISCONNECTED #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/wayland-autologin.conf000066400000000000000000000007511523516304700242530ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/wayland-greeter.conf000066400000000000000000000006151523516304700237060ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/wayland-session.conf000066400000000000000000000022411523516304700237310ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/xauthority.conf000066400000000000000000000017301523516304700230330ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdg-current-desktop-legacy.conf000066400000000000000000000014411523516304700257650ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdg-current-desktop.conf000066400000000000000000000014071523516304700245250ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-client-xorg-1.16.conf000066400000000000000000000010221523516304700245340ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-client.conf000066400000000000000000000006751523516304700232110ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-autologin.conf000066400000000000000000000023021523516304700252250ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-double-login.conf000066400000000000000000000065761523516304700256250ustar00rootroot00000000000000# # 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="lightdm-test" 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-guest.conf000066400000000000000000000034011523516304700243540ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-hostname.conf000066400000000000000000000023071523516304700250470ustar00rootroot00000000000000# # Check can set hostname for XDMCP server # [LightDM] start-default-seat=false [XDMCPServer] enabled=true hostname=xdmcp-test [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="xdmcp-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-invalid-authentication.conf000066400000000000000000000016651523516304700277020ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-keep-alive.conf000066400000000000000000000024761523516304700252620ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-login-logout.conf000066400000000000000000000035511523516304700256520ustar00rootroot00000000000000# # 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 -terminate" #?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="lightdm-test" 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 # Logout session #?*SESSION-X-127.0.0.1:98 LOGOUT # X server stops #?XSERVER-98 TERMINATE # Clean up #?*STOP-DAEMON #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-login.conf000066400000000000000000000034571523516304700243500ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-open-file-descriptors.conf000066400000000000000000000037221523516304700274500ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-request-invalid-authentication.conf000066400000000000000000000016121523516304700313600ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-request-invalid-authorization.conf000066400000000000000000000015171523516304700312450ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-request-without-addresses.conf000066400000000000000000000014211523516304700303710ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-request-without-authorization.conf000066400000000000000000000014541523516304700313220ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-xdm-authentication-invalid-authorization.conf000066400000000000000000000020361523516304700333570ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-xdm-authentication-long-data.conf000066400000000000000000000022231523516304700306770ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-xdm-authentication-missing-data.conf000066400000000000000000000017441523516304700314200ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-xdm-authentication-missing-key.conf000066400000000000000000000004361523516304700312740ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-xdm-authentication-no-key.conf000066400000000000000000000017271523516304700302430ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-xdm-authentication-required.conf000066400000000000000000000016771523516304700306650ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-xdm-authentication-short-data.conf000066400000000000000000000017651523516304700311110ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xdmcp-server-xdm-authentication.conf000066400000000000000000000026701523516304700270410ustar00rootroot00000000000000# # 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="lightdm-test" 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 ubuntu-lightdm-e42f6d6/tests/scripts/xlocal-legacy.conf000066400000000000000000000013201523516304700233320ustar00rootroot00000000000000# # Check legacy xlocal seat still works # [Seat:*] type=xlocal 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 ubuntu-lightdm-e42f6d6/tests/scripts/xremote-autologin.conf000066400000000000000000000013271523516304700242770ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/xremote-login-logout.conf000066400000000000000000000033551523516304700247200ustar00rootroot00000000000000# # Check logging out with a remote X server switches back to a greeter # [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 # Logout session #?*SESSION-X-127.0.0.1:98 LOGOUT # 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=c2 #?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 # Cleanup #?*STOP-DAEMON #?GREETER-X-127.0.0.1:98 TERMINATE SIGNAL=15 #?RUNNER DAEMON-EXIT STATUS=0 ubuntu-lightdm-e42f6d6/tests/scripts/xremote-login.conf000066400000000000000000000025031523516304700234030ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/xserver-config.conf000066400000000000000000000014261523516304700235560ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/xserver-fail-start.conf000066400000000000000000000004351523516304700243560ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/scripts/xserver-no-share.conf000066400000000000000000000030371523516304700240250ustar00rootroot00000000000000# # 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 ubuntu-lightdm-e42f6d6/tests/src/000077500000000000000000000000001523516304700170435ustar00rootroot00000000000000ubuntu-lightdm-e42f6d6/tests/src/Makefile.am000066400000000000000000000140701523516304700211010ustar00rootroot00000000000000# Disable compiler optimizations for this section # of programs as it is known to be buggy with LD_PRELOAD. CFLAGS = @CFLAGS@ -O0 noinst_PROGRAMS = dbus-env \ initctl \ plymouth \ test-gobject-greeter \ test-greeter-wrapper \ test-guest-wrapper \ test-runner \ test-script-hook \ test-session \ guest-account \ vnc-client \ X \ 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_QT5 noinst_PROGRAMS += test-qt5-greeter endif if COMPILE_LIBLIGHTDM_QT6 noinst_PROGRAMS += test-qt6-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) 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-qt5-greeter_moc5.cpp: test-qt-greeter.h $(am__v_MOC5_$(V)) $(MOC5) $< -o $@ test-qt6-greeter_moc6.cpp: test-qt-greeter.h $(MOC6) $< -o $@ common_qt_sources = test-qt-greeter.cpp test-qt-greeter.h status.c status.h test_qt5_greeter_SOURCES = $(common_qt_sources) test_qt6_greeter_SOURCES = $(common_qt_sources) nodist_test_qt5_greeter_SOURCES = test-qt5-greeter_moc5.cpp nodist_test_qt6_greeter_SOURCES = test-qt6-greeter_moc6.cpp common_qt_cflags = \ $(WARN_CXXFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_UNIX_CFLAGS) \ $(XCB_CFLAGS) test_qt5_greeter_CFLAGS = $(common_qt_cflags) test_qt6_greeter_CFLAGS = $(common_qt_cflags) common_qt_cxxflags = \ -fPIC \ -I$(top_srcdir)/liblightdm-qt \ $(GLIB_CFLAGS) test_qt5_greeter_CXXFLAGS = \ $(common_qt_cxxflags) \ -DQT_DISABLE_DEPRECATED_BEFORE="QT_VERSION_CHECK(4, 0, 0)" \ $(LIBLIGHTDM_QT5_CFLAGS) test_qt6_greeter_CXXFLAGS = \ $(common_qt_cxxflags) \ -DQT_DISABLE_DEPRECATED_BEFORE="QT_VERSION_CHECK(5, 0, 0)" \ $(LIBLIGHTDM_QT6_CFLAGS) common_qt_ldadd = \ -L$(top_builddir)/liblightdm-gobject \ -llightdm-gobject-1 \ -L$(top_builddir)/liblightdm-qt \ $(GLIB_LIBS) \ $(GIO_UNIX_LIBS) \ $(XCB_LIBS) test_qt5_greeter_LDADD = \ $(common_qt_ldadd) \ -llightdm-qt5-3 \ $(LIBLIGHTDM_QT5_LIBS) test_qt6_greeter_LDADD = \ $(common_qt_ldadd) \ -llightdm-qt6-3 \ $(LIBLIGHTDM_QT6_LIBS) test_session_SOURCES = test-session.c status.c status.h test_session_CFLAGS = \ -I$(top_srcdir)/liblightdm-gobject \ $(WARN_CFLAGS) \ $(GLIB_CFLAGS) \ $(GIO_UNIX_CFLAGS) \ $(XCB_CFLAGS) test_session_LDADD = \ -L$(top_builddir)/liblightdm-gobject \ -llightdm-gobject-1 \ $(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) 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-qt5-greeter_moc5.cpp \ test-qt6-greeter_moc6.cpp # Support pretty printing MOC 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 $@ ubuntu-lightdm-e42f6d6/tests/src/X.c000066400000000000000000000470461523516304700174310ustar00rootroot00000000000000#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; /* Terminate on server reset */ static gboolean terminate_on_reset = FALSE; static void cleanup (void) { if (lock_path) unlink (lock_path); g_clear_object (&xserver); g_clear_object (&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) { gchar *text = malloc (data_length * 2 + 1); gsize i; for (i = 0; i < data_length; i++) { static gchar hex_char[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; 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) { g_autofree gchar *authentication_data_text = data_to_string (message->authentication_data, message->authentication_data_length); g_autofree gchar *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); 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) { g_autofree gchar *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); } 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 void reset_cb (XServer *server) { if (terminate_on_reset) { status_notify ("%s TERMINATE", id); quit (EXIT_SUCCESS); } } 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 = 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) { if (!xdmcp_client_start (xdmcp_client)) quit (EXIT_FAILURE); const gchar *authentication_names_list = g_hash_table_lookup (params, "AUTHENTICATION-NAMES"); if (!authentication_names_list) authentication_names_list = ""; g_auto(GStrv) authentication_names = g_strsplit (authentication_names_list, " ", -1); xdmcp_client_send_query (xdmcp_client, authentication_names); } else if (strcmp (name, "SEND-REQUEST") == 0) { int request_display_number = display_number; const gchar *text = g_hash_table_lookup (params, "DISPLAY-NUMBER"); if (text) request_display_number = atoi (text); const gchar *addresses_list = g_hash_table_lookup (params, "ADDRESSES"); if (!addresses_list) addresses_list = ""; const gchar *authentication_name = g_hash_table_lookup (params, "AUTHENTICATION-NAME"); if (!authentication_name) authentication_name = ""; const gchar *authentication_data_text = g_hash_table_lookup (params, "AUTHENTICATION-DATA"); if (!authentication_data_text) authentication_data_text = ""; const gchar *authorization_names_list = g_hash_table_lookup (params, "AUTHORIZATION-NAMES"); if (!authorization_names_list) authorization_names_list = ""; const gchar *mfid = g_hash_table_lookup (params, "MFID"); if (!mfid) mfid = ""; g_auto(GStrv) list = g_strsplit (addresses_list, " ", -1); gsize list_length = g_strv_length (list); GInetAddress **addresses = g_malloc (sizeof (GInetAddress *) * (list_length + 1)); gsize i; for (i = 0; i < list_length; i++) addresses[i] = g_inet_address_new_from_string (list[i]); addresses[i] = NULL; gsize authentication_data_length = strlen (authentication_data_text) / 2; g_autofree guint8 *authentication_data = malloc (authentication_data_length); for (gsize 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]); g_auto(GStrv) 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); for (gsize i = 0; addresses[i] != NULL; i++) g_object_unref (addresses[i]); g_free (addresses); } else if (strcmp (name, "SEND-MANAGE") == 0) { guint32 session_id = xdmcp_session_id; const gchar *text = g_hash_table_lookup (params, "SESSION-ID"); if (text) session_id = atoi (text); guint16 manage_display_number = display_number; text = g_hash_table_lookup (params, "DISPLAY-NUMBER"); if (text) manage_display_number = atoi (text); const gchar *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) { guint16 keep_alive_display_number = display_number; const gchar *text = g_hash_table_lookup (params, "DISPLAY-NUMBER"); if (text) keep_alive_display_number = atoi (text); guint32 session_id = xdmcp_session_id; 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) { #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"); g_auto(GStrv) 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; /* TCP listening default changed in 1.17.0 */ listen_tcp = version_compare (1, 17) < 0; gboolean do_xdmcp = FALSE; guint xdmcp_port = 0; const gchar *xdmcp_host = NULL; const gchar *seat = NULL; const gchar *mir_id = NULL; for (int 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, "-terminate") == 0) { terminate_on_reset = TRUE; } 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); g_signal_connect (xserver, X_SERVER_SIGNAL_RESET, G_CALLBACK (reset_cb), NULL); g_autoptr(GString) 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); 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; } g_autofree gchar *lock_filename = g_strdup_printf (".X%d-lock", display_number); lock_path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "tmp", lock_filename, NULL); int lock_file = open (lock_path, O_CREAT | O_EXCL | O_WRONLY, 0444); if (lock_file < 0) { g_autofree gchar *lock_contents = NULL; if (g_file_get_contents (lock_path, &lock_contents, NULL, NULL)) { g_autofree gchar *proc_filename = NULL; pid_t pid; pid = atol (lock_contents); proc_filename = g_strdup_printf ("/proc/%d", pid); if (!g_file_test (proc_filename, G_FILE_TEST_EXISTS)) { g_autofree gchar *socket_dir = NULL; g_autofree gchar *socket_filename = NULL; g_autofree gchar *socket_path = NULL; 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); } 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_clear_pointer (&lock_path, g_free); return EXIT_FAILURE; } g_autofree gchar *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; } 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; } ubuntu-lightdm-e42f6d6/tests/src/Xvnc.c000066400000000000000000000171521523516304700201330ustar00rootroot00000000000000#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); g_clear_object (&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; g_autoptr(GError) error = NULL; GIOStatus status = g_io_channel_read_chars (channel, buffer, 1023, &n_read, &error); if (error) g_warning ("Error reading from VNC client: %s", error->message); 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) { #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); gboolean use_inetd = FALSE; gboolean has_option = FALSE; const gchar *geometry = "640x480"; gint depth = 8; for (int 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) { geometry = 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; } g_autofree gchar *lock_filename = g_strdup_printf (".X%d-lock", display_number); lock_path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "tmp", lock_filename, NULL); int lock_file = open (lock_path, O_CREAT | O_EXCL | O_WRONLY, 0444); if (lock_file < 0) { g_autofree gchar *lock_contents = NULL; if (g_file_get_contents (lock_path, &lock_contents, NULL, NULL)) { pid_t pid = atol (lock_contents); g_autofree gchar *proc_filename = g_strdup_printf ("/proc/%d", pid); if (!g_file_test (proc_filename, G_FILE_TEST_EXISTS)) { g_autofree gchar *socket_dir = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "tmp", ".X11-unix", NULL); g_mkdir_with_parents (socket_dir, 0755); g_autofree gchar *socket_filename = g_strdup_printf ("X%d", display_number); g_autofree gchar *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); } 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_clear_pointer (&lock_path, g_free); return EXIT_FAILURE; } g_autofree gchar *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; } if (!x_server_start (xserver)) return EXIT_FAILURE; g_main_loop_run (loop); cleanup (); return exit_status; } ubuntu-lightdm-e42f6d6/tests/src/dbus-env.c000066400000000000000000000043461523516304700207410ustar00rootroot00000000000000#include #include #include #include #include #include #include static gchar * create_bus (const gchar *config_file, GPid *pid) { int name_pipe[2]; if (pipe (name_pipe) < 0) { g_warning ("Error creating pipe: %s", strerror (errno)); exit (EXIT_FAILURE); } g_autofree gchar *command = g_strdup_printf ("dbus-daemon --config-file=%s --print-address=%d", config_file, name_pipe[1]); gchar **argv; g_autoptr(GError) error = NULL; if (!g_shell_parse_argv (command, NULL, &argv, &error)) { g_warning ("Error parsing command line: %s", error->message); exit (EXIT_FAILURE); } 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); } gchar address[1024]; ssize_t 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) { g_autofree gchar *system_conf_file = g_build_filename (DATADIR, "system.conf", NULL); GPid system_bus_pid; g_autofree gchar *system_bus_address = create_bus (system_conf_file, &system_bus_pid); g_setenv ("DBUS_SYSTEM_BUS_ADDRESS", system_bus_address, TRUE); g_autofree gchar *session_conf_file = g_build_filename (DATADIR, "session.conf", NULL); GPid session_bus_pid; g_autofree gchar *session_bus_address = create_bus (session_conf_file, &session_bus_pid); g_setenv ("DBUS_SESSION_BUS_ADDRESS", session_bus_address, TRUE); GPid child_pid = fork (); if (child_pid == 0) { execvp (argv[1], argv + 1); _exit (EXIT_FAILURE); } int status; 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; } ubuntu-lightdm-e42f6d6/tests/src/guest-account.c000066400000000000000000000062001523516304700217660ustar00rootroot00000000000000#include #include #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); g_autofree gchar *passwd_path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "etc", "passwd", NULL); if (argc == 2 && strcmp (argv[1], "add") == 0) { /* Create a unique name */ g_autofree gchar *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; } const gchar *username = strrchr (home_dir, '/') + 1; /* Get the largest UID */ gint max_uid = 1000; FILE *passwd = fopen (passwd_path, "r"); if (passwd) { gchar line[1024]; while (fgets (line, 1024, passwd)) { g_auto(GStrv) tokens = g_strsplit (line, ":", -1); if (g_strv_length (tokens) >= 3) { gint uid = atoi (tokens[2]); if (uid > max_uid) max_uid = uid; } } 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) { const gchar *username = argv[2]; status_notify ("GUEST-ACCOUNT REMOVE USERNAME=%s", username); /* Open a new file for writing */ FILE *passwd = fopen (passwd_path, "r"); g_autofree gchar *path = g_strdup_printf ("%s~", passwd_path); FILE *new_passwd = fopen (path, "w"); /* Copy the old file, omitting our entry */ g_autofree gchar *prefix = g_strdup_printf ("%s:", username); gchar line[1024]; 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; } ubuntu-lightdm-e42f6d6/tests/src/initctl.c000066400000000000000000000012521523516304700206550ustar00rootroot00000000000000#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)) { g_autoptr(GString) status_text = g_string_new ("INIT"); for (int i = 1; i < argc; i++) g_string_append_printf (status_text, " %s", argv[i]); status_notify ("%s", status_text->str); } return EXIT_SUCCESS; } ubuntu-lightdm-e42f6d6/tests/src/libsystem.c000066400000000000000000001456351523516304700212400ustar00rootroot00000000000000#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 #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; }; int gethostname (char *name, size_t len) { snprintf (name, len, "lightdm-test"); return 0; } 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[]) { /* Get groups we are a member of */ const gchar *group_list = g_getenv ("LIGHTDM_TEST_GROUPS"); if (!group_list) group_list = ""; g_auto(GStrv) groups = g_strsplit (group_list, ",", -1); gint groups_length = g_strv_length (groups); if (size != 0) { if (groups_length > size) { errno = EINVAL; return -1; } for (int i = 0; groups[i]; i++) list[i] = atoi (groups[i]); } return groups_length; } #ifdef HAVE___GETGROUPS_CHK int __getgroups_chk (int size, gid_t list[], size_t listlen); int __getgroups_chk (int size, gid_t list[], size_t listlen) { return getgroups (size, list); } #endif int setgroups (size_t size, const gid_t *list) { g_autoptr(GString) group_list = g_string_new (""); for (size_t 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); 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) { // 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); /* * Don't redirect /tmp/dbus-* so that the test runner and its invoked * LightDM can interact with the D-Bus daemon launched by dbus-env.c. The * D-Bus config has unix:dir=/tmp, and with that config the * D-Bus specification [1] says that the daemon will create a socket file * whose name matches /tmp/dbus-*. * * (If the configs had unix:tmpdir instead of unix:dir, dbus-daemon would be * allowed, but not required, to create abstract sockets instead of * file-based sockets. Abstract sockets are unaffected by the redirection * of /tmp to $LIGHTDM_TEST_ROOT because they don't actually exist in the * filesystem. That seems like a good feature in this case, but not all * systems support abstract sockets, and starting with v1.15.2 dbus-daemon * doesn't use abstract sockets even on systems that support them [2]. * Thus, an exception for /tmp/dbus-* is required here regardless. To avoid * platform-specific cold code paths, unix:dir is used to force the use of * normal socket files.) * * [1] https://dbus.freedesktop.org/doc/dbus-specification.html#transports-unix-domain-sockets-addresses * [2] https://gitlab.freedesktop.org/dbus/dbus/-/blob/35ade3c8f7aca16d1c6289828a2597859d1c503b/NEWS#L129-L147 */ if (g_str_has_prefix (path, "/tmp/dbus-")) 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) = 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; } g_autofree gchar *new_path = redirect_path (pathname); return _open (new_path, flags, mode); } #ifndef __USE_FILE_OFFSET64 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); } #endif 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) = dlsym (RTLD_NEXT, "fopen"); g_autofree gchar *new_path = redirect_path (path); return _fopen (new_path, mode); } int unlinkat (int dirfd, const char *pathname, int flags) { int (*_unlinkat) (int dirfd, const char *pathname, int flags) = dlsym (RTLD_NEXT, "unlinkat"); g_autofree gchar *new_path = redirect_path (pathname); return _unlinkat (dirfd, new_path, flags); } #ifndef __USE_FILE_OFFSET64 int creat (const char *pathname, mode_t mode) { int (*_creat) (const char *pathname, mode_t mode) = dlsym (RTLD_NEXT, "creat"); g_autofree gchar *new_path = redirect_path (pathname); return _creat (new_path, mode); } #endif int creat64 (const char *pathname, mode_t mode) { int (*_creat64) (const char *pathname, mode_t mode) = dlsym (RTLD_NEXT, "creat64"); g_autofree gchar *new_path = redirect_path (pathname); return _creat64 (new_path, mode); } int access (const char *pathname, int mode) { int (*_access) (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; g_autofree gchar *new_path = redirect_path (pathname); return _access (new_path, mode); } #ifndef __USE_FILE_OFFSET64 int stat (const char *path, struct stat *buf) { int (*_stat) (const char *path, struct stat *buf) = dlsym (RTLD_NEXT, "stat"); g_autofree gchar *new_path = redirect_path (path); return _stat (new_path, buf); } #endif int stat64 (const char *path, struct stat64 *buf) { int (*_stat64) (const char *path, struct stat64 *buf) = dlsym (RTLD_NEXT, "stat64"); g_autofree gchar *new_path = redirect_path (path); return _stat64 (new_path, buf); } // glibc 2.33 and newer does not declare these functions in a header file #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wmissing-prototypes" int __xstat (int version, const char *path, struct stat *buf) { int (*___xstat) (int version, const char *path, struct stat *buf) = dlsym (RTLD_NEXT, "__xstat"); g_autofree gchar *new_path = redirect_path (path); return ___xstat (version, new_path, buf); } int __xstat64 (int version, const char *path, struct stat64 *buf) { int (*___xstat64) (int version, const char *path, struct stat64 *buf) = dlsym (RTLD_NEXT, "__xstat64"); g_autofree gchar *new_path = redirect_path (path); return ___xstat64 (version, new_path, buf); } 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) = dlsym (RTLD_NEXT, "__fxstatat"); g_autofree gchar *new_path = redirect_path (pathname); return ___fxstatat (ver, dirfd, new_path, buf, flags); } 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) = dlsym (RTLD_NEXT, "__fxstatat64"); g_autofree gchar *new_path = redirect_path (pathname); return ___fxstatat64 (ver, dirfd, new_path, buf, flags); } #pragma GCC diagnostic pop DIR * opendir (const char *name) { DIR *(*_opendir) (const char *name) = dlsym (RTLD_NEXT, "opendir"); g_autofree gchar *new_path = redirect_path (name); return _opendir (new_path); } int mkdir (const char *pathname, mode_t mode) { int (*_mkdir) (const char *pathname, mode_t mode) = dlsym (RTLD_NEXT, "mkdir"); g_autofree gchar *new_path = redirect_path (pathname); return _mkdir (new_path, mode); } 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) = dlsym (RTLD_NEXT, "chmod"); g_autofree gchar *new_path = redirect_path (path); return _chmod (new_path, mode); } int ioctl (int d, unsigned long request, ...) { int (*_ioctl) (int d, int request, ...) = dlsym (RTLD_NEXT, "ioctl"); if (d > 0 && d == tty_fd) { va_list ap; switch (request) { case VT_GETSTATE: va_start (ap, request); struct vt_stat *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); int 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; va_start (ap, request); void *data = va_arg (ap, void *); va_end (ap); return _ioctl (d, request, data); } } static void add_port_redirect (int requested_port, int redirected_port) { g_autoptr(GKeyFile) file = g_key_file_new (); g_autofree gchar *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_autofree gchar *name = g_strdup_printf ("%d", requested_port); g_key_file_set_integer (file, name, "redirected", redirected_port); g_autofree gchar *data = g_key_file_to_data (file, NULL, NULL); g_file_set_contents (path, data, -1, NULL); } static int find_port_redirect (int port) { g_autoptr(GKeyFile) file = g_key_file_new (); g_autofree gchar *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_autofree gchar *name = g_strdup_printf ("%d", port); return g_key_file_get_integer (file, name, "redirected", NULL); } int bind (int sockfd, const struct sockaddr *addr, socklen_t addrlen) { int (*_bind) (int sockfd, const struct sockaddr *addr, socklen_t addrlen) = dlsym (RTLD_NEXT, "bind"); const struct sockaddr *modified_addr = addr; struct sockaddr_in temp_addr_in; struct sockaddr_in6 temp_addr_in6; struct sockaddr_un temp_addr_un; int port = 0, redirected_port = 0; const char *path; switch (addr->sa_family) { case AF_UNIX: path = ((const struct sockaddr_un *) addr)->sun_path; if (path[0] != '\0') { g_autofree gchar *new_path = redirect_path (path); memcpy (&temp_addr_un, addr, sizeof (struct sockaddr_un)); strncpy (temp_addr_un.sun_path, new_path, sizeof (temp_addr_un.sun_path) - 1); modified_addr = (struct sockaddr *) &temp_addr_un; } break; case AF_INET: port = ntohs (((const struct sockaddr_in *) addr)->sin_port); redirected_port = find_port_redirect (port); memcpy (&temp_addr_in, addr, sizeof (struct sockaddr_in)); modified_addr = (struct sockaddr *) &temp_addr_in; if (redirected_port != 0) temp_addr_in.sin_port = htons (redirected_port); else temp_addr_in.sin_port = 0; break; case AF_INET6: port = ntohs (((const struct sockaddr_in6 *) addr)->sin6_port); redirected_port = find_port_redirect (port); memcpy (&temp_addr_in6, addr, sizeof (struct sockaddr_in6)); modified_addr = (struct sockaddr *) &temp_addr_in6; if (redirected_port != 0) temp_addr_in6.sin6_port = htons (redirected_port); else temp_addr_in6.sin6_port = 0; break; } int retval = _bind (sockfd, modified_addr, addrlen); socklen_t temp_addr_len; switch (addr->sa_family) { case AF_INET: temp_addr_len = sizeof (temp_addr_in); getsockname (sockfd, &temp_addr_in, &temp_addr_len); if (redirected_port == 0) { redirected_port = ntohs (temp_addr_in.sin_port); add_port_redirect (port, redirected_port); } break; case AF_INET6: temp_addr_len = sizeof (temp_addr_in6); getsockname (sockfd, &temp_addr_in6, &temp_addr_len); if (redirected_port == 0) { redirected_port = ntohs (temp_addr_in6.sin6_port); add_port_redirect (port, redirected_port); } break; } return retval; } #include int connect (int sockfd, const struct sockaddr *addr, socklen_t addrlen) { int (*_connect) (int sockfd, const struct sockaddr *addr, socklen_t addrlen) = dlsym (RTLD_NEXT, "connect"); const struct sockaddr *modified_addr = addr; struct sockaddr_in temp_addr_in; struct sockaddr_in6 temp_addr_in6; struct sockaddr_un temp_addr_un; int port = 0, redirected_port = 0; const char *path; switch (addr->sa_family) { case AF_UNIX: path = ((const struct sockaddr_un *) addr)->sun_path; if (path[0] != '\0') { g_autofree gchar *new_path = redirect_path (path); memcpy (&temp_addr_un, addr, addrlen); strncpy (temp_addr_un.sun_path, new_path, sizeof (temp_addr_un.sun_path) - 1); modified_addr = (struct sockaddr *) &temp_addr_un; } break; 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_in, addr, sizeof (struct sockaddr_in)); temp_addr_in.sin_port = htons (redirected_port); modified_addr = (struct sockaddr *) &temp_addr_in; } 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_addr_in6, addr, sizeof (struct sockaddr_in6)); temp_addr_in6.sin6_port = htons (redirected_port); modified_addr = (struct sockaddr *) &temp_addr_in6; } 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) { ssize_t (*_sendto) (int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen) = dlsym (RTLD_NEXT, "sendto"); int port, redirected_port; const char *path; const struct sockaddr *modified_addr = dest_addr; struct sockaddr_in temp_addr_in; struct sockaddr_in6 temp_addr_in6; struct sockaddr_un temp_addr_un; switch (dest_addr->sa_family) { case AF_UNIX: path = ((const struct sockaddr_un *) dest_addr)->sun_path; if (path[0] != '\0') { g_autofree gchar *new_path = redirect_path (path); memcpy (&temp_addr_un, dest_addr, sizeof (struct sockaddr_un)); strncpy (temp_addr_un.sun_path, new_path, sizeof (temp_addr_un.sun_path) - 1); modified_addr = (struct sockaddr *) &temp_addr_un; } break; 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_in, dest_addr, sizeof (struct sockaddr_in)); temp_addr_in.sin_port = htons (redirected_port); modified_addr = (struct sockaddr *) &temp_addr_in; } 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_addr_in6, dest_addr, sizeof (struct sockaddr_in6)); temp_addr_in6.sin6_port = htons (redirected_port); modified_addr = (struct sockaddr *) &temp_addr_in6; } break; } return _sendto (sockfd, buf, len, flags, modified_addr, addrlen); } int close (int fd) { if (fd > 0 && fd == tty_fd) return 0; int (*_close) (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) { g_list_free_full (user_entries, free_user); user_entries = NULL; getpwent_link = NULL; g_autofree gchar *path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "etc", "passwd", NULL); g_autofree gchar *data = NULL; g_autoptr(GError) error = NULL; if (!g_file_get_contents (path, &data, NULL, &error)) { g_warning ("Error loading passwd file: %s", error->message); return; } g_auto(GStrv) lines = g_strsplit (data, "\n", -1); for (gint i = 0; lines[i]; i++) { const gchar *line = g_strstrip (lines[i]); g_auto(GStrv) 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); } } } 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) { load_passwd_file (); for (GList *link = user_entries; link; link = link->next) { struct passwd *entry = link->data; if (strcmp (entry->pw_name, name) == 0) return entry; } return NULL; } struct passwd * getpwuid (uid_t uid) { load_passwd_file (); for (GList *link = user_entries; link; link = link->next) { struct passwd *entry = link->data; if (entry->pw_uid == uid) return entry; } return NULL; } 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) { g_list_free_full (group_entries, free_group); group_entries = NULL; g_autofree gchar *path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "etc", "group", NULL); g_autofree gchar *data = NULL; g_autoptr(GError) error = NULL; if (!g_file_get_contents (path, &data, NULL, &error)) { g_warning ("Error loading group file: %s", error->message); return; } g_auto(GStrv) lines = g_strsplit (data, "\n", -1); for (gint i = 0; lines[i]; i++) { const gchar *line = g_strstrip (lines[i]); g_auto(GStrv) 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); } } } struct group * getgrnam (const char *name) { load_group_file (); for (GList *link = group_entries; link; link = link->next) { struct group *entry = link->data; if (strcmp (entry->gr_name, name) == 0) return entry; } return NULL; } struct group * getgrgid (gid_t gid) { load_group_file (); for (GList *link = group_entries; link; link = link->next) { struct group *entry = link->data; if (entry->gr_gid == gid) return entry; } return NULL; } int pam_start (const char *service_name, const char *user, const struct pam_conv *conversation, pam_handle_t **pamh) { pam_handle_t *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)) { g_autoptr(GString) 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); } 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) { connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { g_autoptr(GString) 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); } gboolean password_matches = FALSE; if (strcmp (pamh->service_name, "test-remote") == 0) { struct pam_message **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:"; struct pam_response *resp = NULL; int 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) { struct pam_message **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; struct pam_response *resp = NULL; int 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 */ struct passwd *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 { struct pam_message **msg = malloc (sizeof (struct pam_message *) * 5); int n_messages = 0; 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:"; int password_index = n_messages; n_messages++; struct pam_response *resp = NULL; int result = pamh->conversation.conv (n_messages, (const struct pam_message **) msg, &resp, pamh->conversation.appdata_ptr); for (int 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 (int 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) { g_autofree char *name = strdup (name_value); for (int i = 0; name[i]; i++) if (name[i] == '=') name[i] = '\0'; int i; for (i = 0; pamh->envlist[i]; i++) { if (get_env_value (pamh->envlist[i], name)) break; } 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) { for (int i = 0; pamh->envlist[i]; i++) { const char *value = get_env_value (pamh->envlist[i], name); if (value) return value; } return NULL; } char ** pam_getenvlist (pam_handle_t *pamh) { return pamh->envlist; } int pam_set_item (pam_handle_t *pamh, int item_type, const void *item) { if (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 (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) { connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { g_autoptr(GString) 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); } if (strcmp (pamh->user, "session-error") == 0) return PAM_SESSION_ERR; if (strcmp (pamh->user, "make-home-dir") == 0) { struct passwd *entry = getpwnam (pamh->user); g_mkdir_with_parents (entry->pw_dir, 0755); } if (strcmp (pamh->user, "change-home-dir") == 0) { struct passwd *entry = getpwnam (pamh->user); /* Actual home dir is changed by PAM, differing from passwd, strip off trailing /home/ and replace with /users/ */ const char *endp = pamh->user; int slashes = 0; while (*endp++ != '\0'); while (slashes < 2 && endp > pamh->user) { if (*endp-- == '/') slashes++; } g_autofree gchar *changed_home = g_strdup_printf("%.*s/users/%s\n", (int)(endp - entry->pw_dir), entry->pw_dir, pamh->user); g_mkdir_with_parents (changed_home, 0755); g_autofree gchar *e = g_strdup_printf ("HOME=%s", changed_home); pam_putenv (pamh, e); } /* Open logind session */ g_autoptr(GError) error = NULL; g_autoptr(GVariant) 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) { const gchar *id; g_variant_get (result, "(&so)", &id, NULL); g_autofree gchar *e = g_strdup_printf ("XDG_SESSION_ID=%s", id); pam_putenv (pamh, e); } else g_printerr ("Failed to create logind session: %s\n", error->message); return PAM_SUCCESS; } int pam_close_session (pam_handle_t *pamh, int flags) { connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { g_autoptr(GString) 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); } return PAM_SUCCESS; } int pam_acct_mgmt (pam_handle_t *pamh, int flags) { connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { g_autoptr(GString) 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); } 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) { connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { g_autoptr(GString) 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); } struct pam_message **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:"; struct pam_response *resp = NULL; int 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 */ struct passwd *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) { connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { g_autoptr(GString) 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); } /* Put the test directories into the path */ g_autofree gchar *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); 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 = getgrnam ("test-group"); if (group) { int groups_length = getgroups (0, NULL); if (groups_length < 0) return PAM_SYSTEM_ERR; gid_t *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) { connect_status (); if (g_key_file_get_boolean (config, "test-pam", "log-events", NULL)) { g_autoptr(GString) status = g_string_new (""); g_string_append_printf (status, "%s END", pamh->id); status_notify ("%s", status->str); } 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)) { g_autoptr(GString) 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); } g_string_append_printf (status, " LINE=%s", ut->ut_line); g_string_append_printf (status, " ID=%s", ut->ut_id); g_string_append_printf (status, " USER=%s", ut->ut_user); g_string_append_printf (status, " HOST=%s", ut->ut_host); status_notify ("%s", status->str); } 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)) { g_autoptr(GString) 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); } } 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 = 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) { g_autoptr(GError) error = NULL; c->socket = g_socket_new (G_SOCKET_FAMILY_UNIX, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_DEFAULT, &error); if (c->socket == NULL) { g_printerr ("%s\n", error->message); c->error = XCB_CONN_ERROR; } } if (c->error == 0) { /* Skip the hostname, we'll assume it's localhost */ g_autofree gchar *d = g_strdup_printf (".x%s", strchr (display, ':')); g_autofree gchar *socket_path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), d, NULL); g_autoptr(GSocketAddress) address = g_unix_socket_address_new (socket_path); g_autoptr(GError) error = NULL; if (!g_socket_connect (c->socket, address, NULL, &error)) { g_printerr ("Failed to connect to X socket %s: %s\n", socket_path, error->message); c->error = XCB_CONN_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_socket_close (c->socket, NULL); 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) { connect_status (); if (!g_key_file_get_boolean (config, "test-audit-config", "check-events", NULL)) return 1; g_autofree gchar *type_string = NULL; 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); return 1; } #endif ubuntu-lightdm-e42f6d6/tests/src/lightdm-session000077500000000000000000000002711523516304700221020ustar00rootroot00000000000000#!/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 ubuntu-lightdm-e42f6d6/tests/src/plymouth.c000066400000000000000000000033001523516304700210640ustar00rootroot00000000000000#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; } ubuntu-lightdm-e42f6d6/tests/src/status.c000066400000000000000000000120111523516304700205250ustar00rootroot00000000000000#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; g_autoptr(GError) error = NULL; ssize_t n_read = g_socket_receive (socket, (gchar *)&length, sizeof (length), NULL, &error); gchar buffer[1024]; if (n_read > 0) n_read = g_socket_receive (socket, buffer, length, NULL, &error); if (error) { if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CONNECTION_CLOSED)) n_read = 0; else g_warning ("Error reading from socket: %s", error->message); } if (n_read == 0) { if (request_func) request_func (NULL, NULL); return FALSE; } if (n_read <= 0 || !request_func) return TRUE; buffer[n_read] = '\0'; const gchar *c = buffer; const gchar *start = c; int l = 0; while (*c && !isspace (*c)) { c++; l++; } g_autofree gchar *id = g_strdup_printf ("%.*s", l, start); if (g_strcmp0 (id, filter_id) != 0) return TRUE; while (isspace (*c)) c++; start = c; l = 0; while (*c && !isspace (*c)) { c++; l++; } g_autofree gchar *name = g_strdup_printf ("%.*s", l, start); g_autoptr(GHashTable) params = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); while (TRUE) { while (isspace (*c)) c++; const gchar *start = c; while (*c && !isspace (*c) && *c != '=') c++; if (*c == '\0') break; g_autofree gchar *param_name = g_strdup_printf ("%.*s", (int) (c - start), start); g_autofree gchar *param_value = NULL; if (*c == '=') { c++; while (isspace (*c)) c++; if (*c == '\"') { c++; g_autoptr(GString) value = g_string_new (""); gboolean escaped = FALSE; 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 = g_strdup (value->str); 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, g_steal_pointer (¶m_name), g_steal_pointer (¶m_value)); } request_func (name, params); return TRUE; } gboolean status_connect (StatusRequestFunc request_cb, const gchar *id) { request_func = request_cb; filter_id = g_strdup (id); g_autoptr(GError) error = NULL; status_socket = g_socket_new (G_SOCKET_FAMILY_UNIX, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_DEFAULT, &error); if (!status_socket) { g_printerr ("Unable to open socket for status: %s\n", error->message); return FALSE; } g_autofree gchar *path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), ".s", NULL); g_autoptr(GSocketAddress) address = g_unix_socket_address_new (path); if (!g_socket_connect (status_socket, address, NULL, &error)) { g_printerr ("Failed to connect to status socket %s: %s\n", path, error->message); g_clear_object (&status_socket); return FALSE; } GSource *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, ...) { gchar status[1024]; va_list ap; va_start (ap, format); vsnprintf (status, 1024, format, ap); va_end (ap); if (status_socket) { int length = strlen (status); g_autoptr(GError) error = NULL; if (g_socket_send (status_socket, (gchar *) &length, sizeof (length), NULL, &error) < 0 || g_socket_send (status_socket, status, strlen (status), NULL, &error) < 0) g_printerr ("Failed to write to status socket: %s\n", error->message); else return; } g_printerr ("%s\n", status); } ubuntu-lightdm-e42f6d6/tests/src/status.h000066400000000000000000000006071523516304700205420ustar00rootroot00000000000000#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_ */ ubuntu-lightdm-e42f6d6/tests/src/test-gobject-greeter.c000066400000000000000000000472221523516304700232430ustar00rootroot00000000000000/* -*- 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) { 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)) status_notify ("%s AUTOLOGIN-USER-HINT=%s", greeter_id, lightdm_greeter_get_autologin_user_hint (greeter)); if (lightdm_greeter_get_autologin_guest_hint (greeter)) status_notify ("%s AUTOLOGIN-GUEST-HINT", greeter_id); if (lightdm_greeter_get_autologin_session_hint (greeter)) status_notify ("%s AUTOLOGIN-SESSION-HINT=%s", greeter_id, lightdm_greeter_get_autologin_session_hint (greeter)); if (lightdm_greeter_get_autologin_timeout_hint (greeter) != 0) status_notify ("%s AUTOLOGIN-TIMEOUT-HINT=%d", greeter_id, lightdm_greeter_get_autologin_timeout_hint (greeter)); } 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); g_autoptr(GError) error = NULL; if (!lightdm_greeter_start_session_finish (greeter, result, &error)) status_notify ("%s SESSION-FAILED ERROR=%s", greeter_id, error->message); } static void write_shared_data_finished (GObject *object, GAsyncResult *result, gpointer data) { LightDMGreeter *greeter = LIGHTDM_GREETER (object); g_autofree gchar *test_data = data; g_autoptr(GError) error = NULL; g_autofree gchar *dir = lightdm_greeter_ensure_shared_data_dir_finish (greeter, result, &error); if (!dir) { status_notify ("%s WRITE-SHARED-DATA ERROR=%s", greeter_id, error->message); return; } g_autofree gchar *path = g_build_filename (dir, "data", NULL); FILE *f; 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); if (f) fclose (f); } static void read_shared_data_finished (GObject *object, GAsyncResult *result, gpointer data) { LightDMGreeter *greeter = LIGHTDM_GREETER (object); g_autoptr(GError) error = NULL; g_autofree gchar *dir = lightdm_greeter_ensure_shared_data_dir_finish (greeter, result, &error); if (!dir) { status_notify ("%s READ-SHARED-DATA ERROR=%s", greeter_id, error->message); return; } g_autofree gchar *path = g_build_filename (dir, "data", NULL); g_autofree gchar *contents = 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); } static int compare_session (gconstpointer a, gconstpointer b) { return strcmp (lightdm_session_get_key (LIGHTDM_SESSION (a)), lightdm_session_get_key (LIGHTDM_SESSION (b))); } 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) { g_autoptr(GError) error = NULL; if (!lightdm_greeter_authenticate (greeter, g_hash_table_lookup (params, "USERNAME"), &error)) status_notify ("%s FAIL-AUTHENTICATE ERROR=%s", greeter_id, error->message); } else if (strcmp (name, "AUTHENTICATE-GUEST") == 0) { g_autoptr(GError) error = NULL; if (!lightdm_greeter_authenticate_as_guest (greeter, &error)) status_notify ("%s FAIL-AUTHENTICATE-GUEST ERROR=%s", greeter_id, error->message); } else if (strcmp (name, "AUTHENTICATE-AUTOLOGIN") == 0) { g_autoptr(GError) error = NULL; if (!lightdm_greeter_authenticate_autologin (greeter, &error)) status_notify ("%s FAIL-AUTHENTICATE-AUTOLOGIN ERROR=%s", greeter_id, error->message); } else if (strcmp (name, "AUTHENTICATE-REMOTE") == 0) { g_autoptr(GError) error = NULL; if (!lightdm_greeter_authenticate_remote (greeter, g_hash_table_lookup (params, "SESSION"), NULL, &error)) status_notify ("%s FAIL-AUTHENTICATE-REMOTE ERROR=%s", greeter_id, error->message); } else if (strcmp (name, "RESPOND") == 0) { g_autoptr(GError) error = NULL; if (!lightdm_greeter_respond (greeter, g_hash_table_lookup (params, "TEXT"), &error)) status_notify ("%s FAIL-RESPOND ERROR=%s", greeter_id, error->message); } else if (strcmp (name, "CANCEL-AUTHENTICATION") == 0) { g_autoptr(GError) error = NULL; if (!lightdm_greeter_cancel_authentication (greeter, &error)) status_notify ("%s FAIL-CANCEL-AUTHENTICATION ERROR=%s", greeter_id, error->message); } 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) { const gchar *username = g_hash_table_lookup (params, "USERNAME"); LightDMUser *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) { const gchar *username = g_hash_table_lookup (params, "USERNAME"); g_auto(GStrv) fields = NULL; 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; } LightDMUser *user = lightdm_user_list_get_user_by_name (lightdm_user_list_get_instance (), username); const gchar *image = lightdm_user_get_image (user); const gchar *background = lightdm_user_get_background (user); const gchar *language = lightdm_user_get_language (user); const gchar *layout = lightdm_user_get_layout (user); const gchar * const * layouts = lightdm_user_get_layouts (user); g_autofree gchar *layouts_text = g_strjoinv (";", (gchar **) layouts); const gchar *session = lightdm_user_get_session (user); g_autoptr(GString) status_text = g_string_new (""); g_string_append_printf (status_text, "%s LOG-USER USERNAME=%s", greeter_id, username); for (int 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)); } status_notify ("%s", status_text->str); } else if (strcmp (name, "LOG-USER-LIST") == 0) { GList *users = lightdm_user_list_get_users (lightdm_user_list_get_instance ()); for (GList *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, "LOG-SESSIONS") == 0) { GList *sessions = lightdm_get_sessions (); sessions = g_list_sort (sessions, compare_session); for (GList *link = sessions; link; link = link->next) { LightDMSession *session = link->data; status_notify ("%s LOG-SESSION KEY=%s", greeter_id, lightdm_session_get_key (session)); } } 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) { g_autoptr(GError) error = NULL; if (!lightdm_suspend (&error)) status_notify ("%s FAIL-SUSPEND", greeter_id); } 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) { g_autoptr(GError) error = NULL; if (!lightdm_hibernate (&error)) status_notify ("%s FAIL-HIBERNATE", greeter_id); } 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) { g_autoptr(GError) error = NULL; if (!lightdm_restart (&error)) status_notify ("%s FAIL-RESTART", greeter_id); } 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) { g_autoptr(GError) error = NULL; if (!lightdm_shutdown (&error)) status_notify ("%s FAIL-SHUTDOWN", greeter_id); } } 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); g_autoptr(GError) error = NULL; if (!lightdm_greeter_connect_to_daemon_finish (greeter, result, &error)) { status_notify ("%s FAIL-CONNECT-DAEMON ERROR=%s", greeter_id, error->message); 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) { #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif const gchar *display = getenv ("DISPLAY"); const gchar *xdg_seat = getenv ("XDG_SEAT"); const gchar *xdg_vtnr = getenv ("XDG_VTNR"); const gchar *xdg_session_cookie = getenv ("XDG_SESSION_COOKIE"); const gchar *xdg_session_class = getenv ("XDG_SESSION_CLASS"); const gchar *xdg_session_type = getenv ("XDG_SESSION_TYPE"); const gchar *mir_server_host_socket = getenv ("MIR_SERVER_HOST_SOCKET"); const gchar *mir_vt = getenv ("MIR_SERVER_VT"); const gchar *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_server_host_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); g_autoptr(GString) 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); config = g_key_file_new (); g_autofree gchar *path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL); g_key_file_load_from_file (config, path, G_KEY_FILE_NONE, NULL); if (g_key_file_get_boolean (config, "test-greeter-config", "exit-on-startup", 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); 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); return return_value; } return exit_code; } ubuntu-lightdm-e42f6d6/tests/src/test-greeter-wrapper.c000066400000000000000000000007451523516304700233050ustar00rootroot00000000000000#include #include #include "status.h" int main (int argc, char **argv) { status_connect (NULL, NULL); const gchar *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; } ubuntu-lightdm-e42f6d6/tests/src/test-guest-wrapper.c000066400000000000000000000007371523516304700230000ustar00rootroot00000000000000#include #include #include "status.h" int main (int argc, char **argv) { status_connect (NULL, NULL); const gchar *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; } ubuntu-lightdm-e42f6d6/tests/src/test-python-greeter000077500000000000000000000260411523516304700227250ustar00rootroot00000000000000#!/usr/bin/python3 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.encode ()) 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).decode ('utf-8') 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: try: greeter.start_session_sync (None) except GLib.Error as e: status_notify ('%s SESSION-FAILED ERROR=%s' % (greeter_id, e.message)) r = '%s START-SESSION SESSION=' % greeter_id if request.startswith (r): try: greeter.start_session_sync (request[len(r):]) except GLib.Error as e: status_notify ('%s SESSION-FAILED ERROR=%s' % (greeter_id, e.message)) 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-SESSIONS' % greeter_id if request == r: sessions = LightDM.get_sessions (); sessions.sort (key = lambda x: x.get_key ()) for session in sessions: status_notify ('%s LOG-SESSION KEY=%s' % (greeter_id, session.get_key ())) 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) if greeter.get_autologin_user_hint () is not None: status_notify ('%s AUTOLOGIN-USER-HINT=%s' % (greeter_id, greeter.get_autologin_user_hint ())) if greeter.get_autologin_session_hint () is not None: status_notify ('%s AUTOLOGIN-SESSION-HINT=%s' % (greeter_id, greeter.get_autologin_session_hint ())) if greeter.get_autologin_guest_hint (): status_notify ('%s AUTOLOGIN-GUEST-HINT' % greeter_id) if greeter.get_autologin_timeout_hint () != 0: status_notify ('%s AUTOLOGIN-TIMEOUT-HINT=%s' % (greeter_id, greeter.get_autologin_timeout_hint ())) 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) try: greeter.connect_to_daemon_sync () except: 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 () ubuntu-lightdm-e42f6d6/tests/src/test-qt-greeter.cpp000066400000000000000000000272151523516304700226120ustar00rootroot00000000000000#include #include #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; static QLightDM::SessionsModel *sessions_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.toLatin1 ().constData ()); } void TestGreeter::showPrompt (QString text, QLightDM::Greeter::PromptType type) { status_notify ("%s SHOW-PROMPT TEXT=\"%s\"", greeter_id, text.toLatin1 ().constData ()); } void TestGreeter::authenticationComplete () { if (authenticationUser () != "") status_notify ("%s AUTHENTICATION-COMPLETE USERNAME=%s AUTHENTICATED=%s", greeter_id, authenticationUser ().toLatin1 ().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 ().toLatin1 ().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); if (autologinUserHint () != "") status_notify ("%s AUTOLOGIN-USER-HINT=%s", greeter_id, autologinUserHint ().toLatin1 ().constData ()); if (autologinGuestHint ()) status_notify ("%s AUTOLOGIN-GUEST-HINT", greeter_id); if (autologinSessionHint () != "") status_notify ("%s AUTOLOGIN-SESSION-HINT=%s", greeter_id, autologinSessionHint ().toLatin1 ().constData ()); if (autologinTimeoutHint () != 0) status_notify ("%s AUTOLOGIN-TIMEOUT-HINT=%d", greeter_id, autologinTimeoutHint ()); } 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 ERROR=%s", greeter_id, "FIXME: Exceptions in Qt"); } else { if (!greeter->startSessionSync ()) status_notify ("%s SESSION-FAILED ERROR=%s", greeter_id, "FIXME: Exceptions in Qt"); } } 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, "LOG-SESSIONS") == 0) { QStringList names; for (int i = 0; i < sessions_model->rowCount (QModelIndex ()); i++) names.append (sessions_model->data (sessions_model->index (i, 0), QLightDM::SessionsModel::KeyRole).toString ()); names.sort (); for (int i = 0; i < names.size (); i++) status_notify ("%s LOG-SESSION KEY=%s", greeter_id, qPrintable (names.at (i))); } 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; g_autoptr(GString) status_text = NULL; #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); 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))); } sessions_model = new QLightDM::SessionsModel(); 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(); } ubuntu-lightdm-e42f6d6/tests/src/test-qt-greeter.h000066400000000000000000000011171523516304700222500ustar00rootroot00000000000000#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(); }; ubuntu-lightdm-e42f6d6/tests/src/test-runner.c000066400000000000000000003373441523516304700215130ustar00rootroot00000000000000#include #include #include #include #include #include #include #include #include #include #include #include #include "../../config.h" /* 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 GDBusConnection *dbus_conn = NULL; 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 { /* * text is the script line with its "#?" prefix removed. (Lines without * that prefix are ignored.) There are two types of lines: * * - If text starts with '*', then text is a command that will trigger * some action when executed (see handle_command). * * - Otherwise, text is a status matcher: a regular expression that is * expected to match a status line emitted by the test code when an * event of interest occurs. */ gchar *text; /* * done is set to true when: * - command line: the command is executed * - status matcher line: it is matched with an emitted status line */ gboolean done; } ScriptLine; /* * script is a list of ScriptLines. To avoid test flakiness caused by event * concurrency, status messages emitted during testing do not have to appear in * the same order as their corresponding status matcher lines in the script. In * effect, the test runner moves event matcher lines up or down to accommodate * the actual observed events. It will not move a matcher line above a previous * FENCE command (if one exists), nor will it move it below the next command * (FENCE or otherwise). Details: * * - When the test code emits a status message, the test runner only considers * the first status matcher line that meets ALL of the following * requirements: * * * The status matcher line has not already been matched with a * previously emitted status message (its done flag is false). * * * The status message and the status matcher line both have the same * prefix. (Prefix is defined as the characters before the first space, * if any.) * * * The status matcher line is before the next FENCE command, if one * exists. * * If no such line exists, or its regular expression does not match, the * test fails. * * Other than the above constraints, the test runner does not care where the * matching status matcher line is in the script. The line could even be * after a command line that has not yet executed (except for FENCE). * * - A command line will not be executed until every line above it is resolved * (observed or executed, depending on the line type). */ 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; typedef struct { guint uid; gchar *user_name; gchar *real_name; gchar *home_directory; gchar *image; gchar *background; gchar *path; guint id; guint extra_id; gchar *language; gchar *xsession; gchar **layouts; gboolean has_messages; gboolean hidden; } AccountsUser; static GList *accounts_users = NULL; typedef struct { gchar *cookie; gchar *path; guint id; gboolean locked; } CKSession; static GList *ck_sessions = NULL; static gint ck_session_index = 0; typedef struct { gchar *id; gchar *path; gboolean can_graphical; gboolean can_multi_session; gboolean can_tty; 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) { 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)); } Process *process; if (lightdm_process && pid == lightdm_process->pid) { process = lightdm_process; lightdm_process = NULL; g_autofree gchar *status_text; 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 = 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; } /* WARNING: This function might return. */ static void quit (int status) { if (!stop) exit_status = status; stop = TRUE; /* Stop all the children */ GHashTableIter iter; 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) { g_autofree gchar *command = g_strdup_printf ("rm -rf %s", temp_dir); if (system (command)) perror ("Failed to delete temp directory"); } exit (status); } /* WARNING: This function might return. */ static void fail (const gchar *event, const gchar *expected) { if (stop) return; g_printerr ("Command line: %s", test_runner_command); g_printerr ("Events:\n"); for (GList *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) { g_autofree gchar *prefix = g_strdup (text); gint i; for (i = 0; prefix[i] != '\0' && prefix[i] != ' '; i++); prefix[i] = '\0'; return g_steal_pointer (&prefix); } static ScriptLine * get_script_line (const gchar *prefix) { gboolean stop_at_fence = prefix != NULL; for (GList *link = script; link; link = link->next) { ScriptLine *line = link->data; if (line->done) continue; if (stop_at_fence && strcmp (line->text, "*FENCE") == 0) break; /* Ignore lines with other prefixes */ if (prefix) { g_autofree gchar *p = get_prefix (line->text); if (strcmp (prefix, p) != 0) continue; } 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) { g_autoptr(GError) error = NULL; g_autoptr(GVariant) r = g_dbus_connection_call_finish (G_DBUS_CONNECTION (bus), result, &error); if (r) check_status ("RUNNER SWITCH-TO-GREETER"); else { g_warning ("Failed to switch to greeter: %s\n", error->message); check_status ("RUNNER SWITCH-TO-GREETER FAILED"); } } static void switch_to_user_done_cb (GObject *bus, GAsyncResult *result, gpointer data) { g_autofree gchar *username = data; g_autoptr(GError) error = NULL; g_autoptr(GVariant) r = g_dbus_connection_call_finish (G_DBUS_CONNECTION (bus), result, &error); g_autofree gchar *status_text = NULL; if (r) status_text = g_strdup_printf ("RUNNER SWITCH-TO-USER USERNAME=%s", username); else { g_warning ("Failed to switch to user: %s\n", error->message); status_text = g_strdup_printf ("RUNNER SWITCH-TO-USER USERNAME=%s FAILED", username); } check_status (status_text); } static void switch_to_guest_done_cb (GObject *bus, GAsyncResult *result, gpointer data) { g_autoptr(GError) error = NULL; g_autoptr(GVariant) r = g_dbus_connection_call_finish (G_DBUS_CONNECTION (bus), result, &error); if (r) check_status ("RUNNER SWITCH-TO-GUEST"); else { g_warning ("Failed to switch to guest: %s\n", error->message); check_status ("RUNNER SWITCH-TO-GUEST FAILED"); } } static void handle_command (const gchar *command) { const gchar *c = command; while (*c && !isspace (*c)) c++; g_autofree gchar *name = g_strdup_printf ("%.*s", (int) (c - command), command); g_autoptr(GHashTable) params = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); while (TRUE) { while (isspace (*c)) c++; const gchar *start = c; while (*c && !isspace (*c) && *c != '=') c++; if (*c == '\0') break; gchar *param_name = g_strdup_printf ("%.*s", (int) (c - start), start); gchar *param_value; if (*c == '=') { c++; while (isspace (*c)) c++; if (*c == '\"') { gboolean escaped = FALSE; g_autoptr(GString) value = NULL; 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 = g_strdup (value->str); 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 = 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 DBUS_SYSTEM_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"), g_getenv ("DBUS_SYSTEM_BUS_ADDRESS"), command_line->str); if (getenv ("DEBUG")) g_print ("Command line: %s\n", test_runner_command); gchar **lightdm_argv; g_autoptr(GError) error = NULL; if (!g_shell_parse_argv (command_line->str, NULL, &lightdm_argv, &error)) { g_warning ("Error parsing command line: %s", error->message); quit (EXIT_FAILURE); } pid_t lightdm_pid; 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); } lightdm_process = watch_process (lightdm_pid); check_status ("RUNNER DAEMON-START"); } else if (strcmp (name, "WAIT") == 0) { /* Stop status timeout */ if (status_timeout) g_source_remove (status_timeout); status_timeout = 0; /* Use a main loop so that our DBus functions are still responsive */ g_autoptr(GMainLoop) loop = g_main_loop_new (NULL, FALSE); const gchar *v = g_hash_table_lookup (params, "DURATION"); int duration = v ? atoi (v) : 1; if (duration < 1) duration = 1; g_timeout_add_seconds (duration, stop_loop, loop); g_main_loop_run (loop); /* Restart status timeout */ status_timeout = g_timeout_add (status_timeout_ms, status_timeout_cb, NULL); } else if (strcmp (name, "FENCE") == 0) { /* * Nothing special needs to be done here because FENCE's behavior is * implemented elsewhere: * - run_commands ensures that every status matcher line above a * command (any command, not just FENCE) has been matched before * executing the command. * - When called from check_status, get_script_line stops at the next * FENCE. */ } else if (strcmp (name, "ADD-SEAT") == 0) { const gchar *id = g_hash_table_lookup (params, "ID"); Login1Seat *seat = add_login1_seat (dbus_conn, id, TRUE); const gchar *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) { const gchar *v = g_hash_table_lookup (params, "DISPLAY"); g_autoptr(GVariant) result = g_dbus_connection_call_sync (dbus_conn, "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); } else if (strcmp (name, "UPDATE-SEAT") == 0) { const gchar *id = g_hash_table_lookup (params, "ID"); Login1Seat *seat = find_login1_seat (id); if (seat) { GVariantBuilder invalidated_properties; g_variant_builder_init (&invalidated_properties, G_VARIANT_TYPE_ARRAY); const gchar *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_autoptr(GError) error = NULL; if (!g_dbus_connection_emit_signal (dbus_conn, NULL, seat->path, "org.freedesktop.DBus.Properties", "PropertiesChanged", g_variant_new ("(sa{sv}as)", "org.freedesktop.login1.Seat", NULL, &invalidated_properties), &error)) g_warning ("Failed to emit PropertiesChanged: %s", error->message); } } else if (strcmp (name, "REMOVE-SEAT") == 0) { const gchar *id = g_hash_table_lookup (params, "ID"); remove_login1_seat (dbus_conn, id); } else if (strcmp (name, "LIST-SEATS") == 0) { g_autoptr(GError) error = NULL; g_autoptr(GVariant) result = g_dbus_connection_call_sync (dbus_conn, "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, &error); g_autoptr(GString) status = g_string_new ("RUNNER LIST-SEATS"); if (result) { g_string_append (status, " SEATS="); g_autoptr(GVariant) value = NULL; g_variant_get (result, "(v)", &value); GVariantIter *iter; g_variant_get (value, "ao", &iter); const gchar *path; int i = 0; while (g_variant_iter_loop (iter, "&o", &path)) { if (i != 0) g_string_append (status, ","); g_string_append (status, path); i++; } } else { if (g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN)) g_string_append_printf (status, " ERROR=SERVICE_UNKNOWN"); else g_string_append_printf (status, " ERROR=%s", error->message); } check_status (status->str); } else if (strcmp (name, "LIST-SESSIONS") == 0) { g_autoptr(GError) error = NULL; g_autoptr(GVariant) result = g_dbus_connection_call_sync (dbus_conn, "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, &error); g_autoptr(GString) status = g_string_new ("RUNNER LIST-SESSIONS"); if (result) { g_string_append (status, " SESSIONS="); g_autoptr(GVariant) value = NULL; g_variant_get (result, "(v)", &value); GVariantIter *iter; g_variant_get (value, "ao", &iter); const gchar *path; int i = 0; while (g_variant_iter_loop (iter, "&o", &path)) { if (i != 0) g_string_append (status, ","); g_string_append (status, path); i++; } } else { if (g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN)) g_string_append_printf (status, " ERROR=SERVICE_UNKNOWN"); else g_string_append_printf (status, " ERROR=%s", error->message); } check_status (status->str); } else if (strcmp (name, "SEAT-CAN-SWITCH") == 0) { const gchar *path = g_hash_table_lookup (params, "PATH"); g_autoptr(GError) error = NULL; g_autoptr(GVariant) result = g_dbus_connection_call_sync (dbus_conn, "org.freedesktop.DisplayManager", path ? path : "/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, &error); g_autoptr(GString) status = g_string_new ("RUNNER SEAT-CAN-SWITCH"); if (path) g_string_append_printf (status, " PATH=%s", path); if (result) { g_autoptr(GVariant) value = NULL; g_variant_get (result, "(v)", &value); g_string_append_printf (status, " CAN-SWITCH=%s", g_variant_get_boolean (value) ? "TRUE" : "FALSE"); } else { if (g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN)) g_string_append_printf (status, " ERROR=SERVICE_UNKNOWN"); else g_string_append_printf (status, " ERROR=%s", error->message); } check_status (status->str); } else if (strcmp (name, "SEAT-HAS-GUEST-ACCOUNT") == 0) { g_autoptr(GError) error = NULL; g_autoptr(GVariant) result = g_dbus_connection_call_sync (dbus_conn, "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, &error); g_autoptr(GString) status = g_string_new ("RUNNER SEAT-HAS-GUEST-ACCOUNT"); if (result) { g_autoptr(GVariant) value = NULL; g_variant_get (result, "(v)", &value); g_string_append_printf (status, " HAS-GUEST-ACCOUNT=%s", g_variant_get_boolean (value) ? "TRUE" : "FALSE"); } else { if (g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN)) g_string_append_printf (status, " ERROR=SERVICE_UNKNOWN"); else g_string_append_printf (status, " ERROR=%s", error->message); } check_status (status->str); } else if (strcmp (name, "SWITCH-TO-GREETER") == 0) { g_dbus_connection_call (dbus_conn, "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 = g_hash_table_lookup (params, "USERNAME"); g_dbus_connection_call (dbus_conn, "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 (dbus_conn, "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) { const gchar *xserver_args = g_hash_table_lookup (params, "ARGS"); if (!xserver_args) xserver_args = ""; g_autofree gchar *command_line = g_strdup_printf ("%s/tests/src/X %s", BUILDDIR, xserver_args); gchar **argv; GPid pid; g_autoptr(GError) error = NULL; 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 *process = watch_process (pid); g_hash_table_insert (children, GINT_TO_POINTER (process->pid), process); } } else if (strcmp (name, "START-VNC-CLIENT") == 0) { const gchar *vnc_client_args = g_hash_table_lookup (params, "ARGS"); if (!vnc_client_args) vnc_client_args = ""; g_autofree gchar *command_line = g_strdup_printf ("%s/tests/src/vnc-client %s", BUILDDIR, vnc_client_args); gchar **argv; GPid pid; g_autoptr(GError) error = NULL; 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 *process = watch_process (pid); g_hash_table_insert (children, GINT_TO_POINTER (process->pid), process); } } else if (strcmp (name, "ADD-USER") == 0) { const gchar *username = g_hash_table_lookup (params, "USERNAME"); AccountsUser *user = get_accounts_user_by_name (username); if (user) accounts_user_set_hidden (user, FALSE, TRUE); else g_warning ("Unknown user %s", username); g_autofree gchar *status_text = g_strdup_printf ("RUNNER ADD-USER USERNAME=%s", username); check_status (status_text); } else if (strcmp (name, "UPDATE-USER") == 0) { g_autoptr(GString) status_text = g_string_new ("RUNNER UPDATE-USER USERNAME="); const gchar *username = g_hash_table_lookup (params, "USERNAME"); g_string_append (status_text, username); AccountsUser *user = get_accounts_user_by_name (username); if (user) { g_autoptr(GError) error = NULL; 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); } if (!g_dbus_connection_emit_signal (accounts_connection, NULL, user->path, "org.freedesktop.Accounts.User", "Changed", g_variant_new ("()"), &error)) g_warning ("Failed to emit Changed: %s", error->message); } else g_warning ("Unknown user %s", username); check_status (status_text->str); } else if (strcmp (name, "DELETE-USER") == 0) { const gchar *username = g_hash_table_lookup (params, "USERNAME"); AccountsUser *user = get_accounts_user_by_name (username); if (user) accounts_user_set_hidden (user, TRUE, TRUE); else g_warning ("Unknown user %s", username); g_autofree gchar *status_text = g_strdup_printf ("RUNNER DELETE-USER USERNAME=%s", username); check_status (status_text); } else if (strcmp (name, "UNLOCK-SESSION") == 0) { const gchar *id = g_hash_table_lookup (params, "SESSION"); Login1Session *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); g_autofree gchar *status_text = g_strdup_printf ("RUNNER UNLOCK-SESSION SESSION=%s", id); check_status (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) { for (GList *link = status_clients; link; link = link->next) { StatusClient *client = link->data; g_autoptr(GError) error = NULL; int 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); } } else { g_printerr ("Unknown command '%s'\n", name); quit (EXIT_FAILURE); } } static void run_commands (void) { while (TRUE) { ScriptLine *line = get_script_line (NULL); if (!line) { quit (EXIT_SUCCESS); return; } /* Commands start with an asterisk */ if (line->text[0] != '*') /* * line is not a command line, and it is not marked as done. To * avoid races, don't execute a command until all lines in the * script above the command's line are marked as done. (This * function will be called again after the next status arrives.) * The FENCE command in particular relies on this behavior. */ return; statuses = g_list_append (statuses, g_strdup (line->text)); line->done = TRUE; if (getenv ("DEBUG")) g_print ("%s\n", line->text); handle_command (line->text + 1); } } static gboolean status_timeout_cb (gpointer data) { status_timeout = 0; ScriptLine *line = get_script_line (NULL); fail ("(timeout)", line ? line->text : NULL); return G_SOURCE_REMOVE; } static void check_status (const gchar *status) { if (stop) return; statuses = g_list_append (statuses, g_strdup (status)); if (getenv ("DEBUG")) g_print ("%s\n", status); /* Try and match against expected */ g_autofree gchar *prefix = get_prefix (status); gboolean result = FALSE; ScriptLine *line = get_script_line (prefix); if (line) { g_autofree gchar *full_pattern = g_strdup_printf ("^%s$", line->text); result = g_regex_match_simple (full_pattern, status, 0, 0); } 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; g_autoptr(GError) error = NULL; ssize_t n_read = g_socket_receive (socket, (gchar *)&length, sizeof (length), NULL, &error); gchar buffer[1024]; if (n_read > 0) n_read = g_socket_receive (socket, buffer, length, NULL, &error); if (n_read < 0) { if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CONNECTION_CLOSED)) n_read = 0; else g_warning ("Error reading from socket: %s", error->message); } 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) { g_autoptr(GError) error = NULL; GSocket *socket = g_socket_accept (status_socket, NULL, &error); if (socket) { StatusClient *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); } else g_warning ("Failed to accept status connection: %s", error->message); return TRUE; } static void load_script (const gchar *filename) { g_autofree gchar *data = NULL; if (!g_file_get_contents (filename, &data, NULL, NULL)) { g_printerr ("Unable to load script: %s\n", filename); quit (EXIT_FAILURE); } g_auto(GStrv) lines = g_strsplit (data, "\n", -1); /* Load lines with #? prefix as expected behaviour */ for (int i = 0; lines[i]; i++) { gchar *text = g_strstrip (lines[i]); if (g_str_has_prefix (text, "#?")) { ScriptLine *line = g_malloc0 (sizeof (ScriptLine)); line->text = g_strdup (text + 2); line->done = FALSE; script = g_list_append (script, line); } } } 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 = "" " " " " " " " " " " " " " " " " " " " " ""; g_autoptr(GError) error = NULL; g_autoptr(GDBusNodeInfo) upower_info = g_dbus_node_info_new_for_xml (upower_interface, &error); if (!upower_info) { g_warning ("Failed to parse D-Bus interface: %s", error->message); return; } static const GDBusInterfaceVTable upower_vtable = { handle_upower_call, }; if (g_dbus_connection_register_object (connection, "/org/freedesktop/UPower", upower_info->interfaces[0], &upower_vtable, NULL, NULL, &error) == 0) g_warning ("Failed to register UPower service: %s", error->message); service_count--; if (service_count == 0) ready (); } static void start_upower_daemon (void) { service_count++; g_bus_own_name_on_connection (dbus_conn, "org.freedesktop.UPower", G_BUS_NAME_OWNER_FLAGS_NONE, upower_name_acquired_cb, NULL, NULL, NULL); } 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) { g_autofree gchar *status = g_strdup_printf ("CONSOLE-KIT ACTIVATE-SESSION SESSION=%s", session->cookie); check_status (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 CKSession * open_ck_session (GDBusConnection *connection, GVariant *params) { g_autoptr(GDBusNodeInfo) ck_session_info = NULL; static const GDBusInterfaceVTable ck_session_vtable = { handle_ck_session_call, }; CKSession *session = g_malloc0 (sizeof (CKSession)); ck_sessions = g_list_append (ck_sessions, session); g_autoptr(GString) cookie = g_string_new ("ck-cookie"); GVariantIter *iter; g_variant_get (params, "a(sv)", &iter); const gchar *name; GVariant *value; 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); } } const gchar *ck_session_interface_old = "" " " " " " " " " " " ""; const gchar *ck_session_interface = "" " " " " " " " " " " " " " " " " ""; g_autoptr(GError) error = NULL; 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 (!ck_session_info) g_warning ("Failed to parse D-Bus interface: %s", error->message); session->cookie = g_strdup (cookie->str); 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 (session->id == 0) g_warning ("Failed to register CK Session: %s", error->message); 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, "CanSuspend") == 0) { check_status ("CONSOLE-KIT CAN-SUSPEND"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "yes")); } else if (strcmp (method_name, "CanHibernate") == 0) { check_status ("CONSOLE-KIT CAN-HIBERNATE"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", "yes")); } 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) { const gchar *cookie; g_variant_get (parameters, "(&s)", &cookie); for (GList *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 if (strcmp (method_name, "Suspend") == 0) { check_status ("CONSOLE-KIT SUSPEND"); g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "Hibernate") == 0) { check_status ("CONSOLE-KIT 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 ck_name_acquired_cb (GDBusConnection *connection, const gchar *name, gpointer user_data) { const gchar *ck_interface = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; g_autoptr(GError) error = NULL; g_autoptr(GDBusNodeInfo) ck_info = g_dbus_node_info_new_for_xml (ck_interface, &error); if (!ck_info) { g_warning ("Failed to parse D-Bus interface: %s", error->message); return; } static const GDBusInterfaceVTable ck_vtable = { handle_ck_call, }; if (g_dbus_connection_register_object (connection, "/org/freedesktop/ConsoleKit/Manager", ck_info->interfaces[0], &ck_vtable, NULL, NULL, &error) == 0) g_warning ("Failed to register console kit service: %s", error->message); service_count--; if (service_count == 0) ready (); } static void start_console_kit_daemon (void) { service_count++; g_bus_own_name_on_connection (dbus_conn, "org.freedesktop.ConsoleKit", G_BUS_NAME_OWNER_FLAGS_NONE, 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, "CanTTY") == 0) return g_variant_new_boolean (seat->can_tty); 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) { g_autofree gchar *path = g_strdup_printf ("/org/freedesktop/login1/session/%s", seat->active_session); return g_variant_new ("(so)", seat->active_session, path); } else return NULL; } else return NULL; } static Login1Seat * add_login1_seat (GDBusConnection *connection, const gchar *id, gboolean emit_signal) { Login1Seat *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->can_tty = TRUE; seat->active_session = NULL; const gchar *login1_seat_interface = "" " " " " " " " " " " " " " " ""; g_autoptr(GError) error = NULL; g_autoptr(GDBusNodeInfo) login1_seat_info = g_dbus_node_info_new_for_xml (login1_seat_interface, &error); if (!login1_seat_info) { g_warning ("Failed to parse login1 seat D-Bus interface: %s", error->message); return NULL; } static const GDBusInterfaceVTable login1_seat_vtable = { handle_login1_seat_call, handle_login1_seat_get_property, }; if (g_dbus_connection_register_object (connection, seat->path, login1_seat_info->interfaces[0], &login1_seat_vtable, seat, NULL, &error) == 0) g_warning ("Failed to register login1 seat: %s", error->message); if (emit_signal) { g_autoptr(GError) e = NULL; if (!g_dbus_connection_emit_signal (connection, NULL, "/org/freedesktop/login1", "org.freedesktop.login1.Manager", "SeatNew", g_variant_new ("(so)", seat->id, seat->path), &e)) g_warning ("Failed to emit SeatNew: %s", e->message); } return seat; } static Login1Seat * find_login1_seat (const gchar *id) { for (GList *link = login1_seats; link; link = link->next) { Login1Seat *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 = find_login1_seat (id); if (!seat) return; g_autoptr(GError) error = NULL; if (!g_dbus_connection_emit_signal (connection, NULL, "/org/freedesktop/login1", "org.freedesktop.login1.Manager", "SeatRemoved", g_variant_new ("(so)", seat->id, seat->path), &error)) g_warning ("Failed to emit SeatNew: %s", error->message); 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 = 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); const gchar *login1_session_interface = "" " " " " ""; g_autoptr(GError) error = NULL; g_autoptr(GDBusNodeInfo) login1_session_info = g_dbus_node_info_new_for_xml (login1_session_interface, &error); if (!login1_session_info) { g_warning ("Failed to parse login1 session D-Bus interface: %s", error->message); return NULL; } static const GDBusInterfaceVTable login1_session_vtable = { handle_login1_session_call, }; if (g_dbus_connection_register_object (connection, session->path, login1_session_info->interfaces[0], &login1_session_vtable, session, NULL, &error) == 0) g_warning ("Failed to register login1 session: %s", error->message); return session; } static Login1Session * find_login1_session (const gchar *id) { for (GList *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; g_variant_builder_init (&seats, G_VARIANT_TYPE ("a(so)")); for (GList *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; g_variant_get (parameters, "(&s)", &id); Login1Session *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) { g_autofree gchar *status = g_strdup_printf ("LOGIN1 LOCK-SESSION SESSION=%s", id); check_status (status); } session->locked = TRUE; g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "UnlockSession") == 0) { const gchar *id; g_variant_get (parameters, "(&s)", &id); Login1Session *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) { g_autofree gchar *status = g_strdup_printf ("LOGIN1 UNLOCK-SESSION SESSION=%s", id); check_status (status); } session->locked = FALSE; g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "ActivateSession") == 0) { const gchar *id; g_variant_get (parameters, "(&s)", &id); Login1Session *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; } g_autofree gchar *status = g_strdup_printf ("LOGIN1 ACTIVATE-SESSION SESSION=%s", id); check_status (status); g_dbus_method_invocation_return_value (invocation, g_variant_new ("()")); } else if (strcmp (method_name, "TerminateSession") == 0) { const gchar *id; g_variant_get (parameters, "(&s)", &id); Login1Session *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 (g_key_file_get_boolean (config, "test-runner-config", "log-login1-terminate", NULL)) { g_autofree gchar *status = g_strdup_printf ("LOGIN1 TERMINATE-SESSION SESSION=%s", id); check_status (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 = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; g_autoptr(GError) error = NULL; g_autoptr(GDBusNodeInfo) login1_info = g_dbus_node_info_new_for_xml (login1_interface, &error); if (!login1_info) { g_warning ("Failed to parse login1 D-Bus interface: %s", error->message); return; } static const GDBusInterfaceVTable login1_vtable = { handle_login1_call, }; if (g_dbus_connection_register_object (connection, "/org/freedesktop/login1", login1_info->interfaces[0], &login1_vtable, NULL, NULL, &error) == 0) g_warning ("Failed to register login1 service: %s", error->message); /* We always have seat0 */ Login1Seat *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_on_connection (dbus_conn, "org.freedesktop.login1", G_BUS_NAME_OWNER_FLAGS_NONE, login1_name_acquired_cb, NULL, NULL, NULL); } static AccountsUser * get_accounts_user_by_uid (guint uid) { for (GList *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) { for (GList *link = accounts_users; link; link = link->next) { AccountsUser *u = link->data; if (strcmp (u->user_name, username) == 0) return u; } return 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) { AccountsUser *user = user_data; if (strcmp (method_name, "SetXSession") == 0) { const 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, "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 : ""); return NULL; } static GVariant * handle_user_get_extra_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, "BackgroundFile") == 0) return g_variant_new_string (user->background ? user->background : ""); else if (strcmp (property_name, "HasMessages") == 0) return g_variant_new_boolean (user->has_messages); else if (strcmp (property_name, "KeyboardLayouts") == 0) { if (user->layouts != NULL) return g_variant_new_strv ((const gchar * const *) user->layouts, -1); else return g_variant_new_strv (NULL, 0); } return NULL; } static void accounts_user_set_hidden (AccountsUser *user, gboolean hidden, gboolean emit_signal) { user->hidden = hidden; if (user->hidden && user->id != 0) { g_autoptr(GError) error = NULL; g_dbus_connection_unregister_object (accounts_connection, user->id); g_dbus_connection_unregister_object (accounts_connection, user->extra_id); if (!g_dbus_connection_emit_signal (accounts_connection, NULL, "/org/freedesktop/Accounts", "org.freedesktop.Accounts", "UserDeleted", g_variant_new ("(o)", user->path), &error)) g_warning ("Failed to emit UserDeleted: %s", error->message); user->id = 0; } if (!user->hidden && user->id == 0) { const gchar *user_interface = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; g_autoptr(GError) error = NULL; g_autoptr(GDBusNodeInfo) user_info = g_dbus_node_info_new_for_xml (user_interface, &error); if (!user_info) { g_warning ("Failed to parse D-Bus interface: %s", error->message); return; } static const GDBusInterfaceVTable user_vtable = { handle_user_call, handle_user_get_property, }; user->id = g_dbus_connection_register_object (accounts_connection, user->path, user_info->interfaces[0], &user_vtable, user, NULL, &error); if (user->id == 0) { g_warning ("Failed to register user: %s", error->message); return; } static const GDBusInterfaceVTable user_extra_vtable = { NULL, handle_user_get_extra_property, }; user->extra_id = g_dbus_connection_register_object (accounts_connection, user->path, user_info->interfaces[1], &user_extra_vtable, user, NULL, &error); if (user->extra_id == 0) { g_warning ("Failed to register user: %s", error->message); return; } if (!g_dbus_connection_emit_signal (accounts_connection, NULL, "/org/freedesktop/Accounts", "org.freedesktop.Accounts", "UserAdded", g_variant_new ("(o)", user->path), &error)) g_warning ("Failed to emit UserAdded: %s", error->message); } } static void load_passwd_file (void) { g_auto(GStrv) user_filter = NULL; if (g_key_file_has_key (config, "test-runner-config", "accounts-service-user-filter", NULL)) { g_autofree gchar *filter = g_key_file_get_string (config, "test-runner-config", "accounts-service-user-filter", NULL); user_filter = g_strsplit (filter, " ", -1); } g_autofree gchar *path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "etc", "passwd", NULL); g_autofree gchar *data = NULL; g_file_get_contents (path, &data, NULL, NULL); g_auto(GStrv) lines = g_strsplit (data, "\n", -1); for (int i = 0; lines[i]; i++) { g_auto(GStrv) fields = g_strsplit (lines[i], ":", -1); if (fields == NULL || g_strv_length (fields) < 7) continue; const gchar *user_name = fields[0]; guint uid = atoi (fields[2]); const gchar *real_name = fields[4]; AccountsUser *user = get_accounts_user_by_uid (uid); if (!user) { user = g_malloc0 (sizeof (AccountsUser)); accounts_users = g_list_append (accounts_users, user); /* Only allow users in whitelist */ user->hidden = FALSE; if (user_filter) { user->hidden = TRUE; for (int j = 0; user_filter[j] != NULL; j++) if (strcmp (user_name, user_filter[j]) == 0) user->hidden = FALSE; } g_autoptr(GKeyFile) dmrc_file = g_key_file_new (); g_autofree gchar *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); 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); } } } 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; g_variant_builder_init (&builder, G_VARIANT_TYPE ("ao")); load_passwd_file (); for (GList *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) { const gchar *user_name; g_variant_get (parameters, "(&s)", &user_name); load_passwd_file (); AccountsUser *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 accounts_name_acquired_cb (GDBusConnection *connection, const gchar *name, gpointer user_data) { accounts_connection = connection; const gchar *accounts_interface = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; g_autoptr(GError) error = NULL; g_autoptr(GDBusNodeInfo) accounts_info = g_dbus_node_info_new_for_xml (accounts_interface, &error); if (!accounts_info) { g_warning ("Failed to parse D-Bus interface: %s", error->message); return; } static const GDBusInterfaceVTable accounts_vtable = { handle_accounts_call, }; if (g_dbus_connection_register_object (connection, "/org/freedesktop/Accounts", accounts_info->interfaces[0], &accounts_vtable, NULL, NULL, &error) == 0) { g_warning ("Failed to register accounts service: %s", error->message); return; } service_count--; if (service_count == 0) ready (); } static void start_accounts_service_daemon (void) { service_count++; g_bus_own_name_on_connection (dbus_conn, "org.freedesktop.Accounts", G_BUS_NAME_OWNER_FLAGS_NONE, accounts_name_acquired_cb, 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; GVariantIter *changed_properties, *invalidated_properties; g_variant_get (parameters, "(&sa{sv}as)", &interface, &changed_properties, &invalidated_properties); g_autoptr(GString) 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); const gchar *name; GVariant *value; for (int 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; g_variant_iter_init (&iter, value); const gchar *path; while (g_variant_iter_loop (&iter, "&o", &path)) g_string_append_printf (status, ":%s", path); } } for (int 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); } 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) { g_autoptr(GString) 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); } /* * Copies src to dst. Takes ownership of src and dst. If src is a symlink, the * target is copied, not the symlink. If the final component of src is "*", the * contents of the parent of src (which must not have any subdirectories) is * copied, and dst must name a directory. Otherwise, src must name a file. dst * may be a filename or directory name. Terminates the process if copying * fails. */ static void cp (GFile *src, GFile *dst) { g_autoptr(GFile) s = g_steal_pointer(&src); g_autoptr(GFile) d = g_steal_pointer(&dst); g_autofree char *base = g_file_get_basename(s); if (strcmp (base, "*") == 0) { if (g_file_query_file_type (d, G_FILE_QUERY_INFO_NONE, NULL) != G_FILE_TYPE_DIRECTORY) g_error ("Cannot copy %s to %s: destination is not a directory", g_file_peek_path (s), g_file_peek_path (d)); g_autoptr(GFile) sdir = g_file_get_parent (s); g_autoptr(GError) error = NULL; g_autoptr(GFileEnumerator) direnum = g_file_enumerate_children (sdir, G_FILE_ATTRIBUTE_STANDARD_NAME, G_FILE_QUERY_INFO_NONE, NULL, &error); if (!direnum) g_error ("Failed to enumerate directory %s: %s", g_file_peek_path (sdir), error->message); while (TRUE) { GFileInfo *info = NULL; if (!g_file_enumerator_iterate (direnum, &info, NULL, NULL, &error)) g_error ("Failed to enumerate directory %s: %s:", g_file_peek_path (sdir), error->message); if (!info) break; g_object_ref (G_OBJECT (d)); cp (g_file_enumerator_get_child (direnum, info), d); } if (!g_file_enumerator_close (direnum, NULL, &error)) g_error ("Failed to close enumerator for directory %s: %s", g_file_peek_path (sdir), error->message); return; } if (g_file_query_file_type (d, G_FILE_QUERY_INFO_NONE, NULL) == G_FILE_TYPE_DIRECTORY) { cp (g_steal_pointer(&s), g_file_new_build_filename (g_file_peek_path (d), base, NULL)); return; } g_autoptr(GError) error = NULL; if (!g_file_copy (s, d, G_FILE_COPY_NONE, NULL, NULL, NULL, &error)) g_error ("Failed to copy %s to %s: %s", g_file_peek_path (s), g_file_peek_path (d), error->message); } int main (int argc, char **argv) { #if !defined(GLIB_VERSION_2_36) g_type_init (); #endif g_autoptr(GMainLoop) 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); } const gchar *script_name = argv[1]; g_autofree gchar *config_file = g_strdup_printf ("%s.conf", script_name); config_path = g_build_filename (SRCDIR, "tests", "scripts", config_file, NULL); config = g_key_file_new (); g_key_file_load_from_file (config, config_path, G_KEY_FILE_NONE, NULL); load_script (config_path); gchar cwd[1024]; 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 */ g_autofree gchar *ld_preload = g_build_filename (BUILDDIR, "tests", "src", ".libs", "libsystem.so", NULL); g_setenv ("LD_PRELOAD", ld_preload, TRUE); /* Run test programs */ g_autofree gchar *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); /* Use locally built libraries */ g_autofree gchar *lightdm_gobject_path = g_build_filename (BUILDDIR, "liblightdm-gobject", ".libs", NULL); g_autofree gchar *lightdm_qt_path = g_build_filename (BUILDDIR, "liblightdm-qt", ".libs", NULL); g_autofree gchar *ld_library_path = g_strdup_printf ("%s:%s", lightdm_gobject_path, lightdm_qt_path); g_setenv ("LD_LIBRARY_PATH", ld_library_path, TRUE); g_autofree gchar *gi_typelib_path = g_build_filename (BUILDDIR, "liblightdm-gobject", NULL); g_setenv ("GI_TYPELIB_PATH", gi_typelib_path, TRUE); /* 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 */ int i = 0; while (TRUE) { g_autofree gchar *name = g_strdup_printf (".r%d", i); g_free (temp_dir); temp_dir = g_build_filename ("/tmp", name, NULL); 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); g_autoptr(GError) error = NULL; status_socket = g_socket_new (G_SOCKET_FAMILY_UNIX, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_DEFAULT, &error); if (!status_socket) { g_warning ("Error creating status socket %s: %s", status_socket_name, error->message); quit (EXIT_FAILURE); } g_autoptr(GSocketAddress) address = g_unix_socket_address_new (status_socket_name); if (!g_socket_bind (status_socket, address, FALSE, &error) || !g_socket_listen (status_socket, &error)) { g_warning ("Error binding/listening status socket %s: %s", status_socket_name, error->message); g_clear_object (&status_socket); } GSource *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)) cp (g_file_new_for_path (config_path), g_file_new_build_filename (temp_dir, "etc/lightdm/lightdm.conf", NULL)); cp (g_file_new_build_filename (SRCDIR, "tests/data/keys.conf", NULL), g_file_new_build_filename (temp_dir, "etc/lightdm", NULL)); g_autofree gchar *additional_system_config = g_key_file_get_string (config, "test-runner-config", "additional-system-config", NULL); if (additional_system_config) { g_mkdir_with_parents (g_strdup_printf ("%s/usr/share/lightdm/lightdm.conf.d", temp_dir), 0755); g_auto(GStrv) files = g_strsplit (additional_system_config, " ", -1); for (int i = 0; files[i]; i++) cp (g_file_new_build_filename (SRCDIR, "tests/scripts", files[i], NULL), g_file_new_build_filename (temp_dir, "usr/share/lightdm/lightdm.conf.d", NULL)); } g_autofree gchar *additional_config = g_key_file_get_string (config, "test-runner-config", "additional-config", NULL); if (additional_config) { g_mkdir_with_parents (g_strdup_printf ("%s/etc/xdg/lightdm/lightdm.conf.d", temp_dir), 0755); g_auto(GStrv) files = g_strsplit (additional_config, " ", -1); for (int i = 0; files[i]; i++) cp (g_file_new_build_filename (SRCDIR, "tests/scripts", files[i], NULL), g_file_new_build_filename (temp_dir, "etc/xdg/lightdm/lightdm.conf.d", NULL)); } if (g_key_file_has_key (config, "test-runner-config", "shared-data-dirs", NULL)) { g_autofree gchar *dir_string = g_key_file_get_string (config, "test-runner-config", "shared-data-dirs", NULL); g_auto(GStrv) dirs = g_strsplit (dir_string, " ", -1); for (int i = 0; dirs[i]; i++) { g_auto(GStrv) fields = g_strsplit (dirs[i], ":", -1); if (g_strv_length (fields) == 4) { g_autofree 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)); } } } /* Always copy the script */ cp (g_file_new_for_path (config_path), g_file_new_build_filename (temp_dir, "script", NULL)); /* Copy over the greeter files */ cp (g_file_new_build_filename (DATADIR, "sessions/*", NULL), g_file_new_build_filename (temp_dir, "usr/share/lightdm/sessions", NULL)); cp (g_file_new_build_filename (DATADIR, "remote-sessions/*", NULL), g_file_new_build_filename (temp_dir, "usr/share/lightdm/remote-sessions", NULL)); cp (g_file_new_build_filename (DATADIR, "greeters/*", NULL), g_file_new_build_filename (temp_dir, "usr/share/lightdm/greeters", NULL)); /* Set up the default greeter */ g_autofree gchar *greeter_session = g_strdup_printf ("%s.desktop", DEFAULT_GREETER_SESSION); g_autofree gchar *greeter_path = g_build_filename (temp_dir, "usr", "share", "lightdm", "greeters", greeter_session, NULL); g_autofree gchar *greeter = g_strdup_printf ("%s.desktop", argv[2]); if (symlink (greeter, greeter_path) < 0) { g_printerr ("Failed to make greeter symlink %s->%s: %s\n", greeter_path, greeter, strerror (errno)); quit (EXIT_FAILURE); } g_autofree gchar *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 */ {GREETER_USER, "", "", 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}, /* This account has the home directory changed by PAM during authentication */ {"change-home-dir", "", "Change Home Dir User", 1034}, {NULL, NULL, NULL, 0} }; g_autoptr(GString) passwd_data = g_string_new (""); g_autoptr(GString) group_data = g_string_new (""); for (int i = 0; users[i].user_name; i++) { if (strcmp (users[i].user_name, "mount-home-dir") != 0 && strcmp (users[i].user_name, "make-home-dir") != 0 && strcmp (users[i].user_name, "change-home-dir") != 0) { g_autofree gchar *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_autoptr(GKeyFile) dmrc_file = g_key_file_new (); gboolean save_dmrc = FALSE; 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) { g_autofree gchar *path = g_build_filename (home_dir, users[i].user_name, ".dmrc", NULL); g_autofree gchar *data = g_key_file_to_data (dmrc_file, NULL, NULL); g_file_set_contents (path, data, -1, NULL); } /* Write corrupt X authority file */ if (strcmp (users[i].user_name, "corrupt-xauth") == 0) { g_autofree gchar *path = g_build_filename (home_dir, users[i].user_name, ".Xauthority", NULL); gchar data[1] = { 0xFF }; g_file_set_contents (path, data, 1, NULL); chmod (path, S_IRUSR | S_IWUSR); } /* 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); } g_autofree gchar *passwd_path = g_build_filename (temp_dir, "etc", "passwd", NULL); g_file_set_contents (passwd_path, passwd_data->str, -1, NULL); /* Add an extra test group */ g_string_append_printf (group_data, "test-group:x:111:\n"); g_autofree gchar *group_path = g_build_filename (temp_dir, "etc", "group", NULL); g_file_set_contents (group_path, group_data->str, -1, NULL); 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; dbus_conn = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if (!dbus_conn) g_error("Failed to connect to system D-Bus: %s", error->message); /* 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 (dbus_conn, "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 (dbus_conn, "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; } ubuntu-lightdm-e42f6d6/tests/src/test-script-hook.c000066400000000000000000000017571523516304700224400ustar00rootroot00000000000000#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 (argc < 2) { g_printerr ("Usage: %s text [return-value]\n", argv[0]); return EXIT_FAILURE; } g_autoptr(GString) status_text = g_string_new ("SCRIPT-HOOK"); g_string_append_printf (status_text, " %s", argv[1]); if (g_getenv ("XDG_SEAT")) g_string_append_printf (status_text, " XDG_SEAT=%s", g_getenv ("XDG_SEAT")); if (g_getenv ("USER")) g_string_append_printf (status_text, " USER=%s", g_getenv ("USER")); status_notify ("%s", status_text->str); if (argc > 2) return atoi (argv[2]); else return EXIT_SUCCESS; } ubuntu-lightdm-e42f6d6/tests/src/test-session.c000066400000000000000000000371311523516304700216540ustar00rootroot00000000000000#include #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 LightDMGreeter *greeter = NULL; 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 show_message_cb (LightDMGreeter *greeter, const gchar *text, LightDMMessageType type) { status_notify ("%s GREETER-SHOW-MESSAGE TEXT=\"%s\"", session_id, text); } static void show_prompt_cb (LightDMGreeter *greeter, const gchar *text, LightDMPromptType type) { status_notify ("%s GREETER-SHOW-PROMPT TEXT=\"%s\"", session_id, text); } static void authentication_complete_cb (LightDMGreeter *greeter) { if (lightdm_greeter_get_authentication_user (greeter)) status_notify ("%s GREETER-AUTHENTICATION-COMPLETE USERNAME=%s AUTHENTICATED=%s", session_id, lightdm_greeter_get_authentication_user (greeter), lightdm_greeter_get_is_authenticated (greeter) ? "TRUE" : "FALSE"); else status_notify ("%s GREETER-AUTHENTICATION-COMPLETE AUTHENTICATED=%s", session_id, lightdm_greeter_get_is_authenticated (greeter) ? "TRUE" : "FALSE"); } 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 = getgroups (0, NULL); if (n_groups < 0) { g_printerr ("Failed to get groups: %s", strerror (errno)); n_groups = 0; } gid_t *groups = malloc (sizeof (gid_t) * n_groups); n_groups = getgroups (n_groups, groups); g_autoptr(GString) group_list = g_string_new (""); for (int 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); 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"); g_autofree gchar *contents = NULL; g_autoptr(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); } 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) { g_autofree gchar *xauthority = g_strdup (g_getenv ("XAUTHORITY")); if (!xauthority) xauthority = g_build_filename (g_get_home_dir (), ".Xauthority", NULL); GStatBuf file_info; g_stat (xauthority, &file_info); g_autoptr(GString) 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); } else if (strcmp (name, "WRITE-SHARED-DATA") == 0) { const gchar *data = g_hash_table_lookup (params, "DATA"); const gchar *dir = getenv ("XDG_GREETER_DATA_DIR"); if (dir) { g_autofree gchar *path = NULL; 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); } else status_notify ("%s WRITE-SHARED-DATA ERROR=NO_XDG_GREETER_DATA_DIR", session_id); } else if (strcmp (name, "READ-SHARED-DATA") == 0) { const gchar *dir = getenv ("XDG_GREETER_DATA_DIR"); if (dir) { g_autofree gchar *path = g_build_filename (dir, "data", NULL); g_autofree gchar *contents = NULL; g_autoptr(GError) error = 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); } else status_notify ("%s WRITE-SHARED-DATA ERROR=NO_XDG_GREETER_DATA_DIR", session_id); } else if (strcmp (name, "GREETER-START") == 0) { g_assert (greeter == NULL); 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_autoptr(GError) error = NULL; if (lightdm_greeter_connect_to_daemon_sync (greeter, &error)) status_notify ("%s GREETER-STARTED", session_id); else status_notify ("%s GREETER-FAILED ERROR=%s", session_id, error->message); if (lightdm_greeter_get_select_user_hint (greeter)) status_notify ("%s GREETER-SELECT-USER-HINT USERNAME=%s", session_id, lightdm_greeter_get_select_user_hint (greeter)); if (lightdm_greeter_get_select_guest_hint (greeter)) status_notify ("%s GREETER-SELECT-GUEST-HINT", session_id); if (lightdm_greeter_get_lock_hint (greeter)) status_notify ("%s GREETER-LOCK-HINT", session_id); if (!lightdm_greeter_get_has_guest_account_hint (greeter)) status_notify ("%s GREETER-HAS-GUEST-ACCOUNT-HINT=FALSE", session_id); if (lightdm_greeter_get_hide_users_hint (greeter)) status_notify ("%s GREETER-HIDE-USERS-HINT", session_id); if (lightdm_greeter_get_show_manual_login_hint (greeter)) status_notify ("%s GREETER-SHOW-MANUAL-LOGIN-HINT", session_id); if (!lightdm_greeter_get_show_remote_login_hint (greeter)) status_notify ("%s GREETER-SHOW-REMOTE-LOGIN-HINT=FALSE", session_id); int timeout = lightdm_greeter_get_autologin_timeout_hint (greeter); if (lightdm_greeter_get_autologin_user_hint (greeter)) { if (timeout != 0) status_notify ("%s GREETER-AUTOLOGIN-USER USERNAME=%s TIMEOUT=%d", session_id, lightdm_greeter_get_autologin_user_hint (greeter), timeout); else status_notify ("%s GREETER-AUTOLOGIN-USER USERNAME=%s", session_id, lightdm_greeter_get_autologin_user_hint (greeter)); } else if (lightdm_greeter_get_autologin_guest_hint (greeter)) { if (timeout != 0) status_notify ("%s GREETER-AUTOLOGIN-GUEST TIMEOUT=%d", session_id, timeout); else status_notify ("%s GREETER-AUTOLOGIN-GUEST", session_id); } } else if (strcmp (name, "GREETER-LOG-DEFAULT-SESSION") == 0) status_notify ("%s GREETER-LOG-DEFAULT-SESSION SESSION=%s", session_id, lightdm_greeter_get_default_session_hint (greeter)); else if (strcmp (name, "GREETER-AUTHENTICATE") == 0) { g_autoptr(GError) error = NULL; if (!lightdm_greeter_authenticate (greeter, g_hash_table_lookup (params, "USERNAME"), &error)) status_notify ("%s FAIL-AUTHENTICATE ERROR=%s", session_id, error->message); } else if (strcmp (name, "GREETER-RESPOND") == 0) { g_autoptr(GError) error = NULL; if (!lightdm_greeter_respond (greeter, g_hash_table_lookup (params, "TEXT"), &error)) status_notify ("%s FAIL-RESPOND ERROR=%s", session_id, error->message); } else if (strcmp (name, "GREETER-START-SESSION") == 0) { g_autoptr(GError) error = NULL; if (!lightdm_greeter_start_session_sync (greeter, g_hash_table_lookup (params, "SESSION"), &error)) status_notify ("%s FAIL-START-SESSION ERROR=%s", session_id, error->message); } else if (strcmp (name, "GREETER-STOP") == 0) { g_assert (greeter != NULL); g_clear_object (&greeter); } } int main (int argc, char **argv) { const gchar *display = getenv ("DISPLAY"); const gchar *xdg_seat = getenv ("XDG_SEAT"); const gchar *xdg_vtnr = getenv ("XDG_VTNR"); const gchar *xdg_current_desktop = getenv ("XDG_CURRENT_DESKTOP"); const gchar *xdg_greeter_data_dir = getenv ("XDG_GREETER_DATA_DIR"); const gchar *xdg_session_cookie = getenv ("XDG_SESSION_COOKIE"); const gchar *xdg_session_class = getenv ("XDG_SESSION_CLASS"); const gchar *xdg_session_type = getenv ("XDG_SESSION_TYPE"); const gchar *xdg_session_desktop = getenv ("XDG_SESSION_DESKTOP"); const gchar *mir_server_host_socket = getenv ("MIR_SERVER_HOST_SOCKET"); const gchar *mir_vt = getenv ("MIR_SERVER_VT"); const gchar *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_server_host_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 (""); int open_max = sysconf (_SC_OPEN_MAX); for (int 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); g_autoptr(GString) 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); 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; } ubuntu-lightdm-e42f6d6/tests/src/vnc-client.c000066400000000000000000000043011523516304700212470ustar00rootroot00000000000000#include #include #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); 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"); g_autoptr(GError) error = NULL; g_autoptr(GSocket) socket = g_socket_new (G_SOCKET_FAMILY_IPV4, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_TCP, &error); if (!socket) { g_warning ("Unable to make VNC socket: %s", error->message); return EXIT_FAILURE; } g_autoptr(GSocketAddress) address = g_inet_socket_address_new (g_inet_address_new_loopback (G_SOCKET_FAMILY_IPV4), 5900); gboolean result = g_socket_connect (socket, address, NULL, &error); if (!result) { g_warning ("Unable to connect VNC socket: %s", error->message); return EXIT_FAILURE; } gchar buffer[1024]; gssize n_read = g_socket_receive (socket, buffer, 1023, NULL, &error); if (n_read <= 0) { g_warning ("Unable to receive on VNC socket: %s", error->message); 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"); gssize n_sent = g_socket_send (socket, buffer, strlen (buffer), NULL, &error); if (n_sent != strlen (buffer)) { g_warning ("Unable to send on VNC socket: %s", error->message); return EXIT_FAILURE; } while (TRUE) { gssize n_read = g_socket_receive (socket, buffer, 1023, NULL, &error); if (n_read < 0) { g_warning ("Unable to receive on VNC socket: %s", error->message); return EXIT_FAILURE; } if (n_read == 0) { status_notify ("VNC-CLIENT DISCONNECTED"); return EXIT_SUCCESS; } } } ubuntu-lightdm-e42f6d6/tests/src/x-authority.c000066400000000000000000000155021523516304700215070ustar00rootroot00000000000000#include #include "x-authority.h" #include "x-common.h" typedef struct { GList *records; } XAuthorityPrivate; typedef struct { guint16 family; guint16 address_length; guint8 *address; gchar *number; gchar *authorization_name; guint16 authorization_data_length; guint8 *authorization_data; } XAuthorityRecordPrivate; G_DEFINE_TYPE_WITH_PRIVATE (XAuthority, x_authority, G_TYPE_OBJECT) G_DEFINE_TYPE_WITH_PRIVATE (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) { XAuthorityPrivate *priv = x_authority_get_instance_private (authority); g_autofree guint8 *xauth_data; gsize xauth_length; if (!g_file_get_contents (filename, (gchar **) &xauth_data, &xauth_length, error)) return FALSE; gsize offset = 0; while (offset < xauth_length) { XAuthorityRecord *record = g_object_new (x_authority_record_get_type (), NULL); XAuthorityRecordPrivate *r_priv = x_authority_record_get_instance_private (record); r_priv->family = read_card16 (xauth_data, xauth_length, X_BYTE_ORDER_MSB, &offset); r_priv->address_length = read_card16 (xauth_data, xauth_length, X_BYTE_ORDER_MSB, &offset); r_priv->address = read_string8 (xauth_data, xauth_length, r_priv->address_length, &offset); guint16 length = read_card16 (xauth_data, xauth_length, X_BYTE_ORDER_MSB, &offset); r_priv->number = (gchar *) read_string8 (xauth_data, xauth_length, length, &offset); length = read_card16 (xauth_data, xauth_length, X_BYTE_ORDER_MSB, &offset); r_priv->authorization_name = (gchar *) read_string8 (xauth_data, xauth_length, length, &offset); r_priv->authorization_data_length = read_card16 (xauth_data, xauth_length, X_BYTE_ORDER_MSB, &offset); r_priv->authorization_data = read_string8 (xauth_data, xauth_length, r_priv->authorization_data_length, &offset); priv->records = g_list_append (priv->records, record); } return TRUE; } XAuthorityRecord * x_authority_match_local (XAuthority *authority, const gchar *authorization_name) { XAuthorityPrivate *priv = x_authority_get_instance_private (authority); for (GList *link = priv->records; link; link = link->next) { XAuthorityRecord *record = link->data; XAuthorityRecordPrivate *r_priv = x_authority_record_get_instance_private (record); if (strcmp (r_priv->authorization_name, authorization_name) != 0) continue; if (r_priv->family == XAUTH_FAMILY_WILD || r_priv->family == XAUTH_FAMILY_LOCAL) return record; } return NULL; } XAuthorityRecord * x_authority_match_localhost (XAuthority *authority, const gchar *authorization_name) { XAuthorityPrivate *priv = x_authority_get_instance_private (authority); for (GList *link = priv->records; link; link = link->next) { XAuthorityRecord *record = link->data; XAuthorityRecordPrivate *r_priv = x_authority_record_get_instance_private (record); if (strcmp (r_priv->authorization_name, authorization_name) != 0) continue; if (r_priv->family == XAUTH_FAMILY_WILD || r_priv->family == XAUTH_FAMILY_LOCALHOST) return record; } return NULL; } XAuthorityRecord * x_authority_match_inet (XAuthority *authority, GInetAddress *address, const gchar *authorization_name) { XAuthorityPrivate *priv = x_authority_get_instance_private (authority); guint16 family; 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; } gssize address_data_length = g_inet_address_get_native_size (address); const guint8 *address_data = g_inet_address_to_bytes (address); for (GList *link = priv->records; link; link = link->next) { XAuthorityRecord *record = link->data; XAuthorityRecordPrivate *r_priv = x_authority_record_get_instance_private (record); if (strcmp (r_priv->authorization_name, authorization_name) != 0) continue; if (r_priv->family == XAUTH_FAMILY_WILD) return record; if (r_priv->family != family) continue; if (r_priv->address_length != address_data_length) continue; gboolean matches = TRUE; for (int i = 0; i < address_data_length; i++) { if (address_data[i] != r_priv->address[i]) { matches = FALSE; break; } } if (matches) return record; } return NULL; } static void x_authority_init (XAuthority *authority) { } static void x_authority_finalize (GObject *object) { XAuthority *authority = (XAuthority *) object; XAuthorityPrivate *priv = x_authority_get_instance_private (authority); g_list_free_full (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; } guint16 x_authority_record_get_authorization_data_length (XAuthorityRecord *record) { XAuthorityRecordPrivate *priv = x_authority_record_get_instance_private (record); return priv->authorization_data_length; } const guint8 * x_authority_record_get_authorization_data (XAuthorityRecord *record) { XAuthorityRecordPrivate *priv = x_authority_record_get_instance_private (record); return priv->authorization_data; } gboolean x_authority_record_check_cookie (XAuthorityRecord *record, const guint8 *cookie_data, guint16 cookie_data_length) { XAuthorityRecordPrivate *priv = x_authority_record_get_instance_private (record); if (strcmp (priv->authorization_name, "MIT-MAGIC-COOKIE-1") != 0) return FALSE; if (cookie_data_length != priv->authorization_data_length) return FALSE; for (guint16 i = 0; i < cookie_data_length; i++) if (cookie_data[i] != priv->authorization_data[i]) return FALSE; return TRUE; } static void x_authority_record_init (XAuthorityRecord *record) { } static void x_authority_record_finalize (GObject *object) { XAuthorityRecord *record = (XAuthorityRecord *) object; XAuthorityRecordPrivate *priv = x_authority_record_get_instance_private (record); g_free (priv->address); g_free (priv->number); g_free (priv->authorization_name); g_free (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; } ubuntu-lightdm-e42f6d6/tests/src/x-authority.h000066400000000000000000000030771523516304700215200ustar00rootroot00000000000000#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 { GObjectClass parent_instance; } XAuthority; typedef struct { GObjectClass parent_class; } XAuthorityClass; typedef struct { GObjectClass parent_instance; } 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_ */ ubuntu-lightdm-e42f6d6/tests/src/x-common.c000066400000000000000000000103401523516304700207420ustar00rootroot00000000000000#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 = read_card8 (buffer, buffer_length, offset); guint8 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 = read_card8 (buffer, buffer_length, offset); guint8 b = read_card8 (buffer, buffer_length, offset); guint8 c = read_card8 (buffer, buffer_length, offset); guint8 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 = g_malloc (string_length + 1); int i; 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 = 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) { for (gsize 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) { for (gsize 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); } ubuntu-lightdm-e42f6d6/tests/src/x-common.h000066400000000000000000000030641523516304700207540ustar00rootroot00000000000000#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_ */ ubuntu-lightdm-e42f6d6/tests/src/x-server.c000066400000000000000000000163671523516304700207770ustar00rootroot00000000000000/* -*- Mode: C; indent-tabs-mode: nil; tab-width: 4 -*- */ #include #include #include #include #include #include #include #include #include #include "x-server.h" #define MAXIMUM_REQUEST_LENGTH 65535 enum { X_SERVER_CLIENT_CONNECTED, X_SERVER_CLIENT_DISCONNECTED, X_SERVER_RESET, X_SERVER_LAST_SIGNAL }; static guint x_server_signals[X_SERVER_LAST_SIGNAL] = { 0 }; typedef struct { gint display_number; gchar *socket_path; GSocket *socket; GIOChannel *channel; GHashTable *clients; } XServerPrivate; G_DEFINE_TYPE_WITH_PRIVATE (XServer, x_server, G_TYPE_OBJECT) typedef struct { XServer *server; GSocket *socket; GIOChannel *channel; } XClientPrivate; G_DEFINE_TYPE_WITH_PRIVATE (XClient, x_client, G_TYPE_OBJECT) 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) { XClientPrivate *priv = x_client_get_instance_private (client); g_autofree gchar *message = g_strdup_printf ("FAILED:%s", reason); errno = 0; if (send (g_io_channel_unix_get_fd (priv->channel), message, strlen (message), 0) != strlen (message)) g_printerr ("Failed to send FAILED: %s\n", strerror (errno)); } void x_client_send_success (XClient *client) { XClientPrivate *priv = x_client_get_instance_private (client); g_autofree gchar *message = g_strdup ("SUCCESS"); errno = 0; if (send (g_io_channel_unix_get_fd (priv->channel), message, strlen (message), 0) != strlen (message)) g_printerr ("Failed to send SUCCESS: %s\n", strerror (errno)); } void x_client_disconnect (XClient *client) { XClientPrivate *priv = x_client_get_instance_private (client); g_io_channel_shutdown (priv->channel, TRUE, NULL); } static void x_client_init (XClient *client) { } static void x_client_class_init (XClientClass *klass) { 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); XServerPrivate *priv = x_server_get_instance_private (server); priv->display_number = display_number; return server; } static gboolean client_read_cb (GIOChannel *channel, GIOCondition condition, gpointer data) { XClient *client = data; XClientPrivate *priv = x_client_get_instance_private (client); g_autofree gchar *d = NULL; gsize d_length; if (g_io_channel_read_to_end (channel, &d, &d_length, NULL) == G_IO_STATUS_NORMAL && d_length == 0) { XServer *server = priv->server; XServerPrivate *s_priv = x_server_get_instance_private (server); g_signal_emit (client, x_client_signals[X_CLIENT_DISCONNECTED], 0); g_signal_emit (server, x_server_signals[X_SERVER_CLIENT_DISCONNECTED], 0, client); g_hash_table_remove (s_priv->clients, priv->channel); if (g_hash_table_size (s_priv->clients) == 0) g_signal_emit (server, x_server_signals[X_SERVER_RESET], 0); return G_SOURCE_REMOVE; } return G_SOURCE_CONTINUE; } static gboolean socket_connect_cb (GIOChannel *channel, GIOCondition condition, gpointer data) { XServer *server = data; XServerPrivate *priv = x_server_get_instance_private (server); g_autoptr(GError) error = NULL; g_autoptr(GSocket) data_socket = g_socket_accept (priv->socket, NULL, &error); if (error) g_warning ("Error accepting connection: %s", strerror (errno)); if (!data_socket) return FALSE; XClient *client = g_object_new (x_client_get_type (), NULL); XClientPrivate *c_priv = x_client_get_instance_private (client); c_priv->server = server; c_priv->socket = g_steal_pointer (&data_socket); c_priv->channel = g_io_channel_unix_new (g_socket_get_fd (c_priv->socket)); g_io_add_watch (c_priv->channel, G_IO_IN | G_IO_HUP, client_read_cb, client); g_hash_table_insert (priv->clients, c_priv->channel, client); g_signal_emit (server, x_server_signals[X_SERVER_CLIENT_CONNECTED], 0, client); return TRUE; } gboolean x_server_start (XServer *server) { XServerPrivate *priv = x_server_get_instance_private (server); g_autofree gchar *name = g_strdup_printf (".x:%d", priv->display_number); priv->socket_path = g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), name, NULL); g_autoptr(GError) error = NULL; priv->socket = g_socket_new (G_SOCKET_FAMILY_UNIX, G_SOCKET_TYPE_STREAM, G_SOCKET_PROTOCOL_DEFAULT, &error); if (!priv->socket || !g_socket_bind (priv->socket, g_unix_socket_address_new (priv->socket_path), TRUE, &error) || !g_socket_listen (priv->socket, &error)) { g_warning ("Error creating Unix X socket: %s", error->message); return FALSE; } priv->channel = g_io_channel_unix_new (g_socket_get_fd (priv->socket)); g_io_add_watch (priv->channel, G_IO_IN, socket_connect_cb, server); return TRUE; } gsize x_server_get_n_clients (XServer *server) { XServerPrivate *priv = x_server_get_instance_private (server); return g_hash_table_size (priv->clients); } static void x_server_init (XServer *server) { XServerPrivate *priv = x_server_get_instance_private (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 = X_SERVER (object); XServerPrivate *priv = x_server_get_instance_private (server); if (priv->socket_path) unlink (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; 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 ()); x_server_signals[X_SERVER_RESET] = g_signal_new (X_SERVER_SIGNAL_RESET, G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (XServerClass, reset), NULL, NULL, NULL, G_TYPE_NONE, 0); } ubuntu-lightdm-e42f6d6/tests/src/x-server.h000066400000000000000000000025611523516304700207730ustar00rootroot00000000000000#ifndef X_SERVER_H_ #define X_SERVER_H_ #include #include 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_CLIENT_SIGNAL_DISCONNECTED "disconnected" #define X_SERVER_SIGNAL_CLIENT_CONNECTED "client-connected" #define X_SERVER_SIGNAL_CLIENT_DISCONNECTED "client-disconnected" #define X_SERVER_SIGNAL_RESET "reset" typedef struct { GObject parent_instance; } XClient; typedef struct { GObjectClass parent_class; void (*disconnected)(XClient *client); } XClientClass; typedef struct { GObject parent_instance; } XServer; typedef struct { GObjectClass parent_class; void (*client_connected)(XServer *server, XClient *client); void (*client_disconnected)(XServer *server, XClient *client); void (*reset)(XServer *server); } 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_ */ ubuntu-lightdm-e42f6d6/tests/src/xdmcp-client.c000066400000000000000000000464301523516304700216050ustar00rootroot00000000000000#include #include #include #include #include #include #include #include "x-common.h" #include "xdmcp-client.h" #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; typedef struct { gchar *host; gint port; GSocket *socket; gchar *authentication_names; gchar *authorization_name; gint authorization_data_length; guint8 *authorization_data; } XDMCPClientPrivate; G_DEFINE_TYPE_WITH_PRIVATE (XDMCPClient, xdmcp_client, G_TYPE_OBJECT) 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) { XDMCPClientPrivate *priv = xdmcp_client_get_instance_private (client); g_autoptr(GError) error = NULL; gssize n_written = g_socket_send (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); } static void decode_willing (XDMCPClient *client, const guint8 *buffer, gssize buffer_length) { XDMCPWilling *message = g_malloc0 (sizeof (XDMCPWilling)); gsize offset = 0; guint16 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 = g_malloc0 (sizeof (XDMCPUnwilling)); gsize offset = 0; guint16 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 = g_malloc (sizeof (XDMCPAccept)); gsize offset = 0; message->session_id = read_card32 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); guint16 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 = g_malloc0 (sizeof (XDMCPDecline)); gsize offset = 0; guint16 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 = g_malloc0 (sizeof (XDMCPFailed)); gsize offset = 0; message->session_id = read_card32 (buffer, buffer_length, X_BYTE_ORDER_MSB, &offset); guint16 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 = 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 = read_card16 (buffer, n_read, X_BYTE_ORDER_MSB, &offset); guint16 opcode = read_card16 (buffer, n_read, X_BYTE_ORDER_MSB, &offset); guint16 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) { XDMCPClientPrivate *priv = xdmcp_client_get_instance_private (client); g_free (priv->host); priv->host = g_strdup (hostname); } void xdmcp_client_set_port (XDMCPClient *client, guint16 port) { XDMCPClientPrivate *priv = xdmcp_client_get_instance_private (client); priv->port = port; } gboolean xdmcp_client_start (XDMCPClient *client) { XDMCPClientPrivate *priv = xdmcp_client_get_instance_private (client); if (priv->socket) return TRUE; g_autoptr(GError) error = NULL; 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); if (!priv->socket) return FALSE; GSocketConnectable *address = g_network_address_new (priv->host, priv->port); GSocketAddressEnumerator *enumerator = g_socket_connectable_enumerate (address); while (TRUE) { g_autoptr(GError) e = NULL; g_autoptr(GSocketAddress) socket_address = g_socket_address_enumerator_next (enumerator, NULL, &e); if (e) g_warning ("Failed to get socket address: %s", e->message); if (!socket_address) return FALSE; if (!g_socket_connect (priv->socket, socket_address, NULL, &e)) { g_warning ("Unable to connect XDMCP socket: %s", error->message); continue; } g_io_add_watch (g_io_channel_unix_new (g_socket_get_fd (priv->socket)), G_IO_IN, xdmcp_data_cb, client); return TRUE; } } GInetAddress * xdmcp_client_get_local_address (XDMCPClient *client) { XDMCPClientPrivate *priv = xdmcp_client_get_instance_private (client); if (!priv->socket) return NULL; GSocketAddress *socket_address = g_socket_get_local_address (priv->socket, NULL); return g_inet_socket_address_get_address (G_INET_SOCKET_ADDRESS (socket_address)); } static void xdmcp_client_init (XDMCPClient *client) { XDMCPClientPrivate *priv = xdmcp_client_get_instance_private (client); priv->port = XDMCP_PORT; } static void send_query (XDMCPClient *client, guint16 opcode, gchar **authentication_names) { guint8 buffer[MAXIMUM_REQUEST_LENGTH]; gsize offset = 0; gsize length = 1; gsize n_names = 0; for (gchar **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 (gchar **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) { gsize length = 11 + strlen (authentication_name) + authentication_data_length + strlen (mfid); gsize n_addresses = 0; for (GInetAddress **address = addresses; *address; address++) { gssize native_address_length = g_inet_address_get_native_size (*address); length += 4 + native_address_length; n_addresses++; } gsize n_names = 0; for (gchar **name = authorization_names; *name; name++) { length += 2 + strlen (*name); n_names++; } 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_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 (GInetAddress **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 (GInetAddress **address = addresses; *address; address++) { gssize native_address_length = g_inet_address_get_native_size (*address); const guint8 *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 (gchar **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 *self = XDMCP_CLIENT (object); XDMCPClientPrivate *priv = xdmcp_client_get_instance_private (self); g_clear_pointer (&priv->host, g_free); g_clear_object (&priv->socket); g_clear_pointer (&priv->authorization_name, g_free); g_clear_pointer (&priv->authorization_data, g_free); } static void xdmcp_client_class_init (XDMCPClientClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = xdmcp_client_finalize; 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); } ubuntu-lightdm-e42f6d6/tests/src/xdmcp-client.h000066400000000000000000000061451523516304700216110ustar00rootroot00000000000000#ifndef XDMCP_CLIENT_H_ #define XDMCP_CLIENT_H_ #include #include G_BEGIN_DECLS #define XDMCP_CLIENT_TYPE (xdmcp_client_get_type()) #define XDMCP_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XDMCP_CLIENT_TYPE, XDMCPClient)) #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 { GObject parent_instance; } 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_ */ ubuntu-lightdm-e42f6d6/tests/test-add-local-x-seat000077500000000000000000000001211523516304700221700ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner add-local-x-seat test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-additional-config000077500000000000000000000001221523516304700225250ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner additional-config test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-additional-config-priority000077500000000000000000000001331523516304700244060ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner additional-config-priority test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-additional-system-config000077500000000000000000000001311523516304700240470ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner additional-system-config test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-additional-system-config-priority000077500000000000000000000001421523516304700257300ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner additional-system-config-priority test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-allow-tcp000077500000000000000000000001121523516304700210530ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner allow-tcp test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-allow-tcp-xorg-1.16000077500000000000000000000001241523516304700224160ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner allow-tcp-xorg-1.16 test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-audit-autologin000077500000000000000000000001201523516304700222550ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner audit-autologin test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin000077500000000000000000000001121523516304700211520ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-guest000077500000000000000000000001201523516304700222760ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-guest-fail-setup-script000077500000000000000000000001421523516304700256530ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-fail-setup-script test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-guest-in-background000077500000000000000000000001361523516304700250260ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-in-background test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-guest-logout000077500000000000000000000001271523516304700236140ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-logout test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-guest-session-config000077500000000000000000000001371523516304700252320ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-session-config test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-guest-timeout-gobject000077500000000000000000000001301523516304700253760ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-timeout test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-guest-timeout-python000077500000000000000000000001271523516304700253100ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-timeout test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-guest-timeout-qt5000077500000000000000000000001241523516304700244750ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-timeout test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-guest-timeout-qt6000077500000000000000000000001241523516304700244760ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-guest-timeout test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-in-background000077500000000000000000000001301523516304700236730ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-in-background test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-invalid-greeter000077500000000000000000000001151523516304700242340ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-invalid-greeter INVALID ubuntu-lightdm-e42f6d6/tests/test-autologin-invalid-session000077500000000000000000000001321523516304700242610ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-invalid-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-invalid-user000077500000000000000000000001271523516304700235600ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-invalid-user test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-logout000077500000000000000000000001211523516304700224610ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-logout test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-new-authtok000077500000000000000000000001261523516304700234230ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-new-authtok test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-pam000077500000000000000000000001161523516304700217310ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-pam test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-pam-config000077500000000000000000000001251523516304700231740ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-pam-config test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-password000077500000000000000000000001231523516304700230140ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-password test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-previous-session000077500000000000000000000001331523516304700245100ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-previous-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-session000077500000000000000000000001221523516304700226340ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-session-crash000077500000000000000000000001301523516304700237310ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-session-crash test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-session-error000077500000000000000000000001301523516304700237620ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-session-error test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-session-timeout-gobject000077500000000000000000000001321523516304700257340ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-session-timeout test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-session-timeout-python000077500000000000000000000001311523516304700256370ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-session-timeout test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-session-timeout-qt5000077500000000000000000000001261523516304700250330ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-session-timeout test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-session-timeout-qt6000077500000000000000000000001261523516304700250340ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-session-timeout test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-timeout-gobject000077500000000000000000000001221523516304700242520ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-timeout test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-timeout-in-background000077500000000000000000000001401523516304700253600ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-timeout-in-background test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-timeout-logout000077500000000000000000000001311523516304700241460ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-timeout-logout test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-timeout-python000077500000000000000000000001211523516304700241550ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-timeout test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-timeout-qt5000077500000000000000000000001161523516304700233510ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-timeout test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-timeout-qt6000077500000000000000000000001161523516304700233520ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-timeout test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-autologin-xserver-crash000077500000000000000000000001301523516304700237440ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner autologin-xserver-crash test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-cancel-authentication-gobject000077500000000000000000000001261523516304700250330ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner cancel-authentication test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-cancel-authentication-python000077500000000000000000000001251523516304700247360ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner cancel-authentication test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-cancel-authentication-qt5000077500000000000000000000001221523516304700241230ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner cancel-authentication test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-cancel-authentication-qt6000077500000000000000000000001221523516304700241240ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner cancel-authentication test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-change-authentication000077500000000000000000000001261523516304700234200ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner change-authentication test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-change-home-dir-on-session000077500000000000000000000001331523516304700241760ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner change-home-dir-on-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-console-kit000077500000000000000000000001141523516304700214020ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner console-kit test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-console-kit-no-xdg-runtime000077500000000000000000000001331523516304700242560ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner console-kit-no-xdg-runtime test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-corrupt-xauthority000077500000000000000000000001231523516304700230670ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner corrupt-xauthority test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-crash-authenticate000077500000000000000000000001231523516304700227270ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner crash-authenticate test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-cred-error000077500000000000000000000001131523516304700212160ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner cred-error test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-cred-expired000077500000000000000000000001151523516304700215270ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner cred-expired test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-cred-unavail000077500000000000000000000001151523516304700215260ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner cred-unavail test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-dbus000077500000000000000000000001051523516304700201100ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner dbus test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-denied000077500000000000000000000001071523516304700204050ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner denied test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-deprecated-config000077500000000000000000000001221523516304700225150ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner deprecated-config test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-expired000077500000000000000000000001101523516304700206070ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner expired test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-greeter-allow-guest000077500000000000000000000001241523516304700230520ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner greeter-allow-guest test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-greeter-crash000077500000000000000000000001161523516304700217100ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner greeter-crash test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-greeter-default-session000077500000000000000000000001301523516304700237110ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner greeter-default-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-greeter-fail-start000077500000000000000000000001231523516304700226540ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner greeter-fail-start test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-greeter-hide-users000077500000000000000000000001231523516304700226560ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner greeter-hide-users test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-greeter-not-installed000077500000000000000000000001211523516304700233610ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner greeter-not-installed invalid-greeter ubuntu-lightdm-e42f6d6/tests/test-greeter-show-manual-login000077500000000000000000000001321523516304700241470ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner greeter-show-manual-login test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-greeter-show-remote-login000077500000000000000000000001321523516304700241650ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner greeter-show-remote-login test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-greeter-wrapper000077500000000000000000000001201523516304700222630ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner greeter-wrapper test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-greeter-xserver-crash000077500000000000000000000001261523516304700234050ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner greeter-xserver-crash test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-group-membership000077500000000000000000000001211523516304700224360ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner group-membership test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-guest-wrapper000077500000000000000000000001161523516304700217620ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner guest-wrapper test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-headless000077500000000000000000000001111523516304700207400ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner headless test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-home-dir-on-authenticate000077500000000000000000000001311523516304700237440ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner home-dir-on-authenticate test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-home-dir-on-session000077500000000000000000000001241523516304700227530ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner home-dir-on-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-invalid-seat000077500000000000000000000001151523516304700215340ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner invalid-seat test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-language000077500000000000000000000001111523516304700207330ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner language test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-language-env000077500000000000000000000001151523516304700215250ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner language-env test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-language-no-accounts-service000077500000000000000000000001351523516304700246260ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner language-no-accounts-service test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-lock-seat000077500000000000000000000001121523516304700210330ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner lock-seat test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-lock-seat-after-vt-switch000077500000000000000000000001321523516304700240620ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner lock-seat-after-vt-switch test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-lock-seat-console-kit000077500000000000000000000001261523516304700232650ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner lock-seat-console-kit test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-lock-seat-resettable000077500000000000000000000001251523516304700231670ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner lock-seat-resettable test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-lock-seat-return-session000077500000000000000000000001311523516304700240320ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner lock-seat-return-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-lock-seat-return-session-console-kit000077500000000000000000000001451523516304700262640ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner lock-seat-return-session-console-kit test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-lock-seat-twice000077500000000000000000000001201523516304700221430ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner lock-seat-twice test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-lock-session000077500000000000000000000001151523516304700215650ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner lock-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-lock-session-no-password000077500000000000000000000001311523516304700240350ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner lock-session-no-password test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-lock-session-resettable000077500000000000000000000001301523516304700237120ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner lock-session-resettable test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-lock-session-return-session000077500000000000000000000001341523516304700245640ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner lock-session-return-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-lock-session-twice000077500000000000000000000001231523516304700226750ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner lock-session-twice test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-crash-authenticate000077500000000000000000000001311523516304700240340ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-crash-authenticate test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-gobject000077500000000000000000000001061523516304700216770ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-greeter-return-failure000077500000000000000000000001351523516304700246630ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-greeter-return-failure test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-disabled-gobject000077500000000000000000000001251523516304700245720ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-disabled test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-disabled-python000077500000000000000000000001241523516304700244750ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-disabled test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-disabled-qt5000077500000000000000000000001211523516304700236620ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-disabled test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-disabled-qt6000077500000000000000000000001211523516304700236630ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-disabled test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-fail-setup-script-gobject000077500000000000000000000001361523516304700264000ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-fail-setup-script test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-fail-setup-script-python000077500000000000000000000001351523516304700263030ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-fail-setup-script test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-fail-setup-script-qt5000077500000000000000000000001321523516304700254700ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-fail-setup-script test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-fail-setup-script-qt6000077500000000000000000000001321523516304700254710ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-fail-setup-script test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-gobject000077500000000000000000000001141523516304700230230ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-logout-gobject000077500000000000000000000001231523516304700243320ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-logout test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-logout-python000077500000000000000000000001221523516304700242350ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-logout test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-logout-qt5000077500000000000000000000001171523516304700234310ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-logout test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-logout-qt6000077500000000000000000000001171523516304700234320ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-logout test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-no-setup-script-gobject000077500000000000000000000001341523516304700260770ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-no-setup-script test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-no-setup-script-python000077500000000000000000000001331523516304700260020ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-no-setup-script test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-no-setup-script-qt5000077500000000000000000000001301523516304700251670ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-no-setup-script test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-no-setup-script-qt6000077500000000000000000000001301523516304700251700ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-no-setup-script test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-pick-session-gobject000077500000000000000000000001311523516304700254270ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-pick-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-pick-session-python000077500000000000000000000001301523516304700253320ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-pick-session test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-pick-session-qt5000077500000000000000000000001251523516304700245260ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-pick-session test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-pick-session-qt6000077500000000000000000000001251523516304700245270ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-pick-session test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-python000077500000000000000000000001131523516304700227260ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-qt5000077500000000000000000000001101523516304700221130ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-qt6000077500000000000000000000001101523516304700221140ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-guest-session-config000077500000000000000000000001331523516304700243350ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-guest-session-config test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-info-prompt-gobject000077500000000000000000000001221523516304700241450ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-info-prompt test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-info-prompt-python000077500000000000000000000001211523516304700240500ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-info-prompt test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-info-prompt-qt5000077500000000000000000000001161523516304700232440ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-info-prompt test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-info-prompt-qt6000077500000000000000000000001161523516304700232450ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-info-prompt test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-invalid-greeter000077500000000000000000000001111523516304700233370ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-greeter INVALID ubuntu-lightdm-e42f6d6/tests/test-login-invalid-session-gobject000077500000000000000000000001261523516304700250060ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-invalid-session-python000077500000000000000000000001251523516304700247110ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-session test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-invalid-session-qt5000077500000000000000000000001221523516304700240760ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-session test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-invalid-session-qt6000077500000000000000000000001221523516304700240770ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-session test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-invalid-user-gobject000077500000000000000000000001231523516304700242760ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-user test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-invalid-user-python000077500000000000000000000001221523516304700242010ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-user test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-invalid-user-qt5000077500000000000000000000001171523516304700233750ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-user test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-invalid-user-qt6000077500000000000000000000001171523516304700233760ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-invalid-user test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-logout-gobject000077500000000000000000000001151523516304700232060ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-logout test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-logout-python000077500000000000000000000001141523516304700231110ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-logout test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-logout-qt5000077500000000000000000000001111523516304700222760ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-logout test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-logout-qt6000077500000000000000000000001111523516304700222770ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-logout test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-long-password-gobject000077500000000000000000000001241523516304700244740ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-long-password test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-long-password-python000077500000000000000000000001231523516304700243770ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-long-password test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-long-password-qt5000077500000000000000000000001201523516304700235640ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-long-password test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-long-password-qt6000077500000000000000000000001201523516304700235650ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-long-password test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-long-username-gobject000077500000000000000000000001241523516304700244510ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-long-username test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-long-username-python000077500000000000000000000001231523516304700243540ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-long-username test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-long-username-qt5000077500000000000000000000001201523516304700235410ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-long-username test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-long-username-qt6000077500000000000000000000001201523516304700235420ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-long-username test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-manual-gobject000077500000000000000000000001151523516304700231520ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-manual test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-manual-previous-session-gobject000077500000000000000000000001361523516304700265100ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-manual-previous-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-manual-previous-session-python000077500000000000000000000001351523516304700264130ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-manual-previous-session test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-manual-previous-session-qt5000077500000000000000000000001321523516304700256000ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-manual-previous-session test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-manual-previous-session-qt6000077500000000000000000000001321523516304700256010ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-manual-previous-session test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-manual-python000077500000000000000000000001141523516304700230550ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-manual test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-manual-qt5000077500000000000000000000001111523516304700222420ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-manual test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-manual-qt6000077500000000000000000000001111523516304700222430ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-manual test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-manual-remember-session-gobject000077500000000000000000000001361523516304700264320ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-manual-remember-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-manual-remember-session-python000077500000000000000000000001351523516304700263350ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-manual-remember-session test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-manual-remember-session-qt5000077500000000000000000000001321523516304700255220ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-manual-remember-session test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-manual-remember-session-qt6000077500000000000000000000001321523516304700255230ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-manual-remember-session test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-multi-info-prompt-gobject000077500000000000000000000001301523516304700252740ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-multi-info-prompt test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-multi-info-prompt-python000077500000000000000000000001271523516304700252060ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-multi-info-prompt test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-multi-info-prompt-qt5000077500000000000000000000001241523516304700243730ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-multi-info-prompt test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-multi-info-prompt-qt6000077500000000000000000000001241523516304700243740ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-multi-info-prompt test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-multi-prompt-gobject000077500000000000000000000001231523516304700243450ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-multi-prompt test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-new-authtok-gobject000077500000000000000000000001221523516304700241410ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-new-authtok test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-new-authtok-python000077500000000000000000000001211523516304700240440ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-new-authtok test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-new-authtok-qt5000077500000000000000000000001161523516304700232400ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-new-authtok test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-new-authtok-qt6000077500000000000000000000001161523516304700232410ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-new-authtok test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-no-password-gobject000077500000000000000000000001221523516304700241470ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-no-password test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-no-password-python000077500000000000000000000001211523516304700240520ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-no-password test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-no-password-qt5000077500000000000000000000001161523516304700232460ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-no-password test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-no-password-qt6000077500000000000000000000001161523516304700232470ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-no-password test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-pam000077500000000000000000000001121523516304700210340ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-pam test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-pam-config000077500000000000000000000001211523516304700222770ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-pam-config test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-pick-session-gobject000077500000000000000000000001231523516304700243030ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-pick-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-pick-session-python000077500000000000000000000001221523516304700242060ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-pick-session test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-pick-session-qt5000077500000000000000000000001171523516304700234020ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-pick-session test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-pick-session-qt6000077500000000000000000000001171523516304700234030ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-pick-session test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-previous-session-gobject000077500000000000000000000001271523516304700252350ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-previous-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-previous-session-python000077500000000000000000000001261523516304700251400ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-previous-session test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-previous-session-qt5000077500000000000000000000001231523516304700243250ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-previous-session test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-previous-session-qt6000077500000000000000000000001231523516304700243260ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-previous-session test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-python000077500000000000000000000001051523516304700216020ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-qt5000077500000000000000000000001021523516304700207670ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-qt6000077500000000000000000000001021523516304700207700ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-remember-session-gobject000077500000000000000000000001271523516304700251570ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-remember-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-remember-session-python000077500000000000000000000001261523516304700250620ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-remember-session test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-remember-session-qt5000077500000000000000000000001231523516304700242470ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-remember-session test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-remember-session-qt6000077500000000000000000000001231523516304700242500ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-remember-session test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-remote-session-gobject000077500000000000000000000001251523516304700246520ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-remote-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-remote-session-python000077500000000000000000000001241523516304700245550ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-remote-session test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-remote-session-qt5000077500000000000000000000001211523516304700237420ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-remote-session test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-remote-session-qt6000077500000000000000000000001211523516304700237430ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-remote-session test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-session-crash000077500000000000000000000001241523516304700230430ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-session-crash test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-two-factor-gobject000077500000000000000000000001211523516304700237570ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-two-factor test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-two-factor-python000077500000000000000000000001201523516304700236620ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-two-factor test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-two-factor-qt5000077500000000000000000000001151523516304700230560ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-two-factor test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-two-factor-qt6000077500000000000000000000001151523516304700230570ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-two-factor test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-wrong-password-gobject000077500000000000000000000001251523516304700246720ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-wrong-password test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login-wrong-password-python000077500000000000000000000001241523516304700245750ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-wrong-password test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-login-wrong-password-qt5000077500000000000000000000001211523516304700237620ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-wrong-password test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-login-wrong-password-qt6000077500000000000000000000001211523516304700237630ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-wrong-password test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-login-xserver-crash000077500000000000000000000001241523516304700230560ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login-xserver-crash test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-login1-terminate000077500000000000000000000001211523516304700223300ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner login1-terminate test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-mir-autologin000077500000000000000000000001161523516304700217430ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner mir-autologin test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-mir-greeter000077500000000000000000000001101523516304700213710ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner mir-greeter test-mir-greeter ubuntu-lightdm-e42f6d6/tests/test-mir-session000077500000000000000000000001141523516304700214230ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner mir-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multi-seat000077500000000000000000000001131523516304700212360ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multi-seat test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multi-seat-autologin-seat0000077500000000000000000000001331523516304700242510ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-autologin-seat0 test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multi-seat-autologin-seat1000077500000000000000000000001331523516304700242520ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-autologin-seat1 test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multi-seat-change-graphical000077500000000000000000000001341523516304700244140ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-change-graphical test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multi-seat-change-graphical-disabled000077500000000000000000000001451523516304700261630ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-change-graphical-disabled test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multi-seat-globbing-config-sections000077500000000000000000000001441523516304700261130ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-globbing-config-sections test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multi-seat-login000077500000000000000000000001211523516304700223430ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-login test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multi-seat-no-multi-session000077500000000000000000000001341523516304700244640ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-no-multi-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multi-seat-non-graphical000077500000000000000000000001311523516304700237560ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-non-graphical test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multi-seat-non-graphical-disabled000077500000000000000000000001421523516304700255250ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-non-graphical-disabled test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multi-seat-seat0-non-graphical000077500000000000000000000001371523516304700247760ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-seat0-non-graphical test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multi-seat-seat0-non-graphical-disabled000077500000000000000000000001501523516304700265360ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-seat0-non-graphical-disabled test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multi-seat-wayland000077500000000000000000000001231523516304700226740ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multi-seat-wayland test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-multiple-authenticate000077500000000000000000000001261523516304700234650ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner multiple-authenticate test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-no-accounts-service000077500000000000000000000001241523516304700230430ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner no-accounts-service test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-no-config000077500000000000000000000001121523516304700210300ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner no-config test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-no-console-kit000077500000000000000000000001171523516304700220170ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner no-console-kit test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-no-console-kit-or-login1000077500000000000000000000001311523516304700236200ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner no-console-kit-or-login1 test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-no-dbus000077500000000000000000000001101523516304700205160ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner no-dbus test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-no-login1000077500000000000000000000001121523516304700207540ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner no-login1 test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-open-file-descriptors000077500000000000000000000001261523516304700233730ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner open-file-descriptors test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-plymouth-active-vt000077500000000000000000000001231523516304700227340ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner plymouth-active-vt test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-plymouth-inactive-vt000077500000000000000000000001251523516304700232650ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner plymouth-inactive-vt test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-plymouth-no-seat000077500000000000000000000001211523516304700223760ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner plymouth-no-seat test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-power-gobject000077500000000000000000000001061523516304700217230ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner power test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-power-no-console-kit000077500000000000000000000001251523516304700231500ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner power-no-console-kit test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-power-no-login1000077500000000000000000000001201523516304700221050ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner power-no-login1 test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-power-no-login1-or-console-kit000077500000000000000000000001371523516304700247600ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner power-no-login1-or-console-kit test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-power-no-services000077500000000000000000000001221523516304700225410ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner power-no-services test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-power-python000077500000000000000000000001051523516304700216260ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner power test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-power-qt5000077500000000000000000000001021523516304700210130ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner power test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-power-qt6000077500000000000000000000001021523516304700210140ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner power test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-restart-authentication000077500000000000000000000001271523516304700236600ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner restart-authentication test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-script-hook-display-setup-fail000077500000000000000000000001371523516304700251340ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner script-hook-display-setup-fail test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-script-hook-display-setup-missing000077500000000000000000000001421523516304700256660ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner script-hook-display-setup-missing test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-script-hook-greeter-setup-fail000077500000000000000000000001371523516304700251240ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner script-hook-greeter-setup-fail test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-script-hook-greeter-setup-missing000077500000000000000000000001421523516304700256560ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner script-hook-greeter-setup-missing test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-script-hook-session-setup-fail000077500000000000000000000001371523516304700251520ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner script-hook-session-setup-fail test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-script-hook-session-setup-missing000077500000000000000000000001421523516304700257040ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner script-hook-session-setup-missing test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-script-hooks000077500000000000000000000001151523516304700216010ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner script-hooks test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-seatdefaults-still-supported000077500000000000000000000001351523516304700250120ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner seatdefaults-still-supported test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-greeter000077500000000000000000000001201523516304700222660ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-greeter test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-greeter-allow-guest000077500000000000000000000001341523516304700245340ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-greeter-allow-guest test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-greeter-autologin000077500000000000000000000001321523516304700242700ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-greeter-autologin test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-greeter-default-session000077500000000000000000000001401523516304700253730ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-greeter-default-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-greeter-hide-users000077500000000000000000000001331523516304700243400ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-greeter-hide-users test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-greeter-multiple-login000077500000000000000000000001371523516304700252350ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-greeter-multiple-login test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-greeter-reconnect000077500000000000000000000001321523516304700242470ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-greeter-reconnect test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-greeter-show-manual-login000077500000000000000000000001421523516304700256310ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-greeter-show-manual-login test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-greeter-show-remote-login000077500000000000000000000001421523516304700256470ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-greeter-show-remote-login test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-greeter-switch000077500000000000000000000001271523516304700235740ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-greeter-switch test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-greeter-unlock000077500000000000000000000001271523516304700235660ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-greeter-unlock test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-greeter-unlock-twice000077500000000000000000000001351523516304700246760ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-greeter-unlock-twice test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-stderr000077500000000000000000000001171523516304700221420ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-stderr test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-stderr-backup000077500000000000000000000001261523516304700234050ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-stderr-backup test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-stderr-multi-write000077500000000000000000000001331523516304700244200ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-stderr-multi-write test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-session-stdout000077500000000000000000000001171523516304700221610ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner session-stdout test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-sessions-gobject000077500000000000000000000001111523516304700224310ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner sessions test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-sessions-python000077500000000000000000000001101523516304700223340ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner sessions test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-sessions-qt5000077500000000000000000000001051523516304700215300ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner sessions test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-sessions-qt6000077500000000000000000000001051523516304700215310ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner sessions test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-shared-data-greeter-to-session000077500000000000000000000001371523516304700250710ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner shared-data-greeter-to-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-shared-data-invalid-user000077500000000000000000000001311523516304700237270ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner shared-data-invalid-user test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-shared-data-session-to-greeter000077500000000000000000000001371523516304700250710ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner shared-data-session-to-greeter test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-shared-data-session-to-greeter-autologin000077500000000000000000000001511523516304700270640ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner shared-data-session-to-greeter-autologin test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-greeter000077500000000000000000000001221523516304700225260ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-greeter-disabled000077500000000000000000000001331523516304700242750ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter-disabled test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-greeter-new-session000077500000000000000000000001361523516304700250030ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter-new-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-greeter-resettable000077500000000000000000000001351523516304700246620ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter-resettable test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-greeter-return-session000077500000000000000000000001411523516304700255250ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter-return-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-greeter-return-session-logout000077500000000000000000000001501523516304700270340ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter-return-session-logout test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-greeter-return-session-pam000077500000000000000000000001451523516304700263040ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter-return-session-pam test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-greeter-return-session-repeat000077500000000000000000000001501523516304700270030ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-greeter-return-session-repeat test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-guest000077500000000000000000000001201523516304700222160ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-guest test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-guest-disabled000077500000000000000000000001311523516304700237650ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-guest-disabled test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-guest-fail-resettable000077500000000000000000000001401523516304700252610ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-guest-fail-resettable test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-user000077500000000000000000000001171523516304700220530ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-user-active000077500000000000000000000001261523516304700233240ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-active test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-user-disabled000077500000000000000000000001301523516304700236130ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-disabled test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-user-existing000077500000000000000000000001301523516304700236760ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-existing test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-user-existing-no-password000077500000000000000000000001441523516304700261550ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-existing-no-password test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-user-existing-resettable000077500000000000000000000001431523516304700260320ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-existing-resettable test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-user-logout-active000077500000000000000000000001351523516304700246330ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-logout-active test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-user-logout-active-resettable000077500000000000000000000001501523516304700267600ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-logout-active-resettable test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-user-logout-inactive000077500000000000000000000001371523516304700251640ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-logout-inactive test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-user-no-password000077500000000000000000000001331523516304700243230ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-no-password test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-user-resettable000077500000000000000000000001321523516304700242000ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-user-resettable test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-switch-to-users000077500000000000000000000001201523516304700222300ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner switch-to-users test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-system-xauthority000077500000000000000000000001221523516304700227140ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner system-xauthority test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-unity000077500000000000000000000001061523516304700203240ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner unity test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-unknown-config000077500000000000000000000001171523516304700221200ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner unknown-config test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-upstart-autologin000077500000000000000000000001221523516304700226530ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner upstart-autologin test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-upstart-login000077500000000000000000000001161523516304700217650ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner upstart-login test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-user-background000077500000000000000000000001201523516304700222430ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner user-background test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-user-has-messages000077500000000000000000000001221523516304700225060ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner user-has-messages test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-user-image000077500000000000000000000001131523516304700212100ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner user-image test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-user-layout000077500000000000000000000001141523516304700214440ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner user-layout test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-user-logged-in000077500000000000000000000001171523516304700217770ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner user-logged-in test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-user-name000077500000000000000000000001121523516304700210450ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner user-name test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-user-renamed000077500000000000000000000001151523516304700215430ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner user-renamed test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-user-renamed-invalid000077500000000000000000000001251523516304700231700ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner user-renamed-invalid test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-user-session000077500000000000000000000001151523516304700216130ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner user-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-user-uid000077500000000000000000000001111523516304700207050ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner user-uid test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-users-gobject000077500000000000000000000001061523516304700217300ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner users test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-users-python000077500000000000000000000001051523516304700216330ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner users test-python-greeter ubuntu-lightdm-e42f6d6/tests/test-users-qt5000077500000000000000000000001021523516304700210200ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner users test-qt5-greeter ubuntu-lightdm-e42f6d6/tests/test-users-qt6000077500000000000000000000001021523516304700210210ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner users test-qt6-greeter ubuntu-lightdm-e42f6d6/tests/test-utmp-autologin000077500000000000000000000001171523516304700221420ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner utmp-autologin test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-utmp-login000077500000000000000000000001131523516304700212450ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner utmp-login test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-utmp-wrong-password000077500000000000000000000001241523516304700231330ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner utmp-wrong-password test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-vnc-command000077500000000000000000000001141523516304700213550ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner vnc-command test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-vnc-dimensions000077500000000000000000000001171523516304700221120ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner vnc-dimensions test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-vnc-guest000077500000000000000000000001121523516304700210640ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner vnc-guest test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-vnc-login000077500000000000000000000001121523516304700210450ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner vnc-login test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-vnc-open-file-descriptors000077500000000000000000000001321523516304700241540ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner vnc-open-file-descriptors test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-wayland-autologin000077500000000000000000000001221523516304700226100ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner wayland-autologin test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-wayland-greeter000077500000000000000000000001201523516304700222420ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner wayland-greeter test-wayland-greeter ubuntu-lightdm-e42f6d6/tests/test-wayland-session000077500000000000000000000001201523516304700222700ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner wayland-session test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xauthority000077500000000000000000000001131523516304700213720ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xauthority test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdg-current-desktop000077500000000000000000000001241523516304700230650ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdg-current-desktop test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdg-current-desktop-legacy000077500000000000000000000001331523516304700243270ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdg-current-desktop-legacy test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-client000077500000000000000000000001151523516304700215430ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-client test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-client-xorg-1.16000077500000000000000000000001271523516304700231060ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-client-xorg-1.16 test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-autologin000077500000000000000000000001271523516304700235750ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-autologin test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-double-login000077500000000000000000000001321523516304700241500ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-double-login test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-guest000077500000000000000000000001231523516304700227170ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-guest test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-hostname000077500000000000000000000001261523516304700234110ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-hostname test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-invalid-authentication000077500000000000000000000001441523516304700262360ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-invalid-authentication test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-keep-alive000077500000000000000000000001301523516304700236100ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-keep-alive test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-login000077500000000000000000000001231523516304700227000ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-login test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-login-logout000077500000000000000000000001321523516304700242070ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-login-logout test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-open-file-descriptors000077500000000000000000000001431523516304700260070ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-open-file-descriptors test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-request-invalid-authentication000077500000000000000000000001541523516304700277250ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-request-invalid-authentication test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-request-invalid-authorization000077500000000000000000000001531523516304700276050ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-request-invalid-authorization test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-request-without-addresses000077500000000000000000000001471523516304700267420ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-request-without-addresses test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-request-without-authorization000077500000000000000000000001531523516304700276620ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-request-without-authorization test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-xdm-authentication000077500000000000000000000001401523516304700253740ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-xdm-authentication-invalid-authorization000077500000000000000000000001661523516304700317260ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-invalid-authorization test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-xdm-authentication-long-data000077500000000000000000000001521523516304700272430ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-long-data test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-xdm-authentication-missing-data000077500000000000000000000001551523516304700277600ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-missing-data test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-xdm-authentication-missing-key000077500000000000000000000001541523516304700276360ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-missing-key test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-xdm-authentication-no-key000077500000000000000000000001471523516304700266030ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-no-key test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-xdm-authentication-required000077500000000000000000000001511523516304700272140ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-required test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xdmcp-server-xdm-authentication-short-data000077500000000000000000000001531523516304700274440ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xdmcp-server-xdm-authentication-short-data test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xlocal-legacy000077500000000000000000000001161523516304700217010ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xlocal-legacy test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xremote-autologin000077500000000000000000000001221523516304700226340ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xremote-autologin test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xremote-login000077500000000000000000000001161523516304700217460ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xremote-login test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xremote-login-logout000077500000000000000000000001251523516304700232550ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xremote-login-logout test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xserver-config000077500000000000000000000001171523516304700221170ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xserver-config test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xserver-fail-start000077500000000000000000000001231523516304700227150ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xserver-fail-start test-gobject-greeter ubuntu-lightdm-e42f6d6/tests/test-xserver-no-share000077500000000000000000000001211523516304700223610ustar00rootroot00000000000000#!/bin/sh ./src/dbus-env ./src/test-runner xserver-no-share test-gobject-greeter