aboutsummaryrefslogtreecommitdiff
path: root/src/arctica-greeter.vala
Commit message (Collapse)AuthorAgeFilesLines
* 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).
* menubar clean-up before session start: i.e. kill onboard and orca on session ↵leigh123linux2017-06-201-0/+2
| | | | startup (ported from slick-greeter).
* src/arctica-greeter.vala: Fix copy+paste flaw blocking atspid to be ↵Mike Gabriel2017-06-121-1/+1
| | | | destroyed at greeter exit.
* src/settings-daemon.vala: Make sure the SettingsDaemon subprocess gets ↵Mike Gabriel2017-06-081-0/+2
| | | | killed when greeter exits.
* Rename owned greeter bus to a generical, product-independent name: ↵Mike Gabriel2017-06-041-1/+1
| | | | org.ayatana.Greeter.
* Play system-ready sound when arctica-greeter is ready for loggin the user ↵Mike Gabriel2017-05-311-1/+1
| | | | in. Ship system-ready sound with our own sound theme as ubuntu-sounds is not available on all distros.
* Use ShutdownDialogType.SHUTDOWN on incoming shutdown requests. This enables ↵Mike Gabriel2017-05-301-1/+1
| | | | Hibernate and Suspend buttons, which is nice.
* nm-applet startup: Fix typo in cmd line option.Mike Gabriel2017-05-281-1/+1
|
* DBus own_name: Clear up mess. Arctica Greeter owns two buses: ↵Mike Gabriel2017-05-231-3/+3
| | | | org.ArcticaProject.ArcticaGreeter (formerly: com.canonical.UnityGreeter) and org.ayatana.Desktop (formerly: com.canonical.Unity).
* src/arctica-greeter.vala: Enable nm-applet again, launch with --indicators ↵Mike Gabriel2017-05-231-19/+19
| | | | option and let's hope the system has nm-applet with indicators support compiled-in.
* Acquire DBus session bus 'com.canonical.Unity' for now. Same bus name is ↵Mike Gabriel2017-05-181-3/+3
| | | | used in ayatana-indicator-session and maybe elsewhere.
* Disable nm-applet while we are not able to pipe it into ↵Mike Gabriel2017-05-171-19/+19
| | | | ayatana-indicator-application.
* Silence GTK 3.22 warnings relating to deprecation in Gdk.Screen.Mike Gabriel2017-05-171-1/+3
|
* src/arctica-greeter.vala: Cleanly exit nm-applet when switching to the user ↵Mike Gabriel2017-05-171-2/+25
| | | | context.
* indicator service launching: Check AGSettings for what indicator to load and ↵Mike Gabriel2017-05-171-96/+84
| | | | remember loaded indicators to clean up properly when switching to the user context.
* indicator support: Launch ayatana-indicator-session service via Arctica Greeter.Mike Gabriel2017-05-171-0/+33
|
* indicator services: Launch inicator power service via systemd before showing ↵Mike Gabriel2017-05-161-6/+39
| | | | the greeter.
* src/arctica-greeter.vala: Fix systemd launch of ↵Mike Gabriel2017-05-151-2/+2
| | | | ayatana-indicator-application service.
* arctica-greeter.vala: Fix .service file name for starting up Ayatana ↵Mike Gabriel2017-05-151-2/+2
| | | | Indicators Application as a service.
* Use systemd to launch the Ayatana Indicators Application Service.Mike Gabriel2017-05-151-29/+39
|
* Switch to using MATE's Settings Daemon.Mike Gabriel2017-04-291-3/+3
|
* Handle errors from liblightdm.Robert Ancell2017-04-181-6/+50
|
* Show error when failing to connect to LightDM daemon.Robert Ancell2017-04-181-1/+1
|
* Fix test mode by skipping xsettings checks.Robert Ancell2017-04-181-31/+37
|
* Explicitly set scale and geometry for Cairo.XlibSurface.Robert Ancell2016-09-151-4/+10
|
* Wait for gnome-settings-daemon xsettings plugin is ready to avoid HiDPI ↵Mike Gabriel2016-09-151-44/+88
| | | | | | | resolution changing. Author (unity-greeter): Robert Ancell <robert.ancell@canonical.com> Ported to arctica-greeter: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
* Build against Ayatana Indicators instead of Ubuntu Inidicators.Mike Gabriel2015-11-071-1/+1
|
* Set a session name in our own namespace.Mike Gabriel2015-10-281-2/+2
|
* Attempt to fake a session with org.gnome.SessionManager.Mike Gabriel2015-10-271-2/+2
|