sirpunzi
(Sebastian)
July 30, 2025, 6:04pm
1
Thanks for your efforts on getting the COSMIC Desktop at this early stage working on Fedora. I have a question regarding the integration of the GNOME Keyring with the desktop. By default, the GNOME keyring is shipped along with COSMIC and in theory it should start automatically when logging in.
The relevant files are under /etc/xdg/autostart (gnome-keyring-*.desktop) which systemd translates to systemd units. The issue there is, that it does not start as the conditions are not met. More specifically the following parts in these default files are the issue:
...
Comment=GNOME Keyring: SSH Agent
Exec=/usr/bin/gnome-keyring-daemon --start --components=ssh
OnlyShowIn=GNOME;Unity;MATE;
...
This is from the one for ssh. But its the same for all keyring components.
Shouldn’t it be OnlyShowIn=GNOME;Unity;MATE;COSMIC;? In my testing this fixed it and the integration works flawlessly
Where do I report this? Bugzilla
Cheers,
Sebastian
I think you should report it upstream to Cosmic, and/or to the Cosmic maintainers in Fedora- looks like that is the Rust SIG, you could find them on Matrix chat.fedoraproject.org
sirpunzi
(Sebastian)
August 21, 2025, 4:52am
4
For anyone running into this:
cosmic-session has been adapted to start the components if gnome-keyring-daemon is running. See Start GNOME Keyring as part of session by sebastian-xyz · Pull Request #141 · pop-os/cosmic-session · GitHub
A bit of help please, trying to apply the changes mentioned in the PR to my running Fedora 42 with COSMIC but no luck
What I am missing?
opened 02:16AM - 08 Jul 23 UTC
bug
upstream
linux
upstream-issue-linked
chromium
secret-storage
Does this issue occur when all extensions are disabled?: Yes
I referred to ht… tps://code.visualstudio.com/docs/editor/settings-sync#_troubleshooting-keychain-issues
This is the error part of my log after running `code-insiders --verbose --vmodule="*/components/os_crypt/*=1"`:
```
[314774:0707/210405.156953:INFO:CONSOLE(627)] "%cTRACE color: #888 [mainThreadSecretState] Setting password for vscode.github-authentication extension: github.auth", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210405.157113:INFO:CONSOLE(627)] "%cTRACE color: #888 [NativeSecretStorageService] Notifying user that secrets are not being stored on disk.", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210405.158116:INFO:CONSOLE(627)] "%cTRACE color: #888 DialogService#prompt An OS keyring couldn't be identified for storing the encryption related data in your current desktop environment.", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.420345:INFO:CONSOLE(627)] "%cTRACE color: #888 [secrets] encrypting secret for key: {"extensionId":"vscode.github-authentication","key":"github.auth"}", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[main 2023-07-08T02:04:09.420Z] [EncryptionMainService] Encrypting value.
[main 2023-07-08T02:04:09.422Z] Error: Error while encrypting the text provided to safeStorage.encryptString. Encryption is not available.
at e.$U2b.encrypt (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:42:11004)
at Object.call (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:25:4844)
at R.s (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:23:5128)
at R.q (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:23:4644)
at o.value (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:23:4051)
at y.w (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:18:1906)
at y.x (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:18:1976)
at y.fire (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:18:2192)
at o.value (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:16:38681)
at y.w (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:18:1906)
at y.fire (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:18:2123)
at o.value (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:16:38875)
at y.w (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:18:1906)
at y.fire (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:18:2123)
at se (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:16:41018)
at IpcMainImpl.f (/opt/visual-studio-code-insiders/resources/app/out/vs/code/electron-main/main.js:19:96358)
at IpcMainImpl.emit (node:events:513:28)
at EventEmitter.<anonymous> (node:electron/js2c/browser_init:2:80979)
at EventEmitter.emit (node:events:513:28)
[314774:0707/210409.425211:INFO:CONSOLE(627)] "%c ERR color: #f33 Error: Error while encrypting the text provided to safeStorage.encryptString. Encryption is not available.", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.425442:INFO:CONSOLE(627)] "%cTRACE color: #888 Settings Sync: Getting accounts for github", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.425641:INFO:CONSOLE(627)] "%c INFO color: #33f Settings Sync: Updated current session 8103a56381b60bac", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.425835:INFO:CONSOLE(627)] "%cTRACE color: #888 Settings Sync: Getting accounts for github", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.426026:INFO:CONSOLE(627)] "%cTRACE color: #888 Settings Sync: Updated accounts for github", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.426214:INFO:CONSOLE(627)] "%cTRACE color: #888 Settings Sync: Getting accounts for microsoft", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.426428:INFO:CONSOLE(627)] "%cTRACE color: #888 Settings Sync: Updated accounts for github", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.426630:INFO:CONSOLE(627)] "%cTRACE color: #888 Settings Sync: Getting accounts for microsoft", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.426816:INFO:CONSOLE(627)] "%cTRACE color: #888 Settings Sync: Updated accounts for microsoft", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.426981:INFO:CONSOLE(627)] "%cTRACE color: #888 Settings Sync: Updating the token for the account Android789515", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.427124:INFO:CONSOLE(627)] "%cTRACE color: #888 Settings Sync: Token updated for the account Android789515", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.427693:INFO:CONSOLE(627)] "%cTRACE color: #888 Settings Sync: Updated accounts for microsoft", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.427861:INFO:CONSOLE(627)] "%cTRACE color: #888 Settings Sync: Updating the token for the account Android789515", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
[314774:0707/210409.428010:INFO:CONSOLE(627)] "%cTRACE color: #888 Settings Sync: Token updated for the account Android789515", source: vscode-file://vscode-app/opt/visual-studio-code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (627)
```
Version: 1.81.0-insider
Commit: ad791ef3d26b99963da31636af697afd86575435
Date: 2023-07-07T19:47:36.821Z
Electron: 22.3.14
ElectronBuildId: 21893604
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 6.4.1-arch2-1
I have gnome-keyring installed and it's not using it for some reason. Must be the update to 1.80.
Manually configuring the keyring to use results in this:
```
code-insiders --password-store="gnome"
Warning: 'password-store' is not in the list of known options, but still passed to Electron/Chromium.
```
It seems to work.
I figured this is a bug since I had gnome-keyring installed, it wasn't being used, and I had to manually configure it.
sirpunzi
(Sebastian)
August 25, 2025, 5:02am
6
Are you using the flatpak version? Then the path to the argv.json might be different
Using the RPM version not the flatpak
“password-store”: “gnome-libsecret”,
sudo dnf list | grep ^code
Updating and loading repositories:
Repositories loaded.
code.x86_64 1.103.2-1755709837.el8 @commandline
sirpunzi
(Sebastian)
August 28, 2025, 4:40am
8
Strange. For me it works.
Have you checked that the daemon itself is running? systemctl –user status gnome-keyring-daemon or systemctl –user is-activ gnome-keyring-daemon
Does this help: Update keyring in start-cosmic by ligenix · Pull Request #142 · pop-os/cosmic-session · GitHub
Indeed strange. Matter a fact yesterday I created a fresh Fedora 42 virtual machine and installed COSMIC from ~COSMIC Epoch
Checking `ls /run/user/$(id -u)/keyring` without modifying anything only control was listed.
What you pointed out about /etc/xdg/autostart/gnome-keyring* needing to include COSMIC in the OnlyShowIn made the change to include ssh and pkcs11.
The default service state is disabled for gnome-keyring-daemon.service, then I enabled and started, but not helping, vscode continues complaining that the OS keyring couldn’t be identified.
Also, in the PR142 you referenced, Update keyring in start-cosmic by ligenix · Pull Request #142 · pop-os/cosmic-session · GitHub indeed SSH_AUTH_SOCK env variable is missing, which also was causing me problems when doing remote SSH with vscode and the git credentials.
Ended up applying it as workaround in start-cosmic to set the SSH_AUTH_SOCK env.
sirpunzi
(Sebastian)
August 28, 2025, 7:00pm
10
Did you also set OnlyShowIn for secrets as this the one you need but you only mentioned pkcs11 and ssh🙂
Correct, `OnlyShowIn` was also updated for secrets. Reviewed again, still no luck.
sirpunzi
(Sebastian)
August 31, 2025, 12:06pm
12
Can you check whether the keyring is unaocked? If it is I’m out of ideas🥴