Signal-desktop: --start-in-tray doesn't start minimized in Gnome

Created on 16 Jan 2020  路  34Comments  路  Source: signalapp/Signal-Desktop

  • [x] I have searched open and closed issues for duplicates
    It's related to #3864 and #3742, but in Gnome 3.34.3 and partly working.

Bug Description

Steps to Reproduce

  1. signal-desktop --start-in-tray

Actual Result:

Doesn't get started minimized.
(However, I use a .desktop file with Exec=signal-desktop --start-in-tray and signal keeps running in background when using the close button. That's why 'tray' is working partly.)

Expected Result:

Code indicates that it should be started minimized:
show: !startInTray, // allow to start minimised in tray (see main.js)

Platform Info

Signal Version:
1.29.4

Operating System:
Arch Linux 5.4.11-arch1-1
Gnome 3.34.3

Bug Upstream Change Needed

Most helpful comment

Would love to see some priority on this issue.
Cheers!

All 34 comments

I can reproduce this on Signal v1.30.0 in Windows 10 1909, stopped working after update.

On Linux it's working now with signal 1.31.0 and electron 8.0.0.
@drikqlis I don't know about Windows though, but maybe you can try it with the new versions and if it persists open a new issue. I'll close this one now.

Seems to be working as expected now on Windows, thanks.

Okay I was too quick to close the issue. When starting signal when the windows was maximized before then it does not start minimized

In the logs I following when it does not start minimized:
"Updating BrowserWindow config: {\"maximized\":true ...
When it does start minimized:
"Updating BrowserWindow config: {\"maximized\":false ...

not working v1.30.1 with electron 8.0.1

Bug has been closed upstream but issue is this present.

Here it seems to be working now since 2105b5341a734f0c15d7a305ae904519fbcdb505.

@pescepalla and @reginastracii is the issue is still present for you?

Still here: signal-desktop --start-in-tray or signal-desktop --use-tray-icon still starts in a window, not in the tray. The app keeps running in the background when the window is closed.

XFCE on Arch Linux
Electron 8.1.1
Signal 1.32.1

I have the exact problem as pescepalla... same versions and DE, only difference using Manjaro.

--start-in-tray doesn't work, it gives no tray icon, and when you click the x button then the window disappears but the process remains running in the background. If you click on File > Quit Signal or use Ctrl + Q then it actually terminates the process.

In my Gnome env (Gnome 3.34, openSUSE Tumbleweed), Signal flatpack.

The XDG_CURRENT_DESKTOP=Unity trick does not work anymore.

When I close the application, it also kills the process.

signal-desktop --start-in-tray as of 1.32.3 launches a background process but neither a window or tray icon appear. --use-tray-icon launches a window but still no tray icon.

Same behaviour on debian/Cinnamon as @pescepalla describes

I had the same problem as @pescepalla here with:

XFCE on Manjaro
Electron 8.2.1
Signal-Desktop Beta 1.33.0-beta.5

I solved it by installing "xfce4-statusnotifier-plugin" from AUR and enabling it in the xfce4-panel settings. Its not the perfect solution but it works :)

Still an issue on Cinnamon

Same problem on Debian Buster with Awesome WM

Also in opensuse leap 15.1 - Signal v1.33.4 & KDE

Same issue, latest Ubuntu + Gnome + Signal.

signal-desktop --start-in-tray --use-tray-icon launches neither a window nor a tray icon. Result independent of Gnome, LXDE/openbox. Version 1.34.1.
signal-desktop without the options works fine but of course not with the option of tray notifications.

I can confirm this with signal v1.34.1 on Kali Linux running Gnome Shell 3.36.1

Would love to see some priority on this issue.
Cheers!

It seems to be resolved for me on 1.34.3.

Not resolved on 1.34.3 on Debian 10.4 with awesome window manager.

Not resolved on 1.34.3 on Fedora 32 with openbox window manager. However, now, signal desktop does come up when used with --use-tray-icon and --start-in-tray. Here is what I get:

