Author Topic: Troubleshooting Custom Icon Deletion When Adding New Extensions Custom File Type  (Read 20 times)

total_annihilation00

  • Power Member
  • ****
  • Posts: 193
  • Tech Savant\ Envisioneering
    • View Profile
Troubleshooting Custom File Type Launchers and Icon Overrides in MC: Icon Deletion When Adding New Extensions
I'm configuring a custom file launch setup in MC for handling various PDF-related formats. The current File Types setup includes: `*.pdf`, `*.epub`, `*.djvu`, `*.mobi`, `*.chm`, `*.FB2`, `*.CB7`, `*.CBR`, `*.CBT`, `*.CBZ`, `*.PRC`.

The launcher configuration in `FileTypes.xml` looks like this:

xml
Code: [Select]
<launcher name="Sumatra Sandbox">
  <program type="1" name="" path="C:\Users\dell\Documents\SumatraALLOld\SumatraPDF-3.2-64.exe" args="-invert-colors &quot;${filepath}&quot;"/>
  <icon use="0" path="" index="-1"/>
  <extensions>*.pdf *.epub *.djvu *.mobi *.chm *.FB2 *.CB7 *.CBR *.CBT *.CBZ *.PRC</extensions>
</launcher>

I added a new file extension `*.azw3` to the `<extensions>` list. However, doing so causes my custom icons defined in `IconOverride.xml` for `.pdf`, `.epub`, and `.mobi` to be deleted automatically.

Icon override configuration:

xml
Code: [Select]
<icon ext=".pdf" iconpath="D:\Download\PDFX_Vwr_Port\PDFXCview.exe" iconindex="0"/>
<icon ext=".epub" iconpath="D:\Download\PDFX_Vwr_Port\PDFXCview.exe" iconindex="0"/>
<icon ext=".mobi" iconpath="D:\Download\PDFX_Vwr_Port\PDFXCview.exe" iconindex="0"/>

**Issue:** 
Adding a new extension to the launcher `<extensions>` list appears to overwrite or remove existing custom icon overrides for certain file types, specifically `.pdf`, `.epub`, and `.mobi`. How can I add support for `.azw3` without disrupting my existing icon customizations? 

    **Seeking:** 
    • Best practices for expanding file associations in MC without invalidating custom icon settings.
    • Configuration adjustments or workaround recommendations to preserve icon overrides when modifying launcher extensions.

P.S: I did all this via the user interface. There is clearly a synchronization mishap (saving a File Extension Launcher is breaking the associated Custom Icons), I urge you to fix this please; Configuration Corruption bug/ Settings Overwrite Issue (Changes to file extension associations via UI lead to unintended loss of custom icon overrides, indicating a bug in configuration handling), Mathias !
« Last Edit: Today at 12:53:54 by total_annihilation00 »
~The World's Deceit Has Raped My Soul, We Melt The Plastic People Down Then We Melt Their Plastic Town~