Skip to content

Commit 7cf1d9e

Browse files
authored
Update main.cr
1 parent 793d98c commit 7cf1d9e

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

source-code/CLI/src/main.cr

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,35 +31,25 @@ end
3131
def main
3232
check_environment
3333
bin_dir = setup_directories
34-
3534
# Apply decorations/themes first
3635
start_process("#{bin_dir}/decorations")
37-
3836
# Start core compositor
3937
start_process("#{bin_dir}/core")
40-
4138
# Give time for compositor to initialize
4239
sleep 2.seconds
43-
4440
# Assume socket is wayland-0
4541
ENV["WAYLAND_DISPLAY"] = "wayland-0"
46-
ENV["XDG_RUNTIME_DIR"] ||= "/run/user/#{Process.uid}"
47-
42+
ENV["XDG_RUNTIME_DIR"] ||= "/run/user/#{LibC.getuid}"
4843
# Start XWayland if not handled by core
4944
# Assuming core handles it, but if needed:
5045
# start_process("XWayland :0 -rootless -terminate")
51-
5246
# Start WM
5347
start_process("#{bin_dir}/wm")
54-
5548
# Start shell (panel)
5649
start_process("#{bin_dir}/shell")
57-
5850
# Start desktop (background and icons)
59-
start_process("#{bin_dir}/desktop")
60-
51+
start_process("#{bin_dir}/Desktop")
6152
# The launcher is started on demand via shortcuts or menu
62-
6353
# Keep the launcher process alive, wait for children
6454
channel = Channel(Nil).new
6555
Signal::INT.trap { channel.send(nil) }

0 commit comments

Comments
 (0)