LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-21-2022, 11:57 PM   #1
SlackIT
Member
 
Registered: Mar 2022
Posts: 166

Rep: Reputation: 17
Thunar - Preferences - Advanced - It looks like gvfs is not available


When I start Thunar it says gvfs is not available.

I only use Openbox in Slackware 15.0, Xfce is not installed.

I compiled Thunar, and I compiled the dependencies it needs, but I installed the official slack pkg for gvfs.

These are the pkgs I compiled;

exo
libxfce4ui
libxfce4util
thunar-volman
tumbler
xfce4-panel
Thunar

I have an LDD script that checks the system for anything missing, it shows nothing is missing.

I assumed Thunar is complaining about gvfs missing, because this is a dbus issue with starting other DE/WM outside of Xfce.

BUT... This is the contents of my .xinitrc, I assumed is correct to start a dbus session and have Thunar see gvfs.

Code:
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps
[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap

export GTK2_RC_FILES="$HOME/.gtkrc-2.0"

if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session dbus-launch --sh-syntax --exit-with-session openbox-session > /dev/null 2>~/.X.log
else
  exec openbox-session > /dev/null 2>~/.X.log
fi
Since I did this manually, I also wondered if I might be missing a /usr/share/dbus-1/services file for gvfs.

But I do see; org.gtk.vfs.Daemon.service

Code:
                                                                 
[D-BUS Service]
Name=org.gtk.vfs.Daemon
Exec=/usr/libexec/gvfsd
/etc/rc.d/rc.messagebus is executable.

Anyhow, I'm lost, I can't get Thunar to see gvfs, any ideas?

THANKS

Last edited by SlackIT; 03-22-2022 at 12:08 AM.
 
Old 03-22-2022, 12:37 AM   #2
SlackIT
Member
 
Registered: Mar 2022
Posts: 166

Original Poster
Rep: Reputation: 17
After posting this, I decided to install Xfce and see what happens, and Thunar works without any gvfs issue.

SO, I think I'm right, with this being a dbus/session issue, but can't seem to figure how to start Openbox so this works?


Hmm
 
Old 03-22-2022, 09:09 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Many window managers require a DBUS notification service. For some ideas
 
Old 03-23-2022, 01:52 AM   #4
SlackIT
Member
 
Registered: Mar 2022
Posts: 166

Original Poster
Rep: Reputation: 17
I do have xfce4-notifyd installed, and it has;

/etc/xfce/xdg/autostart;

xfce4-notifyd.desktop;
[Desktop Entry]
Type=Application
Name=Xfce Notification Daemon
Exec=/usr/lib64/xfce4/notifyd/xfce4-notifyd
Icon=org.xfce.notification
OnlyShowIn=XFCE;

I assumed in Openbox this script was called and started? hmm

I added by hand;
/usr/share/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service;
[D-BUS Service]
Name=org.xfce.Xfconf
Exec=/usr/lib64/xfce4/xfconf/xfconfd

Last edited by SlackIT; 03-23-2022 at 01:56 AM.
 
Old 03-23-2022, 04:50 AM   #5
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Code:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session dbus-launch --sh-syntax --exit-with-session openbox-session > /dev/null 2>~/.X.log
else
  exec openbox-session > /dev/null 2>~/.X.log
fi
That's outdated now, ck is gone from Slackware 15.0

I do my xinitrc's like this now: using dbus-run-session rather than dbus-launch:

Code:
#!/bin/sh

##  Reinvoke within a dbus session:

if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && [ -x /usr/bin/dbus-run-session ]; then
   exec dbus-run-session -- $0 "$@"
fi


##  Load Xresources and keymaps:

userresources=$HOME/.Xresources
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
usermodmap=$HOME/.Xmodmap

[ -f "$sysresources" ]   &&  xrdb -load "$sysresources"
[ -f "$userresources" ]  &&  xrdb -merge "$userresources"
[ -f "$sysmodmap" ]      &&  xmodmap "$sysmodmap"
[ -f "$usermodmap" ]     &&  xmodmap "$usermodmap"


##  Start user programs:

# /usr/bin/compton --paint-on-overlay --backend glx --vsync opengl-swc &

##  Start Window Manager:

/usr/bin/fbsetroot -solid \#0f0f0f
/usr/bin/fvwm2
Using dbus-run-session is more in-keeping with how display managers such as sddm start dbus. I never liked dbus-launch: it had a couple of ugly aspects to it that have proven problematic to me in the past.

Also, unlike the dbus-launch approach, this still allows you to put additional user programs in your xinitrc, like we did in the old days.
 
2 members found this post helpful.
Old 03-23-2022, 08:01 PM   #6
SlackIT
Member
 
Registered: Mar 2022
Posts: 166

Original Poster
Rep: Reputation: 17
Post error...

Last edited by SlackIT; 03-23-2022 at 08:12 PM.
 
Old 03-23-2022, 08:10 PM   #7
SlackIT
Member
 
Registered: Mar 2022
Posts: 166

Original Poster
Rep: Reputation: 17
I just tried to use my .xinitrc exactly how you made yours and X doesn't start, so this is not working for me/openbox...

Code:
#!/bin/sh

##  Reinvoke within a dbus session:

if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && [ -x /usr/bin/dbus-run-session ]; then
   exec dbus-run-session -- $0 "$@"
fi


##  Load Xresources and keymaps:

userresources=$HOME/.Xresources
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
usermodmap=$HOME/.Xmodmap

[ -f "$sysresources" ]   &&  xrdb -load "$sysresources"
[ -f "$userresources" ]  &&  xrdb -merge "$userresources"
[ -f "$sysmodmap" ]      &&  xmodmap "$sysmodmap"
[ -f "$usermodmap" ]     &&  xmodmap "$usermodmap"


/usr/bin/openbox

Last edited by SlackIT; 03-23-2022 at 08:26 PM.
 
Old 03-23-2022, 08:49 PM   #8
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,915

Rep: Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033Reputation: 5033
Is ~/.xinitrc set executable?


I haven't run openbox, so can't offer any advice on that, but I know it works with fvwm.
 
Old 03-23-2022, 09:37 PM   #9
SlackIT
Member
 
Registered: Mar 2022
Posts: 166

Original Poster
Rep: Reputation: 17
My mistake I didn't have it executable and because I picked in xwmconfig openbox-session, I have it now like this and it works;

Code:
#!/bin/sh

##  Reinvoke within a dbus session:

if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && [ -x /usr/bin/dbus-run-session ]; then
   exec dbus-run-session -- $0 "$@"
fi

##  Load Xresources and keymaps:

userresources=$HOME/.Xresources
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
usermodmap=$HOME/.Xmodmap

[ -f "$sysresources" ]   &&  xrdb -load "$sysresources"
[ -f "$userresources" ]  &&  xrdb -merge "$userresources"
[ -f "$sysmodmap" ]      &&  xmodmap "$sysmodmap"
[ -f "$usermodmap" ]     &&  xmodmap "$usermodmap"

export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
exec openbox-session
 
Old 03-23-2022, 10:10 PM   #10
SlackIT
Member
 
Registered: Mar 2022
Posts: 166

Original Poster
Rep: Reputation: 17
I guess for Openbox, or maybe it's for any small WM/DE, if you don't run X in a session, then you might have to set variables in the .xinitrc to load?

As an example Openbox has this path;

/.config/openbox/autostart.sh - this is the contents I use in the autosart.sh;
Code:
(sleep 1s; tint2 > /dev/null 2>&1 &) &
. $HOME/.fehbg
picom --config ~/.config/picom.conf -b --log-file /tmp/picom.log
urxvtd -q -f -o
I noticed if I didn't start openbox in a session and just started it as exec openbox none of these were loaded, so I'm assuming if you don't run a session, then all of these I listed in the autostart.sh I would need to place in the .xinitrc to load?

THANKS
 
Old 03-24-2022, 08:30 AM   #11
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Quote:
Originally Posted by SlackIT View Post
I guess for Openbox, or maybe it's for any small WM/DE, if you don't run X in a session, then you might have to set variables in the .xinitrc to load?

As an example Openbox has this path;

/.config/openbox/autostart.sh - this is the contents I use in the autosart.sh;
Code:
(sleep 1s; tint2 > /dev/null 2>&1 &) &
. $HOME/.fehbg
picom --config ~/.config/picom.conf -b --log-file /tmp/picom.log
urxvtd -q -f -o
I noticed if I didn't start openbox in a session and just started it as exec openbox none of these were loaded, so I'm assuming if you don't run a session, then all of these I listed in the autostart.sh I would need to place in the .xinitrc to load?

THANKS
This has nothing to do with the title.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Android phone : Thunar[1765]: thunar-volman: Unsupported USB device type "(null)". DBabo Linux - Software 10 08-28-2019 01:59 PM
Thunar connection to an other Linux ... gvfs "Too many authentication attempts" Patriboom Linux - Security 1 02-11-2019 01:28 AM
LibreOffice can't open files through gvfs/Thunar xj25vm Slackware 2 03-31-2015 05:29 AM
[SOLVED] udisks (or dbus, gvfs, thunar) trouble kaz2100 Debian 2 05-15-2014 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration