mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-20 19:24:53 +00:00
This is the simplest change I could come up with to add working autologin, only bit I really dislike is the event but it seemed like the cleanest way without refactoring. Co-authored-by: ferreo <harderthanfire@gmail.com> Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/841 Reviewed-by: AnErrupTion <anerruption@disroot.org> Co-authored-by: ferreo <ferreo@noreply.codeberg.org> Co-committed-by: ferreo <ferreo@noreply.codeberg.org>
25 lines
650 B
Zig
25 lines
650 B
Zig
const enums = @import("enums.zig");
|
|
const ini = @import("zigini");
|
|
|
|
const DisplayServer = enums.DisplayServer;
|
|
const Ini = ini.Ini;
|
|
|
|
pub const DesktopEntry = struct {
|
|
Exec: []const u8 = "",
|
|
Name: []const u8 = "",
|
|
DesktopNames: ?[]u8 = null,
|
|
Terminal: ?bool = null,
|
|
};
|
|
|
|
pub const Entry = struct { @"Desktop Entry": DesktopEntry = .{} };
|
|
|
|
entry_ini: ?Ini(Entry) = null,
|
|
name: []const u8 = "",
|
|
xdg_session_desktop: ?[]const u8 = null,
|
|
xdg_session_desktop_owned: bool = false,
|
|
xdg_desktop_names: ?[]const u8 = null,
|
|
cmd: ?[]const u8 = null,
|
|
specifier: []const u8 = "",
|
|
display_server: DisplayServer = .wayland,
|
|
is_terminal: bool = false,
|