From 0d7967ff622eb88cdcb19b7b4288b9523f4ab057 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 4 Oct 2023 15:13:57 +0500 Subject: [PATCH] .reg file for #3778 Forgot to commit the .reg file... --- src/blenderbim/blenderbim/bim/operator.py | 2 +- .../blenderbim/libs/desktop/windows_bbim_association.reg | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 src/blenderbim/blenderbim/libs/desktop/windows_bbim_association.reg diff --git a/src/blenderbim/blenderbim/bim/operator.py b/src/blenderbim/blenderbim/bim/operator.py index 7b491e58be..e65ad34b49 100644 --- a/src/blenderbim/blenderbim/bim/operator.py +++ b/src/blenderbim/blenderbim/bim/operator.py @@ -237,7 +237,7 @@ class FileAssociate(bpy.types.Operator): # tried to do the regitsry change from powershell/cmd - but even admin rights are not enough # this is why we're using .reg reg_change_path = os.path.join(src_dir, "windows_bbim_association.reg") - subprocess.run(["cmd", "/c", reg_change_path]) + subprocess.run(["cmd", "/c", "call", reg_change_path]) ps_script_path = os.path.join(src_dir, "windows_bbim_association.ps1") # NOTE: call powershell with RunAs to get admin rights from user diff --git a/src/blenderbim/blenderbim/libs/desktop/windows_bbim_association.reg b/src/blenderbim/blenderbim/libs/desktop/windows_bbim_association.reg new file mode 100644 index 0000000000..33451e8dc7 --- /dev/null +++ b/src/blenderbim/blenderbim/libs/desktop/windows_bbim_association.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ifc] +[-] \ No newline at end of file