this can be simplified:

```python
if not is_packaged or desktop_packaged_enabled:
```