Bottles Error Fix

Commenting Out a Line Of Code Fixes The Problem
read in ~1 minute | Mar 12th 2023

I’m posting this because I couldn’t find any solutions online.

The Issue

I’m running Gnome on Arch Linux and I’m using bottles to run a couple of windows games.

I updated my computer and ran into: TypeError: Gtk.CssProvider.load_from_data() takes exactly 3 arguments (2 given)

Bottles froze at Bottles is starting and right after it downloaded 3 small packages. Downgrading to the previous version of bottles didn’t work, so it’s probably not a problem with bottles, but some system/gtk package versioning issues.

The Fix

The fix was to run Bottles in the command line via bottles, and to wait for it to give the error.

Open the file that has the error and add a # in front of the line creating the problem. Bottles suddenly works perfectly fine afterwards.

Also, if you have the same issue but this doesn’t work, in my case this was just a graphical/gtk issue and could have been avoided by using the bottles-cli commands to run applications and interact with your bottles.

I hope this helped!


🪧 Enjoy Reading This?

Here are some more you might like to read next:

Serverless Applications

Using Cloudflare for Applications Mar 11th 2023


Taking The Slow Road

Min/Maxing Decisions Mar 5th 2023


The Point Of Formatters

May 1st 2024



💬 Looking for comments?

I don't have comments on this site as they can be time consuming to manage. I'd rather concentrate on programming cool and new things.

Since you can't leave a comment, feel free to ✉️ contact me instead.