Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: Shad190 on 30 July 2023, 22:59:44

Title: KDE Nvidia Wayland session starts when I install from base iso but not others
Post by: Shad190 on 30 July 2023, 22:59:44
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.
Title: Re: KDE Nvidia Wayland session starts when I install from base iso but not others
Post by: mattz7 on 31 July 2023, 17:08:02
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.
Title: Re: KDE Nvidia Wayland session starts when I install from base iso but not others
Post by: Shad190 on 01 August 2023, 14:43:25
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!
Title: Re: KDE Nvidia Wayland session starts when I install from base iso but not others
Post by: hys on 04 September 2023, 03:24:51
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.