I am having problems with some programs when using overlay-scrollbars, mainly Code::Blocks and Eclipse. Is there a way to blacklist only this applications from using the new scrollbars? I've found several ways of disabling the overlay scrollbars completely, for all applications, but I like them and I don't want to do this. Thanks you
|
I am going to answer my own question. Thanks to the user "SevenMachines" in ubuntuforums, I've found a way to disable overlay scrollbars for a specific application. I did a shell script with the following (for eclipse, for example):
Then, make it executable, and using the "Menu editor", changed eclipse to point to the script. |
|||||||||
|
|
Alternatively, in your
In fact, you may also want to add
[Note: that this will only take effect once you restart your bash shell] |
|||
|
|
|
|
||||
|
|
|
You could edit the .desktop File like this:
...then put...
to the Exec Field that the file looks afterwards like this:
I use the unity-launcher-editor to easily change this via a GUI. |
|||
|
|
A more generic alternative to the above answers would be this simple script that I called "regular-scrollbars":
Save that someplace on your path, and then you can use the menu editor to add "regular-scrollbars" before any command you want (as long as it only has one argument - try "@$" if you think you'll need more than one). This means you won't have to make a new script for any other programs you want to revert to the old scrollbars. I really like the bashrc alias example too though, you could probably make it more generic by providing a list of programs you want to revert and having bashrc loop over them, adding the aliases. |
|||
|
|
|
For the specific issue of overlay scrollbars in Eclipse, I was able to get them working properly by following the instructions in this blog post and a related Ubuntu question. You edit the eclipse launch script.
And comment out an environment variable that is working around some old bugs that are supposedly now fixed.
The next time I launched Eclipse, the scroll bars worked. |
|||
|
|