Custom thumbnailers don’t work on Ubuntu 18.10











up vote
0
down vote

favorite
1












Recently I had a bunch of my own scripts for the thumbnails in Nautilus: WebP previews, sound waveforms, office documents and so on.



Seems like either I’m doing something wrong (thumbnail generation behavior changed), or custom thumbnailes don’t work in latest GNOME at all, even my previous scripts, which worked smoothly on previous versions of Ubuntu.



I’ve done some research, tried to run a simple script (see below) and it didn’t work out.



My test thumbnailer in /usr/share/thumbnailers/z.thumbnailer:



[Thumbnailer Entry]
Exec=/home/maximal/thumb.sh %s %i %u %o
MimeType=image/webp;image/x-webp


Where /home/maximal/thumb.sh is:



#!/bin/bash
echo $0 >> /home/maximal/thumb.log
echo $1 >> /home/maximal/thumb.log
echo $2 >> /home/maximal/thumb.log
echo $3 >> /home/maximal/thumb.log
echo $4 >> /home/maximal/thumb.log


Then, when I remove thumbnail cache rm -rf ~/.cache/thumbnails and restart Nautilus nautilus -q, my log file doesn’t contain anything and ~/.cache/thumbnails/fail/gnome-thumbnail-factory contains all the failed thumbs (looks like corrupted/empty PNGs):



Failed thumbnail file



So, apparently, Nautilus even didn’t try to execute my thumbnailer script.
When I try to run thumb command itself, it works perfectly. For example convert through cwebp|dwebp package:



convert -thumbnail 256x256 file.webp png:file.webp.png


When I wrap this command to a thumbnailer, it looks like it wasn’t even requested to run by Nautilus.



[Thumbnailer Entry]
Exec=convert -thumbnail %sx%s %i png:%o
MimeType=image/webp;image/x-webp;


Exactly the same situation occurs with other my thumbnailers: audio waveforms, office documents, photoshop files and so on.



Could anyone help?










