SwiftBar: [Bug] Deleted plugins listed in Preferences

Screen Shot 2021-06-19 at 11 09 28

The plugins named error are deleted plugins that I can see as disabled plugins if I run defaults read com.ameba.SwiftBar.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (17 by maintainers)

Commits related to this issue

Most upvoted comments

Now I have a clue on how to reproduce the issue. It has to do with the new data folders introduced by v1.3.1. Try this sample plugin:

#!/usr/bin/env python3
import os
import logging

logging.basicConfig(
    filename=os.environ['SWIFTBAR_PLUGIN_CACHE_PATH'] + '/error.log'
)

print('foo')

If you run this plugin, close SwiftBar and reopen it you will see an error.log folder being created in the Caches folder and a non-existent error plugin listed in Preferences.