hosea1008
deepin
2020-03-06 20:37 普通文件关联可以通过修改wine注册表解决:
编辑文件linuxnative.reg
Copy the Code
通过命令
Copy the Code
导入注册表,可以使得点击微信中的文件直接调用linux上的软件打开
参考链接:
https://askubuntu.com/questions/51325/how-to-associate-all-file-types-within-wine-with-its-corresponding-native-applic
但是,wine微信中“打开所在文件夹”还是通过wine的文件浏览器打开,没找到办法调用linux的文件管理器打开。请各位大神赐教!
编辑文件linuxnative.reg
- REGEDIT4
- [HKEY_CLASSES_ROOT\.doc]
- @="linuxnative"
- "Content Type"="application/linuxnative"
- [HKEY_CLASSES_ROOT\.rtf]
- @="linuxnative"
- "Content Type"="application/linuxnative"
- [HKEY_CLASSES_ROOT\.odt]
- @="linuxnative"
- "Content Type"="application/linuxnative"
- [HKEY_CLASSES_ROOT\.pdf]
- @="linuxnative"
- "Content Type"="application/linuxnative"
- [HKEY_CLASSES_ROOT\.tif]
- @="linuxnative"
- "Content Type"="application/linuxnative"
- [HKEY_CLASSES_ROOT\.doc]
- @="linuxnative"
- "Content Type"="application/linuxnative"
- [HKEY_CLASSES_ROOT\.docx]
- @="linuxnative"
- "Content Type"="application/linuxnative"
- [HKEY_CLASSES_ROOT\.ppt]
- @="linuxnative"
- "Content Type"="application/linuxnative"
- [HKEY_CLASSES_ROOT\.pptx]
- @="linuxnative"
- "Content Type"="application/linuxnative"
- [HKEY_CLASSES_ROOT\.xls]
- @="linuxnative"
- "Content Type"="application/linuxnative"
- [HKEY_CLASSES_ROOT\.xlsx]
- @="linuxnative"
- "Content Type"="application/linuxnative"
- [HKEY_CLASSES_ROOT\.zip]
- @="linuxnative"
- "Content Type"="application/linuxnative"
- [HKEY_CLASSES_ROOT\.rar]
- @="linuxnative"
- "Content Type"="application/linuxnative"
- [HKEY_CLASSES_ROOT\linuxnative]
- [HKEY_CLASSES_ROOT\linuxnative\shell]
- [HKEY_CLASSES_ROOT\linuxnative\shell\open]
- [HKEY_CLASSES_ROOT\linuxnative\shell\open\command]
- @="C:\\windows\\system32\\winebrowser.exe -nohome \"%1\""
通过命令
- env WINEPREFIX="$HOME/.deepinwine/Deepin-WeChat" wine regedit linuxnative.reg
导入注册表,可以使得点击微信中的文件直接调用linux上的软件打开
参考链接:
https://askubuntu.com/questions/51325/how-to-associate-all-file-types-within-wine-with-its-corresponding-native-applic
但是,wine微信中“打开所在文件夹”还是通过wine的文件浏览器打开,没找到办法调用linux的文件管理器打开。请各位大神赐教!
Reply Like 0 View the author


中文 
而联想到此前在deepin上用wine微信的时候是可以做到在微信中点击文件就调用deepin本身的软件直接打开的,右键->在文件夹中显示也是调用dde-filemanager而不是wine的文件浏览器,因此觉得deepin应该是有办法解决这个问题的,想请教一下各位大神,该如何修改可以使得能用linux本身的应用打开wine微信里面的文件?比如直接调用xdg-open?
在网上搜索查找到有以下类似方法:
https://askubuntu.com/questions/516307/how-do-i-change-default-wine-browser-to-native-ubuntu-browser-instead-of-ie
是通过修改wine注册表来实现的,因此猜测deepin中的微信是否也是通过修改注册表实现的呢?想请教请教