Coding questions #5103
Unanswered
Kira123499
asked this question in
Q&A
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I have a question as a amateur programmer:
I am trying to create a PDF viewer version that always runs in restricted mode, without the restricted control file, i.e. where I can set
‘no internet, no file access and no printing’
directly in the source code.
It doesn't matter whether the PDF is opened by drag & drop or double-click.
The same applies to the settings file. I want to change a few defaults directly in the code and I don't want a settings file to be created.
I've already tried a few things, but I'm not entirely happy with the results.
In the end, I just want a single exe file without any parameter options.
Is this relatively easy to do, or is it a more complex implementation?
As I tried e.g. in sumatraPDF.h the following row
// enables Update checks, crash report submitting and hyperlinks
from
InternetAccess = 1 << 0,
to
InternetAccess = 0 << 0,
and than I can run directly in restriced mode without the argument, the default will be 'no internet' - right?
Thank you very much!
Kira
Beta Was this translation helpful? Give feedback.
All reactions