Launchpad has imported 2 comments from the remote bug at
https://bugzilla.xfce.org/show_bug.cgi?id=12403.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2016-01-08T16:28:19+00:00 Michael-hannema wrote:

When opening a directory in a new tab, the history of the previous tab
is copied into the new one, but the newly opened directory is not stored
in the history.

For example:
* Navigate to root ('File System')
* Navigate to the 'usr' directory
* Navigate to the 'share' directory

The top two entries should now say 'usr' and 'File System'.

* Right click the xfce4 directory and click on 'Open in New Tab'

Note that this new tab has the same history as the old one.

* Navigate to the 'applications' directory

Note that the 'share' directory has now been added to the history, but
the 'xfce4' directory has not.  When you use the back button at this
point, you will indeed end up in /usr/share and not in /usr/share/xfce4.

This odd behaviour does not occur when opening a directory in a new
*window*.


Expected behaviour:
* Opening a directory in a new tab should give the new tab a fresh history, as 
in web browsers with tabs.
* The directory that is opened in the new tab should be recorded in the history 
of that new tab.


Version info:
I am using version 1.6.10-2 on amd64, as provided by packages of Debian Stretch.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/thunar/+bug/1776483/comments/0

------------------------------------------------------------------------
On 2017-07-29T20:20:46+00:00 Hacking-k wrote:


Another problem, related to this is:

When you follow Michael's steps and, from the 'xfce4' tab, navigate one level
up, the 'xfce4' folder *should* be selected, but it isn't. Also, this is not a
problem when 'xfce4' was opened as a new window.

git-bisect'ing identified

https://git.xfce.org/xfce/thunar/commit/?id=aa5f8fca0e6e965a9592da30c36d2fa4afe44746

as the culprit.


Digging into this revealed actually two problems here:


1) thunar_window_notebook_insert(ThunarWindow *window, ThunarFile *directory)
creates a copy of the history for the new tab to use. For newly created tabs,
these histories are exact copies, lacking a history entry for the directoy of
the original tab itself (this is what Michael already explained).


So the obvious solution would be to just add

thunar_navigator_set_current_directory(THUNAR_NAVIGATOR(history),
directory);

after the copied history has been set on the new tab.


HOWEVER:


2) Things get really interesting, when you open multiple new tabs at once, say,
not only 'xfce' but also 'xml' and 'zoneinfo':

Within thunar_window_notebook_insert(...), the call

history = thunar_standard_view_copy_history (THUNAR_STANDARD_VIEW
(window->view));

does not copy the history from the "originating tab", but from the most 
recently active tab.
Since tabs get "activated" from within thunar_window_notebook_insert(), in 
effect the history

- for the 'xfce' tab initially is a copy of the "original" tab's,

- for 'xml' it's a copy of the 'xfce' tab's,

- for 'zoneinfo' it's a copy of the 'xml' tab's and so on


Due to this, the fix above causes every later opened tab to have a
history entry for its predecessor.

I'm not sure how to fix that one...


Cheers
Daniel

Reply at:
https://bugs.launchpad.net/ubuntu/+source/thunar/+bug/1776483/comments/1


** Changed in: thunar
       Status: Unknown => Confirmed

** Changed in: thunar
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1776483

Title:
  Thunar doesn't navigate correctly to the root directory on
  "back"/"previous"

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunar/+bug/1776483/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to