share|improve this question




























    up vote
    0
    down vote

    favorite
    1












    Recently I had a bunch of my own scripts for the thumbnails in Nautilus: WebP previews, sound waveforms, office documents and so on.



    Seems like either I’m doing something wrong (thumbnail generation behavior changed), or custom thumbnailes don’t work in latest GNOME at all, even my previous scripts, which worked smoothly on previous versions of Ubuntu.



    I’ve done some research, tried to run a simple script (see below) and it didn’t work out.



    My test thumbnailer in /usr/share/thumbnailers/z.thumbnailer:



    [Thumbnailer Entry]
    Exec=/home/maximal/thumb.sh %s %i %u %o
    MimeType=image/webp;image/x-webp


    Where /home/maximal/thumb.sh is:



    #!/bin/bash
    echo $0 >> /home/maximal/thumb.log
    echo $1 >> /home/maximal/thumb.log
    echo $2 >> /home/maximal/thumb.log
    echo $3 >> /home/maximal/thumb.log
    echo $4 >> /home/maximal/thumb.log


    Then, when I remove thumbnail cache rm -rf ~/.cache/thumbnails and restart Nautilus nautilus -q, my log file doesn’t contain anything and ~/.cache/thumbnails/fail/gnome-thumbnail-factory contains all the failed thumbs (looks like corrupted/empty PNGs):



    Failed thumbnail file



    So, apparently, Nautilus even didn’t try to execute my thumbnailer script.
    When I try to run thumb command itself, it works perfectly. For example convert through cwebp|dwebp package:



    convert -thumbnail 256x256 file.webp png:file.webp.png


    When I wrap this command to a thumbnailer, it looks like it wasn’t even requested to run by Nautilus.



    [Thumbnailer Entry]
    Exec=convert -thumbnail %sx%s %i png:%o
    MimeType=image/webp;image/x-webp;


    Exactly the same situation occurs with other my thumbnailers: audio waveforms, office documents, photoshop files and so on.



    Could anyone help?










    share|improve this question


























      up vote
      0
      down vote

      favorite
      1









      up vote
      0
      down vote

      favorite
      1






      1





      Recently I had a bunch of my own scripts for the thumbnails in Nautilus: WebP previews, sound waveforms, office documents and so on.



      Seems like either I’m doing something wrong (thumbnail generation behavior changed), or custom thumbnailes don’t work in latest GNOME at all, even my previous scripts, which worked smoothly on previous versions of Ubuntu.



      I’ve done some research, tried to run a simple script (see below) and it didn’t work out.



      My test thumbnailer in /usr/share/thumbnailers/z.thumbnailer:



      [Thumbnailer Entry]
      Exec=/home/maximal/thumb.sh %s %i %u %o
      MimeType=image/webp;image/x-webp


      Where /home/maximal/thumb.sh is:



      #!/bin/bash
      echo $0 >> /home/maximal/thumb.log
      echo $1 >> /home/maximal/thumb.log
      echo $2 >> /home/maximal/thumb.log
      echo $3 >> /home/maximal/thumb.log
      echo $4 >> /home/maximal/thumb.log


      Then, when I remove thumbnail cache rm -rf ~/.cache/thumbnails and restart Nautilus nautilus -q, my log file doesn’t contain anything and ~/.cache/thumbnails/fail/gnome-thumbnail-factory contains all the failed thumbs (looks like corrupted/empty PNGs):



      Failed thumbnail file



      So, apparently, Nautilus even didn’t try to execute my thumbnailer script.
      When I try to run thumb command itself, it works perfectly. For example convert through cwebp|dwebp package:



      convert -thumbnail 256x256 file.webp png:file.webp.png


      When I wrap this command to a thumbnailer, it looks like it wasn’t even requested to run by Nautilus.



      [Thumbnailer Entry]
      Exec=convert -thumbnail %sx%s %i png:%o
      MimeType=image/webp;image/x-webp;


      Exactly the same situation occurs with other my thumbnailers: audio waveforms, office documents, photoshop files and so on.



      Could anyone help?










      share|improve this question















      Recently I had a bunch of my own scripts for the thumbnails in Nautilus: WebP previews, sound waveforms, office documents and so on.



      Seems like either I’m doing something wrong (thumbnail generation behavior changed), or custom thumbnailes don’t work in latest GNOME at all, even my previous scripts, which worked smoothly on previous versions of Ubuntu.



      I’ve done some research, tried to run a simple script (see below) and it didn’t work out.



      My test thumbnailer in /usr/share/thumbnailers/z.thumbnailer:



      [Thumbnailer Entry]
      Exec=/home/maximal/thumb.sh %s %i %u %o
      MimeType=image/webp;image/x-webp


      Where /home/maximal/thumb.sh is:



      #!/bin/bash
      echo $0 >> /home/maximal/thumb.log
      echo $1 >> /home/maximal/thumb.log
      echo $2 >> /home/maximal/thumb.log
      echo $3 >> /home/maximal/thumb.log
      echo $4 >> /home/maximal/thumb.log


      Then, when I remove thumbnail cache rm -rf ~/.cache/thumbnails and restart Nautilus nautilus -q, my log file doesn’t contain anything and ~/.cache/thumbnails/fail/gnome-thumbnail-factory contains all the failed thumbs (looks like corrupted/empty PNGs):



      Failed thumbnail file



      So, apparently, Nautilus even didn’t try to execute my thumbnailer script.
      When I try to run thumb command itself, it works perfectly. For example convert through cwebp|dwebp package:



      convert -thumbnail 256x256 file.webp png:file.webp.png


      When I wrap this command to a thumbnailer, it looks like it wasn’t even requested to run by Nautilus.



      [Thumbnailer Entry]
      Exec=convert -thumbnail %sx%s %i png:%o
      MimeType=image/webp;image/x-webp;


      Exactly the same situation occurs with other my thumbnailers: audio waveforms, office documents, photoshop files and so on.



      Could anyone help?







      gnome nautilus thumbnails 18.10






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 26 at 16:38

























      asked Oct 30 at 11:09









      Sasha MaximAL

      917




      917



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1088539%2fcustom-thumbnailers-don-t-work-on-ubuntu-18-10%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1088539%2fcustom-thumbnailers-don-t-work-on-ubuntu-18-10%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          數位音樂下載

          When can things happen in Etherscan, such as the picture below?

          格利澤436b