Open xstefen opened 5 years ago
Discord on Fedora RPMFusion repository installs to /usr/lib64
Might as well put it here, 🤷
I just went through with this on Arch, i edited the install script to where the location is pointed to in the PKGBUILD in thie: https://aur.archlinux.org/packages/discord/ so for me: ~/Downloads/discord/pkg/discord/opt/discord/resources
Why is it in your downloads folder? Sounds like there's no easy way to make it work for all Linux flavors
I just went through with this on Arch, i edited the install script to where the location is pointed to in the PKGBUILD in thie: https://aur.archlinux.org/packages/discord/ so for me: ~/Downloads/discord/pkg/discord/opt/discord/resources
Some people just want to see the world burn
Why is it in your downloads folder? Sounds like there's no easy way to make it work for all Linux flavors
Just tossing ideas out, what if we used a really obnoxious find or even asked the user? or had a list of typical locations that would be checked? im a noob, back to my nubdroid shib
@rauenzi @xstefen The reason it was in my downloads folder, is because I just downloaded it and did everything from there. The pkg build also copies it over and links from /opt/discord/ but installin in either just results in discord perma crashing for me because it 'cant find a constructor' when I try and use the UI in any way
Here is what i put that does install (i guess more consistently) on arch. I mean, discord just crashes but it at least says it successfully installed
} else if (process.platform === 'linux') {
const standardPath = path.join('/usr', 'share', release.toLowerCase().replace(/ /g, '-'), 'resources');
if (!fs.existsSync(standardPath)) return path.join('/opt', 'discord', 'resources');
return path1;
}
ElementaryOS after the last update
--edit looks like my index.js of the betterdiscord became corrupted for some reason, I did a fresh installation and worked.
Looks like you're using BBD. This is the wrong repo.
ow shit srry
Well this was quite the unexpected revival, hello and g'day sirs
Inject script looks for /usr/share/discord/resources
On Arch Linux, discord is installed via an AUR package and defaults to /opt/discord
Therefore this injection script method fails. But you probably knew that. <3