Vanilla-OS / vanilla-control-center

This utility allows you to manage Vanilla OS components
GNU General Public License v3.0
26 stars 16 forks source link

Program fails to start properly if user has exported from named ubuntu container #158

Closed dacwatson closed 1 year ago

dacwatson commented 1 year ago

Problem

From a user-facing perspective, the program first hangs and fails to start, then subsequent attempts will start the program without content: image

Cause

Launching from terminal with the problematic export gives the following error:

user@vanilla ~> vanilla-control-center
/usr/share/vanilla-control-center/vanilla_control_center/dialog_installation.py:20: PyGIWarning: Vte was imported without specifying a version first. Use gi.require_version('Vte', '3.91') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gio, Gdk, GLib, Adw, Vte, Pango
INFO:Vanilla::Apx:Terminal: false
Traceback (most recent call last):
  File "/usr/share/vanilla-control-center/vanilla_control_center/main.py", line 90, in do_activate
    win = VanillaWindow(application=self)
  File "/usr/share/vanilla-control-center/vanilla_control_center/window.py", line 63, in __init__
    self.apx = Apx()
  File "/usr/share/vanilla-control-center/vanilla_control_center/backends/apx.py", line 65, in __init__
    self.__apps = self.__get_apps()
  File "/usr/share/vanilla-control-center/vanilla_control_center/backends/apx.py", line 106, in __get_apps
    "Container": self.__managed_containers[container]["Name"],
KeyError: 'apx_managed_dev'

I'm not fluent in python but my best guess is that there's some sort of problem with the dictionary when reading .desktops from custom named containers.

Workaround

The best workaround I could find was to simply remove the offending desktop files or to change the extension to .txt in anticipation of a fix. After doing this the GUI launched flawlessly.

I did notice that it still didn't detect my named container apx_managed_dev as you can see below:

image

I tried installing and exporting some programs on the default container and vanilla-control-center was still able to launch properly, so it's apparent the issue is with the custom named container.

kbdharun commented 1 year ago

Hi, this issue is longer prevalent with Subsystems in Apx GUI so I am closing this as completed.