Bug 403425

Summary: Notifications from system-tray widget not showing
Product: [Unmaintained] lattedock Reporter: connectbhatta
Component: applicationAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED UPSTREAM    
Severity: normal CC: trmdi
Priority: NOR    
Version First Reported In: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Settings of the notification applet in system-panel
KDE Konnect notification
Notification for low-battery power
Desktop default setup

Description connectbhatta 2019-01-20 10:30:02 UTC
SUMMARY

I am using latte-dock in Manjaro-kde. Recently, lot of [updates were released](https://forum.manjaro.org/t/stable-update-2019-01-17-kernels-kde-apps-kde-plasma-deepin-firefox-calamares-xfce/72218). This update, as you can see, has kde updates (plasma and apps). This update also included latest latte-dock release (0.8.4). 

After this update, the notifications from the system-tray are not shown at all. The system-tray notifications include - (i) notification from battery-app (ii) notification from kde-connect (iii) notification from wifi manager, etc. Because of the inability to see any of these notifications, I am not able to see important notifications like --- critical battery level, notifications of my phone (through kde-connect), etc. 

Contrast to these notifications, notifications from other apps like dolphin are still visible. E.g., when I copy files, the notification of "successfully copied" is visible.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro Linux [linux version 4.19.14-1-MANJARO]
KDE Plasma Version: 5.14.5
KDE Frameworks Version: 5.53
Qt Version: Qt 5.12.0
Comment 1 Michail Vourlakos 2019-01-20 11:36:09 UTC
> Contrast to these notifications, notifications from other apps like dolphin are still visible. E.g., when I copy files, the notification of "successfully copied" is visible.

sounds more like the notifications that you do not see are from apps that have been built with different kde frameworks version

1. Show me a screenshot of your system
2. Make the notifications always visible in the systray
3. Close Latte and add a default plasma panel with a systray in it. Do the notifications in question appear properly in that case?
3b. If plasma panel shows the notifications correctly show me a screenshot how these notifications should look like
Comment 2 connectbhatta 2019-01-20 13:00:27 UTC
Created attachment 117571 [details]
Settings of the notification applet in system-panel
Comment 3 connectbhatta 2019-01-20 13:02:15 UTC
Created attachment 117572 [details]
KDE Konnect notification
Comment 4 connectbhatta 2019-01-20 13:02:37 UTC
Created attachment 117573 [details]
Notification for low-battery power
Comment 5 connectbhatta 2019-01-20 13:06:23 UTC
Responding to your comments (in the same order):

1. When you ask "show me your screenshot of your system" - do you mean screenshot of system-info having linux-os, kde-system, etc.?

2. I had notifications enabled always. For your reference, I have given the screenshot of notification applet settings.

3. Forgot to mention - I have already tested what you are suggesting. I disabled latte, enabled the default panel. With the default panel having system-tray, I get all the notifications. See for instance, the two screenshots I have attached --- one from kde-konnect, and the other from battery-applet. Both these are present in system-tray widget. Both these notifications are not seen when I have system-tray widget in latte panel.
Comment 6 Michail Vourlakos 2019-01-20 13:33:09 UTC
(In reply to connectbhatta from comment #3)
> Created attachment 117572 [details]
> KDE Konnect notification

that works in my system with Latte, if I send a ping from kdeconnect through my phone the notification appears... The notifications if I have understood correctly they register a daemon in order for apps to access it. To be sure try the following:

1. Close Latte
2. Remove all plasma panels
3. Restart Plasma
4. Start Latte with notifications
5. Send a ping through kde-connect from your phone, it does not work?

In my system above steps work ok...

A) Are you using a prebuilt Latte package?
B) Is there a chance that this package has not been built with the same kde frameworks of Latte?
C) I need a screenshot how your system looks (Latte layouting) in order to understand where is the systray and how many Latte panel/docks you are using
Comment 7 connectbhatta 2019-01-22 01:03:09 UTC
(In reply to Michail Vourlakos from comment #6)
> A) Are you using a prebuilt Latte package?
> B) Is there a chance that this package has not been built with the same kde
> frameworks of Latte?

I installed latte from Manjaro-repo. 

> 1. Close Latte
> 2. Remove all plasma panels
> 3. Restart Plasma
> 4. Start Latte with notifications
> 5. Send a ping through kde-connect from your phone, it does not work?

I thought let me uninstall, do a fresh install and execute these steps. However, after I installed again from manjaro-repo, when I open latte (from krunner) latte does not open! Even when I restarted the system, I thought latte will appear (since it is listed in the autostart settings). But I get a clean desktop with no panel!

I will try to build from its kde-github repo. I will update you on that.

> C) I need a screenshot how your system looks (Latte layouting) in order to
> understand where is the systray and how many Latte panel/docks you are using
I will give this once I have successfully brought latte back on my desktop.
Comment 8 connectbhatta 2019-01-22 01:47:59 UTC
I installed from github-repo. Same issue as I observed for the installation from manjaro-repo: latte gets installed; when i start the latte, I do not see anything on the desktop. However, I see latte instance running in ksysguard.

