Skip to main content
Topic: KDE Nvidia Wayland session starts when I install from base iso but not others (Read 414 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

KDE Nvidia Wayland session starts when I install from base iso but not others

I don't know where to put this since my issue is basically solved for me since I'm fine using the base iso so I guess move it if it's more fitting elsewhere, but when I was trying to make Wayland work with the GUI isos I found multiple posts from this forum but none of the solutions for this helped me. But I noticed when I manually installed from base it worked (at least with the usual setups when using both Nvidia and Wayland). I also installed plasma-desktop and installed applications I needed manually. I thought I should say this since I never saw this come up in those threads. I am using OpenRC, I doubt this matters but in case it does I'll mention it.

 

Re: KDE Nvidia Wayland session starts when I install from base iso but not others

Reply #1
This is how I start plasma through wayland (I use it along with pipewire and wireplumber but you can remove/comment the first if clause if you want to):
startwayland.sh:
Code: [Select]
#!/usr/bin/sh
if ! wpctl status; then
    /usr/bin/pipewire &
    /usr/bin/pipewire-pulse &
    /usr/bin/wireplumber &
fi
dbus-launch --exit-with-session /usr/bin/startplasma-wayland

I also have this snippet of code in my .zshrc:
Code: [Select]
if [[ "$UID" != 0 ]]; then
    if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
        ## if not found, launch a new one
        eval $(dbus-launch --sh-syntax)
        echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
    fi
fi

Oh, BTW!  Make sure you've run
Code: [Select]
pacman -S --needed kwayland-integration xorg-xwayland

So far, it's been working OK.

Re: KDE Nvidia Wayland session starts when I install from base iso but not others

Reply #2
This is how I start plasma through wayland (I use it along with pipewire and wireplumber but you can remove/comment the first if clause if you want to):

I was actually using an AUR package for Pipewire before but it seemed to introduce a different problem so thanks for the script!

Re: KDE Nvidia Wayland session starts when I install from base iso but not others

Reply #3
This is how I start plasma through wayland (I use it along with pipewire and wireplumber but you can remove/comment the first if clause if you want to):
startwayland.sh:
Code: [Select]
#!/usr/bin/sh
if ! wpctl status; then
    /usr/bin/pipewire &
    /usr/bin/pipewire-pulse &
    /usr/bin/wireplumber &
fi
dbus-launch --exit-with-session /usr/bin/startplasma-wayland

I also have this snippet of code in my .zshrc:
Code: [Select]
if [[ "$UID" != 0 ]]; then
    if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
        ## if not found, launch a new one
        eval $(dbus-launch --sh-syntax)
        echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
    fi
fi

Oh, BTW!  Make sure you've run
Code: [Select]
pacman -S --needed kwayland-integration xorg-xwayland

So far, it's been working OK.

Thank you so much for this post. I had been trying to figure out how to launch a KDE Wayland session, but I had no luck before I found this post

I feel like this should be on the official Artix wiki page.