You are not logged in.
Hi All,
I am looking for a proper solution to mount samba shares in an ad-hoc manner as it requires fortivpn tunnelling session (with openfortivpn). I'm running Sway or Hyprland as day-to-day driver, but also have a full KDE installed as a fallback solution. Therefore Dolphin is always preferred when it comes to graphical file manager in Sway.
On the KDE side I could set up the Network folder to access samba shared resources from the company. On the Sway side, however, Dolphin is complaining with message "Communication with the local password server failed", and the password prompt window does not show up. I dug a bit further and found several critical services, tiding to kded, are absent from dbus (kpasswdserver, etc.) because QT failed to request xcb plugin... That's way down the hill, and to avoid running into XY problems, I'd like to make the my main objectives clear:
* Set up a solution to mount samba share only when I invoke it.
* Configurations and credentials are isolated within the user, so that other users would not trigger the setting and mount user-specific drives.
* It would be nice if this can be done through Dolphin: I won't do any programming stuff anyways when accessing those samba shares.
I'm following this thread on stackexchange.com (which then points to this thread on ubuntuforms.org, but I'm not confident if this is the only path going downwards, and I'm wondering if the mapping scripts can be placed under user's XDG_CONFIG_HOME.
Thanks.
Last edited by fhftsai256 (2023-04-28 04:58:46)
Offline
because QT failed to request xcb plugin
Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
xcb is for X11 and you're on a wayland session, so that's not surprising.
You might have to export QT_QPA_PLATFORM=wayland
Otherwise please post your complete system journal for the boot:
sudo journalctl -b | curl -F 'file=@-' 0x0.stFyi, Dolphin doesn't mount anything (cifs) but uses an SMB kio client, a bit like smbclient.
You might be interested in https://wiki.archlinux.org/title/Samba#smbnetfs
Offline
Apologies to the paraphrase. Will regenerate error messages for further discussions.
You might have to export QT_QPA_PLATFORM=wayland
Otherwise please post your complete system journal for the boot:sudo journalctl -b | curl -F 'file=@-' 0x0.st
Thanks for looking into this and here is the boot log: http://0x0.st/HKIQ.txt
Speaking of xcb and environment variables, it seems weird to me because I have tried to export them through /etc/profile.d along with other (possibly?) essential ones:
$ cat /etc/profile.d/sway.sh
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_TYPE=wayland
export MOZ_ENABLE_WAYLAND=1
export SDL_VIDEODRIVER=wayland
export QT_QPA_PLATFORM=wayland
export GTK_USE_PORTAL=1
export FREETYPE_PROPERTIES="truetype:interpreter-version=35"
export _JAVA_AWT_WM_NONREPARENTING=1
$ printenv | grep 'XDG\|QT'
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=
XDG_SESSION_TYPE=wayland
XDG_CURRENT_DESKTOP=sway
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
QT_QPA_PLATFORM=wayland
XDG_SESSION_CLASS=user
XDG_VTNR=1
XDG_SESSION_ID=2
XDG_RUNTIME_DIR=/run/user/1000
XDG_DATA_DIRS=/home/hftsai/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/shareAm I exporting them in the wrong place so that kded5 cannot pick them up? Here's the error message from plasma-kded.service (Full journalctl log)
× plasma-kded.service - KDE Daemon
Loaded: loaded (/usr/lib/systemd/user/plasma-kded.service; static)
Active: failed (Result: core-dump) since Thu 2023-04-27 21:06:39 EDT; 22min ago
Process: 8764 ExecStart=/usr/bin/kded5 (code=dumped, signal=ABRT)
Main PID: 8764 (code=dumped, signal=ABRT)
CPU: 19ms
Apr 27 21:06:39 cyt-ht-9315 systemd[744]: Starting KDE Daemon...
Apr 27 21:06:39 cyt-ht-9315 kded5[8764]: qt.qpa.xcb: could not connect to display
Apr 27 21:06:39 cyt-ht-9315 kded5[8764]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Apr 27 21:06:39 cyt-ht-9315 kded5[8764]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Apr 27 21:06:39 cyt-ht-9315 systemd-coredump[8769]: Process 8764 (kded5) of user 1000 dumped core.I've also tried starting kded5 from terminal with QT_DEBUG_PLUGINS=1. Not sure if those debug messages can be useful, but seems like it is not trying to load xcb: http://0x0.st/HKlH.txt
Fyi, Dolphin doesn't mount anything (cifs) but uses an SMB kio client, a bit like smbclient.
You might be interested in https://wiki.archlinux.org/title/Samba#smbnetfs
It (smbnetfs) does seem interesting and fits much better than autofs. Thanks for the suggestion.
Offline
Turns out that setting those env variables in /etc/environment instead of /etc/profile.d does the trick, and such behavior inspires me to import those environment variables with systemctl. I ended up with an initializing script
#!/usr/bin/env bash
export _JAVA_AWT_WM_NONREPARENTING=1
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export SDL_VIDEODRIVER=wayland
export MOZ_ENABLE_WAYLAND=1
export MOZ_WEBRENDER=1
export MOZ_ACCELERATED=1
systemctl --user import-environment \
WAYLAND_DISPLAY \
XDG_CURRENT_DESKTOP \
QT_QPA_PLATFORM \
QT_AUTO_SCREEN_SCALE_FACTOR \
QT_WAYLAND_DISABLE_WINDOWDECORATION
dbus-ipdate-activation-environent --systemd \
WAYLAND_DISPLAY \
XDG_CURRENT_DESKTOP \
QT_QPA_PLATFORM \
QT_AUTO_SCREEN_SCALE_FACTOR \
QT_WAYLAND_DISABLE_WINDOWDECORATIONand run this at the very beginning of the sway config. Now Dolphin can do its job just like running in KDE.
Marking this thread as resolved. Thanks again.
Offline