Download your favorite Linux distribution at LQ ISO.
Go Back > Blogs > linux-related notes
User Name


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

Disable chromium/chrome printing for a given profile

Posted 12-02-2018 at 06:43 PM by the dsc

Are you tired of selecting text, right-clicking to search the term, and accidentally releasing the button on "print"? Worry no more!

Despite of what a developer said, it can be done by manually editing the "Preferences" json file. For linux at least.

This way: Open the profile folder, find the JSON file Preferences, find "printing" field (browser->extensions->printing), then add , "enabled": false into it.
It sounds somewhat simpler than it looks when you actually see the file open, which is a huge mess of very very long lines (maybe singular?). An excerpt:

[...] plugins":{"plugins_list":[]},"printing":{"enabled": false,"print_preview_sticky_settings":{"appState":"{\"version\":2,\"isGcpPromoDismissed\":false,\"selectedDestinationId\":\"PDF\",\" [...]
Before it there were a bunch of web addresses, numbers, something related with zoom levels and/or other stuff.

The file having such long lines is better dealt with a light editor, like Ned/Nedit, in comparison with Kate. I don't know how other "heavier" editors fare with it though.

Then when you really want to print something you can copy the web address and open a new profile window.

Ideally you'd still have it on the "main" menu rather than the context menu, but apparently that can't be done without editing the code and recompiling it.

But wait, there is more!

Oh, sorry, there isn't.
Posted in Uncategorized
Views 867 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 03:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration