created codecs block on misic

This commit is contained in:
mal0
2024-09-06 18:59:01 -04:00
parent 3d91459791
commit bc83c72df7
+15 -3
View File
@@ -74,7 +74,7 @@ def main():
systemd() systemd()
#correcting ownership #correcting ownership
# subprocess.run(f"chown -R {user}:{user} {os.path.join(home,'.config')}",shell=True ,stdout=subprocess.DEVNULL) subprocess.run(f"chown -R {user}:{user} {home}",shell=True ,stdout=subprocess.DEVNULL)
@@ -318,12 +318,24 @@ def msic_configs():
console.print("Themes have been Set :heavy_check_mark:", style='ok') console.print("Themes have been Set :heavy_check_mark:", style='ok')
logger.info('Themes have been Set') logger.info('Themes have been Set')
except Exception as e: except Exception as e:
logging.critical(f"Could not get themes :{str(e)}") logging.critical(f"Could not get themes :{str(e)}")
console.print("Error with Themes :X:", style='error') console.print("Error with Themes :X:", style='error')
# codec and multmedia
try:
subprocess.run('dnf swap ffmpeg-free ffmpeg --allowerasing', shell=True)
subprocess.run('dnf update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin', shell=True)
subprocess.run(' dnf update @sound-and-video', shell=True)
console.print("ffmpeg non free installed + all codecs :heavy_check_mark:", style='ok')
logger.info('ffmpeg non free installed + all codecs ')
except Exception as e:
logging.critical(f"Could not install codecs :{str(e)}")
console.print("Something failed with new codecs :X:", style='error')
def systemd(): def systemd():
console.rule('Enabling user services', style='checkt') console.rule('Enabling user services', style='checkt')