LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2025, 01:46 PM   #1
uncle_bub
LQ Newbie
 
Registered: Jul 2025
Posts: 7

Rep: Reputation: 0
Unhappy Openbox - trash Can missing from PCManFM and Thunar


Hello!

I've been building a working environment in openbox, but cannot get the trash can to display in PCManFM or Thunar under Openbox. They both work fine under KDE and XFCE. Dolphin 21.12.1 is working fine in Openbox.

Here are the versions of software used:

Slackware-15.0 x86_64
kernel-5.15.188
openbox-3.6.1
gvfs-1.48.1
PCManFM-14.0
Thunar-4.16.10

In the affected file managers, the trash can is enabled in the preferences, but is not displayed in the side pane when running in Openbox. There are no errors in PCManFM, but Thunar displays the error, "Missing dependencies - It looks like gvfs is not available." in the the advanced preference pane. I have checked and gvfs is installed. I've also checked and dbus is running.

Any ideas what I'm doing wrong here?

Thanks in advance for any help.
 
Old 08-02-2025, 06:03 PM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,818
Blog Entries: 7

Rep: Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189
Does move to trash work with
Code:
dbus-launch pcmanfm
Trash can is at ~/.local/share/Trash

To your .xinitrc
Code:
exec ck-launch-session openbox-session
How about your icon theme?

Info:
https://wiki.archlinux.org/title/PCManFM
 
1 members found this post helpful.
Old 08-02-2025, 10:26 PM   #3
uncle_bub
LQ Newbie
 
Registered: Jul 2025
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks teckk!

Right-clicking files and selecting "Move to trash" always worked and I could go to ~/.local/share/Trash to empty the trash. It's just the option never appeared in the pcmanfm sidebar even when enabled in preferences.

I ran dbus-launch pcmanfm and voila! I now had the trash can option as well as my other volumes which had also been AWOL. This gave me the idea to add dbus-launch pcmanfm --daemon-mode & to my openbox autostart and the issue is resolved.

As for .xinitrc, there is /etc/X11/xinit/xinitrc/.xinitrc.openbox

I didn't see exec ck-launch-session openbox-session there, but the last few lines are:

if [ -z "$DESKTOP_SESSION" ]; then
exec dbus-launch --exit-with-session openbox
else
exec openbox
fi

Where would I add the line exec ck-launch-session openbox-session into .xinitrc.openbox?

In any case it's working now, I just want to be sure I'm doing it right and understanding the process. Thanks for getting me on the right track.
 
  


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
Trash is Full. Empty Trash before moving more files/folders to Trash. wdarledge Slackware 45 12-13-2017 03:53 PM
In Nautilus, they are all mountable, but not in Thunar and PCManFM. germanium Linux - Newbie 0 06-25-2008 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:10 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
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