Can anyone else resize the panel of the directory picker (portal)?

Reproduction

When I invoke the directory-specific File Picker Portal (from Gittyup):

Environment

          ID: com.github.Murmele.Gittyup
         Ref: app/com.github.Murmele.Gittyup/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: v1.4.0
     License: MIT
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 72.4 MB
     Runtime: org.kde.Platform/x86_64/5.15-23.08
         Sdk: org.kde.Sdk/x86_64/5.15-23.08

      Commit: adfe463ee26a63bdaaa0af13f71e26bf9a925d37f43b4527c7b14625ab5a08a7
      Parent: 7e1c9370a1a462478b7fac34aac11882cb62768886aa23fe4fd36fb23c17e19b
     Subject: update to release 1.4.0 (#44) (21f22a60)
        Date: 2024-05-15 22:15:19 +0000

Demonstration

…I see the undermentioned:

[1]

It’s fairly low quality, so the steps are:

  1. Drag the divider, because the QFrame is too thin:

  2. Whilst dragging, everything disappears:

  3. When released, the buttons disappear:

All re-appears when the window is resized.

Question

Can anyone else reproduce this? I ask because it’ll help me ascertain whether to diagnose further or just file a report at BZ as-is.

Operating System: Fedora Linux 42
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.2-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland

  1. bugs.kde.org/show_bug.cgi?id=502891#c6 ↩︎

For what it’s worth, I can’t get the “folder picker” dialog to behave like that - resizing the Places panel doesn’t seem to glitch out like in the video.

Does the same thing happen on your device on a fresh user profile?

1 Like

@johnandmegh, indeed, it doesn’t! I tried changing the font, and adding similar Places entries via Dolphin. Neither caused it to reproduce, even after a log out and back in.

Any idea of how to go about diagnosing this in my profile? I don’t know of a way to execute the Picker standalone, to see what it outputs to the terminal. I ask because I think this has occurred across a few installations, so I seem to be doing something that consistently induces it.

Hmm…it might be worth checking to see what differences exist between a working and non-working profile in either ~/.config/kdeglobals or in ~/.config/xdg-desktop-portal-kderc?

The former is where the actual splitter position is stored, and where some history items are stored - perhaps some directory name with special characters in the history causes that file to be parsed incorrectly?

1 Like

@johnandmegh, apologies for the wait:

  1. Was trying to diagnose the filesystem being really slow, [1] all of a sudden, despite my hardware:

    Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
    Memory: 30.4 GiB of RAM
    Graphics Processor 1: AMD Radeon RX 5700
    Graphics Processor 2: AMD Radeon Graphics
    Manufacturer: ASRock
    Product Name: X670E Taichi
    

    I was gonna provide a flamegraph, even though this was tangential, but gee, not even that worked, [2] even after overcoming KDAB/hotspot/issues/711#issue-3021222372.

    In the end, just needed to reboot.

  2. It also took me a while to realise that I’d need to use kwrite admin:///, since code can elevate to the superuser when necessary, but doesn’t do so when it’s merely attempting to access another user’s $HOME.


I don’t see anything of note in xdg-desktop-portal-kderc:

  1. #!/usr/bin/env bash
    sudo git diff --no-index /home/test/.config/xdg-desktop-portal-kderc $HOME/.config/xdg-desktop-portal-kderc
    
  2. diff --git a/home/test/.config/xdg-desktop-portal-kderc b/home/RokeJulianLockhart/.config/xdg-desktop-portal-kderc
    index d710abd..ab6a6b4 100644
    --- a/home/test/.config/xdg-desktop-portal-kderc
    +++ b/home/RokeJulianLockhart/.config/xdg-desktop-portal-kderc
    @@ -1,6 +1,9 @@
    +[Audio Preview Settings]
    +Autoplay=false
    +
     [FileDialogSize]
    -2560x1440 screen: Height=584
    -2560x1440 screen: Width=1266
    +2560x1440 screen: Height=636
    +2560x1440 screen: Width=1259
     
     [KFileDialog Settings]
     Places Icons Auto-resize=false
    

It could be kdeglobals’s’ History Items[$e] section by that reasoning, although it appears correctly escaped:

  1. #!/usr/bin/env bash
    sudo git diff --no-index /home/test/.config/kdeglobals $HOME/.config/kdeglobals
    
  2. diff --git a/home/test/.config/kdeglobals b/home/RokeJulianLockhart/.config/kdeglobals
    index 173339b..bc83d0b 100644
    --- a/home/test/.config/kdeglobals
    +++ b/home/RokeJulianLockhart/.config/kdeglobals
    @@ -21,13 +21,13 @@ IntensityAmount=0
     IntensityEffect=0
     
     [Colors:Button]
    -BackgroundAlternate=30,87,116
    +BackgroundAlternate=177,55,35
     BackgroundNormal=49,54,59
    -DecorationFocus=61,174,233
    -DecorationHover=61,174,233
    -ForegroundActive=61,174,233
    +DecorationFocus=233,56,25
    +DecorationHover=233,56,25
    +ForegroundActive=233,56,25
     ForegroundInactive=161,169,177
    -ForegroundLink=29,153,243
    +ForegroundLink=254,186,182
     ForegroundNegative=218,68,83
     ForegroundNeutral=246,116,0
     ForegroundNormal=252,252,252
    @@ -37,11 +37,11 @@ ForegroundVisited=155,89,182
     [Colors:Complementary]
     BackgroundAlternate=30,87,116
     BackgroundNormal=42,46,50
    -DecorationFocus=61,174,233
    -DecorationHover=61,174,233
    -ForegroundActive=61,174,233
    +DecorationFocus=233,56,25
    +DecorationHover=233,56,25
    +ForegroundActive=233,56,25
     ForegroundInactive=161,169,177
    -ForegroundLink=29,153,243
    +ForegroundLink=254,186,182
     ForegroundNegative=218,68,83
     ForegroundNeutral=246,116,0
     ForegroundNormal=252,252,252
    @@ -51,11 +51,11 @@ ForegroundVisited=155,89,182
     [Colors:Header]
     BackgroundAlternate=42,46,50
     BackgroundNormal=49,54,59
    -DecorationFocus=61,174,233
    -DecorationHover=61,174,233
    -ForegroundActive=61,174,233
    +DecorationFocus=233,56,25
    +DecorationHover=233,56,25
    +ForegroundActive=233,56,25
     ForegroundInactive=161,169,177
    -ForegroundLink=29,153,243
    +ForegroundLink=254,186,182
     ForegroundNegative=218,68,83
     ForegroundNeutral=246,116,0
     ForegroundNormal=252,252,252
    @@ -77,27 +77,27 @@ ForegroundPositive=39,174,96
     ForegroundVisited=155,89,182
     
     [Colors:Selection]
    -BackgroundAlternate=30,87,116
    -BackgroundNormal=61,174,233
    -DecorationFocus=61,174,233
    -DecorationHover=61,174,233
    -ForegroundActive=252,252,252
    -ForegroundInactive=161,169,177
    -ForegroundLink=253,188,75
    +BackgroundAlternate=171,48,27
    +BackgroundNormal=171,48,27
    +DecorationFocus=233,56,25
    +DecorationHover=233,56,25
    +ForegroundActive=233,56,25
    +ForegroundInactive=255,255,255
    +ForegroundLink=170,41,18
     ForegroundNegative=176,55,69
     ForegroundNeutral=198,92,0
    -ForegroundNormal=252,252,252
    sudo git diff --no-index /home/test/.config/kdeglobals /home/$USER/.config/kdeglobals
    [sudo] password for RokeJulianLockhart: 
    diff --git a/home/test/.config/kdeglobals b/home/RokeJulianLockhart/.config/kdeglobals
    index 173339b..bc83d0b 100644
    --- a/home/test/.config/kdeglobals
    +++ b/home/RokeJulianLockhart/.config/kdeglobals
    @@ -21,13 +21,13 @@ IntensityAmount=0
     IntensityEffect=0
     
     [Colors:Button]
    -BackgroundAlternate=30,87,116
    +BackgroundAlternate=177,55,35
     BackgroundNormal=49,54,59
    -DecorationFocus=61,174,233
    -DecorationHover=61,174,233
    -ForegroundActive=61,174,233
    +DecorationFocus=233,56,25
    +DecorationHover=233,56,25
    +ForegroundActive=233,56,25
     ForegroundInactive=161,169,177
    -ForegroundLink=29,153,243
    +ForegroundLink=254,186,182
     ForegroundNegative=218,68,83
     ForegroundNeutral=246,116,0
     ForegroundNormal=252,252,252
    @@ -37,11 +37,11 @@ ForegroundVisited=155,89,182
     [Colors:Complementary]
     BackgroundAlternate=30,87,116
     BackgroundNormal=42,46,50
    -DecorationFocus=61,174,233
    -DecorationHover=61,174,233
    -ForegroundActive=61,174,233
    +DecorationFocus=233,56,25
    +DecorationHover=233,56,25
    +ForegroundActive=233,56,25
     ForegroundInactive=161,169,177
    -ForegroundLink=29,153,243
    +ForegroundLink=254,186,182
     ForegroundNegative=218,68,83
     ForegroundNeutral=246,116,0
     ForegroundNormal=252,252,252
    @@ -51,11 +51,11 @@ ForegroundVisited=155,89,182
     [Colors:Header]
     BackgroundAlternate=42,46,50
     BackgroundNormal=49,54,59
    -DecorationFocus=61,174,233
    -DecorationHover=61,174,233
    -ForegroundActive=61,174,233
    +DecorationFocus=233,56,25
    +DecorationHover=233,56,25
    +ForegroundActive=233,56,25
     ForegroundInactive=161,169,177
    -ForegroundLink=29,153,243
    +ForegroundLink=254,186,182
     ForegroundNegative=218,68,83
     ForegroundNeutral=246,116,0
     ForegroundNormal=252,252,252
    @@ -77,27 +77,27 @@ ForegroundPositive=39,174,96
     ForegroundVisited=155,89,182
     
     [Colors:Selection]
    -BackgroundAlternate=30,87,116
    -BackgroundNormal=61,174,233
    -DecorationFocus=61,174,233
    -DecorationHover=61,174,233
    -ForegroundActive=252,252,252
    -ForegroundInactive=161,169,177
    -ForegroundLink=253,188,75
    +BackgroundAlternate=171,48,27
    +BackgroundNormal=171,48,27
    +DecorationFocus=233,56,25
    +DecorationHover=233,56,25
    +ForegroundActive=233,56,25
    +ForegroundInactive=255,255,255
    +ForegroundLink=170,41,18
     ForegroundNegative=176,55,69
     ForegroundNeutral=198,92,0
    -ForegroundNormal=252,252,252
    +ForegroundNormal=255,255,255
     ForegroundPositive=23,104,57
     ForegroundVisited=155,89,182
     
     [Colors:Tooltip]
     BackgroundAlternate=42,46,50
     BackgroundNormal=49,54,59
    -DecorationFocus=61,174,233
    -DecorationHover=61,174,233
    -ForegroundActive=61,174,233
    +DecorationFocus=233,56,25
    +DecorationHover=233,56,25
    +ForegroundActive=233,56,25
     ForegroundInactive=161,169,177
    -ForegroundLink=29,153,243
    +ForegroundLink=254,186,182
     ForegroundNegative=218,68,83
     ForegroundNeutral=246,116,0
     ForegroundNormal=252,252,252
    @@ -107,11 +107,11 @@ ForegroundVisited=155,89,182
     [Colors:View]
     BackgroundAlternate=35,38,41
     BackgroundNormal=27,30,32
    -DecorationFocus=61,174,233
    -DecorationHover=61,174,233
    -ForegroundActive=61,174,233
    +DecorationFocus=233,56,25
    +DecorationHover=233,56,25
    +ForegroundActive=233,56,25
     ForegroundInactive=161,169,177
    -ForegroundLink=29,153,243
    +ForegroundLink=254,186,182
     ForegroundNegative=218,68,83
     ForegroundNeutral=246,116,0
     ForegroundNormal=252,252,252
    @@ -121,11 +121,11 @@ ForegroundVisited=155,89,182
     [Colors:Window]
     BackgroundAlternate=49,54,59
     BackgroundNormal=42,46,50
    -DecorationFocus=61,174,233
    -DecorationHover=61,174,233
    -ForegroundActive=61,174,233
    +DecorationFocus=233,56,25
    +DecorationHover=233,56,25
    +ForegroundActive=233,56,25
     ForegroundInactive=161,169,177
    -ForegroundLink=29,153,243
    +ForegroundLink=254,186,182
     ForegroundNegative=218,68,83
     ForegroundNeutral=246,116,0
     ForegroundNormal=252,252,252
    @@ -133,14 +133,17 @@ ForegroundPositive=39,174,96
     ForegroundVisited=155,89,182
     
     [DirSelect Dialog]
    -DirSelectDialog Size=1266,584
    -History Items[$e]=file:///run/media/test/@%7B_Name_=_Data_; _Identifier_=_S11VZD_%7D%23.dir
    -Splitter State=\x00\x00\x00\xff\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x00\xe9\x00\x00\x04\x08\x00\xff\xff\xff\xff\x01\x00\x00\x00\x01\x00
    +DirSelectDialog Size=2558,591
    +History Items[$e]=file:///run/media/RokeJulianLockhart/@%7B_Name_=_Videos and Games_; _Identifier_=_SQEOHK_%7D%23.dir,file:///run/media/RokeJulianLockhart/@%7B_Name_=_Data_; _Identifier_=_S11VZD_%7D%23.dir/@%7B'Name'='Entities'%7D%23.dir/@%7B'Status'='Commenced'; 'Name'='In Use'%7D%23.dir/@%7B'Person'='Beedell'; 'Identifier'='S21AIB'%7D%23.dir/@%7B'Name'='Entity-Specific'%7D%23.dir/@%7B'Person'='Roke'; 'Identifier'='S1EV2L'%7D%23.dir/@%7B'Name'='Technical'%7D%23.dir/@%7B'Name'='Application Data'%7D%23.dir/@%7B'Name'='Git'%7D%23.dir/@%7B'Name'='GitLab.com'%7D%23.dir/@%7B'Group'='RokeJulianLockhart.SKLHAD'%7D%23.dir/@%7B'Name'='Private'; 'Identifier'='S4A3H4'%7D%23.dir,file:///run/media/RokeJulianLockhart/@%7B_Name_=_Data_; _Identifier_=_S11VZD_%7D%23.dir/@%7B'Name'='Entities'%7D%23.dir/@%7B'Status'='Commenced'; 'Name'='In Use'%7D%23.dir/@%7B'Person'='Beedell'; 'Identifier'='S21AIB'%7D%23.dir/@%7B'Name'='Entity-Specific'%7D%23.dir/@%7B'Person'='Roke'; 'Identifier'='S1EV2L'%7D%23.dir/@%7B'Name'='Technical'%7D%23.dir/@%7B'Name'='Application Data'%7D%23.dir/@%7B'Name'='Git'%7D%23.dir/@%7B'Name'='GitLab.com'%7D%23.dir/@%7B'Group'='RokeJulianLockhart.SKLHAD'%7D%23.dir/@%7B'Name'='Oxbridge'; 'Identifier'='SQAMXC'%7D%23.dir,file:///run/media/RokeJulianLockhart/@%7B_Name_=_Data_; _Identifier_=_S11VZD_%7D%23.dir/@%7B'Name'='Entities'%7D%23.dir/@%7B'Status'='Commenced'; 'Name'='In Use'%7D%23.dir/@%7B'Person'='Beedell'; 'Identifier'='S21AIB'%7D%23.dir/@%7B'Name'='Entity-Specific'%7D%23.dir/@%7B'Person'='Roke'; 'Identifier'='S1EV2L'%7D%23.dir/@%7B'Name'='Technical'%7D%23.dir/@%7B'Name'='Application Data'%7D%23.dir/@%7B'Name'='Git'%7D%23.dir/@%7B'Name'='GitLab.com'%7D%23.dir/@%7B'Group'='RokeJulianLockhart.SKLHAD'%7D%23.dir/@%7B'Name'='Public'; 'Identifier'='SG5N9Q'%7D%23.dir,file:///run/media/RokeJulianLockhart/@%7B_Name_=_Data_; _Identifier_=_S11VZD_%7D%23.dir/@%7B'Name'='Entities'%7D%23.dir/@%7B'Status'='Commenced'; 'Name'='In Use'%7D%23.dir/@%7B'Person'='Beedell'; 'Identifier'='S21AIB'%7D%23.dir/@%7B'Name'='Entity-Specific'%7D%23.dir/@%7B'Person'='Roke'; 'Identifier'='S1EV2L'%7D%23.dir/@%7B'Name'='Technical'%7D%23.dir/@%7B'Name'='Application Data'%7D%23.dir/@%7B'Name'='Git'%7D%23.dir/@%7B'Name'='GitLab.com'%7D%23.dir/@%7B'Group'='RokeJulianLockhart.SKLHAD'%7D%23.dir,file:///run/media/RokeJulianLockhart/@%7B_Name_=_Data_; _Identifier_=_S11VZD_%7D%23.dir/@%7B'Name'='Entities'%7D%23.dir/@%7B'Status'='Commenced'; 'Name'='In Use'%7D%23.dir/@%7B'Person'='Beedell'; 'Identifier'='S21AIB'%7D%23.dir/@%7B'Name'='Entity-Specific'%7D%23.dir/@%7B'Person'='Roke'; 'Identifier'='S1EV2L'%7D%23.dir/@%7B'Name'='Technical'%7D%23.dir/@%7B'Name'='Application Data'%7D%23.dir/@%7B'Name'='Git'%7D%23.dir/@%7B'Name'='GitLab.com'%7D%23.dir/@%7B'Account'='RokeJulianLockhart'%7D%23.dir,file:///run/media/RokeJulianLockhart/@%7B_Name_=_Data_; _Identifier_=_S11VZD_%7D%23.dir/@%7B'Name'='Entities'%7D%23.dir/@%7B'Status'='Commenced'; 'Name'='In Use'%7D%23.dir/@%7B'Person'='Beedell'; 'Identifier'='S21AIB'%7D%23.dir/@%7B'Name'='Entity-Specific'%7D%23.dir/@%7B'Person'='Roke'; 'Identifier'='S1EV2L'%7D%23.dir/@%7B'Name'='Technical'%7D%23.dir/@%7B'Name'='Application Data'%7D%23.dir/@%7B'Name'='Git'%7D%23.dir/@%7B'Name'='GitLab.com'%7D%23.dir/@%7B'Account'='RokeJulianLockhart'%7D%23.dir/SQAMXC,file:///run/media/RokeJulianLockhart/@%7B_Name_=_Data_; _Identifier_=_S11VZD_%7D%23.dir/@%7B'Name'='Entities'%7D%23.dir/@%7B'Status'='Commenced'; 'Name'='In Use'%7D%23.dir/@%7B'Person'='Beedell'; 'Identifier'='S21AIB'%7D%23.dir/@%7B'Name'='Entity-Specific'%7D%23.dir/@%7B'Person'='Roke'; 'Identifier'='S1EV2L'%7D%23.dir/@%7B'Name'='Technical'%7D%23.dir/@%7B'Name'='Application Data'%7D%23.dir/@%7B'Name'='Git'%7D%23.dir/@%7B'Name'='GitLab.com'%7D%23.dir/@%7B'Account'='RokeJulianLockhart'%7D%23.dir/s4a3h4,file:///run/media/RokeJulianLockhart/@%7B_Name_=_Data_; _Identifier_=_S11VZD_%7D%23.dir/@%7B'Name'='Entities'%7D%23.dir/@%7B'Status'='Commenced'; 'Name'='In Use'%7D%23.dir/@%7B'Person'='Beedell'; 'Identifier'='S21AIB'%7D%23.dir/@%7B'Name'='Entity-Specific'%7D%23.dir/@%7B'Person'='Roke'; 'Identifier'='S1EV2L'%7D%23.dir/@%7B'Name'='Technical'%7D%23.dir/@%7B'Name'='Application Data'%7D%23.dir/@%7B'Name'='Git'%7D%23.dir/@%7B'Name'='GitLab.com'%7D%23.dir/@%7B'Account'='RokeJulianLockhart'%7D%23.dir/rokejulianlockhart,file:///run/media/RokeJulianLockhart/@%7B_Name_=_Data_; _Identifier_=_S11VZD_%7D%23.dir/@%7B'Name'='Entities'%7D%23.dir/@%7B'Status'='Commenced'; 'Name'='In Use'%7D%23.dir/@%7B'Person'='Beedell'; 'Identifier'='S21AIB'%7D%23.dir/@%7B'Name'='Entity-Specific'%7D%23.dir/@%7B'Person'='Roke'; 'Identifier'='S1EV2L'%7D%23.dir/@%7B'Name'='Technical'%7D%23.dir/@%7B'Name'='Application Data'%7D%23.dir/@%7B'Name'='Git'%7D%23.dir/@%7B'Name'='GitLab.com'%7D%23.dir/@%7B'Account'='RokeJulianLockhart'%7D%23.dir/sg5n9q,file:///run/media,file:$HOME/Documents
    +Splitter State=\x00\x00\x00\xff\x00\x00\x00\x01\x00\x00\x00\x02\x00\x00\x01\x90\x00\x00\x11[\x00\xff\xff\xff\xff\x01\x00\x00\x00\x01\x00
     
     [General]
    +AccentColor=233,56,25
     ColorSchemeHash=8d483e98b770fbeba364db371382301dbfc92748
    +UseSystemBell=true
     XftHintStyle=hintslight
     XftSubPixel=none
    +accentColorFromWallpaper=true
     fixed=Monospace,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1
     font=Monospace,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1
     menuFont=Monospace,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1
    @@ -151,6 +154,27 @@ toolBarFont=Monospace,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1
     LookAndFeelPackage=org.kde.breezedark.desktop
     ShowDeleteCommand=true
     
    +[KFileDialog Settings]
    +Allow Expansion=true
    +Automatically select filename extension=true
    +Breadcrumb Navigation=false
    +Decoration position=2
    +LocationCombo Completionmode=5
    +PathCombo Completionmode=5
    +Preview Width=304
    +Show Bookmarks=true
    +Show Full Path=false
    +Show Inline Previews=false
    +Show Preview=true
    +Show Speedbar=true
    +Show hidden files=true
    +Sort by=Name
    +Sort directories first=true
    +Sort hidden files last=false
    +Sort reversed=false
    +Speedbar Width=176
    +View Style=DetailTree
    +
     [PreviewSettings]
     EnableRemoteFolderThumbnail=false
     MaximumRemoteSize=
    

Thanks for the assistance. I wonder whether this can be diagnosed by someone unwilling to modify the code of the picker (like me), though.


  1. youtu.be/EpMaoNbg3-I ↩︎

  2. issues/712#issue-3021233804 ↩︎

It might be worth checking if anything changes on the device and profile with the issue, if you wipe out that History Items line?

1 Like

It’s not just the portal folder dialog, it’s all of them. This is 499179 – "Open Folder" dialog visually breaks after resizing places panel splitter to the right with a narrow window width

2 Likes

@johnandmegh, that fixes it! I set History Items[$e]= to nothing in kdeglobals, restarted Gittyup, and the problem was gone. Thanks! Can this feature be disabled?

Albeit unrelated to this thread, that appears to be caused by connecting my smartphone: