nextcloud / nextcloud/desktop

[Bug]: Client opens when other programs open file dialogue

Closed
#7,073 1 comment 1 reaction 0 assignees View on GitHub
0. Needs triage
Dominant language
C++
Stars
3.9k
Forks
1k
Avg merge
1d 21h
Merged PRs (30d)
127

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

Opening the file dialogue in a program, e.g. Firefox or VS Code, opens the nextcloud client.

### Steps to reproduce

1. Have a nextcloud client installed but no user logged in and autostart disabled for the current linux user
2. Open file dialogue in VSCode or Firefox
3. The nextcloud client pops up, asking to log in

### Expected behavior

It shouldn't start

### Which files are affected by this bug

The executeable I guess

### Operating system

Linux

### Which version of the operating system you are running.

Plasma 6.1.4 on EndeavourOS Linux x86_64

### Package

Distro package manager

### Nextcloud Server version

not logged in

### Nextcloud Desktop Client version

3.13.3-1

### Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

### Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

### Are you using an external user-backend?

- [ ] Default internal user-backend
- [ ] LDAP/ Active Directory
- [ ] SSO - SAML
- [ ] Other

### Nextcloud Server logs

_No response_

### Additional info

This happened to me before an an Archlinux install and apparently it's a problem for [other distros and applications as well](https://forum.manjaro.org/t/vs-code-open-file-starts-nextcloud-desktop-client/158149/9).

Closing the client window will put it in background. **Terminating the client process will launch `dbus-:1.2-com.nextcloudgmbh.Nextcloud@4.service` again and again.**

The linked Manjaro issues suggests it's related to nextclouds D-BUS service.

Moving the file from /usr/share/dbus-1/services/com.nextcloudgmbh.Nextcloud.service to elsewhere helps as a workaround but I'm not sure it won't be put back when the client is updated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.