Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Inject script incorrect location for Arch Linux #347

Open
xstefen opened this issue May 8, 2019 · 10 comments
Open

[Bug] Inject script incorrect location for Arch Linux #347

xstefen opened this issue May 8, 2019 · 10 comments
Labels
bug Something isn't working

Comments

@xstefen
Copy link

xstefen commented May 8, 2019

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

@xstefen xstefen added the bug Something isn't working label May 8, 2019
@intrnl
Copy link

intrnl commented May 8, 2019

Discord on Fedora RPMFusion repository installs to /usr/lib64

Might as well put it here, 🤷

@Programatic
Copy link

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

@zerebos
Copy link
Member

zerebos commented Jul 17, 2019

Why is it in your downloads folder? Sounds like there's no easy way to make it work for all Linux flavors

@xstefen
Copy link
Author

xstefen commented Jul 18, 2019

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

@Programatic
Copy link

Programatic commented Jul 23, 2019

@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

@Programatic
Copy link

Programatic commented Jul 23, 2019

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;
    }

@marcussacana
Copy link

marcussacana commented Nov 13, 2019

ElementaryOS after the last update

image

--edit
looks like my index.js of the betterdiscord became corrupted for some reason, I did a fresh installation and worked.

@zerebos
Copy link
Member

zerebos commented Nov 13, 2019

Looks like you're using BBD. This is the wrong repo.

@marcussacana
Copy link

ow shit srry

@xstefen
Copy link
Author

xstefen commented Nov 13, 2019

Well this was quite the unexpected revival, hello and g'day sirs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants