LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices


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.

Quote:
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:

Code:
[...] 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 1346 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 09:12 PM.

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