You are not logged in.

#1 2015-09-21 06:24:04

oinkl
Member
Registered: 2010-01-13
Posts: 47

[SOLVED] PCManFM "Operation not supported" on SFTP after upgrade

When I try to access an SFTP location with PCManFM, I get "Operation not supported" error.

It's always been working fine, until I ran

pacman -Syu

which upgraded the following packages

[2015-09-21 09:42] [ALPM] transaction started
[2015-09-21 09:42] [ALPM] upgraded readline (6.3.008-2 -> 6.3.008-3)
[2015-09-21 09:42] [ALPM] upgraded bash (4.3.042-2 -> 4.3.042-3)
[2015-09-21 09:42] [ALPM] upgraded cmake (3.3.1-3 -> 3.3.2-3)
[2015-09-21 09:42] [ALPM] upgraded libsystemd (225-1 -> 226-1)
[2015-09-21 09:42] [ALPM] upgraded libdbus (1.10.0-2 -> 1.10.0-3)
[2015-09-21 09:42] [ALPM] upgraded dbus (1.10.0-2 -> 1.10.0-3)
[2015-09-21 09:42] [ALPM] upgraded git (2.5.2-1 -> 2.5.3-1)
[2015-09-21 09:42] [ALPM] upgraded gtk-update-icon-cache (3.16.6-1 -> 3.16.7-1)
[2015-09-21 09:42] [ALPM] upgraded systemd (225-1 -> 226-1)
[2015-09-21 09:42] [ALPM] upgraded gtk3 (3.16.6-1 -> 3.16.7-1)
[2015-09-21 09:42] [ALPM] upgraded mongodb (3.0.6-1 -> 3.0.6-2)
[2015-09-21 09:42] [ALPM] upgraded npm (2.14.3-1 -> 3.3.3-1)
[2015-09-21 09:42] [ALPM] upgraded systemd-sysvcompat (225-1 -> 226-1)
[2015-09-21 09:42] [ALPM] transaction completed

According to ArchWiki here and here, this might have something to do with D-Bus, and from Arch News, there seems some change to how D-Bus works internally https://www.archlinux.org/news/d-bus-no … ser-buses/, which might have caused the issue.

I'm not sure how this change might've caused the issue, or if it even is the root cause, or how to further troubleshoot. Any tips on how to proceed? Thanks!

Last edited by oinkl (2015-09-21 09:18:33)

Offline

#2 2015-09-21 08:32:13

zb3
Member
Registered: 2012-05-07
Posts: 23
Website

Re: [SOLVED] PCManFM "Operation not supported" on SFTP after upgrade

Well, is the DBUS_SESSION_BUS_ADDRESS environment variable set?
I am facing similar problem, where it is set before I start X, but after I start X it's cleared...


zb3

Offline

#3 2015-09-21 09:17:47

oinkl
Member
Registered: 2010-01-13
Posts: 47

Re: [SOLVED] PCManFM "Operation not supported" on SFTP after upgrade

Thanks! I have the exact same issue as you.
Setting the environment variable in .xinitrc before I exec openbox-session (not sure if it's the best place) fixed the problem.

export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"
exec openbox-session

Offline

#4 2015-09-21 09:29:39

zb3
Member
Registered: 2012-05-07
Posts: 23
Website

Re: [SOLVED] PCManFM "Operation not supported" on SFTP after upgrade

Are you using startx?

If so, this line in /usr/bin/startx may cause trouble:

unset DBUS_SESSION_BUS_ADDRESS

Otherwise hardcoding path to user bus may break later

EDIT: typo

Last edited by zb3 (2015-09-21 09:32:00)


zb3

Offline

#5 2015-09-21 10:22:49

oinkl
Member
Registered: 2010-01-13
Posts: 47

Re: [SOLVED] PCManFM "Operation not supported" on SFTP after upgrade

Yea, I'm using startx.
I've commented out the line and all works fine.
Couple of questions:

  • Why is DBUS_SESSION_BUS_ADDRESS explicitly unset if it's required for client applications?

  • I've never had this problem until the upgrade. xorg-xinit provides /usr/bin/startx, and this file was last modified in Mar. That means the variable was always unset, yet I didn't have any trouble. What changed?

Edit: Nevermind, I found your bug report https://bugs.archlinux.org/task/46369. Thanks!

Last edited by oinkl (2015-09-21 10:25:01)

Offline

#6 2015-09-21 10:26:00

zb3
Member
Registered: 2012-05-07
Posts: 23
Website

Re: [SOLVED] PCManFM "Operation not supported" on SFTP after upgrade

Ad 1: I've filled a bug: https://bugs.archlinux.org/task/46369
Ad 2: Because the variable was set again by the /etc/X11/xinit/xinitrc.d/30-dbus.sh file which started the session bus. Now the variable is set by pam_systemd, and from what I could understand, systemd launches the user bus itself

EDIT: And the /etc/X11/xinit/xinitrc.d/30-dbus.sh file is no longer present in latest dbus package version (dbus 1.10.0-3)

Last edited by zb3 (2015-09-21 10:26:51)


zb3

Offline

#7 2015-09-21 18:41:15

Vizitor
Member
Registered: 2015-01-05
Posts: 81

Re: [SOLVED] PCManFM "Operation not supported" on SFTP after upgrade

I'm using startx (fluxbox, pcmanfm) and I tried both solutions, and each one of them works! smile
No more "Operation not supported" error when clicking Devices, and
now I have back USB sticks and smartphone file browsing in pcmanfm.

Offline

Board footer

Powered by FluxBB