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

Problem with Discord Flatpak installation #86

Closed
marcothms opened this issue Apr 20, 2020 · 3 comments
Closed

Problem with Discord Flatpak installation #86

marcothms opened this issue Apr 20, 2020 · 3 comments

Comments

@marcothms
Copy link

Hello!
A similiar issues #62 was opened, but none of the tips helped on my installation.

Im getting this error:

ryzenlaptop ➜ ~/.config/discord beautifuldiscord --css my.css
Found Discord under /app/discord
Traceback (most recent call last):
File "/usr/local/bin/beautifuldiscord", line 11, in
load_entry_point('BeautifulDiscord==0.1.1', 'console_scripts', 'beautifuldiscord')()
File "/usr/local/lib/python3.7/site-packages/beautifuldiscord/app.py", line 226, in main
os.chdir(discord.script_path)
File "/usr/local/lib/python3.7/site-packages/beautifuldiscord/app.py", line 92, in script_path
raise RuntimeError('Could not find discord application version under "{}".'.format(config))
RuntimeError: Could not find discord application version under "/home/marc/.config/discord".

Also just calling beautifuldiscord didn't work

@SparrowOchon
Copy link

Try using the #65 the problem occurs because Flatpak doesn't use the same directory for applications. And Beautiful discord hard codes a path.

@gehrigwilcox
Copy link

gehrigwilcox commented Jun 8, 2020

I fixed the issue by changing '~/config/' on line 75 of app.py to ~/.var/app/com.discordapp.Discord/config/' (XDG_CONFIG_HOME is not set for me) and I get the following error

Found Discord under /app/discord

Done!

You may now edit your /home/gehrig/.var/app/com.discordapp.Discord/config/discord/0.0.10/modules/discord_desktop_core/discord-custom.css file,
which will be reloaded whenever it's saved.

Relaunching Discord now...
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/gehrig/.local/lib/python3.8/site-packages/beautifuldiscord/__main__.py", line 3, in <module>
    main()
  File "/home/gehrig/.local/lib/python3.8/site-packages/beautifuldiscord/app.py", line 388, in main
    discord.launch()
  File "/home/gehrig/.local/lib/python3.8/site-packages/beautifuldiscord/app.py", line 25, in launch
    subprocess.Popen([os.path.join(self.path, self.exe)], stdout=f, stderr=subprocess.STDOUT)
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
NotADirectoryError: [Errno 20] Not a directory: '/app/discord/Discord'

@marcothms
Copy link
Author

I now removed Discord Flatpak and started using the rpmfusion package of discord
With that one, it works @lougehrig10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants