[Github-comments] [geany/geany-plugins] Project Organizer: Add option to open current folder in file manager (PR #1126)

Jiří Techet notifications at xxxxx
Thu Oct 28 22:06:46 UTC 2021


@techee commented on this pull request.



> +	}
+
+	if (!gtk_tree_model_iter_has_child(model, &iter))
+	{
+		if (gtk_tree_model_iter_parent(model, &parent, &iter))
+			utf8_path = build_path(&parent);
+		else
+			utf8_path = build_path(NULL);
+	}
+	else
+		utf8_path = build_path(&iter);
+
+	locale_path = utils_get_locale_from_utf8(utf8_path);
+	if (locale_path)
+	{
+		command = g_strconcat ("xdg-open \"", locale_path, "\"", NULL);

On macOS it is `open`. So yeah, you could add ifdefs for the individual platforms.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1126#discussion_r738807170
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211028/f97f7842/attachment.htm>


More information about the Github-comments mailing list