aboutsummaryrefslogtreecommitdiff
path: root/src/arctica-greeter.vala
Commit message (Collapse)AuthorAgeFilesLines
* src/arctica-greeter.vala: Initialise OnBoard and Orca after the greeter is ↵Robert Tari2023-10-031-4/+11
| | | | presented
* src/arctica-greeter.vala: Initialize screen-reader and OSK as configured in ↵Mike Gabriel2023-10-031-0/+4
| | | | gsettings.
* a11y / OSK: Restart OSK on theme toggling (normal/high-contrast) and adjust ↵Mike Gabriel2023-10-031-8/+96
| | | | the OSK theme accordingly.
* src/arctica-greeter.vala: Check for high-contrast mode when initializing ↵Mike Gabriel2023-09-191-15/+27
| | | | gtk-theme-name and gtk-icon-theme-name.
* src/arctica-greeter.vala: Toggle Orca, high contrast and OnBoard via D-BusRobert Tari2023-09-161-11/+151
|
* src/arctica-greeter.vala: In validate_session() make it easier for the human ↵Mike Gabriel2023-09-151-8/+16
| | | | eye to identified code-blocks.
* src/arctica-greeter.vala: Use '&&' operators instead of '&' in if-clauses.Mike Gabriel2023-09-151-4/+4
|
* Introduce gsetting (bool): hide-default-xsession.Mike Gabriel2023-09-151-2/+10
|
* Introduce gsettings (list): includeonly-sessions, excluded-sessions.Mike Gabriel2023-09-151-0/+31
|
* Introduce gsetting (array of strings): preferred-sessions.Mike Gabriel2023-09-151-8/+5
| | | | | The preferred-session gsetting shall provide an ordered list of preferred sessions for detecing the default session type.
* src/arctica-greeter.vala: Add FIXME for new/direct indicator startup method.Mike Gabriel2023-09-111-0/+6
|
* src/arctica-greeter.vala: Drop indicator startup via systemctl and ↵Mike Gabriel2023-09-111-48/+30
| | | | | | | | | spawn_async them directly. This assures DBUS_SESSION_BUS_ADDRESS being shared between greeter and indicators, so DBus session bus operation work out-of-the-box (which is not the case when launching indicators via systemd).
* src/arctica-greeter.vala: fix tiny main window on startup.Mihai Moldovan2023-08-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 3a5ca24831d1b4a74af6cfd5c5cc2a42b5787aeb backported a commit calculating the really needed screen size more correctly as a prerequisite for additional multi-display support (span and zoom modes) from Slick Greeter (5d39cade1f70ffe0a9bc38ad0b405bb55d98a505), but unfortunately missed crucial code in src/arctica-greeter.vala. While the realize call on main_window should be harmless, calling setup_window on it actually leads to the main window resizing to the actual size that was queried via GDK. While setup_window is being called as part of the main window creation, the first call just skips resizing it (for some reason). Subsequent calls, which are *mostly* triggered through changes in the actual display configuration (hardware or software), then have main window recalculate its size (and updating the background). Honestly, we could just rip out the whole do_resize logic and always resize, since with these changes, we're forcing a resize on startup anyway. Not doing so leads to the nasty bug this commit fixes. However, to keep Slick Greeter's and our code more in sync (to make future backporting easier), let's keep it like this for now. Fixes: https://github.com/ArcticaProject/arctica-greeter/issues/47
* src/arctica-greeter.vala: Do not rename users in D-Bus methodsRobert Tari2023-07-021-10/+0
|
* src/arctica-greeter.vala: Modify user change signallingRobert Tari2023-05-091-18/+19
| | | | Relying on LightDM's signals is not enough - we do not get the guest user.
* src/arctica-greeter.vala: Add D-Bus server with methods needed by the ↵Robert Tari2023-05-071-2/+96
| | | | keyboard indicator
* Fix casting issuesRobert Tari2023-05-071-7/+13
|
* Fix error handlers for D-Bus methodsRobert Tari2023-05-071-2/+4
|
* src/arctica-greeter.vala: fix "this this" typo in comment.Mihai Moldovan2023-05-031-2/+2
|
* 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).