Bug 236059 - Gwenview: use same sort order as current Dolphin view
Summary: Gwenview: use same sort order as current Dolphin view
Status: RESOLVED FIXED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Unspecified
: HI wishlist
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords: usability
: 249573 250079 361029 365683 371950 390201 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-02 19:49 UTC by Dotan Cohen
Modified: 2023-08-22 16:45 UTC (History)
21 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.08


Attachments
attachment-14767-0.html (2.33 KB, text/html)
2018-04-13 21:37 UTC, MuStArt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dotan Cohen 2010-05-02 19:49:45 UTC
Version:            (using KDE 4.4.2)
Installed from:    Unspecified Linux

When opening jpeg files with Dolphin into Gwenview, Gwenview should sort the Next and Previous lists as per the current Dolphin sort order. It is very confusing when the Next and Previous bring up the "wrong" photos. Thanks.
Comment 1 Ricardo Graça 2010-10-31 16:13:59 UTC
I agree. I don't understand why there isn't more people complaining about this.
Comment 2 Dotan Cohen 2011-08-12 21:10:03 UTC
*** Bug 250079 has been marked as a duplicate of this bug. ***
Comment 3 Jekyll Wu 2012-01-03 05:03:31 UTC
*** Bug 249573 has been marked as a duplicate of this bug. ***
Comment 4 Nate Graham 2017-08-14 21:13:10 UTC
Fixed in https://bugs.kde.org/show_bug.cgi?id=343452

*** This bug has been marked as a duplicate of bug 343452 ***
Comment 5 Kai Uwe Broulik 2017-08-14 21:15:52 UTC
This is not what the other bug is about, reopening.
Comment 6 Nate Graham 2017-08-14 21:16:36 UTC
My mistake, sorry.
Comment 7 Nate Graham 2017-09-08 18:28:46 UTC
*** Bug 371950 has been marked as a duplicate of this bug. ***
Comment 8 Nate Graham 2017-09-08 18:29:57 UTC
*** Bug 361029 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2017-09-08 18:49:53 UTC
*** Bug 365683 has been marked as a duplicate of this bug. ***
Comment 10 Patrick Silva 2018-03-05 12:07:45 UTC
*** Bug 390201 has been marked as a duplicate of this bug. ***
Comment 11 MuStArt 2018-04-13 21:37:01 UTC
Created attachment 112018 [details]
attachment-14767-0.html

I have checked in KDE 17.10, but the same problem still exists.

Can I help You with screenshots or list of alphabetical sort order example
of gwenview?
9719Pecs_d1399 good morning.JPG
9b10Pecs_d3790 bemutatom Hajnit.JPG
9814Vp_d1985 a profi.JPG
9813Vp_d1976 jo.JPG
a502Pecs_d7781.JPG
a715A_a2603_2M.jpg

I prefer use alpabetical sort order by char after char as ascii codes.

Musulin, Béla
---

2018-03-05 13:07 GMT+01:00 Dr. Chapatin <bugzilla_noreply@kde.org>:

> https://bugs.kde.org/show_bug.cgi?id=236059
>
> Dr. Chapatin <bugseforuns@gmx.com> changed:
>
>            What    |Removed                     |Added
> ------------------------------------------------------------
> ----------------
>                  CC|
> |david.cortes.rivera@gmail.c
>                    |                            |om
>
> --- Comment #10 from Dr. Chapatin <bugseforuns@gmx.com> ---
> *** Bug 390201 has been marked as a duplicate of this bug. ***
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>
Comment 12 Colin Griffith 2019-08-18 00:28:23 UTC
I'm affected by this bug as well. I have a lot of image files that are named by their md5 hashes in hexadecimal, and this effectively means that I get names in a seemingly random order in Gwenview only. It's EXTREMELY annoying.
Comment 13 Magne Djupvik 2021-03-07 18:18:36 UTC
Also affected by this, I often search for images spread over a few subfolders and it would be really great if I could use the back and forward buttons in Gwenview for navigating my search results rather than having to close Gwenview before opening it again by double-clicking another image in the Dolphin search results.
Comment 14 Marco Martin 2021-05-25 14:34:00 UTC
* one way may be gwenview just reading and writing the sort order from dolphin settings (either .directory of the folder or global .local/share/dolphin/view_properties/global/.directory depending on dolphin settings) which sounds kinda error prone...

* another way may be dolphin launching gwenview with parameters about sorting, though would need a lot of special casing in KRun

* another way could be dolphin exposing a dbus service to ask about "what are the view properties for this folder?" which would require some back and forth between dolphin and gwenview, but may perhaps be a bit safer.


