Feuerfuchs / Collapsible-Systray-Cinnamon-Applet

A replacement for the abandoned System Tray Collapsible Cinnamon applet
10 stars 0 forks source link

Not working on linux mint 18.1 #16

Closed sandipkc7 closed 7 years ago

sandipkc7 commented 7 years ago

I am not able to make it work on linux mint 18.1, it also cause cinnamon crash few times at panel edit mode.

Feuerfuchs commented 7 years ago

Can you please post the contents of the file ~/.cinnamon/glass.log.last once Cinnamon crashes due to the applet?

sandipkc7 commented 7 years ago

Here you go

info t=2016-12-17T16:24:51.515Z Cinnamon.AppSystem.get_default() started in 113 ms
info t=2016-12-17T16:24:51.521Z loading user theme: /usr/share/themes/Arc-Flatabulous-Dark/cinnamon/cinnamon.css
info t=2016-12-17T16:24:51.540Z added icon directory: /usr/share/themes/Arc-Flatabulous-Dark/cinnamon
info t=2016-12-17T16:24:51.723Z PlacesManager: Updating devices
info t=2016-12-17T16:24:51.752Z loaded at Sat Dec 17 2016 22:09:51 GMT+0545 (NPT)
info t=2016-12-17T16:24:52.343Z Loaded applet menu@cinnamon.org in 588 ms
info t=2016-12-17T16:24:52.423Z Role locked: panellauncher
info t=2016-12-17T16:24:52.423Z Loaded applet panel-launchers@cinnamon.org in 79 ms
info t=2016-12-17T16:24:52.463Z Loaded applet window-list@cinnamon.org in 39 ms
info t=2016-12-17T16:24:52.500Z Loaded applet workspace-switcher@cinnamon.org in 36 ms
info t=2016-12-17T16:24:52.516Z Loaded applet keyboard@cinnamon.org in 14 ms
info t=2016-12-17T16:24:52.840Z Loaded applet user@cinnamon.org in 323 ms
info t=2016-12-17T16:24:52.908Z Loaded applet network@cinnamon.org in 66 ms
info t=2016-12-17T16:24:52.991Z Loaded applet sound@cinnamon.org in 82 ms
info t=2016-12-17T16:24:53.039Z Loaded applet power@cinnamon.org in 47 ms
info t=2016-12-17T16:24:53.052Z Loaded applet systray@cinnamon.org in 11 ms
info t=2016-12-17T16:24:53.097Z Loaded applet calendar@cinnamon.org in 44 ms
info t=2016-12-17T16:24:53.141Z Role locked: notifications
info t=2016-12-17T16:24:53.144Z Loaded applet notifications@cinnamon.org in 46 ms
info t=2016-12-17T16:24:53.183Z Loaded applet show-desktop@cinnamon.org in 38 ms
info t=2016-12-17T16:24:53.184Z AppletManager.init() started in 1431 ms
info t=2016-12-17T16:24:53.187Z Cinnamon took 1819 ms to start
Feuerfuchs commented 7 years ago

Did you really pick the right file, i.e. the one with the „.last“ file extension? I don't see any indication of a crash here. If you're sure, can you also post the glass.log, please?

sandipkc7 commented 7 years ago

I am not sure which caused cinnamon to crash, but it crash during I played with this applet. I have not installed applets other than default that came with mint 18.1. I tried to remove spaces between "collapse tray icon" and other icons. Here is video of cinnamon crashing 2 times https://youtu.be/--5EUdCJc5M

And here is .last log file

