Desktop Entry 文件建立程序启动图标的问题
Tofloor
poster avatar
murphey
deepin
2020-01-03 01:12
Author
我用文字编辑器建立的文件内容如下,加上可执行权限后,双击直接显示终端窗口,并不启动程序。单独在终端窗口用 sudo wine /home/sh/Downloads/setup.exe是可以运行的。
请问是哪里不对?百科 https://wiki.deepin.org/wiki/Desktop_Entry_%E6%96%87%E4%BB%B6 也看过了。。。

[Desktop Entry]
Exec=/usr/bin/sudo /usr/bin/wine /home/sh/Downloads/setup.exe
GenericName=SH MIS
GenericName[zh_CN]=信息管理系统
Name=SHMIS
Name[zh_CN]=信息管理系统
StartupNotify=false
Terminal=true
Type=Application
Icon=wps-office-etmain
Categories=Application
X-Deepin-CreatedBy=Launcher
X-Deepin-AppID=shmis



Reply Favorite View the author
All Replies
avatar
走钢丝
deepin
2020-01-03 01:17
#1
exec 项最开始加 wine
Reply View the author
avatar
murphey
deepin
2020-01-03 01:30
#2
https://bbs.deepin.org/post/187620
exec 项最开始加 wine

sudo 加到哪里?在终端没有sudo,程序就打不开。。。
Reply View the author
avatar
murphey
deepin
2020-01-03 01:32
#3
我写成 wine /home/sh/Downloads/setup.exe 也不行
Reply View the author
avatar
走钢丝
deepin
2020-01-03 01:54
#4
https://bbs.deepin.org/post/187620
我写成 wine /home/sh/Downloads/setup.exe 也不行

不知道你这样搞是干啥的,不过按说这样是可以的。。

另外,你安装了 wine 4.x 后,可以在 exe 文件右键-打开方式-选择默认程序-选择 wine windows program loader,然后就可以双击打开了。。

Reply View the author
avatar
murphey
deepin
2020-01-03 02:07
#5
https://bbs.deepin.org/post/187620
不知道你这样搞是干啥的,不过按说这样是可以的。。

另外,你安装了 wine 4.x 后,可以在 exe 文件右键- ...

我是一套net4开发的软件,想在linux系统运行,现在装的是32位系统,电脑性能不行。
Reply View the author
avatar
murphey
deepin
2020-01-03 02:11
#6
https://bbs.deepin.org/post/187620
不知道你这样搞是干啥的,不过按说这样是可以的。。

另外,你安装了 wine 4.x 后,可以在 exe 文件右键- ...

我用root用户登录,右键exe文件,用wine打开能够运行,但速度太慢了。。。也不想让用户运行在root模式下
Reply View the author
avatar
走钢丝
deepin
2020-01-03 02:40
#7
https://bbs.deepin.org/post/187620
我用root用户登录,右键exe文件,用wine打开能够运行,但速度太慢了。。。也不想让用户运行在root模式下 ...

可以选择 dotnet core 下的 gui 框架(github 搜下有不少)进行开发,不要用 net 4。
发布的时候选择对应平台发布,然后再打包,应该不需要 wine 就可以运行。
Reply View the author
avatar
murphey
deepin
2020-01-03 15:45
#8
https://bbs.deepin.org/post/187620
可以选择 dotnet core 下的 gui 框架(github 搜下有不少)进行开发,不要用 net 4。
发布的时候选择对应 ...

是十年前在windows下开发的,因为版权问题,想切换linux。。。重新开发工作量太大啦
Reply View the author
avatar
murphey
deepin
2020-01-03 15:46
#9
https://bbs.deepin.org/post/187620
可以选择 dotnet core 下的 gui 框架(github 搜下有不少)进行开发,不要用 net 4。
发布的时候选择对应 ...

单位还有只能跑32位系统的老电脑。。。
Reply View the author