nemo-action.c: Support multiple selection and action path for exec
condition checks.
Similar to the Exec line rules, enclose the script inside of < and >
to run out of the action's parent folder, otherwise the path is
searched, or an absolute file name will work.
e1b1a36...
by
Clement Lefebvre <email address hidden>
Optimize nemo_action_get_visibility()
We're checking a few different things in there: dbus, selection,
extensions/mimetype and conditions.
If any of these is FALSE, we can just return FALSE, no need to use
goto.
With the introduction of exec, checking conditions can be costly
in time and performance and should only ever be checked when all
other things match (dbus, selection, extensions/mime).
This commit checks dbus, then selection, then extensions/mimetypes,
and then finally conditions.
3069ada...
by
Clement Lefebvre <email address hidden>
nemo-mime-application-chooser.c: escape file names in Open With tab
The creation of the label "Select an application in the list to open [...]" in the "Open With" file properties tab fails because of file names which include HTML special chars like ampersand or angle brackets.
I wasn't able to inject HTML into the label because of forbidden slashes in file names. HTML comments (<!-- -->" do work though!
Replaced g_strdup_printf with g_markup_printf_escaped to fix that.