mirror of
https://github.com/fairyglade/ly.git
synced 2025-12-21 03:34:54 +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>
This commit is contained in:
@@ -27,6 +27,9 @@ pub fn init(allocator: Allocator, buffer: *TerminalBuffer, user_list: *UserList)
|
||||
pub fn deinit(self: *Session) void {
|
||||
for (self.label.list.items) |*env| {
|
||||
if (env.environment.entry_ini) |*entry_ini| entry_ini.deinit();
|
||||
if (env.environment.xdg_session_desktop_owned) {
|
||||
self.label.allocator.free(env.environment.xdg_session_desktop.?);
|
||||
}
|
||||
}
|
||||
|
||||
self.label.deinit();
|
||||
|
||||
Reference in New Issue
Block a user