-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have to login with Github on every launch for sync to work. #426
Comments
Same problem here! 🤚🏼 It's annoying! 😭 |
Edit |
@karuboniru Attempted to do that, but it seems that the option password-store is disabled. The option has no effect Aside from that, after some testing found out that it does work when passed as an argument when launching the flatpak like this
|
I believe it is false alarm since the option in file worked for me. |
Did not help for me. Tried as a CLI argument and in |
Using |
Okay, this is very strange. Now I can use |
I needed to sign in once with |
Using "basic" password option is a security vulnerability https://code.visualstudio.com/docs/editor/settings-sync#_not-recommended-configure-basic-text-encryption |
The issue is still present today, have to log in to Github every time I restart VScode. Tried all the workaround and nothing works. |
I ended up changing to Bluefin image of Fedora Silverblue. It has non-flatpak vscode built-in with distrobox, so idk if the issue still exists. |
Yes, the issue is still exist |
Im having the same issue with fedora silverblue 39 is there any update to this ? |
just use the bluefin image, or install it inside a distrobox, but i think silverblue has toolbox by
then you can just run it from command line or create a .desktop file, or if you are using distrobox you can use the built in distrobox-export command. |
I just layer vscode using rpm ostree. I know this is not the best method, but at least all the issues gone. |
im using toolbox from beginning and i had installed gnome-keyring and libsecret and for some reason its still not working i followed all the steps that you mentioned |
@mdrokz it might require different steps on toolbox maybe? i use distrobox. |
Yeah, I am pretty sure this just influences the race condition but does not fix it, it still hangs sometimes. The only proper workaround for me was to use |
Yeah maybe thanks if you figure it out let us know :) I will also try to find a solution. |
@mdrokz Ok, I checked. For toolbox:
toolbox create devbox This automatically used the image
toolbox enter devbox
sudo dnf install gnome-keyring Also had to install sudo dnf install libsecret And done, it works. Just make sure everything is installed. If you are not in the container you can start vscode directly with: toolbox run --container devbox code But I have noticed an issue with toolbox: So I found this issue on github: containers/toolbox#291
toolbox enter devbox
sudo dnf install flatpak-xdg-utils
sudo rm -f /usr/bin/xdg-open Then linked the sudo ln -s /usr/bin/flatpak-xdg-open /usr/bin/xdg-open And now everything works! Also as bonus, you can add this option to vscode settings json: "window.titleBarStyle": "custom" It will make the titlebar look nicer |
Hi sorry for the late reply, yes I followed all of these steps in the toolbox before for some reason it isn't working for me, how did you install vscode in the toolbox ? Also thanks for taking the time to find the browser fix I will try that. |
@mdrokz https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions What is the problem you're having exactly? |
Hi @DeepDoge sorry for the late reply, I just restarted my PC and it seems to be working properly now thanks for all the help! I appreciate it. |
I have the same issue again, it worked fine before. :/ Does anyone know a workaround? I open and close VSCode frequently, having to login every time isn't that fun. |
no official workaround by the team until now? |
After four hours of hacking on this I have a workaround. This is specifically for using git inside of the VSCode Flatpak. It does not seem to work for Github sign in or settings sync etc. I suspect that there is no write permission from inside the Flatpak container so those credentials will never be saved to the keyring. I'm on Linux Mint which uses libsecret and Seahorse by default. The git credential helper program is by default: Flatpak by default does not allow direct access to the /usr directory. Flatpak - Sandbox Permissions Instead the /usr directory can be mounted under /run/host which seems to be the case with this VSCode. This explains the file not found error. You could update git to point to What I did was copy the Lastly open a terminal and navigate to any git directory that is linked to the server you use and Hope that helps someone. Cost me four hours and it's not a perfect solution. May still switch back to just manually downloading the official release. |
@Tnthr Couldn't you just include that bin in the flatpak? Maybe it is already provided by the flatpak manifest as dep. |
I’m sure you could but I’ve never worked with flatpak before so I don’t know how that would look without a bit more research. My initial attempt to map the directory via cli options failed, I believe, because /usr is a reserved directory according to the flatpak reference linked above. But I didn’t dig much further or look into repackaging the entire program. The easier solution at the moment was to simply copy the bin to an accessible location. The next problem would be to see the files that are modified by libsecret and give write access to those files. That, I think, might be the fix for this entire issue tho. But again more research is required to figure out how to allow that access inside the container and securely. |
I fixed the issue on Fedora 41 KDE 6.2 by following the guide.
flatpak permission:
These permission should be provided by default from the flathub manifest. |
For the sake of documentation I tried setting I hope we get a more official solution down the line. |
@samuel-garmany flathub/com.vscodium.codium#389 Maybe they shoud adopt this? |
I don't know a ton about flatpak development but if that's the fix for vscodium it should be trivial to use it here too right? |
Seems to work, nice find! |
I have to login with Github on every launch for Copilot, and VSCode's Sync to work.
Might be related: StackOverflow - "Sign in to GitHub" prompt to enable GitHub Copilot on every VS Code launch
The text was updated successfully, but these errors were encountered: