mykeels / slack-theme-cli

A CLI tool for changing Slack's desktop app colors
249 stars 25 forks source link

Stopped working in Slack 4.0 #33

Open bauerp opened 5 years ago

bauerp commented 5 years ago

Apparently Slack made some changes which doesn't allow this to work anymore. Hope that you can fix this.

xxKeith20xx commented 5 years ago

I get the following:

~/ sudo slack-theme night
file does not exist
Dumberdore commented 5 years ago

Please check this comment Following worked for me (I am using ZSH - Please check install section for other shells)-

$ sudo slack-theme uninstall
$ curl https://raw.githubusercontent.com/mykeels/slack-theme-cli/master/slack-theme -O && SLACK_THEME_SHELL_PROFILE=~/.zshrc bash slack-theme install && . ~/.zshrc
$ slack-theme night
$ slack-theme midnight-blue

Would you please check ?

xxKeith20xx commented 5 years ago

@OkBeacon I just tried it w/ zsh and it seems to run, but still shows the default slack theme for me?

mykeels commented 5 years ago

@OkBeacon, I'm glad it works for you.

@xxKeith20xx, are you saying no matter what slack-theme command you run, only the default white theme shows?

xxKeith20xx commented 5 years ago

I tried again and now slack fails to open with this error:

A JavaScript error occurred in the main process:
Uncaught Exception:
Error: Unable to find a valid app
    at Object.<anonymous> (/Applications/Slack.app/Contents/Resources/electron.asar/browser/init.js:120:9)
    at Object.<anonymous> (/Applications/Slack.app/Contents/Resources/electron.asar/browser/init.js:190:3)
    at Module._compile (internal/modules/cjs/loader.js:693:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:746:12)
    at startup (internal/bootstrap/node.js:282:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:759:3)

After reinstalling and starting fresh, the issue seems to be that no matter what slack-theme command I run, only the default white theme shows @mykeels

guhanrv commented 5 years ago

I get "no matching processes belonging to you were found" and it opens up normally.

bauerp commented 5 years ago

I got it to work using OkBeacon's method. Thanks!

ransagy commented 5 years ago

Anyone managed to get it working in Windows/WSL? Just can't seem to get it to run properly.

mykeels commented 5 years ago

@ransagy I hope to spend sometime this weekend getting it working for Windows

kevcenteno commented 5 years ago

This is broken on linux as well.

kishore-vkrn commented 5 years ago

tried steps by @OkBeacon still loading with default white

bauerp commented 5 years ago

Using OkBeacon's method works for me initially, but after a day or two it automatically reverts back to the default theme while still being on the same Slack version. This is happening on both my Macs.

kkuhle commented 5 years ago

+1 on WSL

dubhunter commented 5 years ago

Bump

adeebahmed commented 5 years ago

Using OkBeacon's method works for me initially, but after a day or two it automatically reverts back to the default theme while still being on the same Slack version. This is happening on both my Macs.

My experience has been the same, worked nicely for a short while.

gitjonez commented 5 years ago

I installed for the first time. No themes worked. Tried: slack-theme uninstall: the running Slack quit. Starting it back up: A JavaScript error occurred in the main process

Error: Unable to find a valid app
    at Object.<anonymous> (/Applications/Slack.app/Contents/Resources/electron.asar/browser/init.js:120:9)
    at Object.<anonymous> (/Applications/Slack.app/Contents/Resources/electron.asar/browser/init.js:190:3)
    at Module._compile (internal/modules/cjs/loader.js:693:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:704:10)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:746:12)
    at startup (internal/bootstrap/node.js:282:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:759:3)

The file: Applications/Slack.app/Contents/Resources/electron.asar/browser/init.js doesn't exist: electron.asar is a file, not a directory.

*Edit: MacOS Mojave 10.14.6 (18G84) **Edit: Slack: Version 4.0.0 (App Store)

luisdavim commented 5 years ago

this worked for me: https://github.com/widget-/slack-black-theme/issues/98#issuecomment-511449693