Skip to content

[Linux - Arch] Leftover files if discord is uninstalled before unplugging #518

@SomeAspy

Description

@SomeAspy

Describe the bug

Not looking for a fix at the moment, this issue is more to just have this issue on record.

if discord is removed via the package manager before unplugging, 2 files will be left behind.
/opt/discord-[development/canary/ptb]/
|- app.asar
|- app.orig.asar

A quick patch would be to add some sort of pnpm run cleanup to remove leftover files, as this can prevent discord from reinstalling cleanly, ex:

errors occurred, no packages were upgraded.
error: failed to commit transaction (conflicting files)
discord-development: /opt/discord-development/resources/app.asar exists in filesystem
Errors occurred, no packages were upgraded.
 -> error installing: [discord-*version*.tar.zst] - exit status 1

Reproduction steps

  1. Remove discord (do not unplug prior)
  2. Remnants at `/opt/discord-[edition]

Expected behavior

There should be no remnants, or at the minimum, no conflicting files

Actual behavior

conflicting files are left behind

Additional information

No response

Please confirm the following

  • I checked if Discord and Replugged are up to date
  • I made sure this is not related to an external plugin or a theme
  • I searched the issues to make sure this bug has not been reported before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions