xdg-open 打开“irc:*”链接

用于打开chrome浏览器中的"irc://*"

#cp /usr/share/applications/xchat.desktop /home/zsj/.local/share/applications/irc.desktop

#xdg-mime default irc.desktop x-scheme-handler/irc

测试:
#xdg-open irc://irc.gnome.org/#banshe

参考:
http://docs.xfce.org/xfce/thunar/custom-actions
https://wiki.archlinux.org/index.php/xdg-open#Installation

上一篇:HDU 4405 (概率DP)


下一篇:用JavaScript判断横屏竖屏问题