element-desktop icon indicating copy to clipboard operation
element-desktop copied to clipboard

The --hidden command is not working anymore

Open tijder opened this issue 8 years ago • 6 comments

Description

The --hidden command is not working anymore.

Steps to reproduce

Start riot with: "/usr/bin/riot-desktop" --hidden expected riot to started in tray but it also showed the screen.

Version information

  • Platform: desktop

  • OS: Arch Linux (antergos)

  • Version: 0.12.6

tijder avatar Oct 11 '17 16:10 tijder

Cannot reproduce, none of that code has changed for a good few versions, probably some weirdness with Electron :(

t3chguy avatar Oct 11 '17 16:10 t3chguy

I have the same thing on Windows fwiw, on one machine its happily started in tray, on another machine it is not

t3chguy avatar Oct 11 '17 16:10 t3chguy

The --hidden flag doesn't work for me, either. I'm on Ubuntu 20.04 (GNOME 3.36.1) and installed the Snap package. My startup command looks as follows (I've just appended the --hidden flag to the command present in the default .desktop file):

env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/riot-web_riot-web.desktop /snap/bin/riot-web --hidden %U

The Riot window is still opened after startup – although in a "broken" state as reported in vector-im/element-web#6961.

Screenshot:

Bildschirmfoto von 2020-05-08 14-37-57

salim-b avatar May 08 '20 12:05 salim-b

Is this still the case with later versions of Electron?

t3chguy avatar Jul 12 '20 19:07 t3chguy

Unsure if related, but in the last bunch of months, when I start my computer up (Ubuntu Linux) and Element starts with it, it is in the system tray minimised (--hidden flag seems to work), however when I click on Element in my side-bar application with the intent to maximise the minimised application, it starts a second instance of Element. And this only happens until I close the instance of Element that started at boot.

This MAY be related to the --hidden launch parameter, as when I launch Element from my side-bar it does not invoke the --hidden launch parameter at all.

BloodyIron avatar Jun 24 '22 18:06 BloodyIron

FYI, testing this today it seems to work fine.

Half-Shot avatar Oct 18 '24 09:10 Half-Shot