Bug 176106 - Okular does not have a command-line switch to start in full-screen mode
Summary: Okular does not have a command-line switch to start in full-screen mode
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.7.1
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-26 06:00 UTC by Richard Hartmann
Modified: 2008-11-26 19:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Hartmann 2008-11-26 06:00:44 UTC
Version:           0.7.1 (using 4.1.2 (KDE 4.1.2), Debian packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.26-1-686

As topic states, there is no command-line switch to start okular in full-screen mode. This would be extremely handy for my PDF build chain, though.
Comment 1 Pino Toscano 2008-11-26 10:51:51 UTC
$ okular --version
Qt: 4.4.3
KDE: 4.1.3 (KDE 4.1.3)
Okular: 0.7.3
$ okular --help
Usage: okular [Qt-options] [KDE-options] [options] [URL]

Okular, a universal document viewer

Generic options:
  --help                    Show help about options
  --help-qt                 Show Qt specific options
  --help-kde                Show KDE specific options
  --help-all                Show all options
  --author                  Show author information
  -v, --version             Show version information
  --license                 Show license information
  --                        End of options

Options:
  -p, --page <number>       Page of the document to be shown
  --presentation            Start the document in presentation mode

Arguments:
  URL                       Document to open
Comment 2 Richard Hartmann 2008-11-26 11:01:54 UTC
Sorry for not being clearer (it was 0600 local). I did not mean full-screen, I meant maximized window.
If you would also add a command-line option to fit to width, I would be even happier :)
Comment 3 Pino Toscano 2008-11-26 11:11:22 UTC
What is the rationale for it?
Why cannot you leave Okular in fullscreen mode?
Comment 4 Richard Hartmann 2008-11-26 12:31:05 UTC
The full-screen mode which --help calls --presentation is just that, a presentation mode.
You do not have access to any menus or anything else. Just the PDF.

I do not want to present anything, though. I just need to check on the PDF I created, proof-read a section and quit again. As Okular does not remember its own size, it will start with a very small window and an even smaller PDF in said window. This is especially bad on a display with 1024*768.

I want to spare myself the trouble of having to manually resize the window each time and just have my buildpdf() shell function do it.
Comment 5 Pino Toscano 2008-11-26 12:45:03 UTC
(In reply to comment #4)
> As Okular does not remember its
> own size, it will start with a very small window and an even smaller PDF in
> said window.

Then you are working around bug #137108 - that is going to be fixed for KDE 4.1.4 -, aren't you?
Comment 6 Richard Hartmann 2008-11-26 15:43:18 UTC
No, I am not.

Let me describe what I want to happen and what happens, instead:


Real world:
* I run okular foo.pdf
* okular opens, window size is approximately 800*600
* foo.pdf is displayed, but rather small
* I maximize okular
* I press the zoom in button four times
* I can work normally

Dream world
* I run okular.pdf, with or without additional parameters, I don't care
* okular opens with a maximized window, displaying the PDF fit to width
* I can work normally

A way to achieve this without resorting to command line switches (though those _are_ useful) would be to enable okular to save its own size when exiting and restoring to that size, by default.
Comment 7 Pino Toscano 2008-11-26 18:41:29 UTC
(In reply to comment #6)
> A way to achieve this without resorting to command line switches (though those
> _are_ useful) would be to enable okular to save its own size when exiting and
> restoring to that size, by default.

This is *exactly* the point you are missing: Okular (just like 99% of the KDE application) saves its window size automatically, this is something done by kdelibs.
The fact that the window size is -not- restored correctly when closing a fullscreen application is bug #137108 (well, bug #150772 really). Thus, since KDE 4.1.4 (or KDE 4.2 beta1) you can close a fullscreen Okular and reopen it in the same way.
Comment 8 Richard Hartmann 2008-11-26 19:06:01 UTC
Ah, OK. Thanks :)