GithubHelp home page GithubHelp logo

Comments (6)

Creteil avatar Creteil commented on September 26, 2024 1

@bassmanitram, thanks !!!

Fixed with :

bigbob@bigbob-ux31a:~$ rm -rf  ~/.local/share/nautilus-python
bigbob@bigbob-ux31a:~$

from actions-for-nautilus.

biokomiker avatar biokomiker commented on September 26, 2024

Check whether you json file contains also double entries

Funnily I just opened an issue (for the wiki) about pdf compression. Please have a look - your solution might look similar. It took we a while to find a combination of paramenters which seemed to work fine for diverse pdfs

from actions-for-nautilus.

Creteil avatar Creteil commented on September 26, 2024

This the 1st thing I have checked, and no, there is no double entries in my json file :

bigbob@bigbob-t480s:~$ cat ~/.local/share/actions-for-nautilus/config.json | jq | grep label
      "label": "Comparaison de 2 fichiers PDF's",
      "label": "Conversion de taille PDF's basse résolution (screen)",
      "label": "Conversion de taille PDF's moyenne résolution (ebook)",
      "label": "Conversion de taille PDF's haute résolution (printer)",
      "label": "Conversion de taille PDF's très haute résolution (prepress)",
      "label": "Conversion de fichier(s) mail (eml) en PDF(s)",
      "label": "Création d'une image ISO à partir d'un répertoire",
      "label": "Conversion résolution de fichiers Images vers 1024 points max",
bigbob@bigbob-t480s:~$

from actions-for-nautilus.

Creteil avatar Creteil commented on September 26, 2024

@biokomiker, here is the commands behind my actions for nautilus :

bigbob@bigbob-t480s:~$ cat ~/.local/share/actions-for-nautilus/config.json | jq
{
  "actions": [
    {
      "type": "command",
      "label": "Comparaison de 2 fichiers PDF's",
      "command_line": "diffpdf %F",
      "min_items": 2,
      "max_items": 2,
      "permissions": "read",
      "mimetypes": [
        "application/pdf"
      ]
    },
    {
      "type": "command",
      "label": "Conversion de taille PDF's basse résolution (screen)",
      "command_line": "gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -sOutputFile=%d/new-screen-%b %d/%b",
      "min_items": 1,
      "permissions": "read",
      "mimetypes": [
        "application/pdf"
      ]
    },
    {
      "type": "command",
      "label": "Conversion de taille PDF's moyenne résolution (ebook)",
      "command_line": "gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -sOutputFile=%d/new-ebook-%b %d/%b",
      "min_items": 1,
      "permissions": "read",
      "mimetypes": [
        "application/pdf"
      ]
    },
    {
      "type": "command",
      "label": "Conversion de taille PDF's haute résolution (printer)",
      "command_line": "gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -sOutputFile=%d/new-printer-%b %d/%b",
      "min_items": 1,
      "permissions": "read",
      "mimetypes": [
        "application/pdf"
      ]
    },
    {
      "type": "command",
      "label": "Conversion de taille PDF's très haute résolution (prepress)",
      "command_line": "gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -sOutputFile=%d/new-prepress-%b %d/%b",
      "min_items": 1,
      "permissions": "read",
      "mimetypes": [
        "application/pdf"
      ]
    },
    {
      "type": "command",
      "label": "Conversion de fichier(s) mail (eml) en PDF(s)",
      "command_line": "java -jar /usr/local/bin/emailconverter.jar %d/%b",
      "min_items": 1,
      "permissions": "read",
      "mimetypes": [
        "message/rfc822"
      ]
    },
    {
      "type": "command",
      "label": "Création d'une image ISO à partir d'un répertoire",
      "command_line": "mkisofs -lJR -o %f.iso %f",
      "min_items": 1,
      "max_items": 1,
      "permissions": "read",
      "mimetypes": [
        "inode/directory"
      ]
    },
    {
      "type": "command",
      "label": "Conversion résolution de fichiers Images vers 1024 points max",
      "command_line": "convert -resize 1024x1024 %d/%b %d/max-1024-%b",
      "min_items": 1,
      "permissions": "read",
      "mimetypes": [
        "image/*"
      ]
    }
  ],
  "debug": false
}
bigbob@bigbob-t480s:~$

from actions-for-nautilus.

bassmanitram avatar bassmanitram commented on September 26, 2024

Hey, @Creteil

I just copied your config into mine and this is what I get... (well, apparently I have screwed up my Print key mapping, so) ... I get one entry per item...

What WOULD explain this is if, somehow, in the Nautilus extensions directory you have TWO versions of the extension. Nautilus would start each up and they would both look at the same config file - I just proved that that would happen. You may have a local version (in /$HOME/.local/share/nautilus-python/extensions) and a "global" version installed with the .deb file?

from actions-for-nautilus.

bassmanitram avatar bassmanitram commented on September 26, 2024

Excellent! Closing.

from actions-for-nautilus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.