After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 774905 - Set zoom factor and window size from command line
Set zoom factor and window size from command line
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: general
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-11-23 11:11 UTC by Richard
Modified: 2018-05-22 16:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Richard 2016-11-23 11:11:38 UTC
evince does not allow me to specify zoom factor and window size upon startup on command line

evince does offer to "save current settings as default", but it does ignore window size and zoom factor, so it always starts up with some skewed zoom and window size.

evince mentions in --help-all it does understand
  --gdk-no-debug=FLAGS        GDK debugging flags to unset

but it actually doesn't:

$ evince --gdk-no-debug=FLAGS some.pdf
Cannot parse arguments: Error parsing option --gdk-no-debug

evince - as all gtk applications - is noisy about some GTK/GNOME boilerplate:
(evince:3435): Gtk-WARNING **: Failed to get the GNOME session proxy: The name org.gnome.SessionManager is not owned

and cannot be made to shut up by

 --gtk-no-debug=FLAGS

so I start it with 2> /dev/null for now on the rare occasions where I can endure it's user-unfriendliness.
Comment 1 André Klapper 2016-11-23 17:32:38 UTC
Thanks for reporting this!
Please split this into separate tickets so only one issue is reported per ticket otherwise this cannot be handled. Thanks!
Comment 2 Germán Poo-Caamaño 2017-04-28 15:09:59 UTC
(In reply to Richard from comment #0)
> evince mentions in --help-all it does understand
>   --gdk-no-debug=FLAGS        GDK debugging flags to unset
> 
> but it actually doesn't:
> 
> $ evince --gdk-no-debug=FLAGS some.pdf
> Cannot parse arguments: Error parsing option --gdk-no-debug

Those parameters come from GTK+, not Evince. Nevertheless, the
issue is FLAGS, which is not a valid flag. You can only use
valid flags or none.

For example:

$ evince --gdk-no-debug= some.pdf

Will not complain.

For more information, take a look at
https://developer.gnome.org/gtk3/stable/gtk-running.html#GDK-Debug-Options
Comment 3 Germán Poo-Caamaño 2017-04-28 15:12:15 UTC
(In reply to André Klapper from comment #1)
> Thanks for reporting this!
> Please split this into separate tickets so only one issue is reported per
> ticket otherwise this cannot be handled. Thanks!

It is only one bug with additional questions/remarks somehow unrelated to
Evince itself. I updated the summary accordingly.
Comment 4 GNOME Infrastructure Team 2018-05-22 16:54:08 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/732.