AnErrupTion
edbb982c91
[Backport] Recursively create xauth file directory if non-existent
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 20:55:41 +01:00
AnErrupTion
80fb07daa8
[Backport] Fix invalid XDG_RUNTIME_DIR if D-Bus isn't used
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 20:54:47 +01:00
AnErrupTion
93388159bc
[Backport] Clamp user session index if invalid
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 18:12:28 +01:00
AnErrupTion
08b4a49729
[Backport] Check for session file name in autologin
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 17:45:29 +01:00
AnErrupTion
066acf91e6
[Backport] Create session log directory if non-existent
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 17:29:31 +01:00
AnErrupTion
2660486fde
[Backport] Escape TTY in systemd service
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 17:28:50 +01:00
AnErrupTion
a3b249ded8
[Backport] Fix session not being saved correctly
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 17:27:04 +01:00
AnErrupTion
3c22597054
Start Ly v1.3.1 development cycle
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-30 17:26:53 +01:00
AnErrupTion
e0692885c5
Make delay floating point in dur format
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-06 14:34:47 +01:00
AnErrupTion
b6d3aa0e1c
Merge changes
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-06 14:25:57 +01:00
AnErrupTion
e6966a628c
Fix wrong session index + save file corruption
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-06 14:25:01 +01:00
AnErrupTion
a9ff0a6d07
Only support dur format v7, set -1 color to black
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-06 10:05:41 +01:00
AnErrupTion
92beb24c80
Fix save file initialisation & incorrect saved session index
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-05 19:49:27 +01:00
AnErrupTion
3bfdc75a70
Add option to run command after inactivity delay ( closes #747 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-03 20:39:27 +01:00
AnErrupTion
6cce221cbf
Improve issue template
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-02 22:37:03 +01:00
AnErrupTion
1c99574f73
Add option to run command before UI is initialised ( closes #798 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-02 22:23:10 +01:00
AnErrupTion
b249dba092
Support multiple TTYs with systemd service ( closes #102 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-02 22:11:39 +01:00
AnErrupTion
3365b33d6d
Fix zig-clap dependency URL
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-12-01 22:09:41 +01:00
AnErrupTion
d82fa82a87
Always add hostname last in the info line
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 23:50:39 +01:00
AnErrupTion
c2b3d794e8
Fix fallback UID range + add error if UID range not found
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 23:36:47 +01:00
AnErrupTion
e29bda3250
Add systemd-homed UID range
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 23:02:23 +01:00
AnErrupTion
4df2382698
Add possibility to disable auth_fails animation ( closes #835 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 22:19:38 +01:00
AnErrupTion
3dfb86fe69
Merge changes
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 21:59:09 +01:00
AnErrupTion
f9a001b160
Update zigini dependency & use same Git URL format everywhere
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 21:57:42 +01:00
AnErrupTion
a94abf2e69
Improve bug report template & add PR template
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 12:08:10 +01:00
AnErrupTion
fe354a4809
Add fallback UID range options at compile-time
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 09:47:50 +01:00
AnErrupTion
8c964d9ce5
Don't crash when failing to crawl a session directory ( closes #870 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 09:30:33 +01:00
AnErrupTion
392ea6ea63
Update French locale
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 09:18:29 +01:00
AnErrupTion
10854e643a
Don't crash when failing to parse arguments
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-30 09:14:10 +01:00
AnErrupTion
816be7449f
Update Repology URL
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-19 22:19:12 +01:00
AnErrupTion
f0758d812e
Fix potential out of bounds issue when automatically changing session
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-11-19 22:15:07 +01:00
AnErrupTion
3c0c84d067
Fix build error
...
I really should test PRs before merging them, shouldn't I?
2025-11-15 20:02:59 +01:00
AnErrupTion
15c78c838a
Update screenshot (for real this time)
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-25 20:51:51 +02:00
AnErrupTion
4a486bd876
Update screenshot
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-25 20:49:56 +02:00
AnErrupTion
38173d8557
Add edge margin to numlock & capslock
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-25 20:39:34 +02:00
AnErrupTion
95d1d9378c
Add edge margin to top-right clock
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-23 22:53:58 +02:00
AnErrupTion
6f62106fcc
Merge changes
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-23 22:16:24 +02:00
AnErrupTion
4171e29995
Fix build error when runit service symlink already exists
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-23 22:15:43 +02:00
AnErrupTion
80c27224e9
Create xauth directory if it doesn't exist
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-23 22:15:16 +02:00
AnErrupTion
ec16ad5dfc
Remove mention of config.tty option in README ( fixes #854 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-21 17:36:42 +02:00
AnErrupTion
5f22173b91
Mention only Ly v1.2.0 and above are supported in issue template
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 19:10:44 +02:00
AnErrupTion
4bc405f239
Start Ly v1.3.0 development cycle
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 18:12:16 +02:00
AnErrupTion
c4b68364ef
Add FreeBSD-specific PAM file
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 17:34:44 +02:00
AnErrupTion
1c05664c85
Fix xauth file name UB
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 16:18:05 +02:00
AnErrupTion
1fbcb10110
Open new log file after every fork() where necessary
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 15:29:47 +02:00
AnErrupTion
bfb3f925d9
Use shutdown -p now on FreeBSD, update instructions
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 13:47:52 +02:00
AnErrupTion
44c8acff16
Open new log file handle after fork()
...
This would also need to be done in the
nested fork() calls.
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 12:03:48 +02:00
AnErrupTion
541eae5311
Update init service for FreeBSD
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 11:23:57 +02:00
AnErrupTion
3faf3dec42
Fix login issue
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 08:41:36 +02:00
AnErrupTion
52d29bbd47
Fix FreeBSD installation in README
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 00:46:56 +02:00
AnErrupTion
a3a8f11575
Add basic FreeBSD service, change default fallback TTY to 2
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 00:46:09 +02:00
AnErrupTion
02f5aa702d
Implement /etc/login.defs in interop, TODO for FreeBSD
...
We should be able to parse the "minuid" and "maxuid"
values in /etc/rc.conf to get the UID range of the
system, with default values of 1000 to 32000 (as
they don't seem to be present by default).
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 00:28:12 +02:00
AnErrupTion
ed88458efd
Fix platform-specific bugs for FreeBSD compilation
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-18 00:05:53 +02:00
AnErrupTion
8df9603188
Install SysVinit service as an executable
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-17 23:12:21 +02:00
AnErrupTion
412994775b
Add SysVinit service ( closes #224 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-17 23:10:52 +02:00
AnErrupTion
bb669c239c
Remove config TTY options in OpenRC & runit services
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-17 23:08:15 +02:00
AnErrupTion
657daafec8
Fix crash after reading saved credentials for first time
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-17 22:58:50 +02:00
AnErrupTion
e36872baa6
Don't spam battery status error if already tried once
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-15 16:32:57 +02:00
AnErrupTion
4738ca81a7
Merge changes
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-15 14:10:00 +02:00
AnErrupTion
76da16904f
Update French translation
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-14 21:17:58 +02:00
AnErrupTion
e577c454da
Fix merge conflict
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-14 21:10:17 +02:00
AnErrupTion
09c2cfb74d
Remove file that was added by mistake
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-14 21:07:42 +02:00
AnErrupTion
b3f1e91cf6
Remember last session for each user ( closes #619 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-14 21:05:54 +02:00
AnErrupTion
aef1dd9c1a
Add more logs when logging into an X11 session
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-14 20:09:39 +02:00
AnErrupTion
3d977d2ff7
Fix compatibility with Zig 0.15.2
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-14 20:05:50 +02:00
AnErrupTion
a34a5a97bd
Execute shell in case exec_cmd is null
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-14 20:02:55 +02:00
AnErrupTion
1839e4cb44
Use LLVM in Debug ( closes #832 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-14 19:42:16 +02:00
AnErrupTion
bd335c8c91
Add missing locales in build.zig
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-13 21:39:44 +02:00
AnErrupTion
4f4855b5e9
Implement dummy active TTY getter for FreeBSD
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-10-12 22:47:03 +02:00
AnErrupTion
7a0520687d
Add fallback TTY option ( closes #838 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-09-29 21:30:51 +02:00
AnErrupTion
cee0e0ca4b
Log more detailed config error messages ( closes #801 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-09-26 09:54:38 +02:00
AnErrupTion
3edd1ff1be
Log error name when zigini fails to parse config
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-09-25 13:35:28 +02:00
AnErrupTion
145ad5142c
Clean up redundant authentication & session code
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-09-25 08:32:30 +02:00
AnErrupTion
d8b0ae34f3
Remove semi-colons in default locale
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-09-25 08:30:13 +02:00
AnErrupTion
a6535b9152
Update custom sessions' README
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-09-25 08:29:36 +02:00
AnErrupTion
ee97f3b5e1
Automatically detect TTY ( closes #795 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-09-07 17:44:50 +02:00
AnErrupTion
5924db58e1
Use std.mem.span + remove useless dupeZ()
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-30 13:17:19 +02:00
AnErrupTion
36e220e2ff
Remove usage of std.c.stat() for xauth code
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-30 02:09:51 +02:00
AnErrupTion
0a9ceca822
Don't dupeZ() in main
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-30 01:09:12 +02:00
AnErrupTion
f9553655a3
Separate platform code from C interop code
...
Also, don't use isBSD() because we'll only support FreeBSD for
now. Other BSDs may not necessarily support Unicode characters
or the same ioctl constants as we do (or even ioctl at all).
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-30 00:27:04 +02:00
AnErrupTion
230874abd1
Don't forget to flush... :)
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-29 22:54:05 +02:00
AnErrupTion
38c3ecd089
Remove unused import
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-29 22:42:34 +02:00
AnErrupTion
fec0815161
Always copy an example config file (partially addresses #801 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-29 22:18:50 +02:00
AnErrupTion
a7d6b06d21
Add partial logging in authentication process ( closes #822 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-29 09:28:29 +02:00
AnErrupTion
1ee8010c24
Fix dinit & s6 service + don't hardcode paths in runit service
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-29 02:18:11 +02:00
AnErrupTion
f988bd334b
Update termbox2
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-29 00:45:28 +02:00
AnErrupTion
aa0222948a
Update config migrator
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-29 00:35:11 +02:00
AnErrupTion
69d39dc035
Remove config.load
...
config.save already makes it redundant. Besides, who would want
to save the current username & session, but not want to load it
at the next boot?
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-29 00:32:49 +02:00
AnErrupTion
6d7dbb9f27
Fix typo & remove unused import
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-29 00:07:32 +02:00
AnErrupTion
7cfb947187
Reduce libc usage & move more stuff to interop
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-28 01:39:19 +02:00
AnErrupTion
336847d418
Merge changes from master
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-27 23:45:52 +02:00
AnErrupTion
ff9b6279d3
Update to Zig 0.15.0 ( closes #829 )
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-27 23:44:39 +02:00
AnErrupTion
d7a4535007
Update screenshot
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-11 12:32:10 +02:00
AnErrupTion
7353e75d78
Merge branch 'master' of codeberg.org:fairyglade/ly
2025-08-05 08:26:38 +02:00
AnErrupTion
cd0accfb28
Show error name instead of error if shutdown/reboot fails
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-05 08:26:13 +02:00
AnErrupTion
5bacc8870b
Update repository link in README
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-03 23:42:35 +02:00
AnErrupTion
c3d180c213
Add basic general log file
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-03 15:59:47 +02:00
AnErrupTion
3f891d7f0d
Workaround for session process not exiting immediately
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-03 14:56:16 +02:00
AnErrupTion
e404d5bdb3
Clean-up: std.posix.kill() returns nothing
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-03 14:55:50 +02:00
AnErrupTion
dee055748c
Format code properly
...
Signed-off-by: AnErrupTion <anerruption@disroot.org >
2025-08-03 13:47:53 +02:00