desktop icon indicating copy to clipboard operation
desktop copied to clipboard

[Bug]: Icons vanishing on Win10/11

Open rsedlmeier opened this issue 1 year ago • 15 comments

⚠️ This issue respects the following points: ⚠️

Bug description

Once you give a syncronized folder an icon it disappears after some sync's.

Steps to reproduce

  1. On windows I define an icon for a folder which is synced into NC29
  2. Once a new item added and synced the icon is gone.
  3. We talk about an xxx,ico symbol displayed as the folder icon.

Expected behavior

it worked for years until NC 28.xxx or desktop client version 3.x??

Installation method

Community Manual installation with Archive

Nextcloud Server version

29

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database engine version

MariaDB

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

Upgraded to a MAJOR version (ex. 28 to 29)

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

What user-backends are you using?

  • [X] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "192.168.2.222",
            "aveon.ddns.net"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.3.4",
        "maintenance_window_start": 1,
        "overwrite.cli.url": "https:\/\/aveon.ddns.net\/cloud",
        "htaccess.RewriteBase": "\/cloud",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "filelocking.enabled": "true",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "0": {
            "host": "192.168.2.222",
            "port": 6379,
            "timeout": 0,
            "password": "32delta64"
        },
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "theme": "",
        "loglevel": 3,
        "log_type": "file",
        "logfile": "\/var\/log\/nextcloud\/cloud.log",
        "debug": false,
        "app_install_overwrite": [
            "admin_notifications",
            "dashboardcharts",
            "maps",
            "quicknotes",
            "whiteboard",
            "issuetemplate",
            "files_markdown",
            "documentserver_community",
            "integration_whiteboard",
            "mindmap_app",
            "ocsms",
            "epubreader",
            "caniupdate",
            "piwik",
            "facerecognition"
        ],
        "has_rebuilt_cache": true,
        "updater.release.channel": "stable",
        "default_phone_region": "DE",
        "mail_smtpsecure": "tls",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "twofactor_enforced": "false",
        "twofactor_enforced_groups": [
            "admin"
        ],
        "twofactor_enforced_excluded_groups": [],
        "allow_local_remote_servers": "true"
    }
}

List of activated Apps

ww-data@Aveon(5m):~/cloud $ php occ app:list
Enabled:
  - admin_audit: 1.19.0
  - admin_notifications: 1.0.2
  - bookmarks: 14.2.2
  - bruteforcesettings: 2.9.0
  - calendar: 4.7.11
  - circles: 29.0.0-dev
  - cloud_federation_api: 1.12.0
  - comments: 1.19.0
  - contacts: 6.0.0
  - contactsinteraction: 1.10.0
  - dashboard: 7.9.0
  - dav: 1.30.1
  - deck: 1.13.1
  - documentserver_community: 0.1.15
  - facerecognition: 0.9.51
  - federatedfilesharing: 1.19.0
  - federation: 1.19.0
  - files: 2.1.0
  - files_antivirus: 5.5.6
  - files_automatedtagging: 1.19.0
  - files_downloadlimit: 2.0.0
  - files_external: 1.21.0
  - files_pdfviewer: 2.10.0
  - files_reminders: 1.2.0
  - files_sharing: 1.21.0
  - files_trashbin: 1.19.0
  - firstrunwizard: 2.18.0
  - gptfreeprompt: 1.0.2
  - gpxpod: 5.0.18
  - integration_openai: 2.0.3
  - integration_openproject: 2.6.3
  - integration_paperless: 1.0.3
  - issuetemplate: 0.7.0
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - maps: 1.4.0
  - nextcloud_announcements: 1.18.0
  - notes: 4.10.0
  - notifications: 2.17.0
  - oauth2: 1.17.0
  - onlyoffice: 9.3.0
  - password_policy: 1.19.0
  - passwords: 2024.7.20
  - phonetrack: 0.8.1
  - photos: 2.5.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - quicknotes: 0.8.23
  - recognize: 7.0.3
  - recommendations: 2.1.0
  - related_resources: 1.4.0
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - spreed: 19.0.6
  - stt_helper: 1.1.1
  - support: 1.12.0
  - survey_client: 1.17.0
  - suspicious_login: 7.0.0
  - tasks: 0.16.0
  - text: 3.10.1
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - updatenotification: 1.19.1
  - user_migration: 6.0.0
  - user_status: 1.9.0
  - user_usage_report: 1.13.1
  - viewer: 2.3.0
  - webapppassword: 24.6.0
  - welcome: 1.1.0
  - workflow_pdf_converter: 1.14.0
  - workflowengine: 2.11.0
Disabled:
  - activity: 2.21.1 (installed 2.14.3)
  - backup-master: 1.0.0
  - carnet: 0.25.4 (installed 0.25.4)
  - dashboardcharts: 0.1.3 (installed 0.1.3)
  - diary: 0.0.11 (installed 0.0.11)
  - encryption: 2.17.0
  - epubreader: 1.4.7
  - event_update_notification: 2.4.0 (installed 2.4.0)
  - files_mindmap: 0.0.30 (installed 0.0.30)
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - files_versions: 1.22.0 (installed 1.12.0)
  - geoblocker: 0.5.14 (installed 0.5.14)
  - guests: 3.1.0 (installed 3.1.0)
  - integration_deepl: 1.1.3 (installed 1.1.3)
  - integration_moodle: 1.0.2 (installed 1.0.2)
  - integration_whiteboard: 0.0.14 (installed 0.0.14)
  - login_notes: 1.5.0 (installed 1.5.0)
  - music: 2.0.0 (installed 2.0.0)
  - notify_push: 0.6.12 (installed 0.6.12)
  - ocsms: 2.2.0 (installed 2.2.0)
  - officeonline: 2.2.1 (installed 2.2.1)
  - pdf_downloader: 1.2.2 (installed 1.2.2)
  - quota_warning: 1.19.0 (installed 1.19.0)
  - richdocuments: 8.4.3 (installed 8.4.3)
  - stt_whisper: 1.0.8 (installed 1.0.8)
  - systemtags: 1.19.0 (installed 1.11.0)
  - twofactor_totp: 11.0.0-dev
  - user_ldap: 1.20.0
  - weather_status: 1.9.0 (installed 1.1.0)
  - whiteboard: 0.0.3 (installed 0.0.3)
  - workflow_script: 1.14.1 (installed 1.14.1)

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

rsedlmeier avatar Jul 12 '24 21:07 rsedlmeier

I am also having this issue since updating to the latest version of the desktop client (3.13.2). It seems to work normally when rolled back to 3.12.7.

rhmkt avatar Jul 19 '24 00:07 rhmkt

Right, it's an issue with 3.13.x It's quite reproducible:

  1. define a symbol (.ico) for a folder, so you see the folder's picture
  2. drag and drop a file into
  3. wait for sync
  4. afterwards the symbol pic is gone

rsedlmeier avatar Jul 19 '24 01:07 rsedlmeier

I'm also having this issue with the latest desktop client (3.13.2) and it's quite annoying because folder icon help me to find desired directories way faster.

dom6770 avatar Jul 29 '24 13:07 dom6770

Does anyone care about this bug?

rsedlmeier avatar Jul 30 '24 11:07 rsedlmeier

  • Is this with VFS enabled?
  • Are the custom folder icons located within the synced folder structure or elsewhere?

joshtrichards avatar Aug 17 '24 17:08 joshtrichards

@joshtrichards I do not have VFS enabled. I thought at first that having the icon in the sync structure was the problem (it had always been there in the past) but I moved it outside of the folder structure and it still had the issue.

rhmkt avatar Aug 17 '24 17:08 rhmkt

  • Is this with VFS enabled?
  • Are the custom folder icons located within the synced folder structure or elsewhere?

No, VFS is not enabled, and the icons are not inside the synced folder structure as I use the icons from Windows .dll files, like %SystemRoot%\System32\SHELL32.dll.

The information about the folder icon is stored in the desktop.ini file:

[.ShellClassInfo]
IconResource=C:\Windows\System32\SHELL32.dll,15
[ViewState]
Mode=
Vid=
FolderType=Generic

dom6770 avatar Aug 17 '24 17:08 dom6770

The issue remains open, even with the new client.desktop 3.14.1 and it's still annoying,

And regardless of the source of the .ico file, they are being deleted once a sync performed.

If it helps, here's the content of the Desktop.ini in a sub folder:

[.ShellClassInfo] IconResource=C:\Users\rsedl\Nextcloud\Bilder\Symbole\pics.ico,0

Witch is correct and defined manually by the user on Win10,

As mentioned above, it worked well until version 3.11 and afterwards the icons get lost.

Regards

rsedlmeier avatar Sep 30 '24 10:09 rsedlmeier

In 3.15.3 this manifests itself in a new way for me as the folders even lose their default icon from windows "Documents", "Pictures" etc. If I restore then restart explorer.exe nothing changes all is OK. If i restore then restart nextcloud all icons gone from the synced folders.

Correct look Image

After restart Nextcloud Image

The only folder that is not a Windows native folder is "Programs" which is showing the same behaviour. As you can see the status icons of synced or not is also not showing correctly.

Tried running nextcloud setup and do a repair but that didnt work.

  • Windows 11 24H2 Build 26100.2894
  • Nextcloud 3.15.3

GitPullNow avatar Jan 19 '25 15:01 GitPullNow

Yes, and it is still anoying this issue is not been addressed.

You can fall back to 3.12.7 and everything is fine.

rsedlmeier avatar Jan 19 '25 19:01 rsedlmeier

I think it should work with 3.12.8 too.

But I'd rather prefer that someone would actually tackle this issue, and solve it. Unfortunately, I don't have the coding skills to do it.

dom6770 avatar Jan 20 '25 16:01 dom6770

Is there an ETA on a fix for this? We are at version 3.16.0 now and using the older version 3.12.7 is not going to last long as a viable option.

GitPullNow avatar Mar 12 '25 20:03 GitPullNow

Can we at least get a response of any kind?

GitPullNow avatar Mar 20 '25 20:03 GitPullNow

Any update? Is this still present in the latest release?

dom6770 avatar Jun 16 '25 15:06 dom6770

Yes this is not resolved. Just tested it by restoring the icons and naming etc using Nextcloud Desktop Client verison 3.16.6. Results are the same after a reboot of my system the icons are gone again.

GitPullNow avatar Jun 19 '25 13:06 GitPullNow

Full reinstall of Windows including clean install of Nextlcoud Desktop Client. Same issue.

GitPullNow avatar Aug 05 '25 08:08 GitPullNow

This is still an issue in 3.17.1.

castigo86 avatar Aug 24 '25 20:08 castigo86

This has been an issue forever I really wish they'd try and fix this, I have folders on my desktop to organize things and the icons is a big help in knowing whats for what at a glance

Nypheena avatar Sep 23 '25 03:09 Nypheena

with classical sync, there are some limitations from the platform and a game to be the ones with most spaces in the icon IDs see https://github.com/nextcloud/desktop/blob/master/shell_integration/windows/WinShellExt.wxs.in#L34-L38 if we would reproduce the issue, it would have been long fixed we will need more active help

  • are you using classical sync or virtual files ?
  • do you run other cloud sync software ?
  • are you able to share some logs ?

mgallien avatar Sep 23 '25 09:09 mgallien

Clsassic sync on windows to nextcloud server

Come on guys, this issue is well reproduced by:

  • give an synced folder an icon on windows
  • look at the folder, does it persent the icon?
  • on windows: move a simple file into this folder
  • wait for sync with nextcloud
  • is the icon of the folder still there or not ?
  • it isnt

*) it worked until desktop version 3.12

rsedlmeier avatar Sep 23 '25 10:09 rsedlmeier

just tried this in a VM with the latest commit on master and observed the following:

  • When customising the folder icon, Windows sets the R (read-only) file system attribute (but doesn't touch the ACL)
  • Explorer will only read the desktop.ini if either the R or S (system) attribute is set (The Old New Thing: Why is the readonly property for folders so strange?)
  • During a sync run the client changes the file system permission to match the state from the server -- since the folder should be read/write, the R attribute is removed and ACLs will be adapted if needed
  • With the R attribute absent the icon is now "gone", even though the contents of the desktop.ini stayed the same
  • Re-adding that attribute manually after that lets Explorer display the folder icon again

from a CMD shell, this was the state before a sync run:

C:\Users\jyrki\Nextcloud>attrib "test folder with icon"
     R               C:\Users\jyrki\Nextcloud\test folder with icon

C:\Users\jyrki\Nextcloud>icacls "test folder with icon"
test folder with icon NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
                      BUILTIN\Administrators:(I)(OI)(CI)(F)
                      DESKTOP-H08FQ7I\jyrki:(I)(OI)(CI)(F)

Successfully processed 1 files; Failed processing 0 files

C:\Users\jyrki\Nextcloud>type "test folder with icon/desktop.ini"
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,13
[ViewState]
Mode=
Vid=
FolderType=Generic

after changing the directory contents, only the state of the R attribute changed, the desktop.ini is still the same one:

C:\Users\jyrki\Nextcloud>attrib "test folder with icon"
                     C:\Users\jyrki\Nextcloud\test folder with icon

C:\Users\jyrki\Nextcloud>icacls "test folder with icon"
test folder with icon NT AUTHORITY\SYSTEM:(I)(OI)(CI)(F)
                      BUILTIN\Administrators:(I)(OI)(CI)(F)
                      DESKTOP-H08FQ7I\jyrki:(I)(OI)(CI)(F)

Successfully processed 1 files; Failed processing 0 files

C:\Users\jyrki\Nextcloud>type "test folder with icon/desktop.ini"
[.ShellClassInfo]
IconResource=C:\WINDOWS\System32\SHELL32.dll,13
[ViewState]
Mode=
Vid=
FolderType=Generic

finally, re-adding the R attribute to the folder makes Explorer display the icon again:

C:\Users\jyrki\Nextcloud>attrib +r "test folder with icon"

nilsding avatar Sep 23 '25 11:09 nilsding

This issue was first posted 16 months ago! Many contributions on sharing info and details on the issue by multiple users. What information do the devs need in order to fix this issue? Can we provide anything else to get this issue moving?

GitPullNow avatar Nov 13 '25 13:11 GitPullNow