defaulting "shared mode" to false/unticked

10 views
Skip to first unread message

Paolo Casaschi

unread,
Jan 25, 2026, 2:09:05 PM (5 days ago) Jan 25
to noVNC
Hello,

I'm using novnc 1.3, how do I configure novnc to set the shared mode options by default to false/unticked when a browser opens the novnc page?

I know I can edit the app/ui.js file and change the initSettings() function, but I was hoping anther option could be available without manually editing source code.
If editing source code is the only option, could it be possible to edit the vnc.html file instead of the app/ui.js file? I'd like to keep to a minimum the manual edits and I already have done some cosmetic changes to the vnc.html page.

Thanks and congrats to the developers, novnc is an excellent piece of software, it glues together perfectly multiple complex modules!

--
Paolo

Pierre Ossman

unread,
Jan 26, 2026, 9:59:00 AM (5 days ago) Jan 26
to no...@googlegroups.com, Paolo Casaschi
On 25/01/2026 20:09, Paolo Casaschi wrote:
> Hello,
>
> I'm using novnc 1.3, how do I configure novnc to set the shared mode
> options by default to false/unticked when a browser opens the novnc page?
>
> I know I can edit the app/ui.js file and change the initSettings()
> function, but I was hoping anther option could be available without
> manually editing source code.
> If editing source code is the only option, could it be possible to edit the
> vnc.html file instead of the app/ui.js file? I'd like to keep to a minimum
> the manual edits and I already have done some cosmetic changes to the
> vnc.html page.
>
noVNC 1.3 is rather old, so I'm unsure what you can do there except
modify the code. I would suggest solving whatever blocks you from
upgrading to noVNC 1.6, as there is a clean way to support default
settings from that version onwards.

Regards,
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

Paolo Casaschi

unread,
Jan 26, 2026, 10:08:14 AM (5 days ago) Jan 26
to Pierre Ossman, no...@googlegroups.com
Thanks.

The block is just laziness, I'm using novnc that comes with the distro... I might try a manual upgrade... Thanks for the feedback.
--
Paolo

Paolo Casaschi

unread,
Jan 26, 2026, 1:01:38 PM (4 days ago) Jan 26
to Pierre Ossman, no...@googlegroups.com
Thanks... it turned out quite easy to replace v1.3 with v1.6 since there's nothing that requires compilation.

Final question about the format of the JSON file, is the following line correct as content for mandatory.json if I want no bell sounds and no shared sessions?
{ "bell":"0", "shared":"0" }

With this, it seems novnc starts with disabled shares, but the user seems still able to change it, maybe the syntax I'm using is not correct.
--
Paolo

Paolo Casaschi

unread,
Jan 26, 2026, 3:06:14 PM (4 days ago) Jan 26
to noVNC
This seems working...
{ "bell":"off", "shared":"false" } 
Reply all
Reply to author
Forward
0 new messages