Do not use GLib to open links in messages

Use ShellExecute
This commit is contained in:
LAGonauta 2020-12-04 07:40:27 -03:00
parent 03774a3756
commit e3356bb3aa

View file

@ -221,7 +221,15 @@ public class MessageItemWidget : SizeRequestBin {
public static bool on_label_activate_link(string uri) { public static bool on_label_activate_link(string uri) {
// Always handle xmpp URIs with Dino // Always handle xmpp URIs with Dino
if (!uri.has_prefix("xmpp:")) return false; if (!uri.has_prefix("xmpp:")) {
#if _WIN32
Dino.Util.launch_default_for_uri(uri);
return true;
#else
return false;
#endif
}
File file = File.new_for_uri(uri); File file = File.new_for_uri(uri);
Dino.Application.get_default().open(new File[]{file}, ""); Dino.Application.get_default().open(new File[]{file}, "");
return true; return true;