diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 7620010..981681c 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -33,5 +33,6 @@ - [smartcard-reader.md](Wiki/linux/smartcard-reader.md) - [nvme-block-size.md](Wiki/linux/nvme-block-size.md) - [format-sd-card.md](Wiki/linux/format-sd-card.md) + - [wine-creating-filetype-associations.md](Wiki/linux/wine-creating-filetype-associations.md) - [shell-param-expansion.md](Wiki/linux/shell-param-expansion.md) - [install-flutter-arch.md](Wiki/linux/install-flutter-arch.md) diff --git a/src/Wiki/linux/wine-creating-filetype-associations.md b/src/Wiki/linux/wine-creating-filetype-associations.md new file mode 100644 index 0000000..5a29c1e --- /dev/null +++ b/src/Wiki/linux/wine-creating-filetype-associations.md @@ -0,0 +1,28 @@ +# Stopping Wine from creating filetype associations + +By default, Wine creates associations to open some filetypes. I don't like this. + +## Disabling it + +Add `HKCU,"Software\Wine\FileOpenAssociations","Enable",2,"N"` to the `[Services]` section of `/usr/share/wine/wine.inf` + +### Notes related to Arch + +Install/upgrades to the Wine package will override this file. We can create a pacman hook to reapply this change for us: + +``` +[Trigger] +Operation = Install +Operation = Upgrade +Type = Path +Target = usr/share/wine/wine.inf + +[Action] +Description = Stopping Wine from hijacking file associations... +When = PostTransaction +Exec = /bin/sh -c '/usr/bin/grep -q "HKCU,\"Software\\\Wine\\\FileOpenAssociations\",\"Enable\",2,\"N\"" /usr/share/wine/wine.inf || /usr/bin/sed -i "s/\[Services\]/\[Services\]\nHKCU,\"Software\\\Wine\\\FileOpenAssociations\",\"Enable\",2,\"N\"/g" /usr/share/wine/wine.inf' +``` + +## Source + +[Arch wiki Wine page](https://wiki.archlinux.org/title/Wine#Prevent_Wine_from_creating_filetype_associations) \ No newline at end of file diff --git a/src/Wiki/server/Clover-bootloader.md b/src/Wiki/server/Clover-bootloader.md index f140221..4d4807e 100644 --- a/src/Wiki/server/Clover-bootloader.md +++ b/src/Wiki/server/Clover-bootloader.md @@ -1,15 +1,15 @@ -\# Clover bootloader +# Clover bootloader -I used the \[Clover bootloader\](https://github.com/CloverHackyColor/CloverBootloader) to boot into a PCIe NVME drive on a an old motherboard that didn't support NVMEs. I just flashed this into a USB drive and boot into it first. +I used the [Clover bootloader](https://github.com/CloverHackyColor/CloverBootloader) to boot into a PCIe NVME drive on a an old motherboard that didn't support NVMEs. I just flashed this into a USB drive and boot into it first. -\## Steps +## Steps -\- Download \*\*CloverV2\*\* from the releases -\- Format the USB drive into FAT32 -\- Copy the contents of the folder in the downloaded zip file into the USB drive. -\- Search for the "NvmExpressDxe.efi" file in the the USB drive. -\- Copy the file to the following locations (create dirs if needed): -        - "/EFI/CLOVER/BIOS" -        - "/EFI/CLOVER/UEFI" -        - "/EFI/CLOVER/drivers32uefi" -\- Boot into the USB and select the NVME drive you want to boot into \ No newline at end of file +- Download **CloverV2** from the releases +- Format the USB drive into FAT32 +- Copy the contents of the folder in the downloaded zip file into the USB drive. +- Search for the "NvmExpressDxe.efi" file in the the USB drive. +- Copy the file to the following locations (create dirs if needed): + - "/EFI/CLOVER/BIOS" + - "/EFI/CLOVER/UEFI" + - "/EFI/CLOVER/drivers32uefi" +- Boot into the USB and select the NVME drive you want to boot into \ No newline at end of file