#How to delete duplicate Discord?

1 messages · Page 1 of 1 (latest)

timber tangle
#

Hey folks, recently my Discord stopped launching, and looks like it might have to do with some of its recent updates. I've been trying to blindly fix the issue, until at some point I think I tried launching it through the start panel, and it started an installation process...(?)

All in all, the new copy kinda worked, but it was a completely separate application, and now I have a completely dead copy sitting on my PC, with neither of them showing in the Software Manager. I guess it is a more general question than just this case specifically, but how can one make sure to completely remove an application with all related files and traces on Linux (in my case the dead copy outside .config)? Is just deleting the directory enough? I assume no. Maybe there is a Revo Uninstaller alternative on Linux?

shell agate
#

show result of whereis discord ; flatpak list

#

@timber tangle

#

in addition to that, show result of apt list -i discord

timber tangle
#

Thanks for responding! I'm close to total noob with linux, so any help is appreciated.

First command's results are:
discord: /usr/bin/discord /usr/share/discord
Second command's results are:

discord/now 1.0.138 amd64 [installed,local]```
shell agate
#

ok so u have the local "native" one

#

which is handled strictly by apt

#

and typically locates into /bin or /usr/bin

#

run up flatpak remove com.discordapp.Discord

#

once that's done, go to ~/.var/app in your file manager, and delete any discord folder or thing within that if u find any.

#

~ means your userhome

#

then once that's all done, just reboot.

#

and see if native discord will simply launch.

timber tangle
#

It said
error: No installed refs found for ‘com.discordapp.Discord’
I assume that means it's safe to just wipe that folder?

shell agate
#

you can do discord command to launch the binary from terminal, and see any messages later, after the reboot

shell agate
timber tangle
#

On it. By the way, for context: the long one is the old og location ive been having for months which stopped working, and the short config is the fresh that was unintentionally installed (I think I confirmed it by inspecting the running process in system monitor).

To my memory I used neither apt nor software manager app for the og installation and downloaded debian package from the official website. Dunno if they are considered flatpak or not (to my current knowledge so far no?)

timber tangle
shell agate
#

press ctrl+L and confirm ur in the right place

timber tangle
#

/home/%usrname%/.var/app/com.discordapp.Discord/config/discord

shell agate
#

tf

#

go up three folder levels

#

~/.var/app/

#

just delete the comdiscordapp...... folder there.

timber tangle
#

Just linux things

#

I guess it was discord who fucked things up with update method maybe. And maybe it does not cause issues for people who installed with flatpak or apt command, but for those with executable? Weird

#

But yeah, just wanted to check if it is safe to delete just that folder and it would be correct in my case

#

Thanks

shell agate
#

well apt wont find it. it's not in the repos. but u can or may have already installed the native .deb from discord.com.... which apt can and does see and manage

timber tangle
#

.deb from discord.com.... which apt can and does see and manage
good to hear confirmation on that, would be useful to know for the future

shell agate
#

so native discord launches now?

#

user downloaded deb packages are handled by Captan to install them as native packages

shell agate
timber tangle
#

I assume since the system did not recognize any packages installed, when I accessed the discord shortcut in the start menu, it started installing a discord package

shell agate
#

what second copy?

#

u shoudl ONLY have one copy

#

listed by apt list -i discord

#

nothing else

#

flatpak list should show nothing about discord

timber tangle
#

So these two pathes vencord showed me, both of them had separate full installations. Like, with various files and sub-directories

shell agate
#

yeah i had u nuke the folder

timber tangle
#

What I meant to say is that nothing changed in terms of discord behaviour between me making the post and us troubleshooting. And now it seems to e native discord since it launches if I type "discord" in the terminal

lavish imp
shell agate
gentle haven
#

Looks to me that @timber tangle was installing vencord, it detected config folders from native and flatpak discord, I guess it confused @timber tangle ? Now that you removed flatpak discord config folder, vencord should show only 1 path to choose. So, what is the current problem, if any?

timber tangle
#

I could probably restore the image few days prior with timeshift to satisfy that curiosity, but I feel it's too much hassle for that goal alone

#

I still believe I did not have flatpak originally since I used debian package for installation. But could be wrong

gentle haven
#

Seems like you got .deb version to work now.

timber tangle
#

Not exactly. New discord was unintentionally installed by the package manager

#

When I tried to originally fix the problem by downloading freshest version of .deb, it actually did nothing during installation