我有运行应用程序的脚本
#!/bin/bash
wine /opt/winbox.exe
文件夹
/home/myuser/scripts/winbox.sh
我为它创建了符号链接(symbolic link)
sudo ln -s /home/myuser/scripts/winbox.sh /usr/local/bin/winbox
但运行后
alt+f2 --> winbox
我有错误
Error when getting information for file '/home/myuser/winbox': No such file or directory
我在哪里犯了错误以及如何使用 alt+f2 运行脚本?
最佳答案
问题已解决。使用 gksudo 对话框设置指令
#!/bin/sh
exec 2>~/winbox.log
set -x
sh -c "gksudo wine /opt/winbox/winbox.exe"
关于linux - 使用 alt+f2 启动 shell 脚本 (debian/mate),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39048516/