如何添加wine安装的程序到右键打开方式?
-
- 帖子: 5
- 注册时间: 2013-04-17 15:11
- 系统: windows xp
如何添加wine安装的程序到右键打开方式?
如题,wine下安装了,很多软件,但是无法添加到右键,和选择为默认打开方式
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 5
- 注册时间: 2013-04-17 15:11
- 系统: windows xp
Re: 如何添加wine安装的程序到右键打开方式?
怎么搜索呢,.local/share/application 里面好多 wine*.desktop
-
- 帖子: 5
- 注册时间: 2013-04-17 15:11
- 系统: windows xp
Re: 如何添加wine安装的程序到右键打开方式?
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\""
即可,保存注销
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\""
即可,保存注销
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