Commit Graph

55 Commits

Author SHA1 Message Date
Alfred Roos
24f017e09c Fixed wrong argument in inputs.s input_desktop (#469) 2022-12-08 23:29:23 +01:00
AnErrupTion
a7b01a721b Increase length for UID to 20 (closes #444) 2022-12-07 12:35:35 +01:00
Simon Struck
77eb456410 Re-add missing environment variables (#446) 2022-12-07 12:33:12 +01:00
AnErrupTion
19153760d3 Fix segfault (closes #434, #435) 2022-12-07 12:20:23 +01:00
Cavernosa
59aae77f49 Fixes for the XDG Base Dirs implementation (#330) (#419)
Fix XDG Base Dirs implementation
2022-08-14 20:08:08 +02:00
ShiningLea
09ee6293bd Merge dev into master (closes #182) (#425)
Merge dev into master branch
Co-authored-by: AnErrupTion <anerruption@disroot.org>
2022-08-12 21:27:06 +02:00
ShiningLea
9364ffcea9 Merge pull request #330 from UtkarshVerma/xdg
Use XDG_RUNTIME_DIR for storing Xauthority
2022-06-03 10:16:37 +02:00
ShiningLea
2e1a57648b Merge pull request #393 from UtkarshVerma/xinitrc
Make `xinitrc` path configurable
2022-06-03 10:04:35 +02:00
AnErrupTion
5945982d99 Merge remote-tracking branch 'origin/master' 2022-06-03 10:02:06 +02:00
AnErrupTion
723a008adf Helpful message when doing --help (closes #391 #390 #346) 2022-06-03 09:59:33 +02:00
Utkarsh Verma
802ad7b204 Merge branch 'master' of github.com:fairyglade/ly into xinitrc 2022-06-03 07:43:36 +05:30
Utkarsh Verma
079f68696b Make xinitrc path configurable 2022-06-03 07:43:19 +05:30
Utkarsh Verma
38aacc6b1c Implement fallback logic for XAUTHORITY 2022-05-24 07:41:35 +05:30
Elisha Hollander
77d186b802 use uint16_t on put_cell iterations 2022-05-17 01:36:36 +03:00
Turion64
8eb487ae9e Merge pull request #354 from SapphireAmoeba5/master
Make TAB key loop through U.I elements infinitely
2022-05-16 23:24:19 +02:00
Turion64
dec2ef14e0 Merge pull request #352 from kefoster951/master
Changed active_input selection to be based on default config
2022-05-16 23:23:26 +02:00
SapphireAmoeba5
ffa8fbe77b Replaced 0 with SESSION_SWITCH 2022-05-13 19:03:01 -03:00
SapphireAmoeba5
ac2b255021 Make TAB key loop through U.I elements 2022-05-13 13:23:14 -03:00
kefoster951
bd04d69b4d Changed default input to login field 2022-05-13 09:12:24 -04:00
kefoster951
a078a07ee7 Update main.c 2022-05-13 09:11:00 -04:00
Qontinuum
da5b08abf2 Check if lang is NULL and use shorter check (#303) 2022-05-12 22:37:43 +02:00
kefoster951
559f2f7370 Update main.c
changed how the curser placement works to be based on if there is a saved username or not
2022-05-12 11:05:23 -04:00
jakobrs
c0366fe805 Use tb_poll_event instead of tb_peek_event (#320)
draw_box and position_input are called because they need to be called
before *input_handles[active_input] for the cursor to be positioned
correctly.
2022-04-25 20:52:22 +02:00
Baptiste Daroussin
7ed6631197 FreeBSD deserves nice drawing as well (#340) 2022-04-24 12:40:08 +02:00
Stale
6245639daf Matrix scrolling text animation (#283) 2022-04-24 11:54:50 +02:00
Raen
9fd7779972 Allow en.ini load and add config to hide f1 commands (#281) 2022-04-23 19:17:56 +02:00
AnErrupTion
25034d1536 Set XDG_SESSION_ID to fix a few bugs 2022-04-19 21:46:40 +02:00
AnErrupTion
27c5673116 Set XDG_SESSION_TYPE earlier to fix some bugs 2022-04-19 21:36:58 +02:00
Utkarsh Verma
908ebf8964 Use XDG_RUNTIME_DIR for storing Xauthority 2022-01-02 15:55:36 +05:30
nullgemm
4094d2182a add missing include 2021-10-07 15:58:27 +02:00
nullgemm
b448fc97b2 remove the ctypes submodule 2021-10-07 15:54:13 +02:00
nullgemm
8493c5a8ad use custom pam service name 2020-04-05 11:51:41 +02:00
nullgemm
4a7c82e3e3 add /usr/sbin to default path 2020-04-05 11:37:42 +02:00
nullgemm
ce785ed0dc add ctrl-u input clearing 2020-02-03 08:51:05 +01:00
nullgemm
915ebd442f clear password instead of free 2020-02-03 08:39:15 +01:00
nullgemm
825544f7e2 fix password not being cleared when blank_password is set 2020-02-03 08:34:42 +01:00
Érico Nogueira Rolim
33934f3ab2 add wayland specifier to session names (#162)
Create a config option to force ly to add " (Wayland)" to session
names, as long as those names don't already contain the string.
2020-02-03 07:20:47 +01:00
nullgemm
4882cd4548 fix wayland sessions 2020-02-01 20:16:26 +01:00
nullgemm
36b7ab0d4d remove developement comment (#140) 2020-02-01 19:26:06 +01:00
nullgemm
9eb212cb91 put xauthority file in XDG_CONFIG if specified 2020-02-01 19:01:51 +01:00
Érico Nogueira Rolim
fa42781cb9 Make the project compilable with clang. (#163)
Clang generates more warning messages, such as pointing out a lack
of newline at end of file and issues with the size of a strncopy.

Moving -Wno-unused-parameter to the end of the flags avoids it being
overwritten by -Wextra.

Removing -Werror avoids compilation errors that may arise from new
compiler warnings that might come from newer versions of compilers.
2020-02-01 18:23:25 +01:00
mozartilize
ccf7911e9f fix hidden cursor after logout (#172) 2020-02-01 18:14:13 +01:00
nullgemm
c83ef00099 fix language loading 2019-12-14 12:12:50 +01:00
Stuart Reilly
37fc47ef7a Remove /usr/bin/env from default path (#158) 2019-12-14 11:58:30 +01:00
Stanislav Láznička
a99c18b7fa Fix building by explicitly casting const out in config.c (#155) 2019-12-06 16:15:08 +01:00
Stanislav Láznička
ecaea4131b Implement utmp audit (#133)
Implements utmp audit required by policykit.

This commit also flattens the pidtree for the DM by starting the
display environment directly in the first fork which already should
have the environment ready for this purpose. This is with the
exception of xorg environments where this can't be done that easily.
2019-12-06 16:10:27 +01:00
Roosemberth Palacios
31e1ba84af Alloc passing the path to the configuration file as an argument (#134)
Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
2019-10-31 13:54:45 +01:00
Roosemberth Palacios
f650e82f93 login.c: Do not overwrite the PATH variable if config.path element is empty (#135)
This allows disabling the feature if PATH was already set (e.g. by the systemd session
slice) and the user wishes to honor that.

Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
2019-10-31 00:03:35 +01:00
Roosemberth Palacios
fe4af2bfe6 Makefile: Add config option to allow specifying a separate data directory (#136)
This allows the user to specify a different directory to store static files, such as
translations and other resources.

Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
2019-10-27 16:49:55 +01:00
Stanislav Láznička
9486f05e59 cosmetic changes + enter behavior (#126)
* remove trailing whitespace

* always submit password on enter

Moves the keypress logic for keypresses from if-else statements
to switches, adds non-contextual behavior on pressing enter

* wrap pam actions and handle errors at on spot

* init all of text struct in input_text()

This gets rid off valgrind warning on unitialized variables
2019-10-04 20:50:02 +02:00