ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

How to disable desktop notifications for colcon?

asked 2020-07-10 13:54:50 -0500

updated 2020-07-10 13:57:11 -0500

I am on Ubuntu 20.04 using ROS 2 Foxy. I have installed colcon using:

sudo apt install python3-colcon-common-extensions

It works fine, but I get desktop notifications when, for example, a build fails. I find the notifications extremely annoying. How can I disable them for colcon? I can't find an option to do that anywhere, and I don't want to disable notifications entirely.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2020-07-10 13:58:45 -0500

Dirk Thomas gravatar image

Please see the recommendation from this ticket: https://github.com/colcon/colcon-noti...

Since the desktop_notification event handler is provided by a specific extension it is possible to blacklist that specific extension using an environment variable:

COLCON_EXTENSION_BLACKLIST=colcon_core.event_handler.desktop_notification
edit flag offensive delete link more

Comments

That's perfect. Thanks.

Jeffrey Kane Johnson gravatar image Jeffrey Kane Johnson  ( 2020-07-10 14:02:03 -0500 )edit
1

A quick update to Dirk's excellent answer:

Sometime between his answer and now the environment variable was renamed to COLCON_EXTENSION_BLOCKLIST so the proper incantation now is:

COLCON_EXTENSION_BLOCKLIST=colcon_core.event_handler.desktop_notification

jpace121 gravatar image jpace121  ( 2022-07-04 09:44:45 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-07-10 13:54:50 -0500

Seen: 649 times

Last updated: Jul 10 '20