deepin上如何分辨软件是在wine下运行的,还是原生应用?
Tofloor
poster avatar
y***6@126.com
deepin
2019-07-05 00:44
Author
eepin上如何分辨软件是在wine下运行的,还是原生应用?
Reply Favorite View the author
All Replies
avatar
jianguo922
deepin
2019-07-05 01:01
#1
请大佬来说说看,我只知道.exe结尾的就是wine
Reply View the author
avatar
y***6@126.com
deepin
2019-07-05 01:04
#2
https://bbs.deepin.org/post/180213
请大佬来说说看,我只知道.exe结尾的就是wine

启动器里的软件没有后缀名啊,怎么分辨
Reply View the author
avatar
Alley
deepin
2019-07-05 01:12
#3
It has been deleted!
avatar
y***6@126.com
deepin
2019-07-05 01:32
#4
https://bbs.deepin.org/post/180213
图标发送到桌面,右键打开方式文本编辑,看一下里面的配置就清楚了

献上我的膝盖~~
Reply View the author
avatar
走钢丝
deepin
2019-07-05 01:48
#5
也可以试试命令
find /usr/share/applications -maxdepth 1 -not -name "wine*" -and -name "*.desktop" | xargs grep -iIl "wine"

Reply View the author
Comments
guangxu27
2019-07-05 02:23
你好厉害啊,可惜看不懂哈
avatar
走钢丝
deepin
2019-07-05 02:26
#6
这样估计就懂了

find /usr/share/applications -maxdepth 1 -not -name "wine*" -and -name "*.desktop" | xargs grep -iIl "wine" | xargs deepin-editor
Reply View the author
avatar
186******51
deepin
2019-07-05 02:48
#7
系统是通过比较文件头部的二进制数据来判断可执行文件的类型的,如图,第一条命令显示了wine的执行入口挂钩,当系统执行一个二进制文件时会先读取文件头,用文件头数据轮询各个执行入口挂钩,匹配的话就调用该挂钩程序执行当前二进制文件。第二条命令显示了Windows的PE二进制执行文件的文件头,可以看到有MZ字样,这是PE文件的特有标识,系统发现它出现在了wine的配置文件中,于是将执行权交给了wine。第三条命令显示了Linux的原生可执行文件的文件头,可以看到Linux下的可执行文件有ELF字样的特有标识,这类可执行文件由系统直接调用运行。
Reply View the author
avatar
superendermansm
deepin
2019-07-05 03:00
#8
redchenjs 发表于 2019-7-4 18:48
系统是通过比较文件头部的二进制数据来判断可执行文件的类型的,如图,第一条命令显示了wine的执行入口挂钩 ...

人家只是想问从商店下载的应用怎么知道是不是wine的。。。
楼上正解,发送到桌面,右键编辑器打开,Exec后面有wine字样就是wine
Reply View the author
Comments
guangxu27
2019-07-05 03:05
谢谢
avatar
y***6@126.com
deepin
2019-07-05 03:03
#9
https://bbs.deepin.org/post/180213
系统是通过比较文件头部的二进制数据来判断可执行文件的类型的,如图,第一条命令显示了wine的执行入口挂钩 ...

感谢回答,长知识了
Reply View the author
avatar
y***6@126.com
deepin
2019-07-05 03:04
#10
https://bbs.deepin.org/post/180213
这样估计就懂了

find /usr/share/applications -maxdepth 1 -not -name "wine*" -and -name "*.des ...

你高估了我的知识水平,刚接触deepin的菜鸟一枚,不过还是十分感谢你
Reply View the author
avatar
李逍遥mx
deepin
2019-07-06 22:20
#11
看系统进程就知道了
Reply View the author