XR for Universal Blue and Fedora Atomic Desktops
vr fedora-atomic linux
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix error when Evision config could not be found

Shiloh Fen 13343fe4 c8395e8f

+9 -2
+9 -2
src/atomic-xr/sysconfig.nu
··· 66 66 67 67 export def "enable envision-plugins" [] { 68 68 cp -f ~/.config/envision/envision.json ~/.config/envision/envision.json.bak 69 - let envision_config = open $envision_config_path 69 + let envision_config = try {open $envision_config_path} catch { 70 + # TODO: Create default config file instead 71 + log warning "You'll need to open Envision at least once before plugins can be registered." 72 + return 73 + } 70 74 let plugins = $envision_config.plugins 71 75 | merge ( 72 76 envision-plugin gen wlx-overlay-s "WlxOverlay-S" ~/.local/bin/wlx-overlay-s "--openxr" ··· 103 107 104 108 export def "disable envision-plugins" [] { 105 109 cp -f ~/.config/envision/envision.json ~/.config/envision/envision.json.bak 106 - let envision_config = open $envision_config_path 110 + let envision_config = try {open $envision_config_path} catch { 111 + log debug "Could not open Envision config, not attempting to remove plugins." 112 + return 113 + } 107 114 let plugins = $envision_config.plugins 108 115 | reject -i ...(get-appids "wlx-overlay-s" "motoc" "oscavmgr.project-babble" "oscavmgr.wivrn") 109 116