Code Monkey home page Code Monkey logo

rdiff-backup-wrapper-win's People

Contributors

desseim avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

rdiff-backup-wrapper-win's Issues

Refactor paths handling / Support backup/remove executables from different environments

The path parameter preparation / sanitation at the beginning of the script could do with some refactoring, to:

  1. extract path calculation to functions
  2. store Windows / WSL path sets separately
  3. automatically use the path set which matches the environment of the called executable

In other terms, something like this crude pseudocode:

function CalculateWinPath {
    ...
    return $WinPathVars
}
function CalculateWSLPath {
    ...
    return $WSLPathVars
}

# before rdiff-backup execution
$Paths[[RdiffBackupExeEnv]::Win] = CalculateWinPath
$Paths[[RdiffBackupExeEnv]::WSL] = CalculateWSLPath

# when referring to paths:
$Paths[$RdiffBackupExe.Environment]  # for example

Currently it only calculates, stores and uses one type of paths, depending on the environment of the rdiff-backup executable set to be called. This requires both "backup" and "remove" executables to run in the same environment (i.e. Windows or WSL).
This refactoring would allow for removing this current restriction.

PowerShell window briefly flashes on screen when toast notification is displayed

Right when a toast notification appears on the user desktop, a PowerShell window briefly flashes (appears and immediately disappears).

This can be reproduced by simply displaying a toast notification:

PS > Import-Module .\Modules\ToastNotification
PS > Show-NotificationToLoggedInUser -Title "Notification title" -Message "This is a random message"

This behavior is not intended nor desired.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.