https://bugs.kde.org/show_bug.cgi?id=509320

            Bug ID: 509320
           Summary: KRecentFilesMenu sometimes shows empty file names when
                    a secondary display is disconnected
    Classification: Frameworks and Libraries
           Product: frameworks-kwidgetsaddons
      Version First 6.13.0
       Reported In:
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY

When calculating the maximum available width for file names/paths,
RecentFilesEntry uses the narrowest screen reported by QApplication.screens().
This is usually fine, but on some systems, that method can return screens with
zero width. (For example, when an xorg.conf ServerLayout refers to a Screen
that is not currently connected.) Consequently, KRecentFilesMenu populates
itself with file names truncated to zero characters.

STEPS TO REPRODUCE
1. Configure xorg.conf with a ServerLayout section including at least two
Screen entries.
2. Disconnect the display corresponding to one of those entries.
3. Start a Plasma X11 session
4. Open a few archive files with Ark, to populate its Recent Files menu. (Or
Kate or Okular, since they seem to be affected as well.)
5. Open the Recent Files menu

OBSERVED RESULT

The Recent Files menu looks something like this:

[]
[]
[]

EXPECTED RESULT

The Recent Files menu should look more like this:

stuff.zip [/home/user/stuff.zip]
my.tar.gz [/home/user/my.tar.gz]
stuff.tar [/home/user/stuff.tar]

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian Stable 13.1 (Trixie)
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION

I will submit a merge request soon.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to