! 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 !
Device order isn't constant when plugging in, mounting and unmounting
Status:
RESOLVED: MOVED

Comments

Description Yousuf 'Jay' Philips 2020-04-18 05:48:40 CEST
The device order in the sidebar both in tree and bookmark view isn't constant and fluctuates when you plugin a device, mount or unmount.

Plugin steps:
1. open thunar
2. plugin in a phone
3. it appears at bottom
4. restart thunar
5. now it appears below File System

Unmount steps:
1. open thunar
2. mount a partition
3. unmount partition
4. notice its now at the bottom of the list

The constant order should be
1. File System
2. Internal Partitions
3. External Partitions (USB/Hard Disk)
4. External Devices

Video: https://youtu.be/GvC7QJMTSrg
Comment 1 Theo Linkspfeifer editbugs 2020-04-18 23:29:37 CEST
The sorting order is based on timestamp comparison. When a device is added after Thunar was opened, it will be moved to the bottom of its subgroup.

How do other file managers order the entries?
Comment 2 Yousuf 'Jay' Philips 2020-04-18 23:41:22 CEST
Created attachment 9753 
caja devices

It keeps the order consistent irrespective to when which of them are plugged in or out in Caja.

1. Internal Partitions
2. External Partitions
3. USB Devices
4. Other Devices
Comment 3 alexxcons editbugs 2020-04-19 11:23:40 CEST
(In reply to Jay Philips from comment #2)
> Created attachment 9753 
> caja devices
> 
> It keeps the order consistent irrespective to when which of them are plugged
> in or out in Caja.
> 
> 1. Internal Partitions
> 2. External Partitions
> 3. USB Devices
> 4. Other Devices
Possibly ordered first by "can it be injected" and subgroups are ordered by URI name ?

As always, patches are welcome !
Comment 4 Theo Linkspfeifer editbugs 2020-04-19 12:33:13 CEST
There are only two subgroups (volumes, local mounts) and the order of its entries on start is determined by GVolumeMonitor.

https://git.xfce.org/xfce/thunar/tree/thunar/thunar-device-monitor.c#n208
Comment 5 Git Bot editbugs 2020-05-26 23:50:47 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/296.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #16709

Reported by:
Yousuf 'Jay' Philips
Reported on: 2020-04-18
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Attachments

caja devices (13.88 KB, image/png)
2020-04-18 23:41 CEST , Yousuf 'Jay' Philips
no flags

Additional information