[Launch]
ProgramExecutable=Qalculate\qalculate-gtk.exe
ProgramExecutable64=Qalculate64\qalculate-qt.exe
WorkingDirectory=%FullAppDir%
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Registry=true

[DirectoriesMove]
config=%FullAppDir%\user

[DirectoriesCleanupIfEmpty]
1=%USERPROFILE%\.dbus-keyrings
2=%LOCALAPPDATA%\gtk-3.0

[FilesMove]
recently-used.xbel=%LOCALAPPDATA%
org_gtk_gdbus_general=%USERPROFILE%\.dbus-keyrings

[RegistryKeys]
filechooser=HKCU\Software\GSettings\org\gtk\settings\file-chooser

[RegistryCleanupIfEmpty]
1=HKCU\Software\GSettings\org\gtk\settings
2=HKCU\Software\GSettings\org\gtk
3=HKCU\Software\GSettings\org
4=HKCU\Software\GSettings

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\recently-used.xbel
Find=file:///%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%/
Replace=file:///%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%/

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\recently-used.xbel
Find=file:///%PAL:LastDrive%%PAL:LastPortableAppsBaseDir:ForwardSlash%/
Replace=file:///%PAL:Drive%%PAL:PortableAppsBaseDir:ForwardSlash%/

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\recently-used.xbel
Find=file:///%PAL:LastDrive%/
Replace=file:///%PAL:Drive%/
