PowerToys/src/runner
Stefan Markovic 812b343776
🚧 [new module] Environment variables editor (#28722)
* Init EnvironmentVariables UI project

* Models
TitleBar
MainPage init
Icon

* User and system variables

* Profiles init

* XAML cleanup

* Missing ItemTemplate

* EditDialog

* ModuleInterface

* Signing and processes lists

* Installer

* spellcheck

* Fix ARM64 build and consolidate packages

* spellcheck2

* Fix installer

* Single instance. C# telemetry. Wait on PT pid

* ElevationHelper

* Add profile wip

* Init EnvironmentVariables UI project

* Models
TitleBar
MainPage init
Icon

* User and system variables

* Profiles init

* XAML cleanup

* Missing ItemTemplate

* EditDialog

* ModuleInterface

* Signing and processes lists

* Installer

* spellcheck

* Fix ARM64 build and consolidate packages

* spellcheck2

* Fix installer

* Single instance. C# telemetry. Wait on PT pid

* ElevationHelper

* Add profile wip

* show run as administrator in title (#28516)

* Environment Variables added to Run plugin (#28466)

* UI tweaks

* Remove style

* Add profile - init working

* Applied variables

* Read/Write profiles

* Fixes

* Add separator and fix loading profiles

* Only allow to edit System vars if running elevated

* Add tmp progress ring to show applying changes progress
Ignore not needed json fields

* Remove variable and profile logic

* Do not read data async
Update System and User variables on change

* Add isCorrectlyApplied()

* Sort variables in Applied variables

* WIP WndProc

* spellcheck

* Revert "WIP WndProc"

This reverts commit 0c0b6c67de.

* WHY CRASH???

* UI tweaks

* WIP modified state warning

* Add cancel button in dialogs

* Add buttons validations

* Set variables - fire and forget notify

* Revert "Revert "WIP WndProc""

This reverts commit 1b2306eeb7.

* Listen to WM_SETTINGSCHANGED
Add Infobar reload button

* spellcheck

* spellcheck again

* Fix build

* InfoBar runAsAdmin visibility

* Fix comment

* Confirm dialog when deleting variable
Fix add variable button when creating profile

* Edit profile

* Sort variables on Load

* Select existing variables on edit

* Add default variable

* Fix adding existing vars to profile

* update notice.md

* Handle PATH properly

* Add tooltips and fix dialogs text wrapping

* Fix applied values for duplicates
Fix add/eddit variable txt box validation

* Add horizontal scroll bar for applied values

* Fix duplicate variables handling
Fix user variable handling and preview

* spellcheck

* Try fix spellcheck

* Revert "spellcheck"

This reverts commit ee76231974.

* Revert "Try fix spellcheck"

This reverts commit dc8f04afb9.

* Fix path and duplicates conflict

* Fix PATH handling
Fix unapply on delete active variable
Fix ordering in applied variables

* Show variables as lists and add drag-to-reorder feature

* Only show specific variables as list
Update list in edit dialog on editing the value

* spellcheck

* Update GPO policy

* Add Edit and Remove variable buttons
Remove context menu

* Remove drag&drop when editing list variable and add buttons to move up/down

* Fix Edit profile dialog title

* Fix backup and restore variables when editing variable from applied profile

* Apply var to system WIP

* Tweaks

* Simplify edit variable logic

* Minor fixes

* Spellcheck

* Update src/modules/EnvironmentVariables/EnvironmentVariables/app.manifest

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* spellcheck 2

* Remove unneeded string

* Add more telemetry

* Do not allow adding existing variables with the same name into the profile

* Adding icon

* Fix the crash when opening existing variables dialog

* Update Settings and OOBE screenshots

* Fix crash when malformed profiles.json and jsonignore not needed properties

* Fix selecting duplicates in existing variables dialog

* Add user variable name limit (<255 chars)
Check if profile is applicable on apply
Show message if profile is not applicable

* XamlStyling

* Better Flyout positioning
Add Cancel button to the flyout

* Fix UI glitches by using ItemsControl (no virtualization)

* Fix spellcheck

* Fix XAML style

* Add horizontal scrollbar to applied variables

* Revert to ItemsRepeater

* Fix UI glitches by adding a decent minimum cache

* Fixing UI bugs

* Fix spellcheck

* Fix crash while trying to edit a User variable when there's no Parent
profile

* Fix issue overwriting backup var when you edit var on applied profile

* Fix nuking of variables when adding to applied profile

* Fix profile not being saved when deleting a variable

* Fix ValuesList empty crash, issues and no serialization

* fix spellcheck

* Allow in-line edit of list variables

* Fix xaml style

* Fix add profile variable cancel button logic

* Fix add profile variable cancel button logic - clean the list

* Bump VerticalCacheLength to 10

as in some cases UI glitch on expanding System variables was still present

* Fix profile Add variable button enable/disable logic

* Remove unneeded using

* Add to Dashboard

---------

Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Davide Giacometti <davide.giacometti@outlook.it>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
2023-10-20 16:28:07 +02:00
..
svgs [Shortcut Guide] Move into separate process (#11359) 2021-05-20 15:07:34 +03:00
ActionRunnerUtils.h Dev/yuyoyuppe/autoupdate polishing (#11693) 2021-06-14 12:55:59 +03:00
auto_start_helper.cpp [Build]Fix building on Visual Studio 17.8 (#29303) 2023-10-19 15:04:09 +01:00
auto_start_helper.h Spelling: ... runner settings (#3783) 2020-05-27 17:06:50 +02:00
bug_report.cpp [BugReport]Fix hang when bug report is launched (#28506) 2023-09-15 07:34:17 +01:00
bug_report.h [BugReport]Fix hang when bug report is launched (#28506) 2023-09-15 07:34:17 +01:00
centralized_hotkeys.cpp Catch std::exception by reference (#20385) 2022-09-11 18:50:13 +02:00
centralized_hotkeys.h [Analyzers][CPP] turn on Warning 4100 (#21449) 2022-11-09 14:41:14 +00:00
centralized_kb_hook.cpp [PastePlain]Support Ctrl+V as activation (#24448) 2023-03-03 09:52:49 +00:00
centralized_kb_hook.h [Shortcut Guide] Activate with Windows key press (#13342) 2021-09-23 14:23:22 +01:00
general_settings.cpp Remove CreateScheduledTask CA and handle task creation from runner code (#27819) 2023-08-09 10:23:54 +02:00
general_settings.h [Settings]New Landing Page Experimentation (#22365) 2023-02-15 02:38:53 +00:00
main.cpp 🚧 [new module] Environment variables editor (#28722) 2023-10-20 16:28:07 +02:00
packages.config [Deps]Upgrade to WinAppSDK 1.4 (#28310) 2023-09-07 09:36:47 +01:00
pch.cpp build: Treat warnings as errors in the remaining projects (#8689) 2020-12-21 18:51:48 +03:00
pch.h [GPO] Add policies for configuring utilities enabled states (#21411) 2022-10-26 14:02:31 +01:00
powertoy_module.cpp [Analyzers][CPP] turn on Warning 4100 (#21449) 2022-11-09 14:41:14 +00:00
powertoy_module.h [Shortcut Guide] Move into separate process (#11359) 2021-05-20 15:07:34 +03:00
PowerToys.exe.manifest [Docs]Replace docs.micrososft.com with learn.microsoft.com (#20662) 2022-09-28 17:18:55 +01:00
resource.base.h [Settings, Common.UI, runner exe] Unify exe/dll naming (#15005) 2021-12-15 12:56:52 +01:00
Resources.resx [General]Display in titlebar/tray if running as admin (#28425) 2023-09-12 11:11:26 +01:00
restart_elevated.cpp [Runner]Adding param when restarting to detect restart loop (#27794) 2023-08-10 11:59:36 +01:00
restart_elevated.h Settings backup and restore (#20551) 2022-10-13 09:41:21 +02:00
RestartManagement.cpp common: refactor common library pt2 (#8588) 2020-12-15 15:16:09 +03:00
RestartManagement.h common: refactor common library pt2 (#8588) 2020-12-15 15:16:09 +03:00
runner.base.rc Add documentation links (#12598) 2021-08-19 15:32:03 +01:00
runner.vcxproj [BugReport]Fix hang when bug report is launched (#28506) 2023-09-15 07:34:17 +01:00
runner.vcxproj.filters [BugReport]Fix hang when bug report is launched (#28506) 2023-09-15 07:34:17 +01:00
settings_telemetry.cpp [Analyzers][CPP]Changes to fix warning 26493 on src/runner (#23672) 2023-02-08 11:17:33 +00:00
settings_telemetry.h Settings telemetry for PT Run (#10328) 2021-03-19 19:03:12 +02:00
settings_window.cpp 🚧 [new module] Environment variables editor (#28722) 2023-10-20 16:28:07 +02:00
settings_window.h 🚧 [new module] Environment variables editor (#28722) 2023-10-20 16:28:07 +02:00
trace.cpp [Settings]New Landing Page Experimentation (#22365) 2023-02-15 02:38:53 +00:00
trace.h Add telemetry event for general settings (#1269) 2020-02-12 13:03:40 +03:00
tray_icon.cpp [BugReport]Fix hang when bug report is launched (#28506) 2023-09-15 07:34:17 +01:00
tray_icon.h [General]Display in titlebar/tray if running as admin (#28425) 2023-09-12 11:11:26 +01:00
unhandled_exception_handler.cpp [Analyzers][CPP]Changes to fix warning 26493 on src/runner (#23672) 2023-02-08 11:17:33 +00:00
unhandled_exception_handler.h Coding style (runner) (#1013) 2019-12-26 17:26:11 +01:00
UpdateUtils.cpp [runner]Update Toast Notification Arrow - use Unicode character (#29229) 2023-10-18 17:42:18 +01:00
UpdateUtils.h Dev/yuyoyuppe/autoupdate polishing (#11693) 2021-06-14 12:55:59 +03:00