AtomMaterialUI / mtslack

Customize your Slack experience with tweaks and themes. Includes the famous Material Themes as well as other popular themes such as Monokai Pro, Dracula, Atom One, GitHub, Solarized, Night Owl...
https://mallowigi.github.io/mtslack/
Apache License 2.0
496 stars 23 forks source link

No option to "Apply Theme" and "Apply tweaks" error #57

Closed mdolce8 closed 3 years ago

mdolce8 commented 3 years ago

Hi, I just installed mtslack following the README. It appears successful, but when doing sudo mtslack, I don't see an option for "Apply Theme" or "Remove Theme". Instead, I see "Apply tweaks, Restore slack, Display mtslack Version, and Exit". And when I tried to apply tweaks I get the following error below. I have followed the instructions as they are written, is there a fix to this? Thanks

I am on: macOS 10.15.7 Slack 4.12.0 mtslack 16.1.0


Adding Tweaks Code to Slack... 

node:fs:2045
  handleErrorFromBinding(ctx);
  ^

Error: ENOENT: no such file or directory, copyfile '/Applications/Slack.app/Contents/Resources/app-x64.asar' -> '/Applications/Slack.app/Contents/Resources/app-x64.asar.backup'
    at Object.copyFileSync (node:fs:2045:3)
    at Object.exports.apply (/usr/local/lib/node_modules/mtslack/lib/command.js:174:6)
    at Object.exports.selectTheme (/usr/local/lib/node_modules/mtslack/lib/command.js:212:8)
    at Object.exports.change (/usr/local/lib/node_modules/mtslack/lib/command.js:203:8)
    at exports.execute (/usr/local/lib/node_modules/mtslack/lib/command.js:218:12)
    at run (/usr/local/lib/node_modules/mtslack/main.js:32:3)
    at processTicksAndRejections (node:internal/process/task_queues:93:5)
    at async AutoUpdate.<anonymous> (/usr/local/lib/node_modules/mtslack/main.js:60:7) {
  errno: -2,
  syscall: 'copyfile',
  code: 'ENOENT',
  path: '/Applications/Slack.app/Contents/Resources/app-x64.asar',
  dest: '/Applications/Slack.app/Contents/Resources/app-x64.asar.backup'
}
mallowigi commented 3 years ago

It's just a wording, I've updated the menu because it doesn't just apply a theme but add the Slack Tweaks as well.

I need to update the doc.

mallowigi commented 3 years ago

Try to completely reinstall Slack, maybe that will fix the issue.

mdolce8 commented 3 years ago

Hi, I tried again after re-installing slack and see the same error as my previous post. Looking at the first line, I do not have '/Applications/Slack.app/Contents/Resources/app-x64.asar' -> '/Applications/Slack.app/Contents/Resources/app-x64.asar.backup' , but I do have /Applications/Slack.app/Contents/Resources/app.asar , so it seems the "x64" file is missing?

mallowigi commented 3 years ago

This is available since the latest version of Slack.

Please update Slack, currently there's no way of handling both cases.

Elior Boukhobza

Programmer, Designer and Food Lover ;)

Mallowigi heliosaian@gmail.com https://www.material-theme.com [image: twitter] https://twitter.com/Mallowigi [image: linkedin] https://www.linkedin.com/in/eliorboukhobza/ [image: instagram] https://www.instagram.com/heliosaian/ Create Your Own Free Signature https://www.hubspot.com/email-signature-generator?utm_source=create-signature

On 5 January 2021 at 15:26:52, Michael Dolce (notifications@github.com) wrote:

Hi, I tried again after re-installing slack and see the same error as my previous post. Looking at the first line, I do not have '/Applications/Slack.app/Contents/Resources/app-x64.asar' -> '/Applications/Slack.app/Contents/Resources/app-x64.asar.backup' , but I do have /Applications/Slack.app/Contents/Resources/app.asar , so it seems the "x64" file is missing?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mallowigi/mtslack/issues/57#issuecomment-754635117, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGIRTH2CYB2LTHHOQOM57TSYMHRXANCNFSM4VTTQFWQ .

mdolce8 commented 3 years ago

Yes, I have the latest version of Slack already (4.12.0). And I have reinstalled it as you suggested. I am still seeing the same error

mallowigi commented 3 years ago

So that means perhaps that you don't have a 64bit computer?

Anyway I'll try to figure out.

Try to connect to our Slack channel so we can discuss it together.

Elior Boukhobza

Programmer, Designer and Food Lover ;)

Mallowigi heliosaian@gmail.com https://www.material-theme.com [image: twitter] https://twitter.com/Mallowigi [image: linkedin] https://www.linkedin.com/in/eliorboukhobza/ [image: instagram] https://www.instagram.com/heliosaian/ Create Your Own Free Signature https://www.hubspot.com/email-signature-generator?utm_source=create-signature

On 5 January 2021 at 15:32:51, Michael Dolce (notifications@github.com) wrote:

Yes, I have the latest version of Slack already (4.12.0). And I have reinstalled it as you suggested. I am still seeing the same error

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mallowigi/mtslack/issues/57#issuecomment-754638523, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGIRTDWT4N5OMNIZBSQ2ATSYMIIHANCNFSM4VTTQFWQ .

mdolce8 commented 3 years ago

Sure I can join the slack channel, but I am having trouble finding it. Is there a link to it somewhere?

Cool, thanks. And my computer is definitely 64bit.

mallowigi commented 3 years ago

https://join.slack.com/t/material-theme-ui/shared_invite/zt-4w78iblt-cHXYRYERpuGNbD~TqsD8rg

mdolce8 commented 3 years ago

I solved my issue. I had previously installed Slack from homebrew and the Slack website. Neither of those worked. Instead I should have installed Slack from the Apple's App Store. Now Slack Tweaks work!

MuathIbnHassan commented 3 years ago

the problem happened to me with version 4.12.2 maybe @mdolce8 thinks it solved because he went back to the AppStore version ( maybe 4.12.0 at that time )

I solved the problem by changing the line slack-themes/lib/consts.js:9 from :

const ASAR = `app-${ARCH}.asar`

to :

const ASAR = `app.asar`

and I can confirm it's working with npm run apply