File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 3333 process . type === 'browser'
3434) {
3535 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+
3645 // For Linux users with drivers that are avoided by Chromium we disable the
3746 // GPU check to attempt to bypass the disabled WebGL settings.
3847 app . commandLine . appendSwitch ( 'ignore-gpu-blacklist' , 'true' ) ;
4756 *
4857 * @see {@link https://github.com/microsoft/vscode/issues/185212#issuecomment-1593271415 }
4958 */
50- if ( app . commandLine . hasSwitch ( 'password-store' ) === false ) {
59+ if (
60+ app . commandLine . hasSwitch ( 'password-store' ) === false &&
61+ isLibsecretInstalled ( )
62+ ) {
5163 app . commandLine . appendSwitch ( 'password-store' , 'gnome-libsecret' ) ;
5264 }
5365 }
You can’t perform that action at this time.
0 commit comments