Skip to content

[Feature]: Disables updates via env variable #1445

@BatteredBunny

Description

@BatteredBunny

I have already checked through the existing feature requests and found no duplicates

  • Yes

Is this a server-specific feature?

Not server-specific

What do you want to be added?

I would love an option to disable auto updates on the package level. For Feishin installed via native packages (e.g apt deb, or nix package which i personally use), the updates are managed with the package manager instead of via the application. Having the option be available in those cases would be confusing as it will never work.

Hacky way it gets solved in nixpkgs right now is that the update checking code gets patched out: https://github.com/NixOS/nixpkgs/blob/648cc1b7f02712dcefb441b3250a7485b7a173cc/pkgs/by-name/fe/feishin/package.nix#L59-L61 but i dont think thats sustainable and other distro packages would benefit from unified method as well.

I imagine simplest would be to add a way to disable it via an env variable, something like DISABLE_AUTO_UPDATE, which would disable the functionality and grey out the advanced update UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions