fix: sudo prompt name

pull/401/head
starknt 2024-11-25 16:32:47 +08:00
parent 329fbf7fbe
commit c1b481d9a6
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ const executor = {
const loopbackPath = extraPath.getEnableLoopbackPath()
const options = {
name: '设置loopback',
name: 'EnableLoopback',
}
return new Promise((resolve, reject) => {
sudoPrompt.exec(

View File

@ -7,7 +7,7 @@ import log from '../../utils/util.log'
export default {
open () {
const options = {
name: '设置loopback',
name: 'EnableLoopback',
icns: process.platform === 'darwin' ? join(__static, 'icon.icns') : undefined,
env: { PARAM: 'VALUE' },
}