Giter VIP home page Giter VIP logo

web-greeter's Introduction

Web Greeter for LightDM

Latest Release  Codacy Grade  CircleCI  Theme API Docs  AUR Votes

Install It

Distro Packages

Distro Install Command/Links
antergos sudo pacman -S lightdm-webkit2-greeter
arch yaourt -S lightdm-webkit2-greeter
fedora dnf copr enable antergos/lightdm-webkit2-greeter
openSUSE 1 Click Install
ubuntu OBS Repo

From Source

Dependencies

antergos    arch ubuntu fedora openSUSE
whither python-whither python3-whither python3-whither python3-whither
liblightdm-gobject lightdm liblightdm-gobject-dev lightdm-gobject-devel liblightdm-gobject-1-0
pygobject python-gobject python3-gi pygobject3 python3-gobject

NOTE: These instructions are for the master branch. To build the latest release, please see the stable branch.

Download & Install

git clone https://github.com/Antergos/web-greeter.git /tmp/greeter
cd /tmp/greeter
sudo make install

Theme JavaScript API

The greeter exposes a JavaScript API to themes which they must use to interact with the greeter (in order to facilitate the user login process). For more details, check out the API Documentation.

Debugging

You can run the greeter from within your desktop session if you add the following line to the desktop file for your session located in /usr/share/xsessions/: X-LightDM-Allow-Greeter=true.

You have to log out and log back in after adding that line. Then you can run the greeter from command line.

web-greeter

Themes can be opened with a debug console if you set debug_mode to true inside /etc/lightdm/web-greeter.yml.

Note: Do not use lightdm --test-mode as it is not supported.

Translations

Translations are managed through Transifex.

web-greeter's People

Contributors

aitbits avatar artur9010 avatar berlam avatar cytodev avatar faidoc avatar fallingsnow avatar jkw avatar karasu avatar litarvan avatar lots0logs avatar minijackson avatar mpetitjean avatar paescuj avatar samueldr avatar sebastiencs avatar tlater avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

web-greeter's Issues

Slow Load leads to white screen

this version loads at least 15 seconds slower than lightdm-webkit-greeter and as a result there is a white screen that appears while webkit prepares to render the chosen.

I'm unsure of what should be done to smooth out the transition.

while of no great importance it is a bit ugly.

of topic abit, I love this. I was constantly fighting small bugs with the previous webkit version. now this white screen before it loads is the only annoyance!

Background not respecting settings?

Have Gnome installed. applied a background to the desktop just fine. Set one for the lock screen, locked the system Super+L, background is incorrect. Logged in, locked again, background is not the same but still incorrect, appears to be using a random background each time?

Rendering glitch on password error

If I type the password incorrectly, I get a small red box with a white v icon, if there was meant to be associated text to indicate an incorrect password it is missing. I am able to repeat this error, but only the first time when I lock the screen. Additional times shows no error visual at all, just appears unresponsive until I've put in the correct password.

fedora repo package has wrong dependence

when i try to install the lightdm-webkit2-greeter package on fedora 23, an error occurred:
nothing provides libgtk-3-0 needed by lightdm-webkit2-greeter-2.1.4-21.1.i686
it seems it should depend on gtk3, not libgtk-3-0.

Locking screen,hibernate and suspend does not work properly with Nvidia 352 and 355 driver.

I can’t lock my screen or hibernate properly with the Nvidia driver 355 on Antergos.The lock screen button in the Whisker Menu doesn’t do anything so I used the dm-tool lock command but it didn’t lock it properly and the only thing I got was a white screen with my mouse pointer showing.Using Suspend and Hibernate shows me this also.This seems to be a problem with lightdm-webkit2-greeter as lightdm-gtk-greeter worked properly for me when locking my screen so I'm posting it here.

Can lightdm-webkit2-greeter access system battery level

I'm trying to show the battery level of my laptop in the login screen but webkit2gtk doesn't support the battery api. I was wondering if there is a way to access it instead through lightdm. I'd prefer not having to make a server that must be started with the computer just to be polled for the battery level.

Thank you!

Greeter's locale

Hello,
I reinstalled lightdm and lightdm-webkit2-greeter from scratch, now it works, but the greeter is only shown in English and not in the system-wide locale. Is there a way to configure it (manually)?
Thanks,

Possibly try a new user list layout?

I thought it might be nice to make use of the space on the sides of the user list by scaling up the user entries to be displayed in a 'polaroid' sort of style. You can see my crude mock-up at http://bit.ly/1sR4YeF .

Could we work to adopt this layout for the new greeter?

Black background on login screen, cannot change

After the latest updates (including Gnome 3.20) the login screen no longer shows a background image but is a solid black color. This affects the background only, the login prompt is still shown and login works as normal.

The menu button on the top left can be used to select different backgrounds, but the background always stays a solid black. Clicking on a different background gives the fade-out/fade-in effect of the login prompt as if it was changing backgrounds.

Black screen on CSS files longer than 100 lines

Possibly related to #46

In the process of debugging a custom theme, I discovered that including a CSS file longer than 100 lines causes the entire renderer to go black and display nothing / take no input.

Does not seem to be tied to size, number of CSS selectors, or selector complexity, but purely line count.

Is this intentional?

Assuming that it is not intentional, some useful info:

  • Works as expected when CSS is split into seperate 100 line files, Possible File IO issue?
  • Does not appear to affect the JS, tested up to 1000 lines as still functional.
  • Breaks renderer regardless of location, if loaded after all content has already rendered it will still cause the entire DOM to turn black and go unresponsive.

No documentation

Why there is no documentation about the lightdm api provided in JavaScript?

Unnecessary Scrollbar

I find it weird how I have the scroll bar on the user list of the greeter when I see all of the users of my system entirely, without any cut-off.

Could we possibly make it so that the scrollbar (or if we would try my new layout pitch, arrow buttons) would only appear if the entries of the users on the user list extend past the border of the login panel?

Can't login via lightdm-webkit2-greeter but lightdm-gtk-greeter is OK

Donno if this is the right place to ask.
I am running Debian sid x86_64. I installed lightdm-webkit2-greeter and all the dependencies you provided and set greeter to webkit2-greeter.
My problem is that after I input my username and password and hit ENTER, nothing happens screen just stays at the same interface(same when I click Login button). I changed to lightdm-webkit2-greeter theme to artur9010/lightdm-webkit-material and miko007/LightDM-Webkit-pantheon-theme (all on GitHub) and the problem remains. As soon as I switch back to gtk-greeter I can successfully login. So I think this may have something to do with lightdm-webkit2-greeter itself.

Processes left running after every suspend.

After every suspend, a lightdm-webkit2-greeter process is left running and consuming RAM, as well as WebKitWeb and WebKitNetwork processes.
Here's a screenshot of top after closing and opening my laptop lid a few times and logging in.
top

No text rendering, login not possible

Probably releated to #31

After updating, I'm not longer able to login, because:

  • there is no text rendered, as well as checkboxes, input fields,...
  • when I do the same gestures as with the old theme, I'm still not able to login

