signal-desktop/ts
Danny Lin c8261814fd
Add setting to toggle notification attention drawing (#4457)
In many GNU/Linux setups, drawing attention when a notification arrives
causes the Signal window to steal focus immediately and interrupt the
user from what they were doing before the notification arrived. GNOME
Shell is the most prominent example of this behavior, but there are
likely other cases as well. Suddenly stealing focus on external events
like this can even pose a security problem in some cases, e.g. if the
user is in the middle of a typing a sudo password on one monitor while a
notification arrives and focuses Signal on another monitor. See #4452
for more information.

Disabling attention drawing entirely for Linux is also problematic
because some users rely on it as the sole indication of a new message,
as seen in #3582 and #3611.

Commit f790694559 improved the situation
by adding a hidden "--disable-flash-frame" command-line argument, but
this argument is undocumented and manually adding command-line arguments
to the application's .desktop file is not user-friendly.

This commit adds a settings option for whether to draw attention when a
new notification arrives to make it easy for all Linux users to obtain
the appropriate behavior without relying on an undocumented
command-line argument.

Fixes #4452.
2020-08-24 14:45:31 -07:00
..
backbone Move left pane entirely to React 2019-03-12 17:44:14 -07:00
build Introduce snyk, update dependencies 2020-05-05 14:18:46 -07:00
components Remove scrollbar from author title in quotes 2020-08-13 15:21:05 -07:00
notifications Use native notifications on all platforms 2018-05-02 19:58:33 -04:00
protobuf Compile all protocol buffers 2018-05-07 21:53:40 -04:00
scripts Custom zip script for macOS update package 2020-05-13 11:44:24 -07:00
services Show notifications when a user's profile name changes 2020-07-30 13:27:44 -07:00
shims Force social graph to pull down updates after beta.11 install 2020-07-30 13:27:44 -07:00
sql Fix conversation last activity calculation 2020-08-13 17:47:50 -05:00
state Convert <Avatar /> component to Storybook 2020-08-13 13:53:45 -07:00
storybook Port StickerPreviewModal to storybook 2020-04-15 14:45:11 -07:00
styleguide Keyboard/mouse mode and keyboard support bugfixes 2019-11-21 14:16:06 -05:00
test Add setting to toggle notification attention drawing (#4457) 2020-08-24 14:45:31 -07:00
textsecure Upgrade node-fetch to latest version, v2.6.0 2020-08-11 14:23:37 -07:00
types Add setting to toggle notification attention drawing (#4457) 2020-08-24 14:45:31 -07:00
updater Show notifications when a user's profile name changes 2020-07-30 13:27:44 -07:00
util Add setting to toggle notification attention drawing (#4457) 2020-08-24 14:45:31 -07:00
ConversationController.ts Safely generate cached conversation props on startup 2020-08-11 19:15:06 -04:00
Crypto.ts Social Graph: read-only state sync with primary device 2020-07-30 13:10:05 -07:00
curve25519-n.d.ts Use curve functions from native module 2019-08-21 14:55:12 -07:00
libsignal.d.ts Moves libtextsecure to Typescript 2020-04-15 14:45:11 -07:00
model-types.d.ts Convert <Avatar /> component to Storybook 2020-08-13 13:53:45 -07:00
OS.ts Fix lint error in OS.ts 2018-05-23 16:26:48 -07:00
proxy-agent.d.ts Move web_api.js and js/modules/crypto.js to TypeScript 2020-04-15 14:44:51 -07:00
RemoteConfig.ts Message Requests improvements 2020-08-06 20:50:54 -04:00
sqlcipher.d.ts Refactor: Move data-access code to Typescript w/ shared interface 2020-04-15 14:45:11 -07:00
textsecure.d.ts Upgrade to RingRTC v2.4.0 2020-07-30 13:27:44 -07:00
window.d.ts Convert <Avatar /> component to Storybook 2020-08-13 13:53:45 -07:00