Package Details: powercord-electron-git r1420.bb30f258-1

Git Clone URL: https://aur.archlinux.org/powercord-electron-git.git (read-only, click to copy)
Package Base: powercord-electron-git
Description: A lightweight discord client mod focused on simplicity and performance.
Upstream URL: https://github.com/powercord-org/powercord
Keywords: discord discord-canary electron powercord
Licenses: MIT
Conflicts: powercord
Provides: powercord
Submitter: m00nw4tch3r
Maintainer: None
Last Packager: m00nw4tch3r
Votes: 9
Popularity: 0.000010
First Submitted: 2021-09-05 07:13 (UTC)
Last Updated: 2022-08-05 16:56 (UTC)

Pinned Comments

m00nw4tch3r commented on 2022-08-08 18:49 (UTC)

As Powercord went EOL, I will continue maintaining a package for the Replugged fork instead of this one: https://aur.archlinux.org/packages/replugged-electron-git/.

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

<deleted-account> commented on 2022-01-07 21:49 (UTC)

I have an interesting question. How would I use this package alongside firejail?

running firejail powercord throws me this:

Reading profile /etc/firejail/default.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc

** Note: you can use --noprofile to disable default.profile **

Parent pid 69732, child pid 69733
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: cleaning all supplementary groups
Child process initialized in 87.53 ms
Check failed: sys_chroot("/proc/self/fdinfo/") == 0

Parent is shutting down, bye...

I have also created the file $HOME/.config/firejail/powercord.local with the contents:

whitelist ${HOME}/.config/discordcanary
whitelist ${HOME}/.config/powercord
whitelist ${HOME}/.local/share/powercord
whitelist /usr/share/powercord

whitelist ${HOME}/Pictures
whitelist ${HOME}/.cache/thumbnails

private-bin bash,cut,echo,egrep,electron,electron[0-9],electron[0-9][0-9],fish,grep,head,sed,sh,tclsh,tr,xdg-mime,xdg-open,zsh
ignore private-tmp
ignore novideo
ignore noaudio

but unfortunately this does not work either.

m00nw4tch3r commented on 2022-01-05 23:56 (UTC)

Fixed the patch, @gshinguji you need to install updates to powercord itself from the AUR, plugins should still update by themselves as normal

FintasticMan commented on 2022-01-05 20:39 (UTC) (edited on 2022-01-05 20:39 (UTC) by FintasticMan)

To fix the issue @Vukky is having, replace powercord-themes.patch with:

diff --git a/src/Powercord/managers/styles.js b/src/Powercord/managers/styles.js
index 65b97b7..ab4ac64 100644
--- a/src/Powercord/managers/styles.js
+++ b/src/Powercord/managers/styles.js
@@ -13,10 +13,12 @@ const ErrorTypes = Object.freeze({
   INVALID_MANIFEST: 'INVALID_MANIFEST'
 });

+const XDG_DATA_HOME = process.env.XDG_DATA_HOME || join(process.env.HOME, '.local', 'share');
+
 module.exports = class StyleManager {
   constructor () {
     this._coreStyles = [];
-    this.themesDir = join(__dirname, '../themes');
+    this.themesDir = join(XDG_DATA_HOME, 'powercord', 'themes');
     this.themes = new Map();

     if (!window.__SPLASH__) {
diff --git a/src/Powercord/plugins/pc-moduleManager/components/manage/Base.jsx b/src/Powercord/plugins/pc-moduleManager/components/manage/Base.jsx
index fd5134c..637e208 100644
--- a/src/Powercord/plugins/pc-moduleManager/components/manage/Base.jsx
+++ b/src/Powercord/plugins/pc-moduleManager/components/manage/Base.jsx
@@ -3,6 +3,7 @@ const { shell } = require('electron');
 const { React, getModule, contextMenu, i18n: { Messages } } = require('powercord/webpack');
 const { Button, Tooltip, ContextMenu, Divider, Icons: { Overflow } } = require('powercord/components');
 const { TextInput } = require('powercord/components/settings');
+const XDG_DATA_HOME = process.env.XDG_DATA_HOME || join(process.env.HOME, '.local', 'share');

 class Base extends React.Component {
   constructor () {
@@ -91,7 +92,7 @@ class Base extends React.Component {
           {
             type: 'button',
             name: Messages[`POWERCORD_${this.state.key}_OPEN_FOLDER`],
-            onClick: () => shell.openPath(join(__dirname, '..', '..', '..', '..', this.constructor.name.toLowerCase()))
+            onClick: () => shell.openPath(join(XDG_DATA_HOME, 'powercord', this.constructor.name.toLowerCase()))
           },
           {
             type: 'button',
diff --git a/src/Powercord/plugins/pc-moduleManager/index.js b/src/Powercord/plugins/pc-moduleManager/index.js
index 0cd00cd..63c3189 100644
--- a/src/Powercord/plugins/pc-moduleManager/index.js
+++ b/src/Powercord/plugins/pc-moduleManager/index.js
@@ -5,7 +5,7 @@ const { PopoutWindow } = require('powercord/components');
 const { inject, uninject } = require('powercord/injector');
 const { findInReactTree } = require('powercord/util');
 const { Plugin } = require('powercord/entities');
-const { SpecialChannels: { CSS_SNIPPETS } } = require('powercord/constants');
+const { SpecialChannels: { CSS_SNIPPETS }, SETTINGS_FOLDER } = require('powercord/constants');
 const { join } = require('path');

 const commands = require('./commands');
@@ -48,7 +48,7 @@ module.exports = class ModuleManager extends Plugin {
     });

     this._quickCSS = '';
-    this._quickCSSFile = join(__dirname, 'quickcss.css');
+    this._quickCSSFile = join(SETTINGS_FOLDER, 'themes', 'quickcss.css');
     this._loadQuickCSS();
     this._injectSnippets();
     this.loadStylesheet('scss/style.scss');

And replace its md5 sum with 8df68c2648d4c179c3b9450a7c8f5adc in the PKGBUILD.

<deleted-account> commented on 2021-12-28 23:41 (UTC)

Powercord keeps failing its in-app auto updates for seemingly no reason.

Revision: b64b144 Branch: v2

<deleted-account> commented on 2021-12-21 16:53 (UTC)

excellent, thank you!

m00nw4tch3r commented on 2021-12-21 14:41 (UTC)

Ok, i pushed a fix, see if it works

<deleted-account> commented on 2021-12-21 01:05 (UTC)

this package appears to be broken. I've cleanbuilt the package and removed all instances of it (/usr/share/powercord, ~/.local/share/powercord, and ~/.config/powercord) but it refuses to start up properly. any time I start Powercord I am met with the gray discord loading screen and nothing else.

upon doing CTRL + SHIFT + I, I can see a litany of errors if those would help solve this issue. additionally, there is a new Powercord commit, hence why I attempted to reinstall this package in the first place.

jdemille commented on 2021-11-23 20:03 (UTC)

looks like discord's bootstrap code has to be modified for it to work properly, eek. maybe i'll make a package based on discord-canary-electron-bin