-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cde786c
commit 0df5bda
Showing
3 changed files
with
41 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |