Skip to content

Remove all direct calls of zenity / increase granularity of 'd' function #41

@sysrich

Description

@sysrich

In line to support running tik purely from a terminal, we need to make sure that all 'GUI'/dialogue calls are hidden behind the 'd' or other similar functions

There are currently two use cases for not using 'd' in the tik codebase

  1. the command is 'optional' and/or can successfully exit with a non-zero error code. 'd' assumes that any non-zero error code from zenity is a failure and that the user wishes to exit tik. The therefore needs to be a switch or alternative form of 'd' ('d-opt maybe?) that doesn't assume non-zero error codes are requests to exit tik
  2. the command and it's output shouldn't be logged. 'd' currently writes what it does to tik.log, but this isn't ideal when being used to display messages including Recovery Keys. There therefore needs to be a switch or alternative form of 'd' ('d-priv' maybe?) that doesn't write to tik.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions