Bug 460369 - Okular is missing KDE integration bits when installed on Mint 21
Summary: Okular is missing KDE integration bits when installed on Mint 21
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-13 14:21 UTC by Dj
Modified: 2022-10-18 16:45 UTC (History)
1 user (show)

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


Attachments
attachment-15092-0.html (2.76 KB, text/html)
2022-10-18 13:51 UTC, Dj
Details
vqh0v9A00u5bSi4t.png (27.47 KB, image/png)
2022-10-18 13:51 UTC, Dj
Details
attachment-16949-0.html (943 bytes, text/html)
2022-10-18 14:03 UTC, Dj
Details
pylnYDB51Rv0rmsl.png (181.28 KB, image/png)
2022-10-18 14:03 UTC, Dj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dj 2022-10-13 14:21:07 UTC
SUMMARY:
Opening Okular does not keep 1.4 scaling but needs to be changed to 1.3 then back to 1.4 now it changes correctly. I must do this every time Okular is opened. Also Okular does not allow opening files from connected hard drives, they must be in /home or nothing.


STEPS TO REPRODUCE
1. results are the same every time Okular is opened 

OBSERVED RESULT
no change


EXPECTED RESULT
Okular uses the scaling factor, allowed to open files from connected drives

SOFTWARE/OS VERSIONS
Linux Mint 21 Cinnamon 
 
Qt Version: qt5ct

ADDITIONAL INFORMATION
none
Comment 1 Nate Graham 2022-10-14 19:02:13 UTC
> Also Okular does not allow opening files from connected hard drives, they must be in /home or nothing

Are you using Okular from a Flatpak?
Comment 2 Dj 2022-10-15 00:32:14 UTC
I installed Okular from Mint software manager there is no mention of flatpak

On 10/14/22 12:02 PM, Nate Graham wrote:
> https://bugs.kde.org/show_bug.cgi?id=460369
>
> Nate Graham <nate@kde.org> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |nate@kde.org
>              Product|kde                         |okular
>               Status|REPORTED                    |NEEDSINFO
>             Assignee|unassigned-bugs@kde.org     |okular-devel@kde.org
>            Component|general                     |general
>           Resolution|---                         |WAITINGFORINFO
>
> --- Comment #1 from Nate Graham <nate@kde.org> ---
>> Also Okular does not allow opening files from connected hard drives, they must be in /home or nothing
> Are you using Okular from a Flatpak?
>
Comment 3 Nate Graham 2022-10-17 18:47:02 UTC
Thanks. Can you please paste the output of `flatpak list` run in a terminal window?

Also what exactly happens when you try to open a file on another drive?
Comment 4 Dj 2022-10-18 13:36:40 UTC
flatpak list
Name                Application ID            Version  Branch Installation
Bolls               life.bolls.bolls          2.1.80   stable system
Freedesktop Platfo… org.freedesktop.Platform  21.08.15 21.08 system
Mesa                …ktop.Platform.GL.default 21.3.9   21.08 system
Intel               …top.Platform.VAAPI.Intel          21.08 system
ffmpeg-full         …top.Platform.ffmpeg-full          21.08 system
openh264            …esktop.Platform.openh264 2.1.0    2.0 system
Lollypop            org.gnome.Lollypop        1.4.35   stable system
GNOME Application … org.gnome.Platform                 42 system
Mint-Y Gtk Theme    org.gtk.Gtk3theme.Mint-Y           3.22 system
Mint-Y-Dark Gtk Th… …tk.Gtk3theme.Mint-Y-Dark          3.22 system
KDE Application Pl… org.kde.Platform                   5.15-21.08 system
Telegram Desktop W… …telegram.desktop.webview 2.36.6   stable system


Okular does not show any connected external drives

On 10/17/22 11:47 AM, Nate Graham wrote:
> https://bugs.kde.org/show_bug.cgi?id=460369
>
> --- Comment #3 from Nate Graham <nate@kde.org> ---
> Thanks. Can you please paste the output of `flatpak list` run in a terminal
> window?
>
> Also what exactly happens when you try to open a file on another drive?
>
Comment 5 Nate Graham 2022-10-18 13:41:29 UTC
(In reply to Dj from comment #4)
> flatpak list
> Name                Application ID            Version  Branch Installation
> Bolls               life.bolls.bolls          2.1.80   stable system
> Freedesktop Platfo… org.freedesktop.Platform  21.08.15 21.08 system
> Mesa                …ktop.Platform.GL.default 21.3.9   21.08 system
> Intel               …top.Platform.VAAPI.Intel          21.08 system
> ffmpeg-full         …top.Platform.ffmpeg-full          21.08 system
> openh264            …esktop.Platform.openh264 2.1.0    2.0 system
> Lollypop            org.gnome.Lollypop        1.4.35   stable system
> GNOME Application … org.gnome.Platform                 42 system
> Mint-Y Gtk Theme    org.gtk.Gtk3theme.Mint-Y           3.22 system
> Mint-Y-Dark Gtk Th… …tk.Gtk3theme.Mint-Y-Dark          3.22 system
> KDE Application Pl… org.kde.Platform                   5.15-21.08 system
> Telegram Desktop W… …telegram.desktop.webview 2.36.6   stable system
Ok, so not a Flatpak. Thanks.

> Okular does not show any connected external drives
Where are you looking? Can you attach a screenshot of the thing you're looking at where you expect to see external drives?
Comment 6 Dj 2022-10-18 13:51:54 UTC
Created attachment 152997 [details]
attachment-15092-0.html

i accidently closed the menu bar and now even reinstall doesn't return 
it. there is now no menubar so no access to any documents or drives or 
tools.


On 10/18/22 6:41 AM, Nate Graham wrote:
> https://bugs.kde.org/show_bug.cgi?id=460369
>
> --- Comment #5 from Nate Graham<nate@kde.org>  ---
> (In reply to Dj from comment #4)
>> flatpak list
>> Name                Application ID            Version  Branch Installation
>> Bolls               life.bolls.bolls          2.1.80   stable system
>> Freedesktop Platfo… org.freedesktop.Platform  21.08.15 21.08 system
>> Mesa                …ktop.Platform.GL.default 21.3.9   21.08 system
>> Intel               …top.Platform.VAAPI.Intel          21.08 system
>> ffmpeg-full         …top.Platform.ffmpeg-full          21.08 system
>> openh264            …esktop.Platform.openh264 2.1.0    2.0 system
>> Lollypop            org.gnome.Lollypop        1.4.35   stable system
>> GNOME Application … org.gnome.Platform                 42 system
>> Mint-Y Gtk Theme    org.gtk.Gtk3theme.Mint-Y           3.22 system
>> Mint-Y-Dark Gtk Th… …tk.Gtk3theme.Mint-Y-Dark          3.22 system
>> KDE Application Pl… org.kde.Platform                   5.15-21.08 system
>> Telegram Desktop W… …telegram.desktop.webview 2.36.6   stable system
> Ok, so not a Flatpak. Thanks.
>
>> Okular does not show any connected external drives
> Where are you looking? Can you attach a screenshot of the thing you're looking
> at where you expect to see external drives?
Also i must reset screen scaling every time i open Okular to match my 
desktop or the app is too small to read.
Comment 7 Dj 2022-10-18 13:51:54 UTC
Created attachment 152998 [details]
vqh0v9A00u5bSi4t.png
Comment 8 Nate Graham 2022-10-18 13:54:57 UTC
You can hit Ctrl+M to show the menubar again. Or you can click on the icon in the right-most position of the toolbar to open a hamburger menu. It doesn't have a hamburger icon for reasons related to the theming being off on your system.
Comment 9 Dj 2022-10-18 14:03:54 UTC
Created attachment 153001 [details]
attachment-16949-0.html

On 10/18/22 6:54 AM, Nate Graham wrote:
> https://bugs.kde.org/show_bug.cgi?id=460369
>
> --- Comment #8 from Nate Graham<nate@kde.org>  ---
> You can hit Ctrl+M to show the menubar again. Or you can click on the icon in
> the right-most position of the toolbar to open a hamburger menu. It doesn't
> have a hamburger icon for reasons related to the theming being off on your
> system.
>
Comment 10 Dj 2022-10-18 14:03:54 UTC
Created attachment 153002 [details]
pylnYDB51Rv0rmsl.png
Comment 11 Nate Graham 2022-10-18 16:40:11 UTC
Ok, so the problem is that when you select File > Open in Okular, you see the default Qt file dialog, not the KDE file dialog, which is much nicer and shows more items.

This would suggest that the KDE platform integration bits are missing. This would also explain the weird widget style and icons. I don't know enough about how the stack works to be able to say whether this is a Mint packaging bug, or an Okular bug, or something else.
Comment 12 Dj 2022-10-18 16:45:30 UTC
Obviously you know a great more than I do. Thank you for the great help. 
I will wait to see if there is any fix for this issue.

A tremendous thanks for your consideration and help

Dj Crouch


On 10/18/22 9:40 AM, Nate Graham wrote:
> https://bugs.kde.org/show_bug.cgi?id=460369
>
> Nate Graham <nate@kde.org> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>           Resolution|WAITINGFORINFO              |---
>               Status|NEEDSINFO                   |REPORTED
>              Summary|Not sure if this is Okular  |Okular is missing KDE
>                     |issue or Mint 21            |integration bits when
>                     |                            |installed on Mint 21
>
> --- Comment #11 from Nate Graham <nate@kde.org> ---
> Ok, so the problem is that when you select File > Open in Okular, you see the
> default Qt file dialog, not the KDE file dialog, which is much nicer and shows
> more items.
>
> This would suggest that the KDE platform integration bits are missing. This
> would also explain the weird widget style and icons. I don't know enough about
> how the stack works to be able to say whether this is a Mint packaging bug, or
> an Okular bug, or something else.
>