this post was submitted on 26 Jul 2025
27 points (100.0% liked)

Linux

12291 readers
60 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

Hello people, just switched to Alpine and it would be great if some of the Apine users could share some dotfiles that are running Wayland compositors. I have not figured out to make swayidle work and some other stuff. By the way I am running River but this happened aswell on a fresh install with the Sway option of setup-desktop script.

I get some errors of unknown session with swayidle and conky, but I have set the corresponding environment variables and launching with dbus-run-session -- river

River init file:

export XDG_SESSION_DESKTOP=river
export XDG_CURRENT_DESKTOP=river
dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river

Shell env file:

export XDG_RUNTIME_DIR="$(mkrundir)"
export XDG_SESSION_TYPE=wayland
export QT_QPA_PLATFORM=wayland
export SDL_VIDEODRIVER=wayland
export GDK_BACKEND=wayland
export MOZ_ENABLE_WAYLAND=1
export _JAVA_AWT_WM_NONREPARENTING=1

If you encountered some quirks of your own please let me know. Thanks in advance!

top 7 comments
sorted by: hot top controversial new old
[–] just_another_person@lemmy.world 3 points 6 days ago (1 children)

Oof. You may want to rethink Alpine as a desktop if you're not familiar with how to debug it. You are in for a world of shuffling back and forth haha.

Alpine was originally meant for embedded devices to have a super tiny static footprint, hence it being based on busybox. APK as a package manager coupled with using dotfiles as a configuration language is always going to leave you second guessing whether something got missed, and questions like you're asking.

I would go back through the dep chain and make sure EVERYTHING is actually installed AND configured/linked. Even on image builds I've seen APK silently miss a dep due to a resolve error and continue. It's not built to be as thorough as something like rpm or apt, and it's very easy for something to get completely missed or just not configured or linked.

Good luck!

[–] sanderium@lemmy.zip 2 points 6 days ago

Thanks! I just wanted to give this one a good try and I'm not worried about a little testing/breakage since this is only a setup for a laptop that eventually want to use to run Jellyfin and Ente, plus I'm happy to learn.

[–] Subm77@piefed.social 2 points 6 days ago* (last edited 6 days ago) (2 children)

What is the output of swayidle -d and from loginctl?
You may not be running within an elogind session which could explain the unknown session error.

[–] sanderium@lemmy.zip 3 points 6 days ago* (last edited 6 days ago)

You are exactly right, I was running seatd. Switching to elogind solved the problem.

This was the output by the way:

2025-07-26 19:39:32 - [Line 750] Register idle timeout at 10000 ms
2025-07-26 19:39:32 - [Line 751] Setup idle
2025-07-26 19:39:32 - [Line 713] Command: doas /usr/sbin/zz
2025-07-26 19:39:32 - [Line 1083] Loaded config at /home/alec/.config/swayidle/config
2025-07-26 19:39:32 - [Line 439] GetSession failed: The name org.freedesktop.login1 was not provided by any .service files
2025-07-26 19:39:32 - [Line 448] GetSessionByPID failed: The name org.freedesktop.login1 was not provided by any .service files
2025-07-26 19:39:32 - [Line 450] Failed to find session
2025-07-26 19:39:32 - [Line 281] Failed to parse get BlockInhibited property: Host is unreachable
2025-07-26 19:39:32 - [Line 621] Enable idle timeouts
2025-07-26 19:39:32 - [Line 596] Register with timeout: 10000

[–] Subm77@piefed.social 1 points 6 days ago* (last edited 6 days ago)

The Output from swayidle -d should be similar to the following lines

2025-07-27 01:34:16 - [Line 1078] No config file found.  
2025-07-27 01:34:16 - [Line 463] Using session: /org/freedesktop/login1/session/c4  
2025-07-27 01:34:16 - [Line 1151] No command specified! Nothing to do, will exit  

and the ouput from loginctl should list the session from the second line of the swayidle -d output.

SESSION  UID USER   SEAT  TTY  STATE  IDLE SINCE  
     c4 1000 subm77 seat0 tty3 active no   -    

1 sessions listed.  

If that is not the case you could look into setting up a login manager like greetd.

[–] SpatchyIsOnline@lemmy.world 2 points 6 days ago (1 children)

As far as I'm aware, alpine isn't designed for regular use, but as a minimal distro for container environments. Of course there's technically nothing stopping you from using it on a desktop but you're likely to be on your own in terms of support

[–] 486@lemmy.world 8 points 6 days ago

That's not really true. While Alpine is often used for containers due to its small footprint, that's not what it is made for. It is meant to be a general purpose distro, geared towards power users. The Alpine wiki has some information for running it as a desktop system.