Bug 434416 - Load the default layout when needed
Summary: Load the default layout when needed
Status: RESOLVED NOT A BUG
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: git (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-15 01:13 UTC by trmdi
Modified: 2021-04-03 17:40 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description trmdi 2021-03-15 01:13:26 UTC
When latte-dock is launched without any argument e.g. from the App launcher, and without any view, the default layout should be used.

https://www.reddit.com/r/kde/comments/m58thx/latte_dock_question_opening_a_new_dock/
Comment 1 trmdi 2021-03-15 01:18:41 UTC
* without any view in the case the user removed all the views

The first thing he is likely to try is to restart/relaunch latte without any argument as said above.
Comment 2 trmdi 2021-03-15 01:23:46 UTC
Or maybe latte should prevent the user from removing the last view, because if the last view is removed, there is no way to create a new one.
Comment 3 trmdi 2021-03-15 01:31:09 UTC
Or is there any way to add a new item into Plasma's context menu > Add panel?
Comment 4 trmdi 2021-03-15 04:16:27 UTC
(In reply to trmdi from comment #3)
> Or is there any way to add a new item into Plasma's context menu > Add panel?

https://streamable.com/aoufzm

Then latte will process it... ?
Comment 5 Michail Vourlakos 2021-03-15 06:36:06 UTC
No more workarounds etc.
The user can load default layout from command line with --default-layout parameter

in the future in Layouts Editor there will be a Docks/Panels subdialog that can use. 

To access Latte Dialog the user can use Meta+W

For the desktop scenario right click only dbus could be used and I could accept patches on that direction.
Comment 6 Bug Janitor Service 2021-03-15 11:13:37 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/latte-dock/-/merge_requests/14
Comment 7 Bug Janitor Service 2021-03-17 10:24:40 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/latte-dock/-/merge_requests/15
Comment 8 Michail Vourlakos 2021-04-03 17:40:39 UTC
that is fixed by triggering layouts editor if Latte is already running