GithubHelp home page GithubHelp logo

beautifuldiscord's People

Contributors

abzol avatar alexflipnote avatar allanf181 avatar banchouboo avatar debianprogrammer avatar khazhyk avatar leafyluigi avatar leovoel avatar llyyr avatar pierce01 avatar rapptz avatar rx14 avatar tain101 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

beautifuldiscord's Issues

original_core.asar bug

Seems as if on rare occasions, the original_core.asar file gets deleted - either by discord itself or beautifuldiscord, not sure - causing it to be impossible to disable beautifuldiscord. I believe a possible fix for this would simply be creating a backup of the original_core.asar file outside of the discord_desktop_core folder as a failsafe.

Edit: Upon further investigation, it seems when this occurs, it requires a fresh install of beautifuldiscord in addition. I believe this to be related to my prior issue (#59).

Not working after latest Discord update?

Hi,

Was just noticing how after today's update, BD doesn't seem to even attempt to load, and nothing CSS wise is functioning whatsoever. Am I the only one suffering from this issue, or is there something that needs to be updated?

Thanks in advance!

How to install?

I have no idea how to install this. I have a mac with python. Please help!

Doesn't work on linux

$ 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.

Unable to set css : ERROR: AttributeError 'module' object has no attribute 'scandir'

So, i installed beautifuldiscord and typed sudo beautifuldiscord --css /my/file/path . But an error says :
ERROR: AttributeError 'module' object has no attribute 'scandir'
(there is the full terminal line: )

biowolf@whatever ~ $ sudo beautifuldiscord --css '/home/biowolf/whatever/style.css' 
Found Discord under /usr/share/discord
asar already extracted, overwrite? (Y/n): y
ERROR: AttributeError 'module' object has no attribute 'scandir'

Done!

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

Relaunching Discord now...
biowolf@whatever ~ $ 

and i don't know how to make it disappear. I must revert each time i put the css argument... Oh, and, btw, there is a screen of discord bug : https://imgur.com/a/yc0RqZU
Could someone help me? Thx

Doesn't work on macOS when not installed in the Applications folder

Found Discord under /Users/Bond/Documents/Bond/Applications/Discord.app/Contents/MacOS
Traceback (most recent call last):
  File "/usr/local/bin/beautifuldiscord", line 11, in <module>
    load_entry_point('BeautifulDiscord==0.1.0', 'console_scripts', 'beautifuldiscord')()
  File "/usr/local/lib/python3.6/site-packages/beautifuldiscord/app.py", line 126, in main
    os.chdir(discord.resources_path)
FileNotFoundError: [Errno 2] No such file or directory: '/Applications/Discord.app/Contents/Resources'

It finds Discord under /Users/Bond/Documents/Bond/Applications/ and tries to edit it in /Applications/

Error when running

Found Discord under /usr/share/discord Traceback (most recent call last): File "/home/x/.virtualenv/BeautifulDiscord/bin/beautifuldiscord", line 11, in <module> load_entry_point('BeautifulDiscord==0.1.0', 'console_scripts', 'beautifuldiscord')() File "/home/x/.virtualenv/BeautifulDiscord/lib/python3.5/site-packages/beautifuldiscord/app.py", line 143, in main if extract_asar(): File "/home/x/.virtualenv/BeautifulDiscord/lib/python3.5/site-packages/beautifuldiscord/app.py", line 98, in extract_asar a.extract('./app') File "/home/x/.virtualenv/BeautifulDiscord/lib/python3.5/site-packages/beautifuldiscord/asar.py", line 276, in extract self._extract_directory('.', self.header['files'], path) File "/home/x/.virtualenv/BeautifulDiscord/lib/python3.5/site-packages/beautifuldiscord/asar.py", line 254, in _extract_directory os.makedirs(dest) File "/home/x/.virtualenv/BeautifulDiscord/lib/python3.5/os.py", line 231, in makedirs makedirs(head, mode, exist_ok) File "/home/x/.virtualenv/BeautifulDiscord/lib/python3.5/os.py", line 241, in makedirs mkdir(name, mode) PermissionError: [Errno 13] Permission denied: './app'

I am running linux mint, python 3.5.2 in a virtualenv

Background-image dont work.

I wanna change my background image with: .app { background-image: url("http://cdn-image.travelandleisure.com/sites/default/files/styles/1600x1000/public/1444253482/DG2015-paris.jpg"); } but it doesnt work! Can you help me?

"Could not find Discord executable." on Linux

On a Linux Mint Rosa machine, running sudo beautifuldiscord solves the problem of lack of permissions to access ./app, but does not find the Discord executable in the end.
All it prints is Could not find Discord executable, and when I never tampered with my Discord dir in any way, I don't get why this error persists.

--insecure flag for insecure features (local imports and local images)

Of course, default behavior should definitely be to be as secure as possible; however, this also comes with the side effect of the inability to use local resources. When a resource is ~8MB, it may be preferable to use i t locally.

For people who desire these feature, at the cost of Electron security, a flag for such features could be helpful.

Discord Snap support

I'm using the Snap version of Discord.
BeautifulDiscord can't find the ~/.config/discord folder because it doesn't exist.
Instead, it's located at ~/snap/discord/current/.config/discord.

psutil 5.4.0 support

Add support of latest version psutil.

Traceback (most recent call last):
  File "c:\python\python36\lib\site-packages\pkg_resources\__init__.py", line 664, in _build_master
    ws.require(__requires__)
  File "c:\python\python36\lib\site-packages\pkg_resources\__init__.py", line 981, in require
    needed = self.resolve(parse_requirements(requirements))
  File "c:\python\python36\lib\site-packages\pkg_resources\__init__.py", line 872, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (psutil 5.4.0 (c:\python\python36\lib\site-packages), Requirement.parse('psutil==5.1.0'), {'BeautifulDiscord'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python\Python36\Scripts\beautifuldiscord-script.py", line 6, in <module>
    from pkg_resources import load_entry_point
  File "c:\python\python36\lib\site-packages\pkg_resources\__init__.py", line 3142, in <module>
    @_call_aside
  File "c:\python\python36\lib\site-packages\pkg_resources\__init__.py", line 3126, in _call_aside
    f(*args, **kwargs)
  File "c:\python\python36\lib\site-packages\pkg_resources\__init__.py", line 3155, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "c:\python\python36\lib\site-packages\pkg_resources\__init__.py", line 666, in _build_master
    return cls._build_from_requirements(__requires__)
  File "c:\python\python36\lib\site-packages\pkg_resources\__init__.py", line 679, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "c:\python\python36\lib\site-packages\pkg_resources\__init__.py", line 867, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'psutil==5.1.0' distribution was not found and is required by BeautifulDiscord

Linux - doesn't work at all if the discord install directory has no write permissions

with discord-canary installed via the AUR package, and thus installed in a read-only directory, this happens:

$ beautifuldiscord --css /home/tyler/discord/style.css 
Found DiscordCanary under /opt/discord-canary
Traceback (most recent call last):
  File "/usr/bin/beautifuldiscord", line 11, in <module>
    load_entry_point('BeautifulDiscord==0.1.0', 'console_scripts', 'beautifuldiscord')()
  File "/usr/lib/python3.6/site-packages/beautifuldiscord/app.py", line 143, in main
    if extract_asar():
  File "/usr/lib/python3.6/site-packages/beautifuldiscord/app.py", line 98, in extract_asar
    a.extract('./app')
  File "/usr/lib/python3.6/site-packages/beautifuldiscord/asar.py", line 276, in extract
    self._extract_directory('.', self.header['files'], path)
  File "/usr/lib/python3.6/site-packages/beautifuldiscord/asar.py", line 254, in _extract_directory
    os.makedirs(dest)
  File "/usr/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: './app'

Running beautifuldiscord as root sorta works, but then due to the permissions of the files it creates, it makes discord itself only able to run as root.

A quick, simple fix would be to tell people to run sudo chmod -R a+w /opt/discord-canary or whatever the install directory is. Another fix would be to make running beautifuldiscord as root work without breaking discord for everyone but the root user, possibly even calling sudo to automate this if the directory has no write permissions to the user running it.

Easy install

Add an batch file or any file that can make the install easier, because my friends have a lot of trouble installing beautifuldiscord

Couldn't copy file ./node_modules/[...], no extracted directory

Using the very latest of master branch; using canary branch makes no difference.

BeautifulDiscord prints out a bunch of these errors(warnings?) but otherwise claims to work. However, the client doesn't actually have any custom CSS applied.

/opt/discord is writable by my user, so afaik it's not a permissions issue.

Output:

git:(master) | ->  python __main__.py --css ~/theme/theme.css 
Found Discord under /opt/discord
Couldn't copy file ./node_modules/.bin/har-validator, no extracted directory
Couldn't copy file ./node_modules/.bin/mkdirp, no extracted directory
Couldn't copy file ./node_modules/.bin/rimraf, no extracted directory
Couldn't copy file ./node_modules/.bin/sshpk-conv, no extracted directory
Couldn't copy file ./node_modules/.bin/sshpk-sign, no extracted directory
Couldn't copy file ./node_modules/.bin/sshpk-verify, no extracted directory
Couldn't copy file ./node_modules/.bin/uuid, no extracted directory
Couldn't copy file ./node_modules/http-signature/node_modules/.bin/sshpk-conv, no extracted directory
Couldn't copy file ./node_modules/http-signature/node_modules/.bin/sshpk-sign, no extracted directory
Couldn't copy file ./node_modules/http-signature/node_modules/.bin/sshpk-verify, no extracted directory
Couldn't copy file ./node_modules/request/node_modules/.bin/har-validator, no extracted directory
Couldn't copy file ./node_modules/request/node_modules/.bin/uuid, no extracted directory

Done!

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

Relaunching Discord now...

git log (looks exactly the same on canary and master):

git:(master) | ->  git log | head -8
commit afab343ddae053335783af6a7b92392fc22abaf0
Author: Rapptz <[email protected]>
Date:   Wed Dec 20 03:59:05 2017 -0500

    Move cssInjection.js file to a writeable directory.
    
    Moves it over to ~/.beautifuldiscord/cssInjection.js, should solve most
    of the permission errors and ceases to require root.

window.applyAndWatchCSS() doesn't seem to exist:
window["applyAndWatchCSS"] // returns undefined

Using Discord stable 0.0.4

Cannot Revert Changes

capture
It doesn't seem to be extracting the app.asar file as I'm missing the extracted app folder and the
original_app.asar file.

So invoking the script with the --revert flag will do nothing. it might be overwriting the original app.asar file.

Unable to uninstall

This isn't a very complicated issue. I don't want the skin I have anymore. I reinstalled Discord twice and even deleted Python, yet it's still there.
How do I uninstall this?

BeautifulDiscord on Arch Linux

On Arch Linux, the discord directory is located at /opt/discord, the binary is named Discord -- When running beautifuldiscord, it is unable to locate the discord binary. Also, it tries to create things in the directory, but it is installed as a system program, so I have to change permissions in order to do that which is not necessarily good. Perhaps something in $XDG_CONFIG_HOME should be used?

Can't install on Windows

When I try to install BeautifulDiscord, it gives me this error:

C:\Users\owner>py -m beautifuldiscord --css C:\CSS\lol.css
Traceback (most recent call last):
File "C:\Users\owner.windows-build-tools\python27\lib\runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "C:\Users\owner.windows-build-tools\python27\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Users\owner.windows-build-tools\python27\lib\site-packages\beautifuldiscord_main
.py", line 1, in
from beautifuldiscord.app import main
File "C:\Users\owner.windows-build-tools\python27\lib\site-packages\beautifuldiscord\app.py", line 11, in
from beautifuldiscord.asar import Asar
File "C:\Users\owner.windows-build-tools\python27\lib\site-packages\beautifuldiscord\asar.py", line 102
nonlocal concatenated_files, offset
^
SyntaxError: invalid syntax

OS X Support?

Not sure if there is OS X support or not, but when i try to run this i get:

0: Found Discord Canary Helper
1: Found Discord Canary
Discord executable to use (number): 1
WARNING: app.asar not found
Traceback (most recent call last):
  File "/usr/local/bin/beautifuldiscord", line 9, in <module>
    load_entry_point('BeautifulDiscord==0.1.0', 'console_scripts', 'beautifuldiscord')()
  File "/usr/local/lib/python3.5/site-packages/beautifuldiscord/app.py", line 168, in main
    with open('./resources/app/cssInjection.js', 'w') as f:
FileNotFoundError: [Errno 2] No such file or directory: './resources/app/cssInjection.js'

Repacking asar

Hey there, saw in the commit here, that you repack the asar after modifying mainScreen.js. This shouldn't be necessary if you modify the index.js at %appdata%\discord\x.x.xxx\modules\discord_desktop_core to be module.exports = require('./core'); instead of module.exports = require('./core.asar');. I have been doing this and not had any issues with discord since the modules are still imported properly.

Discord's CSS assets overwriting custom CSS

Hello hello o/

Just a note, I have already updated beautifuldiscord to latest version, deleted the AppData\Roaming\discord folder, and reinstalled discord.

Lately with the recent Discord update, custom CSS seems to be occasionally getting overwritten by Discord's CSS assets. The one time custom CSS works, it can be broken again with Ctrl + R or when Discord is restarted. I'm not quite sure what causes this, but I hope this would be fixed soon.

Here is the image just in case-
Discord CSS asset overwriting the custom CSS

Thank you in advance!

AUR package fails to install with pacaur

I have no idea who maintains this https://aur.archlinux.org/packages/beautiful-discord/

[charles@Humble-Huckleberry ~]$ LANG=en_US.UTF-8 pacaur -Sa beautiful-discord
:: resolving dependencies...
:: looking for inter-conflicts...

AUR Packages  (1) beautiful-discord-git~7153756-1  

:: Proceed with installation? [Y/n] y
:: Retrieving package(s)...
:: beautiful-discord build files are up-to-date -- skipping
:: Checking beautiful-discord integrity...
==> Making package: beautiful-discord git~7153756-1 (Mon May  1 15:02:48 EDT 2017)
==> Retrieving sources...
  -> Updating BeautifulDiscord git repo...
Fetching origin
==> Validating source files with sha1sums...
    BeautifulDiscord ... Skipped
:: Building beautiful-discord package(s)...
==> Making package: beautiful-discord git~293082e-1 (Mon May  1 15:02:49 EDT 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
running build
running build_py
creating build
creating build/lib
creating build/lib/beautifuldiscord
copying beautifuldiscord/asar.py -> build/lib/beautifuldiscord
copying beautifuldiscord/app.py -> build/lib/beautifuldiscord
copying beautifuldiscord/__init__.py -> build/lib/beautifuldiscord
copying beautifuldiscord/__main__.py -> build/lib/beautifuldiscord
running egg_info
creating BeautifulDiscord.egg-info
writing BeautifulDiscord.egg-info/PKG-INFO
writing dependency_links to BeautifulDiscord.egg-info/dependency_links.txt
writing entry points to BeautifulDiscord.egg-info/entry_points.txt
writing requirements to BeautifulDiscord.egg-info/requires.txt
writing top-level names to BeautifulDiscord.egg-info/top_level.txt
writing manifest file 'BeautifulDiscord.egg-info/SOURCES.txt'
reading manifest file 'BeautifulDiscord.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'BeautifulDiscord.egg-info/SOURCES.txt'
==> Entering fakeroot environment...
==> Starting package()...
running install
running install_lib
creating /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr
creating /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/lib
creating /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/lib/python3.6
creating /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/lib/python3.6/site-packages
creating /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/lib/python3.6/site-packages/beautifuldiscord
copying build/lib/beautifuldiscord/asar.py -> /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/lib/python3.6/site-packages/beautifuldiscord
copying build/lib/beautifuldiscord/app.py -> /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/lib/python3.6/site-packages/beautifuldiscord
copying build/lib/beautifuldiscord/__init__.py -> /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/lib/python3.6/site-packages/beautifuldiscord
copying build/lib/beautifuldiscord/__main__.py -> /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/lib/python3.6/site-packages/beautifuldiscord
byte-compiling /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/lib/python3.6/site-packages/beautifuldiscord/asar.py to asar.cpython-36.pyc
byte-compiling /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/lib/python3.6/site-packages/beautifuldiscord/app.py to app.cpython-36.pyc
byte-compiling /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/lib/python3.6/site-packages/beautifuldiscord/__init__.py to __init__.cpython-36.pyc
byte-compiling /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/lib/python3.6/site-packages/beautifuldiscord/__main__.py to __main__.cpython-36.pyc
writing byte-compilation script '/tmp/tmpjhyumrrh.py'
/usr/bin/python /tmp/tmpjhyumrrh.py
removing /tmp/tmpjhyumrrh.py
running install_egg_info
running egg_info
writing BeautifulDiscord.egg-info/PKG-INFO
writing dependency_links to BeautifulDiscord.egg-info/dependency_links.txt
writing entry points to BeautifulDiscord.egg-info/entry_points.txt
writing requirements to BeautifulDiscord.egg-info/requires.txt
writing top-level names to BeautifulDiscord.egg-info/top_level.txt
reading manifest file 'BeautifulDiscord.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'BeautifulDiscord.egg-info/SOURCES.txt'
Copying BeautifulDiscord.egg-info to /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/lib/python3.6/site-packages/BeautifulDiscord-0.1.0-py3.6.egg-info
running install_scripts
Installing beautifuldiscord script to /home/charles/.cache/pacaur/beautiful-discord/pkg/beautiful-discord/usr/bin
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "beautiful-discord"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: beautiful-discord git~293082e-1 (Mon May  1 15:02:50 EDT 2017)
==> Cleaning up...
:: Installing beautiful-discord package(s)...
:: beautiful-discord package(s) failed to install. Check .SRCINFO for mismatching data with PKGBUILD.

It works with yaourt or manual makepkg

Doesn't work with discord as of Jan 8th

When attempting to install theme it gives the following error FileNotFoundError: [Errno 2] No such file or directory: './app/index.js' in app.py , tested on normal release and PTB, worked fine before the update that I just got for both.

edit: I also uninstalled and reinstalled this to make sure it was up to date before testing.

Python version conflict or psutil not found

I'm on Manjaro Linux and installed BeautifulDiscord via the aur but I'm getting a crash that seems to either be related to Python versioning or to BeautifulDiscord not finding psutils.

$ beautifuldiscord
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.0.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 <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3030, in <module>
    @_call_aside
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3014, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3043, 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](url)
$ python --version
Python 3.6.0
$ yaourt psutil
1 extra/psutils 1.17-5 [installed]
2 community/python-psutil 5.0.1-2 [installed]

I'd guess that BeautifulDiscord is just not looking in the right directory for Python, but I went and checked, and it is looking in exactly the right place. Are the aur packages maybe not up to date, or does BeautifulDiscord maybe prefer an older version of something? Or am I completely wrong about all of the above and have no idea what's happening?

Canary issue?

So I have tried to install BeautifulDiscord from the Canary branch, however it stopped to work today at 17. September 2017. Here's an image of the error it output
Image

I have tested from both C:\ and G:\ (Just to make sure it's not different partition issue, but the same error displays regardless.

Here's an image of the folder it searches, noticed that discord_desktop_core is not located here. In case of wonder, I have tried to reinstall Discord Canary to check.
Image2

Thanks in advance
-- AlexFlipnote

New Canary update broke CSS (0.0.204)

Whenever there's a new Canary update, I run beautifuldiscord in cmd (windows) with the path to my CSS file, and it usually works fine. But now beautifuldiscord has stopped working completely here, and doesn't show any tracebacks. I'm looking in the discord_desktop_core folder, and it makes the changes but it just doesn't apply the CSS. I'm on Windows.

link isn't working

I just replaced the image url but it didn't change the image
don't know why

How to use on Windows

Hello, i have installed it but i dont know how to use it. should i open a phyton script or anything?
Or what is the CSS file that im looking to edit?

less/sass/preprocessor support

i've had a few requests for this, still not entirely sure it's a good call.

basically it would run the appropriate preprocessor on your file before adding it to the DOM. this could be based on the filename, if it ends with .less it gets processed, if it ends with .css it doesn't, yadda yadda.

things:

  • sass is giant, so bundling that would be kind of terrible. less is more manageable on that part. postcss is also neat (and quite small), but not a direct preprocessor, rather just something you can build a preprocessor with.

  • bundling these libraries is not exactly something i'm thrilled about. i'm afraid anything else would just complicate matters too much, though.

  • reloading is probably going to get a bit slower. i don't care all that much, but still...

there's the argument that this shouldn't be done in first place because it's kind of trivial to setup your workflow so that you can save and your less/sass/whatever thing gets compiled into the right css file and it gets picked up anyway.
that's at least easier on my side, but i don't know how are most people using the tool feel about this.

i don't know which path i'm going to take yet (i'm very heavily leaning on keeping it out), so i'm making an issue so that i can get some more thoughts about this.

Canary - error when trying to apply script

Getting this on Canary when trying to apply a script:

C:\Python\Python36-32>beautifuldiscord --css C:\Users\Nils\Dropbox\beautifuldiscord\styles\pask.css
Found DiscordCanary.exe under C:\Users\Nils\AppData\Local\DiscordCanary\app-0.0.204
WARNING: app.asar not found
Traceback (most recent call last):
  File "C:\Python\Python36-32\Scripts\beautifuldiscord-script.py", line 11, in <module>
    load_entry_point('BeautifulDiscord==0.1.0', 'console_scripts', 'beautifuldiscord')()
  File "C:\Python\Python36-32\lib\site-packages\beautifuldiscord\app.py", line 233, in main
    with open('./app/index.js', 'r', encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: './app/index.js'

"failed to create process" error

I keep getting a "failed to create process" error whenever I try use beatifuldiscord -css [my file]

I'm on Windows 10 using command line.

My discord version is Canary Updated yesterday (27/09/16)

Discord update broke the script

From the looks of it, update 0.0.300 (Released today) has a different file structure and as such the script crashes when trying to find index.js.

Traceback:

Found Discord.exe under C:\Users\Linus\AppData\Local\Discord\app-0.0.300
Traceback (most recent call last):
  File "C:\Users\Linus\AppData\Local\Programs\Python\Python35-32\lib\runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\Linus\AppData\Local\Programs\Python\Python35-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Linus\AppData\Local\Programs\Python\Python35-32\lib\site-packages\beautifuldiscord\__main__.py", line 3, in <module>
    main()
  File "C:\Users\Linus\AppData\Local\Programs\Python\Python35-32\lib\site-packages\beautifuldiscord\app.py", line 233, in main
    with open('./app/index.js', 'r', encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: './app/index.js'

Tested with the most recent version of BeautifulDiscord. The new file structure of the extracted app folder looks like this:

app_bootstrap/
common/
node_modules/
build_info.json
cssInjection.js
package.json`

Index.js appears to be in app_bootstrap.

[macOS error] Process still exist but it's a zombie

Hey, I managed to install betterdiscord on my MacBook, as I'm used to Linux, which works a bit like macOS terminal. But when I'm starting betterdiscord, I get this quite unique error:

MacBook-Pro-of-Laggron:~ laggron$ beautifuldiscord --css betterdiscord/prism.css
psutil.ZombieProcess process still exists but it's a zombie (pid=1395)

I searched the error but it seems it's code related, so maybe I can get some help here about that

[Errno 2] No such file or directory

I'm all of the sudden (after it working fine) getting a [Errno 2] No such file or directory error when I try to use beautifuldiscord. beautifuldiscord --help works just fine, but -css and --revert give the error. I have reinstalled beautifuldiscord with nothing changing.

Issue with Flatpak Installation

Hi there,

I'm wondering what the best way to go about using BD with the Flatpak version (a.k.a what Linix Mint uses as their software manager installer).

Because it installs to /var/lib/flatpak/app/com.discordapp.Discord instead of the normal location, I then get the message Could not find Discord executable. when I run BD.

This makes sense, but is there any way to go about fixing this other than installing Discord through the normal .deb off their website? Having Flatpak deal with updates and etc makes it a million times easier.

Thanks in advance guys!

Edit: To be more direct, the actual Discord location us a sub-folder of the one above:
/var/lib/flatpak/app/com.discordapp.Discord/x86_64/stable/3ac6f4539e8d5caaa8cc9e82fcaa75649d63c51c0eb7f930ae3f6f88659a5b63

Linux: only reloads once

When saving the file, BeautifulDiscord reloads the CSS file once. Subsequent file changes are not applied to Discord.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.