mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 07:36:12 +08:00
Fix default mail client detection on Linux.
This commit is contained in:
parent
e04c79cfc7
commit
86b6cee894
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class LaunchServicesLinux
|
|||
throw new Error "isRegisteredForURLScheme is async, provide a callback" unless callback
|
||||
exec "xdg-mime query default x-scheme-handler/#{scheme}", (err, stdout, stderr) ->
|
||||
return callback(err) if callback and err
|
||||
callback(null, stdout is 'nylas.desktop')
|
||||
callback(stdout.trim() is 'nylas.desktop')
|
||||
|
||||
resetURLScheme: (scheme, callback) ->
|
||||
exec "xdg-mime default thunderbird.desktop x-scheme-handler/#{scheme}", (err, stdout, stderr) ->
|
||||
|
|
Loading…
Reference in a new issue