Use program name to check for self-update
def enable_self_update():
- from plextraktsync.util.packaging import pipx_installed
+ from plextraktsync.util.packaging import pipx_installed, program_name
- package = pipx_installed("plextraktsync")
+ package = pipx_installed(program_name())
return package is not None
