Added Default browser policy

This commit is contained in:
Valentin Sokolov 2023-08-14 13:44:36 +04:00
parent 1d2cc437de
commit c777fd524d
3 changed files with 75 additions and 1 deletions

View File

@ -427,7 +427,7 @@
explainText="$(string.kde-keyboardset_help)" explainText="$(string.kde-keyboardset_help)"
presentation="$(presentation.kde-keyboardset-user-pr)" presentation="$(presentation.kde-keyboardset-user-pr)"
key="Software\BaseALT\Policies\KDE"> key="Software\BaseALT\Policies\KDE">
<parentCategory ref="system:ALT_Appearance_KDE" /> <parentCategory ref="system:ALT_Devices_KDE" />
<supportedOn ref="system:SUPPORTED_AltP10" /> <supportedOn ref="system:SUPPORTED_AltP10" />
<elements> <elements>
<enum id="kde-keyboardset-setter" valueName="kxkbrc.KeyBoard" required="true"> <enum id="kde-keyboardset-setter" valueName="kxkbrc.KeyBoard" required="true">
@ -472,6 +472,40 @@
</boolean> </boolean>
</elements> </elements>
</policy> </policy>
<policy name="kde-browserapp" class="User" displayName="$(string.kde-browserapp)"
explainText="$(string.kde-browserapp_help)"
presentation="$(presentation.kde-browserapp-user-pr)"
key="Software\BaseALT\Policies\KDE">
<parentCategory ref="system:ALT_Application_KDE" />
<supportedOn ref="system:SUPPORTED_AltP10" />
<elements>
<enum id="kde-browserapp-setter" valueName="mimeapps.list.Browser" required="true">
<item displayName="$(string.kde-browserapp-yandex)">
<value>
<string>{"Added Associations":{"x-scheme-handler/http":"yandex-browser.desktop;", "x-scheme-handler/https":"yandex-browser.desktop;"}, "Default Applications":{"x-scheme-handler/http":"yandex-browser.desktop;", "x-scheme-handler/https":"yandex-browser.desktop;"}}</string>
</value>
</item>
<item displayName="$(string.kde-browserapp-firefox)">
<value>
<string>{"Added Associations":{"x-scheme-handler/http":"firefox.desktop;", "x-scheme-handler/https":"firefox.desktop;"}, "Default Applications":{"x-scheme-handler/http":"firefox.desktop;", "x-scheme-handler/https":"firefox.desktop;"}}</string>
</value>
</item>
<item displayName="$(string.kde-browserapp-chromium)">
<value>
<string>{"Added Associations":{"x-scheme-handler/http":"chromium-gost.desktop;", "x-scheme-handler/https":"chromium-gost.desktop;"}, "Default Applications":{"x-scheme-handler/http":"chromium-gost.desktop;", "x-scheme-handler/https":"chromium-gost.desktop;"}}</string>
</value>
</item>
</enum>
<boolean id="kde-browserapp_blocker" key="Software\BaseALT\Policies\KDELocks" valueName="mimeapps.list.Browser" >
<trueValue>
<decimal value="1" />
</trueValue>
<falseValue>
<decimal value="0" />
</falseValue>
</boolean>
</elements>
</policy>
<policy name="kde-screenlocker" class="User" displayName="$(string.kde-screenlocker)" <policy name="kde-screenlocker" class="User" displayName="$(string.kde-screenlocker)"
explainText="$(string.kde-screenlocker_help)" explainText="$(string.kde-screenlocker_help)"
key="Software\BaseALT\Policies\KDE" key="Software\BaseALT\Policies\KDE"

View File

@ -362,6 +362,17 @@ If the policy is disabled, clicking on the file or folder will highlight it.
</string> </string>
<string id="kde-browserapp">Default browser</string>
<string id="kde-browserapp_help">This policy allows you to select the default browser. Note: the application of settings is available only if the selected browser is installed in the system.
Valid parameter values:
- Yandex Browser
- Firefox
-Chromium-gost
</string>
<string id="kde-win-act-Click_to_focus">Click to focus</string> <string id="kde-win-act-Click_to_focus">Click to focus</string>
<string id="kde-win-act-Click_to_focus_Mp">Click to focus (mouse precedence)</string> <string id="kde-win-act-Click_to_focus_Mp">Click to focus (mouse precedence)</string>
<string id="kde-win-act-Focus_follows_mouse">Focus follows mouse</string> <string id="kde-win-act-Focus_follows_mouse">Focus follows mouse</string>
@ -461,6 +472,10 @@ If the policy is disabled, clicking on the file or folder will highlight it.
<string id="kde-keyboardset-ru-de">Russian and German layouts</string> <string id="kde-keyboardset-ru-de">Russian and German layouts</string>
<string id="kde-keyboardset-us-de">English and German layouts</string> <string id="kde-keyboardset-us-de">English and German layouts</string>
<string id="kde-browserapp-yandex">Yandex-Browser</string>
<string id="kde-browserapp-firefox">Firefox</string>
<string id="kde-browserapp-chromium">Chromium-gost</string>
</stringTable> </stringTable>
<presentationTable> <presentationTable>
<presentation id="kde-win-activate-user-pr"> <presentation id="kde-win-activate-user-pr">
@ -545,6 +560,11 @@ If the policy is disabled, clicking on the file or folder will highlight it.
<checkBox refId="kde-keyboardset_blocker">Block</checkBox> <checkBox refId="kde-keyboardset_blocker">Block</checkBox>
<text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text> <text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text>
</presentation> </presentation>
<presentation id="kde-browserapp-user-pr">
<dropdownList noSort="true" defaultItem="0" refId="kde-browserapp-setter">Default browser:</dropdownList>
<checkBox refId="kde-browserapp_blocker">Block</checkBox>
<text>Blocking changes to this setting by the user. After restarting the device, the user's changes to the settings are not saved.</text>
</presentation>
<presentation id="kde-screenlocker-user-pr"> <presentation id="kde-screenlocker-user-pr">
<dropdownList noSort="true" defaultItem="0" refId="kde-autolock_setter">Automatically lock screen:</dropdownList> <dropdownList noSort="true" defaultItem="0" refId="kde-autolock_setter">Automatically lock screen:</dropdownList>
<checkBox refId="kde-autolock_blocker">Block</checkBox> <checkBox refId="kde-autolock_blocker">Block</checkBox>

View File

@ -362,6 +362,17 @@
</string> </string>
<string id="kde-browserapp">Браузрер по умолчанию</string>
<string id="kde-browserapp_help">Данная политика позволяет выбрать браузер по умолчанию. Примечание: применение настроек доступно только в случае, если выбранный браузер установлен в систему.
Допустимые значения параметра:
- Yandex-Browser
- Firefox
- Chromium-gost
</string>
<string id="kde-win-act-Click_to_focus">Фокус по щелчку</string> <string id="kde-win-act-Click_to_focus">Фокус по щелчку</string>
<string id="kde-win-act-Click_to_focus_Mp">Фокус по щелчку (приоритет мыши)</string> <string id="kde-win-act-Click_to_focus_Mp">Фокус по щелчку (приоритет мыши)</string>
<string id="kde-win-act-Focus_follows_mouse">Фокус следует за мышью</string> <string id="kde-win-act-Focus_follows_mouse">Фокус следует за мышью</string>
@ -461,6 +472,10 @@
<string id="kde-keyboardset-ru-de">Русская и немецкая расскладки</string> <string id="kde-keyboardset-ru-de">Русская и немецкая расскладки</string>
<string id="kde-keyboardset-us-de">Английская и немецкая расскладки</string> <string id="kde-keyboardset-us-de">Английская и немецкая расскладки</string>
<string id="kde-browserapp-yandex">Yandex-Browser</string>
<string id="kde-browserapp-firefox">Firefox</string>
<string id="kde-browserapp-chromium">Chromium-gost</string>
</stringTable> </stringTable>
<presentationTable> <presentationTable>
<presentation id="kde-win-activate-user-pr"> <presentation id="kde-win-activate-user-pr">
@ -545,6 +560,11 @@
<checkBox refId="kde-keyboardset_blocker">Блокировать</checkBox> <checkBox refId="kde-keyboardset_blocker">Блокировать</checkBox>
<text>Блокировка изменений данной настройки пользователем. После перезагрузки устройства внесённые пользователем изменения настройки не сохраняются.</text> <text>Блокировка изменений данной настройки пользователем. После перезагрузки устройства внесённые пользователем изменения настройки не сохраняются.</text>
</presentation> </presentation>
<presentation id="kde-browserapp-user-pr">
<dropdownList noSort="true" defaultItem="0" refId="kde-browserapp-setter">Браузер по умолчанию:</dropdownList>
<checkBox refId="kde-browserapp_blocker">Блокировать</checkBox>
<text>Блокировка изменений данной настройки пользователем. После перезагрузки устройства внесённые пользователем изменения настройки не сохраняются.</text>
</presentation>
<presentation id="kde-screenlocker-user-pr"> <presentation id="kde-screenlocker-user-pr">
<dropdownList noSort="true" defaultItem="0" refId="kde-autolock_setter">Автоматически блокировать экран:</dropdownList> <dropdownList noSort="true" defaultItem="0" refId="kde-autolock_setter">Автоматически блокировать экран:</dropdownList>
<checkBox refId="kde-autolock_blocker">Блокировать</checkBox> <checkBox refId="kde-autolock_blocker">Блокировать</checkBox>