mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-03 20:32:07 -04:00
dms(policy): Restore dms greeter sync in immutable distros
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
"blocked_commands": [
|
"blocked_commands": [
|
||||||
"greeter install",
|
"greeter install",
|
||||||
"greeter enable",
|
"greeter enable",
|
||||||
"greeter sync",
|
|
||||||
"greeter uninstall",
|
"greeter uninstall",
|
||||||
"setup"
|
"setup"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -51,10 +51,9 @@ var greeterInstallCmd = &cobra.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
var greeterSyncCmd = &cobra.Command{
|
var greeterSyncCmd = &cobra.Command{
|
||||||
Use: "sync",
|
Use: "sync",
|
||||||
Short: "Sync DMS theme and settings with greeter",
|
Short: "Sync DMS theme and settings with greeter",
|
||||||
Long: "Synchronize your current user's DMS theme, settings, and wallpaper configuration with the login greeter screen",
|
Long: "Synchronize your current user's DMS theme, settings, and wallpaper configuration with the login greeter screen",
|
||||||
PreRunE: requireMutableSystemCommand,
|
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
yes, _ := cmd.Flags().GetBool("yes")
|
yes, _ := cmd.Flags().GetBool("yes")
|
||||||
auth, _ := cmd.Flags().GetBool("auth")
|
auth, _ := cmd.Flags().GetBool("auth")
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ func getImmutablePolicy() (*immutableCommandPolicy, error) {
|
|||||||
immutablePolicy = immutableCommandPolicy{
|
immutablePolicy = immutableCommandPolicy{
|
||||||
ImmutableSystem: detectedImmutable,
|
ImmutableSystem: detectedImmutable,
|
||||||
ImmutableReason: reason,
|
ImmutableReason: reason,
|
||||||
BlockedCommands: []string{"greeter install", "greeter enable", "greeter sync", "setup"},
|
BlockedCommands: []string{"greeter install", "greeter enable", "setup"},
|
||||||
Message: "This command is disabled on immutable/image-based systems. Use your distro-native workflow for system-level changes.",
|
Message: "This command is disabled on immutable/image-based systems. Use your distro-native workflow for system-level changes.",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user