Compare commits

...

2 Commits

Author SHA1 Message Date
Nox 1b6e18bcb3 Updated store CSS (#305)
* PluginCard Store CSS Update

* Fixing CSS

* Updated

* Removed padding
2023-01-16 14:43:16 -08:00
AAGaming 0ad0016c62 move the chown 2023-01-16 14:44:16 -05:00
2 changed files with 8 additions and 3 deletions
+4 -3
View File
@@ -56,12 +56,15 @@ basicConfig(
logger = getLogger("Main")
async def chown_plugin_dir():
def chown_plugin_dir():
code_chown = call(["chown", "-R", USER+":"+GROUP, CONFIG["plugin_path"]])
code_chmod = call(["chmod", "-R", "555", CONFIG["plugin_path"]])
if code_chown != 0 or code_chmod != 0:
logger.error(f"chown/chmod exited with a non-zero exit code (chown: {code_chown}, chmod: {code_chmod})")
if CONFIG["chown_plugin_path"] == True:
chown_plugin_dir()
class PluginManager:
def __init__(self, loop) -> None:
self.loop = loop
@@ -87,8 +90,6 @@ class PluginManager:
self.loop.create_task(start_systemd_unit(REMOTE_DEBUGGER_UNIT))
else:
self.loop.create_task(stop_systemd_unit(REMOTE_DEBUGGER_UNIT))
if CONFIG["chown_plugin_path"] == True:
await chown_plugin_dir()
self.loop.create_task(self.loader_reinjector())
self.loop.create_task(self.load_plugins())
@@ -68,6 +68,7 @@ const PluginCard: FC<PluginCardProps> = ({ plugin }) => {
style={{
display: 'flex',
flexDirection: 'row',
margin: '0 0 0 10px',
}}
className="deckyStoreCardBody"
>
@@ -77,6 +78,7 @@ const PluginCard: FC<PluginCardProps> = ({ plugin }) => {
style={{
width: 'auto',
height: '160px',
borderRadius: '5px',
}}
src={plugin.image_url}
/>
@@ -144,12 +146,14 @@ const PluginCard: FC<PluginCardProps> = ({ plugin }) => {
display: 'flex',
flexDirection: 'row',
width: '100%',
margin: '10px',
}}
>
<div
className="deckyStoreCardInstallButtonContainer"
style={{
flex: '1',
margin: '0 10px 0 0',
}}
>
<DialogButton