Any way to control evince settings from the commandline?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite
1












Is there any way to change / set evince settings either in a config file or from the command line when starting ?



I'm using inotifywait to display a PDF when it is copied to a specific file, and I want to be able to set zoom (fit to page), continuous scrolling off and dual (side-by-side mode).



I know that I can manually launch evince, set these values and save as default, but that only works if someone manually launches it first and does this right - I want to guarantee a certain display at launch time.







share|improve this question


























    up vote
    4
    down vote

    favorite
    1












    Is there any way to change / set evince settings either in a config file or from the command line when starting ?



    I'm using inotifywait to display a PDF when it is copied to a specific file, and I want to be able to set zoom (fit to page), continuous scrolling off and dual (side-by-side mode).



    I know that I can manually launch evince, set these values and save as default, but that only works if someone manually launches it first and does this right - I want to guarantee a certain display at launch time.







    share|improve this question
























      up vote
      4
      down vote

      favorite
      1









      up vote
      4
      down vote

      favorite
      1






      1





      Is there any way to change / set evince settings either in a config file or from the command line when starting ?



      I'm using inotifywait to display a PDF when it is copied to a specific file, and I want to be able to set zoom (fit to page), continuous scrolling off and dual (side-by-side mode).



      I know that I can manually launch evince, set these values and save as default, but that only works if someone manually launches it first and does this right - I want to guarantee a certain display at launch time.







      share|improve this question














      Is there any way to change / set evince settings either in a config file or from the command line when starting ?



      I'm using inotifywait to display a PDF when it is copied to a specific file, and I want to be able to set zoom (fit to page), continuous scrolling off and dual (side-by-side mode).



      I know that I can manually launch evince, set these values and save as default, but that only works if someone manually launches it first and does this right - I want to guarantee a certain display at launch time.









      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 15 '17 at 10:58









      don_crissti

      47k15124154




      47k15124154










      asked Oct 14 '17 at 13:13









      Anonymouslemming

      1232




      1232




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          I don't think you can control those settings via cli options (I'd love to be proven wrong though...)

          You could however set the zoom, dual mode etc via the file attributes1before launching evince. You do that via gio set so e.g. if you run:



          gio set myfile.pdf metadata::evince::continuous 0
          gio set myfile.pdf metadata::evince::dual-page 1
          gio set myfile.pdf metadata::evince::sizing_mode: fit-page


          and then



          evince myfile.pdf


          it should open myfile.pdf in dual-mode, with continuous scrolling off and fit-to-page.




          1: To see all the attributes run gio info myfile.pdf. Note this is rather new stuff - it replaces gvfs-info and respectively gvfs-set-attribute (which had similar syntax)






          share|improve this answer




















          • I'm noticing that gio changes don't seem to take effect immediately. For example, I do gio set myfile.pdf metadata::evince::continuous 0. I then check with gio info myfile.pdf and it's not shown there... wait a while and it is again. What's the best way to sync / flush this ?
            – Anonymouslemming
            Oct 15 '17 at 15:50











          • @Anonymouslemming - I cannot replicate that... the change is instantaneous on my system (gio 2.52.3 on archlinux - the drives are all SSD if it matters...)
            – don_crissti
            Oct 15 '17 at 16:02











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f398103%2fany-way-to-control-evince-settings-from-the-commandline%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          I don't think you can control those settings via cli options (I'd love to be proven wrong though...)

          You could however set the zoom, dual mode etc via the file attributes1before launching evince. You do that via gio set so e.g. if you run:



          gio set myfile.pdf metadata::evince::continuous 0
          gio set myfile.pdf metadata::evince::dual-page 1
          gio set myfile.pdf metadata::evince::sizing_mode: fit-page


          and then



          evince myfile.pdf


          it should open myfile.pdf in dual-mode, with continuous scrolling off and fit-to-page.




          1: To see all the attributes run gio info myfile.pdf. Note this is rather new stuff - it replaces gvfs-info and respectively gvfs-set-attribute (which had similar syntax)






          share|improve this answer




















          • I'm noticing that gio changes don't seem to take effect immediately. For example, I do gio set myfile.pdf metadata::evince::continuous 0. I then check with gio info myfile.pdf and it's not shown there... wait a while and it is again. What's the best way to sync / flush this ?
            – Anonymouslemming
            Oct 15 '17 at 15:50











          • @Anonymouslemming - I cannot replicate that... the change is instantaneous on my system (gio 2.52.3 on archlinux - the drives are all SSD if it matters...)
            – don_crissti
            Oct 15 '17 at 16:02















          up vote
          2
          down vote



          accepted










          I don't think you can control those settings via cli options (I'd love to be proven wrong though...)

          You could however set the zoom, dual mode etc via the file attributes1before launching evince. You do that via gio set so e.g. if you run:



          gio set myfile.pdf metadata::evince::continuous 0
          gio set myfile.pdf metadata::evince::dual-page 1
          gio set myfile.pdf metadata::evince::sizing_mode: fit-page


          and then



          evince myfile.pdf


          it should open myfile.pdf in dual-mode, with continuous scrolling off and fit-to-page.




          1: To see all the attributes run gio info myfile.pdf. Note this is rather new stuff - it replaces gvfs-info and respectively gvfs-set-attribute (which had similar syntax)






          share|improve this answer




















          • I'm noticing that gio changes don't seem to take effect immediately. For example, I do gio set myfile.pdf metadata::evince::continuous 0. I then check with gio info myfile.pdf and it's not shown there... wait a while and it is again. What's the best way to sync / flush this ?
            – Anonymouslemming
            Oct 15 '17 at 15:50











          • @Anonymouslemming - I cannot replicate that... the change is instantaneous on my system (gio 2.52.3 on archlinux - the drives are all SSD if it matters...)
            – don_crissti
            Oct 15 '17 at 16:02













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          I don't think you can control those settings via cli options (I'd love to be proven wrong though...)

          You could however set the zoom, dual mode etc via the file attributes1before launching evince. You do that via gio set so e.g. if you run:



          gio set myfile.pdf metadata::evince::continuous 0
          gio set myfile.pdf metadata::evince::dual-page 1
          gio set myfile.pdf metadata::evince::sizing_mode: fit-page


          and then



          evince myfile.pdf


          it should open myfile.pdf in dual-mode, with continuous scrolling off and fit-to-page.




          1: To see all the attributes run gio info myfile.pdf. Note this is rather new stuff - it replaces gvfs-info and respectively gvfs-set-attribute (which had similar syntax)






          share|improve this answer












          I don't think you can control those settings via cli options (I'd love to be proven wrong though...)

          You could however set the zoom, dual mode etc via the file attributes1before launching evince. You do that via gio set so e.g. if you run:



          gio set myfile.pdf metadata::evince::continuous 0
          gio set myfile.pdf metadata::evince::dual-page 1
          gio set myfile.pdf metadata::evince::sizing_mode: fit-page


          and then



          evince myfile.pdf


          it should open myfile.pdf in dual-mode, with continuous scrolling off and fit-to-page.




          1: To see all the attributes run gio info myfile.pdf. Note this is rather new stuff - it replaces gvfs-info and respectively gvfs-set-attribute (which had similar syntax)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Oct 14 '17 at 14:25









          don_crissti

          47k15124154




          47k15124154











          • I'm noticing that gio changes don't seem to take effect immediately. For example, I do gio set myfile.pdf metadata::evince::continuous 0. I then check with gio info myfile.pdf and it's not shown there... wait a while and it is again. What's the best way to sync / flush this ?
            – Anonymouslemming
            Oct 15 '17 at 15:50











          • @Anonymouslemming - I cannot replicate that... the change is instantaneous on my system (gio 2.52.3 on archlinux - the drives are all SSD if it matters...)
            – don_crissti
            Oct 15 '17 at 16:02

















          • I'm noticing that gio changes don't seem to take effect immediately. For example, I do gio set myfile.pdf metadata::evince::continuous 0. I then check with gio info myfile.pdf and it's not shown there... wait a while and it is again. What's the best way to sync / flush this ?
            – Anonymouslemming
            Oct 15 '17 at 15:50











          • @Anonymouslemming - I cannot replicate that... the change is instantaneous on my system (gio 2.52.3 on archlinux - the drives are all SSD if it matters...)
            – don_crissti
            Oct 15 '17 at 16:02
















          I'm noticing that gio changes don't seem to take effect immediately. For example, I do gio set myfile.pdf metadata::evince::continuous 0. I then check with gio info myfile.pdf and it's not shown there... wait a while and it is again. What's the best way to sync / flush this ?
          – Anonymouslemming
          Oct 15 '17 at 15:50





          I'm noticing that gio changes don't seem to take effect immediately. For example, I do gio set myfile.pdf metadata::evince::continuous 0. I then check with gio info myfile.pdf and it's not shown there... wait a while and it is again. What's the best way to sync / flush this ?
          – Anonymouslemming
          Oct 15 '17 at 15:50













          @Anonymouslemming - I cannot replicate that... the change is instantaneous on my system (gio 2.52.3 on archlinux - the drives are all SSD if it matters...)
          – don_crissti
          Oct 15 '17 at 16:02





          @Anonymouslemming - I cannot replicate that... the change is instantaneous on my system (gio 2.52.3 on archlinux - the drives are all SSD if it matters...)
          – don_crissti
          Oct 15 '17 at 16:02


















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f398103%2fany-way-to-control-evince-settings-from-the-commandline%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay