code: def get_linux_config(browser: str) -> dict:
      
      # Verify supported browser, fail early otherwise
      if browser.lower() == 'chrome':
          cookie_file = '~/.config/google-chrome/Default/Cookies'
      elif browser.lower() == "chromium":
          cookie_file = '~/.config/chromium/Default/Cookies'
      else:
          raise ValueError("Browser must be either Chrome or Chromium.")
  
      # Set the default linux password
      config = {
          'my_pass': 'peanuts',
          'iterations': 1,
          'cookie_file': cookie_file,
      }
  
      # Try to get pass from Gnome / libsecret if it seems available
      # https://github.com/n8henrie/pycookiecheat/issues/12
      try:
          import gi
          gi.require_version('Secret', '1')
          from gi.repository import Secret
      except ImportError:
          pass
      else:
          flags = Secret.ServiceFlags.LOAD_COLLECTIONS
          service = Secret.Service.get_sync(flags)
  
          gnome_keyring = service.get_collections()
          unlocked_keyrings = service.unlock_sync(gnome_keyring).unlocked
  
          keyring_name = "{} Safe Storage".format(browser.capitalize())
  
          for unlocked_keyring in unlocked_keyrings:
              for item in unlocked_keyring.get_items():
                  if item.get_label() == keyring_name:
                      item.load_secret_sync()
                      config['my_pass'] = item.get_secret().get_text()
                      break
              else:
                  # Inner loop didn't `break`, keep looking
                  continue
  
              # Inner loop did `break`, so `break` outer loop
              break
  
      return config
docs: Get the settings for Chrome/Chromium cookies on Linux.
  
      Args:
          browser: Either "Chrome" or "Chromium"
      Returns:
          Config dictionary for Chrome/Chromium cookie decryption