Any way to control evince settings from the commandline?
Clash Royale CLAN TAG#URR8PPP
up vote
4
down vote
favorite
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.
pdf evince
add a comment |Â
up vote
4
down vote
favorite
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.
pdf evince
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
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.
pdf evince
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.
pdf evince
edited Oct 15 '17 at 10:58
don_crissti
47k15124154
47k15124154
asked Oct 14 '17 at 13:13
Anonymouslemming
1232
1232
add a comment |Â
add a comment |Â
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)
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
add a comment |Â
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)
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
add a comment |Â
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)
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
add a comment |Â
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)
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)
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
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password