! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Double opening of the file browser window when inserting devices
Status:
RESOLVED: INVALID
Product:
Thunar-volman
Component:
General

Comments

Description Manuel C. 2007-08-27 08:11:27 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070801 BonEcho/2.0.0.6
Build Identifier: 

If the Thunar's "Browse removable media when inserted" option is enabled and I insert a removable media (ex. USB pen drive), the file manager (Thunar) window is opened 2 times. 

This behaviour doesn't happen for every device: I can reproduce it with a 2 GB USB pen drive, but I *can't* reproduce this issue with a 300 GB Firewire drive (the file browser is opened just 1 time).

Reproducible: Sometimes

Steps to Reproduce:
1. Enable the "Browse removable media when inserted" option.
2. Insert a device.

Actual Results:  
Sometimes the file manager (Thunar) window is opened 2 times.

Expected Results:  
It should open the file manager window only 1 time.
Comment 1 Benedikt Meurer editbugs 2007-11-28 20:03:04 CET
How many file systems do you have on your 2 GB pen drive (including hidden ones)?
Comment 2 Manuel C. 2007-11-28 22:31:14 CET
Only one. Only one partition with max size.
Comment 3 Li Sun 2008-03-08 14:43:01 CET
Created attachment 1551 
lshal -m output
Comment 4 Li Sun 2008-03-08 14:44:24 CET
I have seen roughly the same bug. I tried both usb-disk and CD, they will be automounted and the icon will be shown on desktop. But two browser windows will be opened.

And if i eject the CD by pressing the release button, two error message dialog will be popped up.
Comment 5 Li Sun 2008-03-08 14:46:38 CET
Oh sorry, i'm using thunar-volman 0.2.0, hal 0.5.10, archlinux
Comment 6 Sebastian 2008-06-24 08:40:27 CEST
I am experiencing the same for some time - but now it is worse - the browser window opens three times ;)
I am on Xubuntu 8.04: thunar 0.9.0-4ubuntu2; thunar-volman 0.2.0-2ubuntu2
I am using a usb-pendrive with 4 gb capacity and only one big fat32 partition on it. The same happens with my ipod.
Any additional information i may provide to troubleshoot this?
Comment 7 Nick Schermer editbugs 2008-06-25 07:07:02 CEST
How many Thunar instances are running on your system (pgrep Thunar)?
Comment 8 Sebastian 2008-06-25 07:43:10 CEST
Good call - I had 3 running.
After killing two of them only one window opened when I connected the pendrive.
My problem is solved for now, but I have no clue how I ended up with those 3 instances.
After a reboot there is still only one Thunar running, so it's nothing in my startup scripts.
Maybe some glitch with session management?
Comment 9 jtappin 2008-12-13 21:47:56 CET
I get this problem, with only 1 thunar process running.

This occurs with 2 different memory sticks:
1) An old 512Mb Lexar Jumpdrive
2) A 4 Gb San Disk Cruzer (the U3 partition does not appear).

and also with an unbranded 3.5 inch external USB HD enclosure with a 40GB drive with a single partition (which may have been formatted on a PowerPC mac but running Linux).

I've not had a chance to check what happens on a firewire drive as all my 6-6 FW cables seem to be at work.

This is on a 32-Bit machine running Thunar 0.9.0 from the Ubuntu (Intrepid Ibex) repositories.
Comment 10 Jarno Suni 2009-01-11 10:54:48 CET
(In reply to comment #9)
> I get this problem, with only 1 thunar process running.

Are you sure you had only 1 thunar process running? You may have more than one thunar processes running even if you have only one thunar window open. At least my computer had two thunar processes running and thus I got two new windows per hotplug.
Comment 11 jtappin 2009-01-11 15:41:26 CET
Re  Jarno Suni's question:

Yes, provided that "pgrep thunar" can't overlook a process.
Comment 12 Benedikt Meurer editbugs 2009-11-07 10:31:10 CET
Mass reassign. Nick, please check these pending reports. Thx.
Comment 13 stiffux 2011-09-02 15:03:02 CEST
I encountered same problem on RHEL5 with thunar-volman-0.2.0-1.el5.centos.

Each time a new media was inserted multiple file manager windows opened.
If any file manger was previously opened -> only one windows was opend.
If n file manager are opened -> n+1 windows were opened.

When I killed all Thunar process and start it manually : Thunar --daemon
Isaw this error "Thunar: Failed to connect to the D-BUS session bus: Failed to execute dbus-launch to autolaunch D-Bus session".

I installed dbus-x11 to provide exe dbus-launch.
Then the problem of multiple file manager is solved.
Only one window is opened even if several instances of file manager are running or several media are connected.

Hope it helps.
Comment 14 Harald Judt editbugs 2015-02-26 17:29:12 CET
Closing because of age. HAL is long gone. Reopen if necessary.

Bug #3502

Reported by:
Manuel C.
Reported on: 2007-08-27
Last modified on: 2015-02-26

People

Assignee:
Jannis Pohlmann
CC List:
6 users

Version

Version:
unspecified

Attachments

lshal -m output (2.45 KB, application/octet-stream)
2008-03-08 14:43 CET , Li Sun
no flags

Additional information