re: Easy Dark Mode for Slack VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hey fynn, I tried this command and got the following error: -bash: /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-in...
 

well, sounds like you don't have the right permissions to edit that file.
just add sudo at the beginning of the one-liner (on a  ctrl + a gets you there).

Should have said this in my original post, but sudo doesn't seem to help. I have admin permissions on this computer, though it's running Mojave and I'm not sure if that added any complications. I also dragged Terminal into "Full Disk Access" in Security & Privacy preferences just to be sure. Weird.

well, admin permissions and sudo aren't really the same. some files have an extra layer of "protection".

what does ls -la /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js say?

Here's what I get:

-rw-r--r-- 1 root wheel 3806 Oct 22 09:03 /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js

(I edited the file manually this morning to get it working)

yeah so the file belongs to the root user.. not you, meaning you have to use sudo or chown

Just use

echo 'document.addEventListener("DOMContentLoaded", function() {$.ajax({url: "https://cdn.rawgit.com/laCour/slack-night-mode/master/css/raw/black.css",success: function(css) {let overrides = "code { background-color: #535353; color: #85c5ff; } .c-mrkdwn__pre, .c-mrkdwn__quote { background: #535353 !important; background-color: #535353 !important; }"; $("<style></style>").appendTo("head").html(css + overrides);}});});' | sudo tee -a /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js

to fix your permission issues.

code of conduct - report abuse