From bc83c72df710f927842cddf6f8d0eab483a9cd79 Mon Sep 17 00:00:00 2001 From: mal0 Date: Fri, 6 Sep 2024 18:59:01 -0400 Subject: [PATCH] created codecs block on misic --- rice-cook.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/rice-cook.py b/rice-cook.py index a56b749..5021736 100755 --- a/rice-cook.py +++ b/rice-cook.py @@ -74,7 +74,7 @@ def main(): systemd() #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,11 +318,23 @@ def msic_configs(): console.print("Themes have been Set :heavy_check_mark:", style='ok') logger.info('Themes have been Set') - - except Exception as e: logging.critical(f"Could not get themes :{str(e)}") 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():