aboutsummaryrefslogtreecommitdiff
path: root/src/arctica-greeter.vala
Commit message (Collapse)AuthorAgeFilesLines
* 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).
* 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
|