$signal-desktop --use-tray-icon --start-in-tray
Set Windows Application User Model ID (AUMID) { appUserModelId: 'org.whispersystems.signal-desktop' }
NODE_ENV production
NODE_CONFIG_DIR /usr/lib64/signal-desktop/resources/app.asar/config
NODE_CONFIG {}
ALLOW_CONFIG_MUTATIONS undefined
HOSTNAME undefined
NODE_APP_INSTANCE undefined
SUPPRESS_NO_CONFIG_WARNING undefined
SIGNAL_ENABLE_HTTP undefined
userData: /home/username/.config/Signal
config/get: Successfully read user config file
x-attr dependncy did not load successfully
config/get: Successfully read ephemeral config file
making app single instance
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"msg":"app ready","time":"2020-07-08T14:56:52.242Z","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"msg":"starting version 1.34.3","time":"2020-07-08T14:56:52.242Z","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"msg":"updateSchema:\n  Current user_version: 20;\n  Most recent db schema: 20;\n  SQLite version: 3.30.1;\n  SQLCipher version: 4.3.0 community;\n  (deprecated) schema_version: 109;\n","time":"2020-07-08T14:56:52.252Z","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"msg":"Initializing BrowserWindow config: {\"show\":false,\"width\":2321,\"height\":1419,\"minWidth\":680,\"minHeight\":550,\"autoHideMenuBar\":false,\"backgroundColor\":\"#3a76f0\",\"webPreferences\":{\"nodeIntegration\":false,\"nodeIntegrationInWorker\":false,\"contextIsolation\":false,\"preload\":\"/usr/lib64/signal-desktop/resources/app.asar/preload.js\",\"nativeWindowOpen\":true,\"spellcheck\":true},\"icon\":\"/usr/lib64/signal-desktop/resources/app.asar/images/signal-logo-desktop-linux.png\",\"x\":197,\"y\":18}","time":"2020-07-08T14:56:52.363Z","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"msg":"spellcheck: user locale: en-US","time":"2020-07-08T14:56:52.409Z","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"msg":"spellcheck: available spellchecker languages:  [\"af\",\"bg\",\"ca\",\"cs\",\"cy\",\"da\",\"de\",\"el\",\"en-AU\",\"en-CA\",\"en-GB\",\"en-US\",\"es\",\"es-419\",\"es-AR\",\"es-ES\",\"es-MX\",\"es-US\",\"et\",\"fa\",\"fo\",\"fr\",\"he\",\"hi\",\"hr\",\"hu\",\"hy\",\"id\",\"it\",\"ko\",\"lt\",\"lv\",\"nb\",\"nl\",\"pl\",\"pt-BR\",\"pt-PT\",\"ro\",\"ru\",\"sh\",\"sk\",\"sl\",\"sq\",\"sr\",\"sv\",\"ta\",\"tg\",\"tr\",\"uk\",\"vi\"]","time":"2020-07-08T14:56:52.409Z","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"msg":"spellcheck: setting languages to:  [\"en-US\"]","time":"2020-07-08T14:56:52.409Z","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"msg":"Begin ensuring permissions","time":"2020-07-08T14:56:52.418Z","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"msg":"Ensuring file permissions for 2 files","time":"2020-07-08T14:56:52.427Z","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"msg":"Finish ensuring permissions in 10ms","time":"2020-07-08T14:56:52.428Z","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.138Z","msg":"x-attr dependncy did not load successfully","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.157Z","msg":"preload complete","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.323Z","msg":"pre-main prep time: 2 ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.394Z","msg":"background page reloaded","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.394Z","msg":"environment: production","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.412Z","msg":"SQL channel job 1 (getItemById) succeeded in 18ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.412Z","msg":"Storage fetch","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.511Z","msg":"SQL channel job 2 (getAllItems) succeeded in 99ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.560Z","msg":"SQL channel job 3 (createOrUpdateItem) succeeded in 47ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.587Z","msg":"SQL channel job 4 (createOrUpdateItem) succeeded in 27ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.588Z","msg":"SQL channel job 5 (createOrUpdateItem) succeeded in 28ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.588Z","msg":"Starting background data migration. Target version: 10","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.589Z","msg":"ConversationController: starting initial fetch","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.632Z","msg":"SQL channel job 7 (getAllStickerPacks) succeeded in 42ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.633Z","msg":"SQL channel job 8 (getAllStickers) succeeded in 43ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.634Z","msg":"SQL channel job 9 (getRecentStickers) succeeded in 43ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.634Z","msg":"SQL channel job 10 (getRecentEmojis) succeeded in 43ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.635Z","msg":"SQL channel job 12 (getItemById) succeeded in 43ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.635Z","msg":"SQL channel job 11 (getItemById) succeeded in 43ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.635Z","msg":"SQL channel job 13 (getAllIdentityKeys) succeeded in 43ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.636Z","msg":"SignalProtocolStore: Finished caching identityKeys data","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.636Z","msg":"SQL channel job 14 (getAllSessions) succeeded in 43ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.636Z","msg":"SignalProtocolStore: Finished caching sessions data","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.638Z","msg":"ConversationController: done with initial fetch","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.638Z","msg":"SignalProtocolStore: Finished caching signedPreKeys data","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.642Z","msg":"SignalProtocolStore: Finished caching preKeys data","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.643Z","msg":"Cleanup: starting...","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.643Z","msg":"Initializing network observer every 5000ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.644Z","msg":"Cleanup: Found 0 messages for cleanup","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.644Z","msg":"Cleanup: complete","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.644Z","msg":"listening for registration events","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.649Z","msg":"Next signed key rotation scheduled for 2020-07-10T14:33:31.491Z","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.650Z","msg":"refreshSenderCertificate: Getting new certificate...","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.651Z","msg":"GET https://textsecure-service.whispersystems.org/v1/certificate/delivery?includeUuid=true","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.657Z","msg":"connect {\"connectCount\":0}","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.657Z","msg":"Initializing socket and listening for messages","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.658Z","msg":"getAllFromCache","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.658Z","msg":"opening message socket https://textsecure-service.whispersystems.org","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.661Z","msg":"attachment_downloads/start: enabling","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.661Z","msg":"Start idle detector","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.661Z","msg":"open inbox","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.665Z","msg":"SQL channel job 20 (getNextExpiringMessage) succeeded in 16ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.666Z","msg":"SQL channel job 21 (getNextTapToViewMessageToAgeOut) succeeded in 17ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.690Z","msg":"SQL channel job 22 (getUnprocessedCount) succeeded in 32ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.690Z","msg":"SQL channel job 23 (resetAttachmentDownloadPending) succeeded in 29ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.696Z","msg":"getAllFromCache loaded 0 saved envelopes","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.908Z","msg":"websocket open","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.916Z","msg":"got request PUT /api/v1/queue/empty","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.921Z","msg":"MessageReceiver: finished processing messages after 'empty', now waiting for application","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.921Z","msg":"MessageReceiver: emitting 'empty' event","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"msg":"updater/start: Updates disabled - not starting new version checks","time":"2020-07-08T14:56:53.926Z","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.922Z","msg":"onEmpty: All outstanding database requests complete","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.924Z","msg":"GET https://textsecure-service.whispersystems.org/v1/certificate/delivery?includeUuid=true 200 Success","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.925Z","msg":"Next sender certificate refresh scheduled for 2020-07-09T14:56:53.925Z","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.926Z","msg":"refreshOurProfile","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.929Z","msg":"GET https://textsecure-service.whispersystems.org/v1/profile/[REDACTED]bae (unauth)","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:53.941Z","msg":"SQL channel job 26 (createOrUpdateItem) succeeded in 16ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:54.176Z","msg":"GET https://textsecure-service.whispersystems.org/v1/profile/[REDACTED]bae 200 Success","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:54.179Z","msg":"Setting sealedSender to ENABLED for conversation [REDACTED]07f","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:54.703Z","msg":"SQL channel job 27 (createOrUpdateItem) succeeded in 43ms","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:58.708Z","msg":"Upgrade message schema (with index): {\"done\":true,\"numProcessed\":0,\"fetchDuration\":3,\"upgradeDuration\":0,\"saveDuration\":0,\"totalDuration\":3}","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:58.708Z","msg":"Background migration complete. Stopping idle detector.","v":0}
{"name":"log","hostname":"kshapa.express.com","pid":7073,"level":30,"time":"2020-07-08T14:56:58.708Z","msg":"Stop idle detector","v":0}

Maybe the difference between distros is the version the Electron dependency. Signal (v1.34.3) with Electron v9.0.5 is working for me on Arch as expected once again.

Indeed, it is not working on Debian 10.2, and I have this :
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Signal/1.34.3 Chrome/80.0.3987.165 Electron/8.2.5 Safari/537.36 node/12.13.0 env/production

Works for me now too with Signal v1.34.1 and Electron v9.0.3 running Manjaro and XFCE.

Hi, I have installed signal-desktop like shown on https://signal.org/de/, i.e. not as snap.
It is not working for me with Ubuntu 20.04.1, Kernel: 5.4.0-40-generic x86_64, Desktop: Gnome 3.36.3, signal-desktop 1.34.4

Works on Signal/1.34.4 Chrome/80.0.3987.165 Electron/8.3.4

Working with ubuntu 20.04 signal 1.34.5

Can confirm it works here to

Thanks for fixing the issue!

Hi, I have installed signal-desktop like shown on https://signal.org/de/, i.e. not as snap.
It is not working for me with Ubuntu 20.04.1, Kernel: 5.4.0-40-generic x86_64, Desktop: Gnome 3.36.3, signal-desktop 1.34.4

Hi, I can add this information:

  • it works not, If I send me a notification to myself from the phone
  • it works, if I got another message (a red dot appears in the tray)

actual: 1.34.5

@speedy-10 Notifications are designed not to appear when you send messages to yourself. You sent it; you don't need to be notified!

I welcome the notification that the pictures arrived on the desktop, when I send them per "Notiz an mich" from the smartphone.

Was this page helpful?
0 / 5 - 0 ratings