-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Two okular instances on first :VimtexCompile (despite --unique) #1364
Comments
saladpanda
changed the title
Two okular instances on first :VimtexCompile (although --unique)
Two okular instances on first :VimtexCompile (despite --unique)
Apr 18, 2019
Can you specify a full minimal example to reproduce it? |
Sure. " .vimrc
call plug#begin('~/.vim/plugged') # using vim-plug
Plug 'lervag/vimtex'
call plug#end()
let g:vimtex_view_general_viewer = 'okular'
let g:vimtex_view_general_options = '--noraise --unique @pdf\#src:@line@tex'
let g:vimtex_view_general_options_latexmk = '--unique' % test.tex
\documentclass{minimal}
\begin{document}
test
\end{document} No |
lervag
added a commit
that referenced
this issue
Apr 18, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure whether this counts as a bug in vimtex or in okular or whether it counts as a bug at all, but it could certainly be worked around in vimtex.
Observed behavior:
With arbitrary *.tex files the first call of
:VimtexCompile
causes okular to be lauched twice.The second instance has a popup saying "There is already a unique Okular instance running. This instance won't be the unique one."
.vimrc
contains:I don't know how the
--unique
tries to ensure uniqueness but the issue seems to be that two okular instances are called too fast for--unique
to work.Same behavior can be seen with:
Introducing a slight delay between both okular launches gets rid of the problem.
Workaround:
My current workaround is:
Put
okular-delayed
onto PATH:Change
.vimrc
to use it:Further information
Okular Version 1.6.3
The text was updated successfully, but these errors were encountered: