aboutsummaryrefslogtreecommitdiff
path: root/src/arctica-greeter.vala
Commit message (Collapse)AuthorAgeFilesLines
* Add support for hiding X11 and/or Wayland sessions.Mike Gabriel2023-04-031-15/+32
|
* Remove marco WM due to logon screen bypassBastian Kanbach2023-03-011-35/+0
| | | | | | This commit removes invocation of MATE's window manager marco, that was introduced with 9b3526d12d9d6c828fbd4a29dec2295ae2f735a5 Having marco launched allows any user to use its keybindings to open applications which could bypass arctica-greeter and access the operating system as the "lightdm" user.
* src/: Get rid of various vala interpreter warnings.Mike Gabriel2023-03-011-3/+6
|
* arctica-greeter's test mode: No keyboard tweaks in test mode.Mike Gabriel2023-03-011-7/+9
|
* arctica-greeter's test mode: Add cmdline args '--test-highconstrast' and ↵Mike Gabriel2023-03-011-8/+34
| | | | '--test-bigfont' (soon to come feature).
* src/arctica-greeter.vala: Don't launch Lomiri-related DBus listeners in test ↵Mike Gabriel2023-03-011-30/+32
| | | | mode. Allows one to run arctica-greeter in test-mode within a Lomiri session.
* src/{arctica-greeter,greeter-list}.vala: Mimick a Lomiri Greeter, make ↵Mike Gabriel2023-03-011-1/+1
| | | | ArcticaGreeter behave well, when interacting with Lomiri Shell.
* src/arctica-greeter.vala: Adjust to DBus renamings in Ayatana Indicator ↵Mike Gabriel2023-02-281-2/+2
| | | | Session. We use the com.lomiri.Shell interface to communite between session indicator and Arctica Greeter.
* src/arctica-greeter.vala: Don't assign new value to method argument.Mike Gabriel2023-02-251-4/+5
|
* src/arctica-greeter.vala: Already fall back to LightDM's system default for ↵Mike Gabriel2023-02-241-2/+2
| | | | 'session' in ArcticaGreeter's get_default_session().
* src/arctica-greeter.vala: Always use ArcticaGreeter's ↵Mike Gabriel2023-02-241-2/+2
| | | | default_session_hint(). No direct access to LightDM's version of it.
* src/arctica-greeter.vala: Turn get_default_session() and validate_session() ↵Mike Gabriel2023-02-241-3/+3
| | | | into non-static methods.
* Use ArcticaGreeter's way of detecting the default session, only fallback to ↵Mike Gabriel2023-02-241-0/+2
| | | | LightDMs default if absolutely necessary.
* src/arctica-greeter.vala: Drop now unused continue_init variable.Mike Gabriel2023-02-241-1/+0
|
* src/arctica-greeter.vala: Prefer wayland sessions over X11 sessions.Mike Gabriel2023-02-241-2/+2
|
* src/arctica-greeter.vala: Add Lomiri to list of potential default sessions ↵Mike Gabriel2023-02-241-0/+1
| | | | (if installed).
* Allow wayland sessions to pass validation.Ivan Podogov2023-02-241-1/+9
| | | | This makes slick-greeter properly remember the last wayland session instead of defaulting to an xsession.
* src/arctica-greeter.vala: Move ArcticaGreeter method further up again, so it ↵Mike Gabriel2023-02-241-16/+16
| | | | is located below the constructor() method.
* src/arctica-greeter.vala: Move Glib.Bus.watch_name() call out of ↵Mike Gabriel2023-02-241-30/+8
| | | | ArcticaGreeter's contructor into separate ArcticaGreeter.go() method.
* src/arctica-greeter.vala: fix test mode.Mihai Moldovan2023-02-221-5/+37
| | | | | | | | | | | | | | | | | 32d28d7bf2646fc7a0008937034246fcc96dbc8a broke test mode by changing the ArcticaGreeter class to a proper SingleInstance vala class. While meant well, this created deadlocks, especially when using test mode, since other code being called from the ArcticaGreeter constructor tries to acquire references to ArcticaGreeter, which is still locked at that point in time. Fortunately, GObject has the constructed () function, that is almost never used within vala, but still works and is called after the constructor () (or, in vala parlance, construct), so we can move calling functions that might require a constructed ArcticaGreeter to constructed (). Fixes: https://github.com/ArcticaProject/arctica-greeter/issues/42
* src/arctica-greeter.vala: Fix path of helper executable ↵Mike Gabriel2023-02-061-1/+1
| | | | arctica-greeter-enable-tap-to-click.
* Enable touchpad tap-to-click.Mike Gabriel2023-02-061-0/+13
| | | | | | Ported from Slick Greeter by Mike Gabriel. https://github.com/linuxmint/slick-greeter/commit/85f83be9977faf2482d38d2cc289f0542b1c06a4
* Set our own cursor theme and size internally via GtkSettings.Michael Webster2023-02-061-3/+18
| | | | | | | | The gtk and icon themes already work this way. Ported from Slick Greeter by Mike Gabriel. https://github.com/linuxmint/slick-greeter/commit/97f9f54b686303dec81918d3056194bff2a3163c
* src/arctica-greeter.vala: Apply HiDPI settings after command line has been ↵Mike Gabriel2023-02-061-12/+13
| | | | parsed (so we know if we are in test-mode or not).
* misc src/: completely rework high contrast mode, add stub for big font mode.Mihai Moldovan2023-02-061-0/+110
| | | | | | | | | This is a work-in-progress. The reworked high contrast mode adds support for a configurable high contrast GTK theme and changes a lot of widgets to change their color. The big font mode is a stub currently.
* misc src/: make ArcticaGreeter a proper vala SingleInstance class.Mihai Moldovan2023-02-061-9/+21
| | | | | This allows us to drop the rather awkward self-referencing static singleton member and use a standard vala/glib feature.
* src/settings.vala: make SingleInstance class.Mihai Moldovan2023-02-061-0/+10
| | | | | | | This way, we will be able to use it everywhere, as long as we hold a reference in the main greeter object. We will extend this class with other properties later on.
* Fix some typosElyes HAOUAS2021-06-071-1/+1
| | | | Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
* src/arctica-greeter.vala: Use set_decorated(false) on main_window, rather ↵Mike Gabriel2019-03-171-1/+1
| | | | than fullscreen(). With fullscreen() Arctica Greeter's main window gets only shown on the primary monitor and one cannot let the login box follow the pointing device to the active monitor anymore.
* Remove mlockall.Mike Gabriel2019-03-171-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Protect memory from being paged to disk, as we deal with passwords According to systemd-dev, "mlockall() is generally a bad idea and certainly has no place in a graphical program. A program like this uses lots of memory and it is crucial that this memory can be paged out to relieve memory pressure." With systemd version 239 the ulimit for RLIMIT_MEMLOCK was set to 16 MiB and therefore the mlockall call would fail. This is lucky becasue the subsequent mmap would not fail. With systemd version 240 the RLIMIT_MEMLOCK is now set to 64 MiB and now the mlockall no longer fails. However, it not possible to mmap in all the memory and because that would still exceed the MEMLOCK limit. " See https://bugzilla.redhat.com/show_bug.cgi?id=1662857 & https://github.com/CanonicalLtd/lightdm/issues/55 RLIMIT_MEMLOCK = 64 MiB means, arctica-greeter will most likely fail with 64 bit and will always fail on 32 bit systems. Hence we better disable it. Ported from Unity Greeter / Slick Greeter. https://bugs.launchpad.net/ubuntu/+source/unity-greeter/+bug/1815493 https://github.com/linuxmint/slick-greeter/pull/127
* Posix.Signal.<SIG>: Provide old-style Posix.SIG<SIG> API calls if built with ↵Mike Gabriel2018-06-211-0/+12
| | | | Vala API version << 0.40. (Fixes FTBFS on Debian 9).
* Use Posix.Signal.* rather than Posix.SIG*. (Vala 0.40 deprecations).Mike Gabriel2018-06-161-3/+3
|
* src/arctica-greeter.vala: Have MATE's marco WM as window manager for Arctica ↵Mike Gabriel2018-06-161-0/+32
| | | | Greeter. Makes handling windows opened via some of the indicators much more organic.
* src/arctica-greeter.vala: Trigger UPower activation when greeter starts.Mike Gabriel2018-03-161-0/+13
|
* HiDPI: Do not enable it in test-mode.Mike Gabriel2018-03-161-9/+13
|
* Port HiDPI support from slick-greeter.Mike Gabriel2018-03-161-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Inspired by these slick-greeter commits: commit ffd43c4d425e70bc003b490dcddb8fbae1fffea7 Author: Clement Lefebvre <clement.lefebvre@linuxmint.com> Date: Sat Apr 8 14:13:23 2017 +0100 HiDPI: Allow to force HiDPI support ON or OFF commit 809f1b30a321ae12fdd3ba154791f9ead291acc7 Author: Clement Lefebvre <clement.lefebvre@linuxmint.com> Date: Fri Apr 7 23:04:50 2017 +0100 HiDPI: Take the screen size in consideration HiDPI shouldn't be activated on large screens where the dpi is OK. commit 851fca4e5508471d6f388edcd0327c3fc5b2b12f Author: Clement Lefebvre <clement.lefebvre@linuxmint.com> Date: Fri Apr 7 18:43:42 2017 +0100 Add HiDPI support Only support 1x and 2x scale ratios for now. Also add a setting so the user can disable HiDPI support.
* src/arctica-greeter.vala: Clear the AT_SPI_BUS property on the root window ↵Michael Webster2018-03-121-0/+12
| | | | | | | on exit, so the user session components won't fail to connect. Based on fix for lightdm-gtk-greeter see: https://bugs.launchpad.net/lightdm-gtk-greeter/+bug/1670933
* greeter: Avoid expensive Python calls when it isn't needed.Ikey Doherty2018-03-121-0/+6
| | | | | | | | | | | | | | On non Debian/Ubuntu systems, the /etc/default/keyboard path does not exist. To prevent expensive Python startup (and hundreds/thousands of stats + follow-up loads) we'll reduce to an initial early stat, i.e. if the non-standard file exists only then will we exectute the helper stub. This is most useful on systems that employ systemd for the X11 keyboard configuration (`00-keyboard.conf` from systemd-localed) so that the X server already has the correct layout upon starting up. This approach also avoids unnecessary xkbcomp calls forcing recompilation of non-cached assets. Signed-off-by: Ikey Doherty <ikey@solus-project.com>
* White-space cleanup. Removing superfluous EOL white-spaces.Mike Gabriel2017-12-071-1/+1
|
* Explicitly set the keyboard layoutMike Gabriel2017-10-261-0/+13
| | | | | | | | | | | | | | | Ported from slick-greeter: Author: Clement Lefebvre <clement.lefebvre@linuxmint.com> Date: Sat Jun 10 15:57:49 2017 +0100 Explicitly set the keyboard layout The keyboard layout isn't properly set by default in some case. This affects wireless Logitech keyboards in particular, and it results in the greeter using an American layout instead of the layout chosen during the installation.
* Add support for numlockx.Clement Lefebvre2017-10-261-0/+16
| | | | | | | | | Ported from slick-greeter: From 82d912b8fe98e01c80a59e3c010b1bbb18c859b0 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre <clement.lefebvre@linuxmint.com> Date: Tue, 11 Jul 2017 16:57:23 +0200 Subject: [PATCH 1/1] Add support for numlockx
* copyright holdership: Add myself as copyright holder and author to file ↵Mike Gabriel2017-10-261-1/+3
| | | | headers of files I have worked on.
* src/arctica-greeter.vala: Fix debug message, we use MSD, not USD.Mike Gabriel2017-10-261-1/+1
|
* src/arctica-greeter.vala: Don't load any external application when launched ↵Mike Gabriel2017-06-201-64/+67
| | | | in test mode.
* Fix Arctica Greeter preventing DE from applying cursor theme/size.Clement Lefebvre2017-06-201-0/+6
| | | | | | | | | See https://bugs.launchpad.net/ubuntu/+source/unity-greeter/+bug/1024482 Arctica Greeter sets the mouse cursor on the root window. Without GKD_CORE_DEVICE_EVENTS set, the DE is unable to apply its own cursor theme and size.
* Don't draw the background before starting the session.Clement Lefebvre2017-06-201-23/+0
| | | | | | | | | | | | | | | | | Drawing the background on the root window causes the following issues: - The settings daemon sets the DE resolution and that can break the aspect of the background - Depending on configuration and distros, the background rendered by the greeter may or may not be the same as the users's. - Some DEs such as Cinnamon render a login animation, which looks good on a black screen but not when a background is drawn. Potential for regression: Minimal DEs and WM should be tested to ensure the default state of the root window is OK. We might have to clear that window or explicitly paint it black (or the background color chosen by the user).
* debugging: Print out process PIDs for launched subprocesses.Mike Gabriel2017-06-201-0/+2
|
* Add support for validating session names (and proper fallback for ↵Clement Lefebvre2017-06-201-0/+46
| | | | uninstalled sessions). Ported from slick-greeter.
* Fix at-spi-bus-launcher path in Fedora (ported and modifed from slick-greeter).Mike Gabriel2017-06-201-9/+17
|
* src/arctica-greeter.vala: Disconnect the event filter when the main window ↵Michael Webster2017-06-201-0/+13
| | | | | | | is destroyed. Otherwise we can continue to receive events on the filter when we no longer have a backing GdkWindow to act upon (causing a segfault).