#283 Persistent themes for portable use

open
nobody
None
5
2012-11-13
2010-11-23
raphinesse
No

When using the binaries-zip of Notepad++ on a flash drive there are some problems when the drive gets assigned different drive letters on different computers. The theme, for example is reset to default when this happens.
Thus, this patch changes the way the active theme is stored in the config.xml file. Instead of storing the absolute path to the theme, a path relative to the application directory is stored.
However, the program can still handle absolute file paths (local and UNC) although I didn't even find a way to assign a file outside the themes folder as the active theme except for manually editing the config.xml (Import also copies the imported theme to the theme folder).

PS: This is my first patch for an open source project, so feel free to correct me if I should have made any mistakes.

Discussion

  • raphinesse
    raphinesse
    2010-11-23

     
    Attachments