Bug 413257 - Task Launcher order gets shuffled if there are targets starting with file://
Summary: Task Launcher order gets shuffled if there are targets starting with file://
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Task Manager and Icons-Only Task Manager widgets (show other bugs)
Version: 5.17.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-20 22:24 UTC by Furkan
Modified: 2021-02-16 08:06 UTC (History)
1 user (show)

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


Attachments
lattedockrc (892 bytes, text/plain)
2019-10-21 15:26 UTC, Furkan
Details
plasma layout (5.96 KB, text/plain)
2019-10-21 15:27 UTC, Furkan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Furkan 2019-10-20 22:24:12 UTC
SUMMARY
I have 

launchers=applications:firefox.desktop,applications:org.kde.dolphin.desktop,applications:org.kde.konsole.desktop,file:///home/eksi/.local/share/flatpak/exports/share/applications/com.spotify.Client.desktop

in my ~/.config/lattedockrc file and every time I open a new application from the dock order of the applications change, sometimes they even disappear from the list and re-appear after I close one or two apps.

I've tested this using the Default layout with Unique tasks.

STEPS TO REPRODUCE
1. Add a launcher that have a custom .desktop file (Either from flatpak or ~/.local/share/applications/)
2. Launch any of the applications from the task group

OBSERVED RESULT
Order of the applications changes

EXPECTED RESULT
They should stay the same


SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.17.0
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION
I noticed this issue after doing a system upgrade, which upgraded lattedock from  0.9.2 to 0.9.3. However, I've tested both 0.9.2 and 0.9.1 from source and the same issue appears in both of them as well. Thus, I am suspecting maybe the real culprit is in KDE or QT internals.
Comment 1 Michail Vourlakos 2019-10-21 05:58:29 UTC
Use a plasma panel with icon-only taskmanager, can you reproduce?
Comment 2 Furkan 2019-10-21 06:42:13 UTC
Only Latte Tasks Plasmoid has this problem. If I add the problematic applications outside of the task area as launchers. They work fine. Icon-only taskmanager also maintains its order correctly.
Comment 3 Michail Vourlakos 2019-10-21 07:32:59 UTC
(In reply to Furkan from comment #2)
> Only Latte Tasks Plasmoid has this problem. If I add the problematic
> applications outside of the task area as launchers. They work fine.
> Icon-only taskmanager also maintains its order correctly.

Strange because Latte is using plasma libtaskmanager for its launchers and tasks so the problem should be reproduced. I will try to reproduce in my system and in that case I will forward you to plasma devs.
Comment 4 Michail Vourlakos 2019-10-21 07:33:55 UTC
BTW when you add something outside the Tasks area is not a launcher but an applet
Comment 5 Michail Vourlakos 2019-10-21 13:29:31 UTC
(In reply to Furkan from comment #2)
> Only Latte Tasks Plasmoid has this problem. If I add the problematic
> applications outside of the task area as launchers. They work fine.
> Icon-only taskmanager also maintains its order correctly.

I am not able to reproduce this in my system. Please create a video demonstrating the issue and upload it to google drive or dropbox and send here the link of the video, in order to understand what you are describing.

P.S. When you use Unique Launchers group, the launchers used are not found at ~/.config/lattedockrc but at the layout file at ~/.config/latte/"Layout Name".layout.latte
Comment 6 Michail Vourlakos 2019-10-21 13:29:54 UTC
info...
Comment 7 Furkan 2019-10-21 15:26:57 UTC
Created attachment 123382 [details]
lattedockrc
Comment 8 Furkan 2019-10-21 15:27:18 UTC
Created attachment 123383 [details]
plasma layout
Comment 9 Furkan 2019-10-21 15:30:12 UTC
I've attached my config files I can reproduce the issue with both Global and Unique settings. I've also uploaded the videos as well

https://www.dropbox.com/s/218if0rjbi18gni/bugged.mkv?dl=0
https://www.dropbox.com/s/by9iopydmqf5wk1/normal.mkv?dl=0
Comment 10 Michail Vourlakos 2019-10-21 17:16:08 UTC
this is totally reproducable with plasma icon-only taskmanager and plasma panels exactly as you described... If a launcher is starting with "file://" then when the app is opening the task is moved out-of-place and is shuffling its position until the app is closed.
Comment 11 Furkan 2021-02-16 08:06:26 UTC
By the way, I've tested this configuration again and it seems to be working now. 

I think this can be closed.


This is my current system information.
Operating System: Fedora 33
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.15-200.fc33.x86_64