-
Notifications
You must be signed in to change notification settings - Fork 188
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
chore(compass): explicitly set secret store to gnome-libsecret on linux if not set #5958
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,26 @@ if ( | |
// type `browser` indicates that we are in the main electron process | ||
process.type === 'browser' | ||
) { | ||
if (process.platform === 'linux') { | ||
// For Linux users with drivers that are avoided by Chromium we disable the | ||
// GPU check to attempt to bypass the disabled WebGL settings. | ||
app.commandLine.appendSwitch('ignore-gpu-blacklist', 'true'); | ||
|
||
/** | ||
* Default password store detection in Chromium relies on pre-defined set of | ||
* values for XDG_CURRENT_DESKTOP env var. Even if the store is installed | ||
* correctly, Chromium might fail to detect that. To try to work around that | ||
* we explicitly set password-store to gnome-libsecret for any linux | ||
* platform (we list gnome-keyring as a dependency for all compass | ||
* installers on linux) | ||
* | ||
* @see {@link https://github.com/microsoft/vscode/issues/185212#issuecomment-1593271415} | ||
*/ | ||
if (app.commandLine.hasSwitch('password-store') === false) { | ||
app.commandLine.appendSwitch('password-store', 'gnome-libsecret'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are there any other factors we should be taking into account when setting this default, e.g. specific values of $XDG_CURRENT_DESKTOP or whether the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a good point! I was thinking about checking that XDG_ var is not in the "supported" list, but it seemed like a mess to maintain. I like the idea of checking for libsecret! One thing I want to do first is to check what exactly happens when you set this in the environment where it's not supported. If it's not different from not setting it at all I think, just from the perspective of having less logic to maintain, I would prefer not to do any extra checks, but please tell me if this doesn't sound right to you 🙂 |
||
} | ||
} | ||
|
||
// Name and version are setup outside of Application and before anything else | ||
// so that if uncaught exception happens we already show correct name and | ||
// version | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like it's something we want to set as early as possible, for consistency moved this and the new
appendSwitch
call to the setup-* file that is the first thing that runs in the app