nextcloud / nextcloud/desktop

Remove state from config file

Open
#8,668 1 comment 0 reactions 0 assignees View on GitHub
help wanted
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

As requested in #1666, here is a new issue regarding misplaced state information in the config file, since `geometry` is still in there.

### Steps to reproduce

~ rg geometry ~/.config/Nextcloud/nextcloud.cfg
165:geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\xff\xff\xff\xda\0\0\a\x7f\0\0\x3\xf1\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x3\xf1\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\a\x7f\0\0\x3\xf1)

### Expected behavior

According to [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/latest/), this information should go to `$XDG_STATE_HOME`, e.g. to `$HOME/.local/state`.

### Which files are affected by this bug

~/.config/Nextcloud/nextcloud.cfg

### Operating system

Linux

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

NixOS

### Package

Distro package manager

### Nextcloud Server version

31

### Nextcloud Desktop Client version

3.17.1

### 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 Disabled

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

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

### Nextcloud Server logs

```shell

```

### Additional info

_No response_

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.