Bug 430728 - Open file dialogue defaults to "electronic book document" instead of "all files"
Summary: Open file dialogue defaults to "electronic book document" instead of "all files"
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 20.12.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-23 06:28 UTC by ca.bu
Modified: 2021-01-17 00:27 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Shell environment under which bug was reproduced. (3.39 KB, text/plain)
2021-01-14 09:15 UTC, Maria Szegedy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ca.bu 2020-12-23 06:28:42 UTC
SUMMARY
The open file dialogue searches "electronic book documents" only per default. I have to change this every time I want to open a file.

STEPS TO REPRODUCE
1. Okular -> File -> Open
or
1. Ctrl + o


OBSERVED RESULT
Dialogue defaults to "electronic book document" every time (first entry in list) 


EXPECTED RESULT
Should default to "all file" (last entry) or at least to the previous selection


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: linux 5.9.14.arch1-1
(available in About System)
KDE Plasma Version: -
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
tested with xcb and wayland-egl
Comment 1 Albert Astals Cid 2020-12-23 19:49:51 UTC
You're not using plasma i guess? Which Desktop Environment are you using?
Comment 2 Bug Janitor Service 2021-01-07 04:33:58 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Wolfgang Bauer 2021-01-12 10:07:00 UTC
I'm not the reporter, but I can reproduce this by running okular in IceWM (or via
"XDG_CURRENT_DESKTOP=icewm okular" in Plasma).

This is with okular 20.12.1.

Inside a KDE/Plasma session, the filter defaults to "All supported files" as expected.
Comment 4 Maria Szegedy 2021-01-14 09:15:40 UTC
Created attachment 134833 [details]
Shell environment under which bug was reproduced.

I can confirm this bug. Conditions:
  x86_64 Linux 5.9.13-arch1-1
  KDE Frameworks 5.78.0
  QT 5.15.2 (built against 5.15.2)
  The xcb windowing system
  Okular 20.12.1
I have attached the output of env. As noted above by Wolfgang Bauer, the bug is dependent on the value of XDG_CURRENT_DESKTOP, which is to say Okular's idea of the QT5 configuration. I have tried a few values of this:
  Worked; loaded KDE Plasma theme instead of the one I set, and did NOT display bug:
    kde
  Didn't work 1; Correctly loaded QT5 theme I set, and displayed bug:
    gnome
    xfce
    mate
    x-cinnamon
    unity
    lxde
  Didn't work 2; Didn't load the QT5 theme I set, and displayed bug:
    all other values, e.g. 'kde-plasma', 'kde5', 'lightdm', 'i3'
Comment 5 Bug Janitor Service 2021-01-16 23:54:39 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/362
Comment 6 Albert Astals Cid 2021-01-17 00:27:12 UTC
Git commit 23af5aae7f9e90a138053ac5bdd797cb728218c6 by Albert Astals Cid.
Committed on 16/01/2021 at 23:53.
Pushed by aacid into branch 'release/20.12'.

Fix an unexpected file type being the default on open (non Plasma desktops)

M  +1    -1    shell/shell.cpp

https://invent.kde.org/graphics/okular/commit/23af5aae7f9e90a138053ac5bdd797cb728218c6