Bug 401041

Summary: need to execute "latte-dock --replace" twice to really restart latte-dock
Product: [Unmaintained] lattedock Reporter: avlas <jsardid>
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED FIXED    
Severity: normal CC: trmdi
Priority: NOR    
Version First Reported In: 0.8.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: v0.8.5
Sentry Crash Report:

Description avlas 2018-11-14 18:37:35 UTC
SUMMARY

It seems the right way to restart latte-dock is by executing "latte-dock --replace". However, I need to execute "latte-dock --replace" twice to really restart latte-dock. 

ADDITIONAL INFORMATION

The original process gets killed by the first "latte-dock --replace", but not new one is launched until the second "latte-dock --replace".

Other than that, latte-dock works just fine in my system.
Comment 1 Michail Vourlakos 2018-11-28 21:05:47 UTC
This is not the behavior at my system...

I just need one  time in order to restart a running Latte...

You need to provide more information about your system...
Comment 2 Bug Janitor Service 2018-12-13 03:44:19 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 avlas 2018-12-14 15:10:32 UTC
I tried but failed to reproduce this issue again. Closing...
Comment 4 avlas 2019-01-12 23:59:12 UTC
(In reply to avlas from comment #3)
> I tried but failed to reproduce this issue again. Closing...

Actually I didn't remember that I changed an alias to execute it twice, so I am still having the issue.

System info:

KDE neon 5.14
Plasma 5.14.5
Qt 5.11.2
Frameworks 5.54.0
Comment 5 avlas 2019-01-12 23:59:40 UTC
(In reply to avlas from comment #4)
> (In reply to avlas from comment #3)
> > I tried but failed to reproduce this issue again. Closing...
> 
> Actually I didn't remember that I changed an alias to execute it twice, so I
> am still having the issue.
> 
> System info:
> 
> KDE neon 5.14
> Plasma 5.14.5
> Qt 5.11.2
> Frameworks 5.54.0

And Latte 0.8.4
Comment 6 trmdi 2019-01-13 03:28:17 UTC
I tried this command several times but I could never make Latte restart with it.
Ended up with "pkill latte && latte-dock".
Comment 7 Michail Vourlakos 2019-01-14 16:53:29 UTC
(In reply to trmdi from comment #6)
> I tried this command several times but I could never make Latte restart with
> it.
> Ended up with "pkill latte && latte-dock".

Feel free to contribute in this... all the code for this is at main.cpp class. In my system in works ok
Comment 8 Michail Vourlakos 2019-01-15 19:16:59 UTC
Git commit 5c28b2194a536b28efd5e79c932256dc5614904b by Michail Vourlakos.
Committed on 15/01/2019 at 19:16.
Pushed by mvourlakos into branch 'master'.

Wait forever until the lock file can be locked

Summary:
- `timeout = 3000` is a bit short on some computer. Use `timeout = -1` will work for any case.

Test Plan: BUG: 401041 is fixed on my computer.

Reviewers: mvourlakos, #latte_dock

Reviewed By: mvourlakos

Tags: #latte_dock, #plasma

Differential Revision: https://phabricator.kde.org/D18258

M  +1    -1    app/main.cpp

https://commits.kde.org/latte-dock/5c28b2194a536b28efd5e79c932256dc5614904b
Comment 9 Michail Vourlakos 2019-01-15 19:21:24 UTC
Git commit 88e2e9ddd672a5d32913a74fce138c3333f4b28e by Michail Vourlakos.
Committed on 15/01/2019 at 19:20.
Pushed by mvourlakos into branch 'v0.8'.

Wait forever until the lock file can be locked

Summary:
- `timeout = 3000` is a bit short on some computer. Use `timeout = -1` will work for any case.

FIXED-IN: v0.8.5

Test Plan: BUG: 401041 is fixed on my computer.

Reviewers: mvourlakos, #latte_dock

Reviewed By: mvourlakos

Tags: #latte_dock, #plasma

Differential Revision: https://phabricator.kde.org/D18258

M  +1    -1    app/main.cpp

https://commits.kde.org/latte-dock/88e2e9ddd672a5d32913a74fce138c3333f4b28e