Flatseal icon indicating copy to clipboard operation
Flatseal copied to clipboard

File path autocomplete overwrites previously added path

Open portofdale opened this issue 2 months ago • 4 comments

When typing in a file path that goes through the same directory as one that was previously added, it autocompletes but also selects the whole text in the box. In practice, this means that when typing, it will overwrite the text that was selected with the next keypress. For an unknown reason, the previously added file path will also be overwritten.

I'm using Flatseal version 2.4.0 (Gnome) installed through Pop!_Shop on Pop!_OS with KDE Plasma.

A video of this bug is attached.

https://github.com/user-attachments/assets/005bdfec-e813-499f-89cc-380e8bcfabd8

portofdale avatar Oct 31 '25 08:10 portofdale

I think I've seen a similar report, but I haven't found a way to reproduce it on my end, which makes it hard to debug.. 🤔

Is this happening 100% of the times for you?

tchx84 avatar Oct 31 '25 18:10 tchx84

@portofdale can you test this PR? https://github.com/tchx84/Flatseal/pull/828

tchx84 avatar Nov 01 '25 02:11 tchx84

@tchx84 I can confirm it happens 100% of the time on my computer. I also tried it on my laptop which runs Pop!_OS and I managed to replicate it. I'm having trouble with building the PR, though. flatpak-builder gave these errors:

error: pathspec 'HEAD' did not match any file(s) known to git Error: module flatseal: Child process exited with code 1

portofdale avatar Nov 03 '25 05:11 portofdale

@tchx84 I can confirm it happens 100% of the time on my computer. I also tried it on my laptop which runs Pop!_OS and I managed to replicate it.

Ok, I will certainly need your feedback then.

I'm having trouble with building the PR, though. flatpak-builder gave these errors:

error: pathspec 'HEAD' did not match any file(s) known to git Error: module flatseal: Child process exited with code 1

Strange, what flatpak-builder version?

I am using flatpak-builder-1.4.4, using toolbox:

$ toolbox enter
$ git clone --single-branch --branch issue827 https://github.com/tchx84/Flatseal.git
$ cd Flatseal
$ flatpak-builder --user --force-clean --disable-rofiles-fuse --install build com.github.tchx84.Flatseal.json
$ exit
$ flatpak run com.github.tchx84.Flatseal//master

tchx84 avatar Nov 03 '25 17:11 tchx84