another thing is: what should happen when the sort order is changed in gwenview? i guess it should not change what dolphin does i guess
Comment 15 David 2021-05-25 17:50:16 UTC
(In reply to Marco Martin from comment #14)
> * one way may be gwenview just reading and writing the sort order from
> dolphin settings (either .directory of the folder or global
> .local/share/dolphin/view_properties/global/.directory depending on dolphin
> settings) which sounds kinda error prone...
> 
> * another way may be dolphin launching gwenview with parameters about
> sorting, though would need a lot of special casing in KRun
> 
> * another way could be dolphin exposing a dbus service to ask about "what
> are the view properties for this folder?" which would require some back and
> forth between dolphin and gwenview, but may perhaps be a bit safer.
> 
> 
> another thing is: what should happen when the sort order is changed in
> gwenview? i guess it should not change what dolphin does i guess

I'd absolutely expect the Dolphin sorting order not to change if changing the sorting order within Gwenview.
Comment 16 Dotan Cohen 2021-05-27 08:33:32 UTC
(In reply to Marco Martin from comment #14)
> * one way may be gwenview just reading and writing the sort order from
> dolphin settings (either .directory of the folder or global
> .local/share/dolphin/view_properties/global/.directory depending on dolphin
> settings) which sounds kinda error prone...
> 

Consider that Gwenview might be opened by a method other than from Dolphin.

> * another way may be dolphin launching gwenview with parameters about
> sorting, though would need a lot of special casing in KRun
> 

Despite the complexity, this makes sense.


> another thing is: what should happen when the sort order is changed in
> gwenview? i guess it should not change what dolphin does i guess

I agree that this should not affect Dolphin.
Comment 17 Bug Janitor Service 2021-05-27 11:38:05 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/gwenview/-/merge_requests/80
Comment 18 Marco Martin 2021-06-04 12:04:00 UTC
closed by
https://invent.kde.org/graphics/gwenview/-/merge_requests/80
Comment 19 Nate Graham 2021-06-04 12:04:18 UTC
Git commit dbabe22249781242c789d691c1f887046e71580e by Nate Graham, on behalf of Marco Martin.
Committed on 04/06/2021 at 12:04.
Pushed by ngraham into branch 'master'.

Add SortOrderForUrl method to DBus interface

adds a method to ask what's the sorting strategy (column and order) for a particular Url, as Dolphin can have directory-specific sorting strategies

This makes possible for other apps that have lists of files, like Gwenview to use the same sorting when invoked from dolphin, ie opening an image

M  +12   -0    src/dbusinterface.cpp
M  +2    -0    src/dbusinterface.h
M  +7    -0    src/global.cpp
M  +2    -0    src/global.h

https://invent.kde.org/system/dolphin/commit/dbabe22249781242c789d691c1f887046e71580e
Comment 20 Nate Graham 2021-06-04 12:05:20 UTC
Implemented by Marco Martin with the combination of https://invent.kde.org/system/dolphin/commit/dbabe22249781242c789d691c1f887046e71580e in Dolphin and https://invent.kde.org/graphics/gwenview/-/commit/ec1de82c418512b4ae4782b429310acd4822ac6d in Gwenview, for version 21.08 for both of them!
Comment 21 tagwerk19 2021-06-06 07:26:43 UTC
(In reply to Nate Graham from comment #19)
> Add SortOrderForUrl method to DBus interface
Will this stretch as far as fixing Bug 417730?
Comment 22 drikqlis 2021-08-13 11:25:22 UTC
After updating to 21.08 it works for almost every sorting expect for sorting by Modified date from oldest to newest (from newest to oldest it works ok).
Comment 23 smow 2021-08-17 16:26:08 UTC
After upgrading to 21.08 I observed that sorting by file type also doesn't apply to Gwenview. It uses the default one by file name ascending.
Comment 24 JoostR 2021-09-30 20:04:26 UTC
I must be using Gwenview in a very different way than the people complaining here: I use it a lot for lectures, having folders with alphabetically named symbolic links.
I've been using Gwenview for years for this, but now I suddenly need to manually sort each subfolder because Gwenview **overrides its own settings** with what happens to be the current Dolphin settings. This is extremely counterintuitive for somebody who hardly uses Dolphin (I mostly use the cli).

Can you please find a solution which:
- doesn't have Gwenview ignore its own settings (which is a huge no-no in any book)
- makes this behaviour an option if it is really needed for Dolphin-Gwenview integration, but then reflects this in Gwenviews settings menu ?

thanks !

Joost.
Comment 25 JoostR 2021-09-30 20:08:07 UTC
(currently running version 21.08.1 in Arch Linux)
Comment 26 Nate Graham 2021-09-30 20:12:14 UTC
Can you please file a new bug report for that? Thanks!
Comment 27 JoostR 2021-09-30 20:17:08 UTC
ok, apologies, I'm new to this ;)
Comment 28 Nate Graham 2021-09-30 20:31:21 UTC
No worries!
Comment 29 JoostR 2021-09-30 20:46:24 UTC
new bugreport:
https://bugs.kde.org/show_bug.cgi?id=443168
Comment 30 Christoph Cullmann 2023-08-17 16:33:19 UTC
(In reply to JoostR from comment #29)
> new bugreport:
> https://bugs.kde.org/show_bug.cgi?id=443168

I really think we should just revert that, read the other bug and the duplicates, I fail so see why it should be synced that way, given we do that nowhere else.
Comment 31 Andrew Shark 2023-08-22 16:45:52 UTC
This is not completely fixes. Follow the Bug 466836.