Cinnamon notifications change active window - solution

Cinnamon

It will always be nice for me to be able to talk about Cinnamon, fork de GNOME-Shell which has become one of my two favorite desktops alongside the one I currently use, LXDE.

On this occasion, the user agarajag comment us in the forum about a problem you've had with this shell, but not to request help but to kindly share with us the method you have found to solve it, so now I will explain what it consists of.

The problem is the following: you are working on anything and suddenly some program sends you a notification: Skype or Whatsapp announcing that you have a new message, Thunderbird indicating the arrival of a new mail, etc., and what it does Cinnamon es change active window, bringing the program that sent the notification to the foreground and hiding the window you were working with.

This is obviously quite annoying behavior but it can be solved very easily:

  1. Execute the following command in a terminal:
    sudo gedit /usr/share/cinnamon/js/ui/windowAttentionHandler.js
    Here i am using Gedit but you can use Nano or the text editor of your choice.
  2. Go down to line number 32 and comment it in such a way that it looks like this:
    #window.activate(global.get_current_time());
  3. Now log out and log back in or restart the computer.

With this the notifications of Cinnamon they will be more discreet and instead of changing the window it will just show a flashing message on the panel.

I personally never had this problem during the time I was using Cinnamon (the notifications appeared as small, non-intrusive balloons), but in case someone is experiencing it, I hope that by following the steps above they will solve it.

Thank you very much to agarajag for passing us the tip. 🙂


7 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Merlin The Debianite said

    It will help me if one day I install cinnamon in debian, but first I must know how to do it or find a repository where cinnamon is.

    Good Tutorial is easy to follow.

    1.    erunamoJAZZ said

      It really is simple, you just have to add the linuxmint repository for debian to your sources.list, there it comes to install Cinnamon 1.4:

      deb http://packages.linuxmint.com/ debianmain

  2.   Merlin The Debianite said

    Ok thanks good vibes thanks this is a good post.

    Thanks for the repo.
    In this repo does mate also come?

  3.   jamin samuel said

    Good ... cinnamon still needs work .. but it is looking good, hopefully by the departure of mint 13 it will be super ready

  4.   alebils said

    I love Cinnamon, he looks very cute.

  5.   solidus_00 said

    When looking at this section, I was interested and I read the previous ones about cinnamon, I installed it on my ubuntu 11.10 and I was delighted XD I already liked gnome shell but I was perplexed, the perfect combination between shell and kde I feel from my point of view .. I will try your improvements 😀 thanks

  6.   Antonio said

    I find everywhere changing the position and size of notifications, but what about the time it takes for them to disappear? It is variable?

    Thank you.