Skip to content

browse windows share with thunar (arch + i3)

Hi,

I cannot access windows shares with thunar. System: fresh Arch + i3. Installed "gvfs" and "gvfs-smb". Arch wiki states that I can access windows shares with smb://<server name>/<share name> in thunar after installing gvfs-smb. All I got after clicking the network symbol in thunar is:

Failed to open "/ on". Operation not supported.

Do I need any other package? Did I miss something?

1 points5 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
2pd2ca

Author

5
posts
17
comments
0
media
View profile

5 comments

D-Bus is a message bus system, a simple way for applications to talk to one another. In addition to interprocess communication, D-Bus helps coordinate process lifecycle; it makes it simple and reliable to code a "single instance" application or daemon, and to launch applications and daemons on demand when their services are needed.

about the wiki: the wiki suggest that you use the .xinitrc from the /etc/skel folder. using that skel file to execute X will load dbus-launch.

2 points

Thanks for your enlightened reply.

So this is the .xinitrc from /etc/skel:

#!/bin/sh                                                                                                                                                                                                                                     
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice

Since I dont see any dbus statement, I guess xinitrc.d is somehow related to dbus? I think I should read about that.

1 points

basically the for loop execute the files inside xinitrc.d

if you will take a look at what's inside /etc/X11/xinit/xinitrc.d you will find a file called 30-dbus.

can you guess what that script is for? ;)

1 points

I just went through this the other day. The wiki and the forums are insistent that simply installing gvfs-smb will give you that functionality, however there is definitely a missing piece. I'm assuming i3 is getting launched from .xinitrc - if so, replace

exec i3

with

exec dbus-launch i3

Hopefully that works for you.

EDIT: Ha, just saw your follow-up post. I have now idea why you have to do it this way. My guess is that the gvfs methods are exposed via dbus, and launching i3 in a regular shell doesn't give it the appropriate access to those APIs.

2 points

Ok, so I modified my .xinitrc:

old: exec i3
new: exec dbus-launch --exit-with-session --sh-syntax i3

I can access the windows shares now. Can anyone explain to me why I need to add an explicit dbus launch and why I didnt find any Info on that in the arch wiki (Im not bitching, just asking politely)?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.