info t=2016-12-17T16:39:17.085Z Cinnamon.AppSystem.get_default() started in 114 ms
info t=2016-12-17T16:39:17.090Z loading user theme: /usr/share/themes/Arc-Flatabulous-Dark/cinnamon/cinnamon.css
info t=2016-12-17T16:39:17.111Z added icon directory: /usr/share/themes/Arc-Flatabulous-Dark/cinnamon
info t=2016-12-17T16:39:17.291Z PlacesManager: Updating devices
info t=2016-12-17T16:39:17.322Z loaded at Sat Dec 17 2016 22:24:17 GMT+0545 (NPT)
info t=2016-12-17T16:39:17.962Z Loaded applet menu@cinnamon.org in 637 ms
info t=2016-12-17T16:39:18.043Z Role locked: panellauncher
info t=2016-12-17T16:39:18.043Z Loaded applet panel-launchers@cinnamon.org in 80 ms
info t=2016-12-17T16:39:18.091Z Loaded applet window-list@cinnamon.org in 46 ms
info t=2016-12-17T16:39:18.136Z Loaded applet workspace-switcher@cinnamon.org in 44 ms
info t=2016-12-17T16:39:18.154Z Loaded applet keyboard@cinnamon.org in 16 ms
info t=2016-12-17T16:39:18.203Z Loaded applet user@cinnamon.org in 47 ms
info t=2016-12-17T16:39:18.274Z Loaded applet network@cinnamon.org in 70 ms
info t=2016-12-17T16:39:18.371Z Loaded applet sound@cinnamon.org in 95 ms
info t=2016-12-17T16:39:18.415Z Loaded applet power@cinnamon.org in 42 ms
info t=2016-12-17T16:39:18.424Z Loaded applet systray@cinnamon.org in 8 ms
info t=2016-12-17T16:39:18.474Z Loaded applet calendar@cinnamon.org in 47 ms
info t=2016-12-17T16:39:18.509Z Role locked: notifications
info t=2016-12-17T16:39:18.512Z Loaded applet notifications@cinnamon.org in 36 ms
info t=2016-12-17T16:39:18.519Z [collapsible-systray@feuerfuchs.eu] Event: _setAppletReactivity
info t=2016-12-17T16:39:18.548Z [collapsible-systray@feuerfuchs.eu] Insert menu item for viberpc in inactive applications
info t=2016-12-17T16:39:18.550Z [collapsible-systray@feuerfuchs.eu] Insert menu item for tomboy-notes in inactive applications
info t=2016-12-17T16:39:18.551Z [collapsible-systray@feuerfuchs.eu] Insert menu item for google-chrome-stable in inactive applications
info t=2016-12-17T16:39:18.553Z [collapsible-systray@feuerfuchs.eu] Insert menu item for clipit in inactive applications
info t=2016-12-17T16:39:18.554Z [collapsible-systray@feuerfuchs.eu] Insert menu item for collabshot in inactive applications
info t=2016-12-17T16:39:18.555Z [collapsible-systray@feuerfuchs.eu] Insert menu item for mintupdate.py in inactive applications
info t=2016-12-17T16:39:18.557Z [collapsible-systray@feuerfuchs.eu] Insert menu item for kazam in inactive applications
info t=2016-12-17T16:39:18.561Z [collapsible-systray@feuerfuchs.eu] Event: on_applet_added_to_panel
info t=2016-12-17T16:39:18.562Z Loaded applet collapsible-systray@feuerfuchs.eu in 49 ms
info t=2016-12-17T16:39:18.610Z Loaded applet show-desktop@cinnamon.org in 46 ms
info t=2016-12-17T16:39:18.610Z AppletManager.init() started in 1288 ms
info t=2016-12-17T16:39:18.614Z Cinnamon took 1679 ms to start
info t=2016-12-17T16:39:18.801Z [collapsible-systray@feuerfuchs.eu] Event: _setAppletReactivity
info t=2016-12-17T16:39:19.347Z Adding systray: clipit (24x24px)
info t=2016-12-17T16:39:19.348Z Adding systray: clipit (24x24px)
info t=2016-12-17T16:39:19.349Z Adding systray: mintupdate.py (24x24px)
info t=2016-12-17T16:39:19.349Z Adding systray: mintupdate.py (24x24px)
info t=2016-12-17T16:39:19.351Z Hiding systray: network
info t=2016-12-17T16:39:19.351Z Hiding systray: network
info t=2016-12-17T16:39:19.353Z Adding systray: kazam (24x24px)
info t=2016-12-17T16:39:19.353Z Adding systray: kazam (24x24px)
info t=2016-12-17T16:39:20.784Z [collapsible-systray@feuerfuchs.eu] Event: _insertStatusItem - clipit
info t=2016-12-17T16:39:20.785Z [collapsible-systray@feuerfuchs.eu] Register instance of clipit
info t=2016-12-17T16:39:20.787Z [collapsible-systray@feuerfuchs.eu] Insert menu item for clipit in active applications
info t=2016-12-17T16:39:20.789Z [collapsible-systray@feuerfuchs.eu] Event: _insertStatusItem - mintupdate.py
info t=2016-12-17T16:39:20.790Z [collapsible-systray@feuerfuchs.eu] Register instance of mintupdate.py
info t=2016-12-17T16:39:20.793Z [collapsible-systray@feuerfuchs.eu] Insert menu item for mintupdate.py in active applications
info t=2016-12-17T16:39:20.795Z [collapsible-systray@feuerfuchs.eu] Event: _insertStatusItem - kazam
info t=2016-12-17T16:39:20.796Z [collapsible-systray@feuerfuchs.eu] Register instance of kazam
info t=2016-12-17T16:39:20.799Z [collapsible-systray@feuerfuchs.eu] Insert menu item for kazam in active applications
info t=2016-12-17T16:39:22.673Z [collapsible-systray@feuerfuchs.eu] Event: on_applet_removed_from_panel
error t=2016-12-17T16:39:22.673Z this._shellIndicators.forEach is not a function
trace t=2016-12-17T16:39:22.673Z 
<----------------
MyApplet.prototype._removeIndicatorSupport@/home/sandeep/.local/share/cinnamon/applets/collapsible-systray@feuerfuchs.eu/CinnamonSystray.js:105
MyApplet.prototype.on_applet_removed_from_panel@/home/sandeep/.local/share/cinnamon/applets/collapsible-systray@feuerfuchs.eu/CinnamonSystray.js:201
CollapsibleSystrayApplet.prototype.on_applet_removed_from_panel@/home/sandeep/.local/share/cinnamon/applets/collapsible-systray@feuerfuchs.eu/applet.js:786
Applet.prototype._onAppletRemovedFromPanel@/usr/share/cinnamon/js/ui/applet.js:374
removeAppletFromPanels@/usr/share/cinnamon/js/ui/appletManager.js:249
onEnabledAppletsChanged@/usr/share/cinnamon/js/ui/appletManager.js:208
---------------->
error t=2016-12-17T16:39:22.674Z Error during on_applet_removed_from_panel() call on applet: collapsible-systray@feuerfuchs.eu/35
info t=2016-12-17T16:39:22.676Z [collapsible-systray@feuerfuchs.eu] Unregister instance of kazam
info t=2016-12-17T16:39:22.676Z [collapsible-systray@feuerfuchs.eu] No more instances left
info t=2016-12-17T16:39:22.677Z [collapsible-systray@feuerfuchs.eu] Insert menu item for kazam in inactive applications
info t=2016-12-17T16:39:22.679Z [collapsible-systray@feuerfuchs.eu] Unregister instance of mintupdate.py
info t=2016-12-17T16:39:22.680Z [collapsible-systray@feuerfuchs.eu] No more instances left
info t=2016-12-17T16:39:22.681Z [collapsible-systray@feuerfuchs.eu] Insert menu item for mintupdate.py in inactive applications
info t=2016-12-17T16:39:22.683Z [collapsible-systray@feuerfuchs.eu] Unregister instance of clipit
info t=2016-12-17T16:39:22.683Z [collapsible-systray@feuerfuchs.eu] No more instances left
info t=2016-12-17T16:39:22.685Z [collapsible-systray@feuerfuchs.eu] Insert menu item for clipit in inactive applications
info t=2016-12-17T16:39:22.687Z Adding systray: clipit (24x24px)
info t=2016-12-17T16:39:22.688Z Adding systray: mintupdate.py (24x24px)
info t=2016-12-17T16:39:22.689Z Hiding systray: network
info t=2016-12-17T16:39:22.689Z Adding systray: kazam (24x24px)
info t=2016-12-17T16:39:39.137Z Hiding systray: vlc
info t=2016-12-17T16:42:27.363Z Adding systray: google-chrome-stable (24x24px)
Feuerfuchs commented 7 years ago

That was helpful, but now I'm very confused. ^^ Not because you're doing anything wrong, that's not the case, but the error occurs in a part of my applet that I ported directly from upstream, i.e. from Cinnamon. Does the default systray crash as well?

sandipkc7 commented 7 years ago

I am not sure what default systray means, I migrated from windows to linux few months ago. And after trying several distro mint was easier to understand. I did clean install of mint 18.1 yesterday and it never crashed till I tried applets.

Feuerfuchs commented 7 years ago

I just noticed something in your video: When you remove my applet, the tray icons re-appear. That can only happen if you use two system trays at once, which results in unstable behavior. Can you please remove the default systray from your applet and then try again if Cinnamon crashes? By "default systray", I mean the System Tray applet Cinnamon provides. It's in the applet list with a lock icon next to it.

sandipkc7 commented 7 years ago

After removing default systray, it does not crash and blank spaces also don't appear in panel. But collapsing does not work either.

Feuerfuchs commented 7 years ago

Did you select the applications you want to hide in the applet's context menu? I.e. right click on the arrow and in "Active applications" you'll see all programs that are currently running, and likewise in "Inactive applications" there are known programs listed that are currently not active. Just uncheck the ones in both categories you want to hide.

sandipkc7 commented 7 years ago

Sorry I was not aware about the selecting applications part because it kept crashing and it couldnot think anything other.

  1. I disabled systray and enabled collapsible systray, selected apps for inactive and it worked. But distance between icons appears more than its default distance.
  2. After I selected some apps to inactive in collapsible systray and removed collapsible systray and enabled systray the apps which were previously selected inactive were not there in systray.

Sorry I didnot know the part that, either systray or collapsible systray only one of them should be installed to avoid crashing. I will use this applet actively for few days and report if found any bugs. Thank you.

Feuerfuchs commented 7 years ago

No need to apologize, especially about the latter. After all, how are you supposed to know you can't use two system trays without prior knowledge? About 1: There's an applet setting (context menu -> Configure) called "Padding of tray icons" that allows you to define the spacing between icons. If you set it to 0, it looks like the default. About 2: Cinnamon discards all settings for an applet if you remove it. That's the intended behavior and is the same for all applets.