https://bugs.kde.org/show_bug.cgi?id=318998
Albert Astals Cid <aa...@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Latest Commit| |https://commits.kde.org/oku | |lar/09b7b079ac92bd1da7bac6b | |04e2bed139506f2f8 Status|CONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #27 from Albert Astals Cid <aa...@kde.org> --- Git commit 09b7b079ac92bd1da7bac6b04e2bed139506f2f8 by Albert Astals Cid, on behalf of Dileep Sankhla. Committed on 03/03/2018 at 16:36. Pushed by aacid into branch 'master'. Option to exit after printing Summary: When running okular with the parameter --print to directly open the print mode, it doesn't exit after acknowledging the print dialog. Hence adding --print_and_exit option exits Okular after acknowledging the print dialog and thus is useful for the command line batch processing or a Dolphin service as the issue suggests. Test Plan: 1. open a file in Okular using the parameter --print. It will open Okular in print mode with the print dialog 2. Either print the file or cancel the print dialog 3. You will find that Okular stays open 4. Now using this patch, see for available options with the --help parameter. You will find --print_and_exit option 5. Now open a file in Okular using the parameter --print_and_exit. It will open Okular in print mode with the print dialog 6. Either print the file or cancel the print dialog 7. You will find that Okular closes after acknowledging the dialog Reviewers: aacid, #okular, ngraham Subscribers: ltoscano, ngraham, aacid, #okular Tags: #okular Differential Revision: https://phabricator.kde.org/D10249 M +11 -11 autotests/mainshelltest.cpp M +19 -4 part.cpp M +3 -1 part.h M +1 -0 shell/main.cpp M +2 -0 shell/shell.cpp M +22 -13 shell/shellutils.cpp M +3 -2 shell/shellutils.h https://commits.kde.org/okular/09b7b079ac92bd1da7bac6b04e2bed139506f2f8 -- You are receiving this mail because: You are watching all bug changes.