Python-fu 插件在 Gimp 中不可见

Sim*_*ter 6 linux gimp plugins python

我已经在 Linux 上为 GIMP构建并安装了Resynthesizer 插件。这些文件在插件目录中正确显示/usr/local/lib/gimp/2.0/plug-ins/,但 Gimp 中没有任何 Python 插件可用。例如,缺少此 photo@stack 答案所需的“滤镜 > 增强 > 修复选择”命令。

可执行文件(在本例中为“过滤器 > 地图 > 重新合成”)和 Script-Fu 插件可用。

Python-Fu 控制台也可用。

我在 Linux Mint 上使用 Gimp 2.8.6。

编辑 - 找到解决方案

没有找到插件的原因是 Gimp 根本没有在/usr/local路径中搜索。看看它扫描插件的文件夹,我得到下面的输出。复制插件以/usr/lib/gimp/2.0/plug-ins/解决问题,Python-Fu 插件现在显示在菜单中。

$ LANG='en_US' strace gimp 2>&1 |grep -ne 'plug-ins'
3205:access("/home/simon/.local/share/gegl-0.2/plug-ins", F_OK) = 0
3206:stat("/home/simon/.local/share/gegl-0.2/plug-ins", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
3207:access("/home/simon/.local/share/gegl-0.2/plug-ins/Makefile", F_OK) = 0
3208:stat("/home/simon/.local/share/gegl-0.2/plug-ins", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
3209:openat(AT_FDCWD, "/home/simon/.local/share/gegl-0.2/plug-ins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
3211:stat("/home/simon/.local/share/gegl-0.2/plug-ins/Makefile", {st_mode=S_IFREG|0644, st_size=660, ...}) = 0
14788:stat("/home/simon/.gimp-2.8/plug-ins", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
14789:stat("/usr/lib/gimp/2.0/plug-ins", {st_mode=S_IFDIR|0755, st_size=20480, ...}) = 0
14790:openat(AT_FDCWD, "/home/simon/.gimp-2.8/plug-ins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 10
14794:openat(AT_FDCWD, "/usr/lib/gimp/2.0/plug-ins", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 10
Run Code Online (Sandbox Code Playgroud)

jsb*_*eno 5

某些 Linux 发行版使 GIMP Python 可以在与 GIMP 不同的软件包中使用。没关系 - 但是,在安装 GIMP 时默认不安装它应该被视为发行版的打包错误。趋势是 GIMP 越来越依赖于可用的 Python 扩展。

可能该软件包将被命名为“gimp-python” - 检查它是否可用并安装它。