[Bug]: `--background` not working
- Dominant language
- C++
- Stars
- 3.9k
- Forks
- 1k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 123
Description
### ⚠️ Before submitting, please verify the following: ⚠️
- [X] This is a **bug**, not a question or a configuration issue.
- [X] This issue is **not** already reported on Github (I've searched it).
- [X] Nextcloud Server and Desktop Client are **up to date**. See [Server Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) and [Desktop Releases](https://nextcloud.com/install/#install-clients) for supported versions.
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/)
### Bug description
I am autostarting nextcloud on linux with --background, but it still opens the window and does not minimize to tray.
### Steps to reproduce
1. Start nextcloud client with --background
### Expected behavior
Well, that the app does not show up on start or when using --background.
### Which files are affected by this bug
?
### Operating system
Linux
### Which version of the operating system you are running.
Arch with Gnome as DE
### Package
Distro package manager
### Nextcloud Server version
-
### Nextcloud Desktop Client version
2:3.9.0-2
### Is this bug present after an update or on a fresh install?
Fresh desktop client install
### Are you using the Nextcloud Server Encryption module?
Encryption is Enabled
### Are you using an external user-backend?
- [ ] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other
### Nextcloud Server logs
```shell
?
```
### Additional info
[background_bug.zip](https://github.com/nextcloud/desktop/files/12138935/background_bug.zip)
Contributor guide
Assessment
This issue has not been assessed yet.