小编Azr*_*iel的帖子

谷歌浏览器。linux。XDG-OPEN 一直问我(永远)如何处理磁力链接

(我使用的是最新的 chrome 测试版 (64),但它发生在我使用的所有以前版本的 chrome 中。)

当我在谷歌浏览器中按下磁铁链接时,我得到这张卡片: 打开 xdg-open?

所以我标记为始终打开这些类型的链接...然后按打开 xdg-open。现在 qBittorrent 开始工作了。一切都好。

但是,如果我按下另一个磁力链接,它会再次弹出这张卡片并询问我该怎么做。它总是这样做,从不保存我以后选择的内容。

我有qbittorrent.desktop/usr/share/applications

开头qbittorrent.desktop是:

[Desktop Entry]                                           
Categories=Network;FileTransfer;P2P;Qt;                   
Exec=qbittorrent %U                                       
GenericName=BitTorrent client                             
Comment=Download and share files over BitTorrent          
Icon=qbittorrent                                          
MimeType=application/x-bittorrent;x-scheme-handler/magnet;
Name=qBittorrent                                          
Terminal=false                                            
Type=Application                                          
StartupNotify=false                                       
StartupWMClass=qbittorrent                                
Keywords=bittorrent;torrent;magnet;download;p2p;          
Run Code Online (Sandbox Code Playgroud)

也是在~/.config/mimeapps.list我有这样的:

[Default Applications]                             
text/html=google-chrome-beta.desktop               
x-scheme-handler/http=google-chrome-beta.desktop   
x-scheme-handler/https=google-chrome-beta.desktop  
x-scheme-handler/about=google-chrome-beta.desktop  
x-scheme-handler/unknown=google-chrome-beta.desktop
x-scheme-handler/magnet=qbittorrent.desktop        
Run Code Online (Sandbox Code Playgroud)

如果我命令xdg-mime query default x-scheme-handler/magnet我得到qbittorrent.desktop结果。

同样,如果我命令:xdg-mime default qbittorrent.desktop x-scheme-handler/magnet没有任何改变并且存在问题。

最后一件事,如果我打开终端和命令:

xdg-open magnet:?xt=magnet-link-continue-here 它打开带有链接的 qbittorrent 没有问题。

linux google-chrome magnet-links xdg qbittorrent

9
推荐指数
1
解决办法
2万
查看次数

标签 统计

google-chrome ×1

linux ×1

magnet-links ×1

qbittorrent ×1

xdg ×1