BeautifulDiscord icon indicating copy to clipboard operation
BeautifulDiscord copied to clipboard

Doesn't work on linux

Open RhythmLunatic opened this issue 8 years ago • 6 comments

$ sudo python3.5 beautifuldiscord --css /home/arc/Documents/discord.css
Found Discord under /usr/share/discord

Done!

You may now edit your /home/arc/Documents/discord.css file,
which will be reloaded whenever it's saved.

Relaunching Discord now...

And the CSS stays unchanged.

RhythmLunatic avatar Feb 17 '17 02:02 RhythmLunatic

can you clarify? not sure i understand your issue

leovoel avatar Feb 17 '17 02:02 leovoel

I ran beautifuldiscord using "sudo python3.5 beautifuldiscord --css /home/arc/Documents/discord.css". It installed, but discord remains unchanged.

After restarting Discord a second time it won't start and gives this error. https://arcofswords.s-ul.eu/c27mhN05.png

RhythmLunatic avatar Feb 19 '17 05:02 RhythmLunatic

This is because the process termination failed. You should terminate all the processes Discord has yourself.

Rapptz avatar Feb 19 '17 06:02 Rapptz

The second issue is caused by incorrect folder permissions (beautifuldiscord cannot write to discord app without root), but still the CSS doesn't actually work.

window.applyAndWatchCSS() doesn't do anything either.

RhythmLunatic avatar Mar 04 '17 01:03 RhythmLunatic

was the app.asar extracted? if it was, can you check inside index.js and look for mainWindow.webContents.on('dom-ready',?

if both of those are true it should be working, strange...

leovoel avatar Mar 04 '17 03:03 leovoel

well, i can assure you that i have python-utils installed .. [ (yaourt output) 2 community/python-psutil 5.2.2-1 [installed] A cross-platform process and system utilities module for Python 3 community/python2-psutil 5.2.2-1 [installed] A cross-platform process and system utilities module for Python2 ]

do i really need an older version for it to work ?

[syl3nt@machine ~]$ beautifuldiscord --css /home/syl3nt/myown.css Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 654, in _build_master ws.require(requires) File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 968, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 859, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (psutil 5.2.1 (/usr/lib/python3.6/site-packages), Requirement.parse('psutil==5.1.0'), {'BeautifulDiscord'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/bin/beautifuldiscord", line 6, in from pkg_resources import load_entry_point File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 3036, in @_call_aside File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 3020, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 3049, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 656, in _build_master return cls._build_from_requirements(requires) File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 669, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 854, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'psutil==5.1.0' distribution was not found and is required by BeautifulDiscord

help ? anybody ?

[edit]

fixed by reverting python2-psutil to a previous version

syl3n7 avatar Mar 29 '17 13:03 syl3n7