File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 33
33
process . type === 'browser'
34
34
) {
35
35
if ( process . platform === 'linux' ) {
36
+ const isLibsecretInstalled = ( ) => {
37
+ try {
38
+ process . dlopen ( { exports : { } } , 'libsecret-1.so.0' ) ;
39
+ return true ;
40
+ } catch ( err : any ) {
41
+ return err && err . message ?. includes ( 'did not self-register' ) ;
42
+ }
43
+ } ;
44
+
36
45
// For Linux users with drivers that are avoided by Chromium we disable the
37
46
// GPU check to attempt to bypass the disabled WebGL settings.
38
47
app . commandLine . appendSwitch ( 'ignore-gpu-blacklist' , 'true' ) ;
47
56
*
48
57
* @see {@link https://github.com/microsoft/vscode/issues/185212#issuecomment-1593271415 }
49
58
*/
50
- if ( app . commandLine . hasSwitch ( 'password-store' ) === false ) {
59
+ if (
60
+ app . commandLine . hasSwitch ( 'password-store' ) === false &&
61
+ isLibsecretInstalled ( )
62
+ ) {
51
63
app . commandLine . appendSwitch ( 'password-store' , 'gnome-libsecret' ) ;
52
64
}
53
65
}
You can’t perform that action at this time.
0 commit comments