linuxmint / nemo-extensions

A set of extensions for Nemo
410 stars 150 forks source link

Several Nemo Extensions Cause nemo-extensions-list to Segfault #513

Closed bongochong closed 5 months ago

bongochong commented 7 months ago

After the changes introduced in commit https://github.com/linuxmint/nemo-extensions/commit/f8cae9f720c294b5fddcbe075d63b37f1c8733eb nemo-extensions-list segfaults with NameError: name '_' is not defined, when any of the following extensions are installed: nemo-audio-tab nemo-compare nemo-emblems nemo-media-columns nemo-pastebin nemo-terminal. This appears to be due to the underscore in the description line toward the end of each extension's [name].py file (which end up in /usr/share/nemo-python/extensions/ when installed). The segfault happens when nemo-extensions-list is executed from the command line, and via bringing up the plugins configuration window through Nemo itself.

An easy fix is to remove the underscore from the offending line of each file (e.g. description = _("Allows file comparison from the context menu") becomes description = ("Allows file comparison from the context menu")), which I can confirm resolves the issue.

This occurs under Fedora 39 (Cinnamon Spin), and may have to do with the Python version in use on this distribution (3.12.1). The release of Nemo being used here is 6.0.2, and the release of the nemo-extensions package is 6.0.1.

P.S. I use Mint on other machines in my possession, but only the Xfce and MATE variants, so cannot currently confirm that this is an issue under the flagship Cinnamon edition.

Edit: I have now reported this on Red Hat Bugzilla and included a set of patches to help speed things along.