Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow fancy option with 'apply-tweaks' command #370

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions setup_toshy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3224,6 +3224,7 @@ def handle_cli_arguments():

subparsers = parser.add_subparsers(dest='command', help='Available commands')


subparser_install = subparsers.add_parser(
'install',
help='Install Toshy (see options to modify install actions)'
Expand Down Expand Up @@ -3255,6 +3256,7 @@ def handle_cli_arguments():
help='See README for more info on this option.'
)


subparser_list_distros = subparsers.add_parser(
'list-distros',
help='Display list of distros to use with "--override-distro"'
Expand All @@ -3265,11 +3267,19 @@ def handle_cli_arguments():
help='Show the environment the installer detects, and exit'
)


subparser_apply_tweaks = subparsers.add_parser(
'apply-tweaks',
help='Apply desktop environment tweaks only, no install'
)

subparser_apply_tweaks.add_argument(
'--fancy-pants',
action='store_true',
help='See README for more info on this option.'
)


subparser_remove_tweaks = subparsers.add_parser(
'remove-tweaks',
help='Remove desktop environment tweaks only, no install'
Expand All @@ -3285,6 +3295,7 @@ def handle_cli_arguments():
help='Uninstall Toshy'
)


args = parser.parse_args()

# show help output if no command given
Expand Down Expand Up @@ -3327,6 +3338,8 @@ def handle_cli_arguments():
safe_shutdown(0)

if args.command == 'apply-tweaks':
if args.fancy_pants:
cnfg.fancy_pants = True
get_environment_info()
apply_desktop_tweaks()
if cnfg.should_reboot:
Expand Down