Correctly rendered are:

  • the login rect (the big one containing the Antergos logo and which normaly also includes all other input fields)
  • the antergos logo
  • a little arrow in the login rect which can be clicked (but I don't know what it do, it simply changes position after clicking)
  • the menue at the right upper position. But when I click it, I only see entries like {{i18n-entry}} (something like this)
  • the mouse pointer (not in all cases, I only see either the normal mouse pointer or the hand symbol)

Not rendered are:

  • The Background (probably see #31 )
  • All Fonts (I see no text (except the {{i18n-entry}} strings of the upper right menue
  • Input field, button to press login/which is shown for incorrect login
$ cat /etc/lightdm/lightdm-webkit2-greeter.conf
#
# background = Background file to use, either an image path or a color (e.g. #772953)
# theme-name = GTK+ theme to use
# font-name = Font to use
# xft-antialias = Whether to antialias Xft fonts (true or false)
# xft-dpi = Resolution for Xft in dots per inch (e.g. 96)
# xft-hintstyle = What degree of hinting to use (hintnone, hintslight, hintmedium, or hintfull)
# xft-rgba = Type of subpixel antialiasing (none, rgb, bgr, vrgb or vbgr)
#
[greeter]
#background=/usr/share/backgrounds/warty-final-ubuntu.png
background=/usr/share/backgrounds/gnome/adwaita-lock.jpg
theme-name=Ambiance
webkit-theme=antergos
#font-name=Ubuntu 11
font-name=DejaVuSans 11
xft-antialias=true
xft-dpi=96
xft-hintstyle=slight
xft-rgba=rgb


#[greeter]
#background=#000000
#theme-name=Adwaita
#webkit-theme=antergos
#font-name=DejaVuSans 11
#xft-antialias=true
#xft-dpi=96
#xft-hintstyle=slight
#xft-rgba=rgb

In the beginnig, there was the second greeter enabled. This is my changed version to pinpoint the bug, but they changed nothing of the appearance of lightdm

$ cat /var/log/lightdm/x-0-greeter.log
undefined: CONSOLE ERROR Die Schlüsselwertedatei enthält nicht die Gruppe »branding«

I'm using Antergos with Gnome 3.20 on X-Server

Impossible to login with lightdm-webkit2-greeter

While upgrading to Gnome 3.20, lightdm-webkit2-greeter also got upgraded to version 2.1.1-1. When it rebooted, lightdm (-webkit2-greeter) showed a black background, a white window at the centre with no login prompt, just an Antergos title at the left upper corner and a small arrow at the middle (the same as described by wojtekw86, I think). Clicking the arrow only moved it upwards and clicking it again moved it back. I did not find a way to login writing the password where it should be or trying to login using only the keyboard: hit enter and write the password. On the right upper end there was a box for changing the background that if clicked showed nothing except the box corresponding to the random mode. No images anywhere. Using Ctrl+Alt+F2, I switched to GDM (which I had installed since the last issue with lightdm, the blank screen) and I could login with no problem. I have not uninstalled lightdm.
During the update I also had this message:

==> NOTE: MANUAL ACTION REQUIRED! <==
** The greeter's config file contains important changes. It has been saved as
** /etc/lightdm/lightdm-webkit2-greeter.conf.pacnew. You must either merge the
** changes into /etc/lightdm/lightdm-webkit2-greeter.conf
** or replace the latter with the former.
I have both files but I don't know how to merge them or what should be merged. I have not yet tried to switch back to the former.
Here you have my lightdm config files:
conf_files.zip

And nothing has changed after applying the recommended action by lots0logs:
"If you havent customized the config file you can simply replace the old file with the new file and it will work properly for you."

What I have tried is simply save /etc/lightdm/lightdm-webkit2-greeter.conf with a different name, just to save a copy of the old file, rename /etc/lightdm/lightdm-webkit2-greeter.conf.pacnew to /etc/lightdm/lightdm-webkit2-greeter.conf, then disable GDM and enable Lightdm and reboot. The issue remains and it is impossible to login using lightdm. I have reverted back to GDM and renamed the files as they were before, after the upgrade, as they are posted here.

Themes API :: Make a list of background images (filepaths) available to themes via config object

The Problem:

We need to make it easy for the greeter to be branded by the distributions so we need to drop the dependency on antergos-wallpapers.

The Plan:

We'll allow a directory to be configured in lightdm-webkit2-greeter.conf for background images. If configured, we will make a list of images (filepaths) found in the directory available to the themes via the config object.

Additional Notes:

@sbalneav I could really use your help on this if you have the time 😬

[Improvement] Add a standardized mockup for browser testing

Hey there, I recently found an old project regarding a more standardized mock for browser testing. You might want to implement your own mockup to the repo too, since a lot of people are using out-dated mockups and that in turn leads to crappier themes... (yes, I know that is beyond the scope of the greeter but it's still a big part of it nonetheless)

Also, the manual is missing the method suspend(). Seriously, take a look at that.

here's my mockup, if you're interested.

Cheers.

Black screen when using CSS3 3D transforms

Using certain 3D transforms can cause the renderer to crash and display a black screen.

Reproduce with the following:

<!doctype html>
<html>
  <head>
    <style type="text/css">
      body {
        color: #fff;
        background: pink;
      }

      .cool {
        transform: rotateX(90deg);
      }
    </style>
  </head>
  <body>
    <div class="cool">
      Cool stuff. You should see pink.
    </div>
  </body>
</html>

Latest kernel 4.5.1 won't boot to graphical desktop in VirtualBox VM

I run Antergos within a VirtualBox VM on a PC running Windows.

After the latest updates the system hangs at trying to launch lightdm - systemctl fails to start the lightdm service. I also tried gdm instead and this also failed.

After a bit of investigation this appears to be a VirtualBox issue - [https://forums.virtualbox.org/viewtopic.php?f=3&t=76908&sid=9f746447b9ba367449ce5a33cfdce946&start=15#p358435] - that can be worked around by adding the kernel parameter iomem=relaxed until VirtualBox is updated.

Black Rectangle

A black rectangle maybe 300px wide and 150px high appears after entering in the the password.

Multimonitor support

I've migrated from lightdm-webkit-greeter and one difference I noticed is only the primary monitor presents the greeter.

The other monitors' resolutions and positions are configured correctly (per the display setup script set in lightdm.conf, which is a basic xrandr) but they are black and the cursor when over them is the black X.

Issue installing on Arch

I'm installing it from the AUR and here's the error I get:

loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) lightdm-webkit2-greeter-2.1.4-1

Total Installed Size:  1.61 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) installing lightdm-webkit2-greeter           [######################] 100%
/usr/bin/bash: post_install: command not found
error: command failed to execute correctly

The 'Uh Oh' prompt should automatically close

When a user would fail to enter their password correctly, the 'Uh Oh' prompt pops up.
If I don't close the prompt and instead go directly to clicking my icon again, the 'uh oh' prompt seems to move down accordingly and give me an odd image with the system control icons (shutdown, hibernate, etc.) overlapping the prompt and a white 'div' extending past the border extending past the borders of the login panel. You can see this odd image at http://bit.ly/1weWOwN .

I thought we could write the code so that when I'd click on my icon again to reenter my password after recieveing the 'Uh Oh' prompt, the 'Uh Oh' prompt would automatically close.
Do you agree?

No available users on login screen after update

Hi,

after the last update, which had some discussion here, I get the login screen but it doesn't appear the clock, and even when I hit Enter, no user names appear. So I'am unable to login now.

The content of var/log/lightdm/x-0-greeter.log is just this:

undefined: CONSOLE ERROR Key file does not have group 'branding'

Any help would be appreciated.
Thanks.

Regression: Mouse cursor disappears after returning from suspend to RAM

I'm not certain this belongs here, but I've also posted this bug in GNOME to be sure: https://bugzilla.gnome.org/show_bug.cgi?id=764994

When I close my laptop lid and reopen, I'm faced with my login greeter (lightdm-webkit2-greeter) and the mouse cursor appears just fine. When I enter the credentials and initiate the actual session (i.e., get to the desktop), the mouse cursor becomes invisible.

I can still hover over things and click on them, but the cursor is invisible. In my case I can only get my cursor visible again when I reboot the system (or hibernate and come back from it).

This is a clear regression since I upgraded to GNOME 3.20 from the latest version prior to that. I'm not clear what the number of the version was, but I'm positive it was the latest, since I update my computer on a daily basis.

Blank screen when trying to login after upgrade to gnome-shell 3.18

Hi,

I've recently upgraded to gnome-shell 3.18 and following started to happen to me:

  1. login screen with clock is shown
  2. click on clock or press enter
  3. user list appears but after while screen go completely white

If I use enter I can at least type my password and log into my session.

I found following in /var/log/lightdm/x-1-greeter.log:
(lightdm-webkit2-greeter:1885): Gtk-WARNING *: drawing failure for widget 'WebKitWebView': invalid value for an input Visual
(lightdm-webkit2-greeter:1885): Gtk-WARNING *: drawing failure for widget 'GtkWindow': invalid value for an input Visual
(WebKitWebProcess:1919): Gdk-WARNING **: WebKitWebProcess: Fatal IO error 0 (Success) on X server :1.

If you need some additional info I can provide it.
Thanks

Using localstorage

The latest update has disabled localstorage resulting in DOM exception 18. I believe this is because files are loaded with the file:// protocol. I can't find any other way of storing settings.

Manual User Login

Hi,
is there a way to enable manual user login? The option in lightdm.conf
greeter-show-manual-login = true
seems not to work...

Thanks for your help

HiDPI support

I've just installed lightdm & lightdm-webkit2-greeter on XPS13 with QHD+ display and it seems that HiDPI is not detected by webkit. Is it somehow possible to detect it? All native controls are quite small (inputs, buttons, even mouse cursor)…

I'm ok with solution which requires to update my own theme but I'm not sure if it's even possible to know that the "wrapper" is running in HiDPI mode in the first place…

Thanks

Black screen

I have install lightdm and lightdm-webkit2-greeter but every theme I use I get a blank screen and a cursor. The screen flashes grey before getting the black screen. Below are the configuration files:

lightdm-webkit2-greeter.conf

[greeter]
webkit-theme=material-lightdm

lightdm.conf

[SeatDefaults]
greeter-session=lightdm-webkit2-greeter
session-wrapper=/etc/lightdm/Xsession

I am currently using arch linux, xfce4 4.12.

buiding on fedora22

hello

i have this " No package 'liblightdm-gobject-1' found "

but i have
/usr/lib64/liblightdm-gobject-1.so.0
/usr/lib64/liblightdm-gobject-1.so.0.0.0

can you help me with this ?

thanks

Blank white screen after clicking clock

I'm experiencing an issue where the initial screen with the clock loads fine, but once I click on it the whole screen goes white.

I can still see a cursor, and it switches to a hand when it highlights over the name section, so I can technically still log in.

I'm on Arch Linux and installed the "lightdm-webkit-theme-antergos 2.2.3-1" package from the AUR. I have kernel 4.2.5-1 and I'm using my laptop's onboard intel card (I have the "mesa" and "xf86-video-intel") packages installed.

I'd be happy to help debug if there are any logs I can look into, but I'm not sure what's available. Has anybody else run into this issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.