分页: 1 / 1

如何添加wine安装的程序到右键打开方式?

发表于 : 2013-04-19 15:34
bcabbage
如题,wine下安装了,很多软件,但是无法添加到右键,和选择为默认打开方式

Re: 如何添加wine安装的程序到右键打开方式?

发表于 : 2013-04-19 15:36
eexpress
搜索“wine desktop”

Re: 如何添加wine安装的程序到右键打开方式?

发表于 : 2013-04-19 15:40
bcabbage
怎么搜索呢,.local/share/application 里面好多 wine*.desktop

Re: 如何添加wine安装的程序到右键打开方式?

发表于 : 2013-04-19 17:49
bcabbage
1.安装软件 以Notepad++ 为例
2.mimeapps.list 添加右键打开
如 text/plain=wine-extension-txt.desktop;other.desktop 中间用分好隔开


添加默认打开
[Added Associations]
text/plain=wine-extension-txt.desktop;engrampa.desktop;

3.编写 wine-extension-text.desktop
(注意:注释应当去掉)
[Desktop Entry]
Type=Application
Name=Notepad++ : a free (GNU) source code editor #名字
MimeType=text/plain; #类型
Exec=env WINEPREFIX="/home/mz/.wine" wine start /ProgIDOpen Notepad++.txt %f #此处很重要目前设置为 Notepad++.txt
NoDisplay=true
StartupNotify=true
Icon=33E8_notepad++.0 #图片(此处图片为share/applications/wine/Programs/Notepad++ 下面的 Notepad++.desktop中获得)

4.修改.wine下的 system.reg

查找
[Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Notepad++] 1366357879
"DisplayIcon"="C:\\Program Files\\Notepad++\\notepad++.exe"
"DisplayName"="Notepad++"
"DisplayVersion"="6.3.2"
"MajorVersion"="6"
"MinorVersion"="32"
"Publisher"="Notepad++ Team"
"UninstallString"="C:\\Program Files\\Notepad++\\uninstall.exe"
"URLInfoAbout"="http://notepad-plus-plus.org/"
"VersionMajor"="6"
"VersionMinor"="32"

得到 1366357879


[Software\\Classes\\.txt] 1366357879
@="Notepad++.txt"
"Content Type"="text/plain"
[Software\\Classes\\Notepad++.txt] 1366357879
@="Text Document"
"Old Default"="txtfile"

[Software\\Classes\\Notepad++.txt\\shell\\open\\command] 1366357879
@="\"C:\\Program Files\\Notepad++\\notepad++.exe\" \"%1\""

[Software\\Classes\\Notepad++.txt\\shell\\print\\command] 1366357879
@="\"C:\\Program Files\\Notepad++\\notepad++.exe\" /p \"%1\""


即可,保存注销

Re: 如何添加wine安装的程序到右键打开方式?

发表于 : 2013-04-19 21:18
eexpress
@@ 说少了。是搜索论坛的帖子,使用那关键词。