Skip to content

Commit

Permalink
Sync wiki contents with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 29, 2024
1 parent cde786c commit 0df5bda
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 12 deletions.
1 change: 1 addition & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
28 changes: 28 additions & 0 deletions src/Wiki/linux/wine-creating-filetype-associations.md
Original file line number Diff line number Diff line change
@@ -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)
24 changes: 12 additions & 12 deletions src/Wiki/server/Clover-bootloader.md
Original file line number Diff line number Diff line change
@@ -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
- 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

0 comments on commit 0df5bda

Please sign in to comment.