Any idea why latte is "invisible"?

By the way, I am attaching the picture of my desktop. As you can see, it contains-
1. the panel with four widgets --- icons-task-manager + desktop-pager + lock-logout + system-tray
2. the clock widget on the desktop
3. event-calendar widget on the desktop

Even when I had latte, I had the same setup. Except for the default-panel, I had latte-dock in which I had only these four widgets.
Comment 9 connectbhatta 2019-01-22 01:48:24 UTC
Created attachment 117607 [details]
Desktop default setup
Comment 10 trmdi 2019-01-22 02:23:58 UTC
(In reply to connectbhatta from comment #8)
> Even when I had latte, I had the same setup. Except for the default-panel, I
> had latte-dock in which I had only these four widgets.

Does it happen with the default layout? Did you try reproducing the bug with a fresh new user?
I can't reproduce it too.
Comment 11 connectbhatta 2019-01-22 02:41:52 UTC
> Does it happen with the default layout? 
Default layout of what --- plasma panel  or latte-dock? In the case of plasma-panel, I get notifications in every scenario. 

> Did you try reproducing the bug with a fresh new user?
I can try this. But still does not say why  latte is not coming up with fresh-install :(
Comment 12 trmdi 2019-01-22 02:43:40 UTC
(In reply to connectbhatta from comment #11)
> > Does it happen with the default layout? 
> Default layout of what --- plasma panel  or latte-dock?

latte
Comment 13 connectbhatta 2019-01-22 02:56:07 UTC
For me to try whether default latte layout shows notification, I need to first make it visible. I am unable to do so --- even though latte is running (as ksysguard says), i dont see it on the desktop
Comment 14 trmdi 2019-01-22 02:58:11 UTC
(In reply to connectbhatta from comment #13)
> For me to try whether default latte layout shows notification, I need to
> first make it visible. I am unable to do so --- even though latte is running
> (as ksysguard says), i dont see it on the desktop

Try this from the terminal: pkill latte ; latte-dock --default-layout
Comment 15 trmdi 2019-01-22 03:04:09 UTC
(In reply to trmdi from comment #14)
> (In reply to connectbhatta from comment #13)
> > For me to try whether default latte layout shows notification, I need to
> > first make it visible. I am unable to do so --- even though latte is running
> > (as ksysguard says), i dont see it on the desktop
> 
> Try this from the terminal: pkill latte ; latte-dock --default-layout

Sorry, I meant: pkill latte ; latte-dock --layout Plasma
Comment 16 connectbhatta 2019-01-22 06:02:36 UTC
> latte-dock --layout Plasma

The above command did not execute and threw this message "This layout doesn't exist in the system"
Comment 17 Michail Vourlakos 2019-01-22 08:16:54 UTC
(In reply to connectbhatta from comment #16)
> > latte-dock --layout Plasma
> 
> The above command did not execute and threw this message "This layout
> doesn't exist in the system"

From command line, if you run, 

latte-dock --replace

what does it happen?
Comment 18 connectbhatta 2019-01-22 08:36:38 UTC
> From command line, if you run, 
> 
> latte-dock --replace
> 
> what does it happen?

WHen I execute this command, nothing happens on the desktop. At the backend, in ksysguard, the konsole spawns off latte-dock process. (I had checked before executing the command that there was no latte process running.)
Comment 19 trmdi 2019-01-22 08:52:13 UTC
(In reply to connectbhatta from comment #11)
> > Did you try reproducing the bug with a fresh new user?
> I can try this.

Did you try it? What happened?
Comment 20 connectbhatta 2019-01-22 09:32:06 UTC
> > > Did you try reproducing the bug with a fresh new user?
> > I can try this.
> 
> Did you try it? What happened?

Not yet. Will try and get back. But this will take sometime since I am in the middle of a submission.
Comment 21 Michail Vourlakos 2019-01-25 21:15:19 UTC
ok, lets wait for some feedback
Comment 22 connectbhatta 2019-01-26 01:39:19 UTC
(In reply to Michail Vourlakos from comment #21)
> ok, lets wait for some feedback

I just tried. With a new user, everything works fine:
1) latte-dock comes alive on the desktop when started through krunner
2) when system-panel widget is added, all notifications work, like e.g. kde-konnect ping, low-battery indication.

So, looks like there is something missing/wrong in my main user-id. 

1. Can you help with me figure out what i should be looking at in my home profile?
2. Is there a thorough reset (removing and reinstalling) of latte that I can do? 

Note - I have already tried building the latte-dock from github package. That didnt help. Also, I used the uninstall script in this package to remove everything.
Comment 23 connectbhatta 2019-01-26 05:16:15 UTC
I compared both the new-user and current-user's home folder. Found that, the current-user's `.config` folder, there is no latte folder (which has files like Plasma.layout.latte, My Layout.layout.latte, etc). I copied the latte-folder from the new-user to current-user's /home/.config folder. 

With this, I am able to make latte-panel appear again in the desktop :)

However, I checked --- still the notifications (kde-konnect ping) are not coming.
Comment 24 Michail Vourlakos 2019-01-26 09:29:29 UTC
(In reply to connectbhatta from comment #22)
> (In reply to Michail Vourlakos from comment #21)
> > ok, lets wait for some feedback
> 1. Can you help with me figure out what i should be looking at in my home
> profile?

no idea, but do not assume that it is a Latte fault, there is a chance that something is missing from your plasma environment that does not help to cooperate with Latte nice

> 2. Is there a thorough reset (removing and reinstalling) of latte that I can
> do? 
>

as long as you have not touched Latte global files that are located under /usr/share
you probably do not need to reinstall it

Latte config files (at per user basis) are the following:

1. ~/.config/lattedockrc
2. ~/.config/latte (folder)

that is all...

Even more the entire Latte configuration can exported and imported (for backups or for example to export from the user that is working correctly to the user that is doesnt:

Export:
1. Go to Layouts settings window (you can use Appearance tab to access it) OR I use Meta+W in my system
2. Export
3. Choose from the Filter: Latte Dock Full Configuration v0.2
4. Export your entire Latte configuration

Import:
1. is the same
2. Import
3. is the same
4. Import etc...
Comment 25 Michail Vourlakos 2019-01-26 09:30:32 UTC
changed to REPORTED
Comment 26 connectbhatta 2019-01-26 12:14:37 UTC
I think I figured out the issue :)

As I mentioned, for a new user, latte's notification works fine. So, I started analysing what is the difference between my current-setup and new-user desktop setup. There is one key difference: the event-calendar widget on my desktop. (See the screenshot of my desktop setup in attachment#4 [details]).

I removed the widget, and I started getting the notification back!

Now, the question is --- is this latte's problem or event-calendar's problem? 

Having the event-calendar (synched to my google-calendar) was very useful. And I also love latte. Is it possible to have both of them?
Comment 27 connectbhatta 2019-01-26 12:17:25 UTC
> I removed the widget, and I started getting the notification back!

I mean --- I started getting the notification back with latte-dock. (In this setup, I have removed the default panel and have only the default latte-dock).
Comment 28 trmdi 2019-01-26 13:30:45 UTC
(In reply to connectbhatta from comment #26)
> I think I figured out the issue :)
> 
> As I mentioned, for a new user, latte's notification works fine. So, I
> started analysing what is the difference between my current-setup and
> new-user desktop setup. There is one key difference: the event-calendar
> widget on my desktop. (See the screenshot of my desktop setup in
> attachment#4 [details]).
> 
> I removed the widget, and I started getting the notification back!
> 
> Now, the question is --- is this latte's problem or event-calendar's
> problem? 
> 
> Having the event-calendar (synched to my google-calendar) was very useful.
> And I also love latte. Is it possible to have both of them?

Not really true. I'm using Event Calendar without any problem.
I don't use the synchronization feature though.
Comment 29 Michail Vourlakos 2019-01-26 13:34:59 UTC
(In reply to connectbhatta from comment #26)
> I think I figured out the issue :)
> 
> As I mentioned, for a new user, latte's notification works fine. So, I
> started analysing what is the difference between my current-setup and
> new-user desktop setup. There is one key difference: the event-calendar
> widget on my desktop. (See the screenshot of my desktop setup in
> attachment#4 [details]).
> 
> I removed the widget, and I started getting the notification back!
> 
> Now, the question is --- is this latte's problem or event-calendar's
> problem? 
> 

None, this is not a problem, if Event Calendar needs these notifications for some reason e.g. to show them in its calendar that is probably and Event Calendar feature. Latte in general does not take any steps concerning notifications it is totally applets responsibility. What could be happening is that Event Calendar hijacks these notifications for some reason, you could contact the event calendar developer in order to provide you with some feedback.

> Having the event-calendar (synched to my google-calendar) was very useful.
> And I also love latte. Is it possible to have both of them?

In my system I use the Event Calendar widget (including its google syncing) but the widget is inside a Latte panel. So you probably need to add it inside Latte in order to not conflict with your notifications
Comment 30 connectbhatta 2019-01-26 13:36:09 UTC
> Not really true. I'm using Event Calendar without any problem.
> I don't use the synchronization feature though.

Are you using event-calendar in the panel or as a desktop widget?

As I have mentioned, i am using the desktop-widget and not as a panel-widget. (See the screenshot.)
Comment 31 connectbhatta 2019-01-26 13:42:43 UTC
> In my system I use the Event Calendar widget (including its google syncing)
> but the widget is inside a Latte panel. So you probably need to add it
> inside Latte in order to not conflict with your notifications

True. With event-calendar in the latte-panel, things work fine. 

Fine then. Let me point this bug to the event-calendar developer. Thanks!!!
Comment 32 connectbhatta 2019-01-28 01:17:40 UTC
I have filed a bug report at the github repo of event-calendar. Here is the link for you two reference - https://github.com/Zren/plasma-applet-eventcalendar/issues/60