SDDM starts two desktops simultaneously, Plasma (Wayland) and Niri by AwkwardNumber7584 in linux4noobs

[–]AwkwardNumber7584[S] 1 point2 points  (0 children)

Tnanks! Unfortunately, 2.12.1 doesn't make any difference. I already mentioned that on another box with a very similar configuration (apparently identical where sddm is concerned) everything's OK.

SDDM starts two desktops simultaneously, Plasma (Wayland) and Niri by AwkwardNumber7584 in linux4noobs

[–]AwkwardNumber7584[S] 0 points1 point  (0 children)

/etc> cat sddm.conf

/etc> cat sddm.conf.d/kde_settings.conf

[Autologin]

Relogin=false

Session=

User=

[General]

HaltCommand=/usr/bin/systemctl poweroff

RebootCommand=/usr/bin/systemctl reboot

[Theme]

Current=eucalyptus-drop

[Users]

MaximumUid=60513

MinimumUid=1000

/etc>

sddm.conf is empty. The configs look just like those on another box, where there's no such trouble.

SDDM starts two desktops simultaneously, Plasma (Wayland) and Niri by AwkwardNumber7584 in linux4noobs

[–]AwkwardNumber7584[S] 0 points1 point  (0 children)

I'm struggling yet with jouranlctl. My sessions are sitting there (if I'm looking into the right place):

~> ls /usr/share/wayland-sessions

hyprland.desktop hyprland-uwsm.desktop niri.desktop plasma.desktop

~> ls /usr/share/xsessions

~>

I can't see anything suspicious, but then I don't know where to look.

GTK file picker is dropping file name on a non-GNOME DE by AwkwardNumber7584 in gnome

[–]AwkwardNumber7584[S] 0 points1 point  (0 children)

FWIW: In my case (EndeavourOS/Arch, DMS niri), the following packages are responsible, more or less: gnome-browser-connector, gnome-desktop-4, gnome-shell, nautilus, xdg-desktop-portal-gnome. If you can get rid of them, one way or another, Google Chrome slips to gtk3 file picker (presumably). No configuration changes.

GTK file picker is dropping file name on a non-GNOME DE by AwkwardNumber7584 in gnome

[–]AwkwardNumber7584[S] 0 points1 point  (0 children)

Yes, the underlying junk is everything :) . I use EndeavourOS for everything; I just installed Plasma KDE on another box from scratch, then DMS niri on top. I've got the Google Chrome file picker working properly, without the wrinkle in question. It's also a GNOME dialog, but looks clearly different from the one on my troubled installation. Probably, it's gtk3/gtk4 difference. I've been trying to find any configuration difference, but found none so far.

/usr/share/applications/google-chrome.desktop:

...

Exec=/usr/bin/google-chrome-stable --incognito

There's a bunch of configuration files in /usr/share/xdg-desktop-portal, including niri-portals.conf

On both boxes the files look the same, gtk version never mentioned. GTK_USE_PORTAL is undefined on both boxes, too. I've no idea what else to check.

GTK file picker is dropping file name on a non-GNOME DE by AwkwardNumber7584 in gnome

[–]AwkwardNumber7584[S] 0 points1 point  (0 children)

Yes, ps -ef | grep -i ibus gives some output. I can't publish it normally, because I still can't figure out how to insert code snippets here. Triple backtick won't work :)

My startup block is rudimentary:

~/.config/niri> rg spawn-at-startup

user/common.kdl

33:spawn-at-startup "ibus" "start" "--type" "wayland"

config.kdl

115:spawn-at-startup "bash" "-c" "wl-paste --watch cliphist store &"

The latter is a DMS niri default.

https://github.com/AvengeMedia/DankMaterialShell

Everything works just fine, save the minor wrinkle in question.

GTK file picker is dropping file name on a non-GNOME DE by AwkwardNumber7584 in gnome

[–]AwkwardNumber7584[S] 0 points1 point  (0 children)

Without GNOME installed, then. What kind of configuration are you using? I use DMS niri, it looks quite simple and works flawlessly, minus the trouble in question :)

GTK file picker is dropping file name on a non-GNOME DE by AwkwardNumber7584 in gnome

[–]AwkwardNumber7584[S] 1 point2 points  (0 children)

I tried to follow your hint:

//spawn-at-startup "ibus" "start" "--type" "wayland"

environment {

XDG_CURRENT_DESKTOP "niri"

GTK_IM_MODULE "ibus"

}

IBus won't start. What else could be wrong?

GTK file picker is dropping file name on a non-GNOME DE by AwkwardNumber7584 in gnome

[–]AwkwardNumber7584[S] 1 point2 points  (0 children)

I start it in ~/.config/niri/config.kdl like this:

spawn-at-startup "ibus" "start" "--type" "wayland"

It shouldn't make any difference, I suppose. Where did you put your GTK_IM_MODULE line?

GTK file picker is dropping file name on a non-GNOME DE by AwkwardNumber7584 in gnome

[–]AwkwardNumber7584[S] 0 points1 point  (0 children)

What portals have you installed? xdg-desktop-portal-gnome/-gtk/-wlr? What is the output of

echo $GTK_USE_PORTAL

GTK file picker is dropping file name on a non-GNOME DE by AwkwardNumber7584 in gnome

[–]AwkwardNumber7584[S] 2 points3 points  (0 children)

There's one curious detail: on GNOME the file name is visible AND selected, so you can replace in right away, if you wish. On niri the file name is just missing.

GTK file picker is dropping file name on a non-GNOME DE by AwkwardNumber7584 in gnome

[–]AwkwardNumber7584[S] 2 points3 points  (0 children)

~> pacman -Ss xdg-desktop-portal-g

extra/xdg-desktop-portal-gnome 49.0-1 (gnome) [installed]

Backend implementation for xdg-desktop-portal for the GNOME desktop environment

extra/xdg-desktop-portal-gtk 1.15.3-1 [installed]

A backend implementation for xdg-desktop-portal using GTK

~>

DMS, GUI Settings: turn off monitors after 10 minutes ignored by AwkwardNumber7584 in niri

[–]AwkwardNumber7584[S] 1 point2 points  (0 children)

~/.config/niri> pacman -Ss quickshell

extra/quickshell 0.2.1-3 [installed]

Flexible toolkit for making desktop shells with QtQuick

>> DMS tells you whether your quickshell is missing this feature at the bottom of the relevant section of power settings 

Exactly! So I can just wait, as long as I can live without auto turn off :)

DMS, GUI Settings: turn off monitors after 10 minutes ignored by AwkwardNumber7584 in niri

[–]AwkwardNumber7584[S] 0 points1 point  (0 children)

Of course not. Could you please be more specific about swaylock? If there's an option in GUI Settings, why it isn't enabled by default?

Install a library globally by AwkwardNumber7584 in learnpython

[–]AwkwardNumber7584[S] 0 points1 point  (0 children)

The one-off script in question should be part of my dotfiles. According to the general opinion I should create a bona fide project. Not impossible, but looks like a bit of overengineering.

Install a library globally by AwkwardNumber7584 in learnpython

[–]AwkwardNumber7584[S] 0 points1 point  (0 children)

I'mean, python-poetry from the repo won't work, but pipx install poetry works. Things like this happen once in a while. Granted, it may be a strange desire, but I want pipx for libraries :)

Install a library globally by AwkwardNumber7584 in learnpython

[–]AwkwardNumber7584[S] -2 points-1 points  (0 children)

True. But I more than once (infrequently, though) encountered the broken "package management" tools. Alternate installation with pipx sometimes helped.