slack-theme-cli icon indicating copy to clipboard operation
slack-theme-cli copied to clipboard

Stopped working in Slack 4.0

Open bauerp opened this issue 6 years ago • 17 comments

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

bauerp avatar Jul 16 '19 18:07 bauerp

I get the following:

~/ sudo slack-theme night
file does not exist

xxKeith20xx avatar Jul 17 '19 14:07 xxKeith20xx

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 ?

Dumberdore avatar Jul 17 '19 16:07 Dumberdore

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

xxKeith20xx avatar Jul 17 '19 17:07 xxKeith20xx

@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?

mykeels avatar Jul 17 '19 19:07 mykeels

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

xxKeith20xx avatar Jul 17 '19 20:07 xxKeith20xx

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

guhanrv avatar Jul 18 '19 15:07 guhanrv

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

bauerp avatar Jul 18 '19 23:07 bauerp

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

ransagy avatar Jul 19 '19 16:07 ransagy

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

mykeels avatar Jul 19 '19 20:07 mykeels

This is broken on linux as well.

kevcenteno avatar Jul 19 '19 21:07 kevcenteno

tried steps by @OkBeacon still loading with default white

kishore-vkrn avatar Jul 22 '19 05:07 kishore-vkrn

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.

bauerp avatar Jul 22 '19 14:07 bauerp

+1 on WSL

kkuhle avatar Jul 22 '19 17:07 kkuhle

Bump

dubhunter avatar Jul 22 '19 22:07 dubhunter

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.

adeebahmed avatar Jul 25 '19 20:07 adeebahmed

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)

gitjonez avatar Jul 26 '19 00:07 gitjonez

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

luisdavim avatar Aug 09 '19 09:08 luisdavim