Giter Club home page Giter Club logo

Comments (12)

marxjohnson avatar marxjohnson commented on July 23, 2024

I did have this thought, the could be a "bin" button next to the play/stop buttons on the manager screen to delete the VM (with a confirmation step).

However, what should this button do? quickemu --vm vm.conf --delete exists, but it just deletes the disk image. Should we just be exposing that behaviour, or should we completely delete the VM directory and .conf file?

from quickgui.

ymauray avatar ymauray commented on July 23, 2024

If we draw a parallel with what a file explorer does, simply "deleting" a file just puts it in the trash, it doesn't remove the file completely.
So I would tend to thing a "delete" button would just delete the disk and variables, leaving the config intact. Maybe the UI could show up an icon or a different color when it does not detect a disk ? That would also bring attention to newly created VMs, when the use comes back from the downloader.

from quickgui.

flexiondotorg avatar flexiondotorg commented on July 23, 2024

However, what should this button do? quickemu --vm vm.conf --delete exists, but it just deletes the disk image. Should we just be exposing that behaviour, or should we completely delete the VM directory and .conf file?

Perhaps quickemu needs to expand the delete functionality?

  • --delete disk to just delete the virtual hard drive and EFI variables.
  • --delete vm to delete everything.

And deprecate --delete to just explain the two options above.

from quickgui.

marxjohnson avatar marxjohnson commented on July 23, 2024

Generally speaking, I'm in favour of the principle that the GUI should expose quickemu's functionality, rather than add to it or reimplement it. If we're going to add a "full delete" option, I'd agree with @flexiondotorg's suggestion of adding it to quickemu first.

Regarding the UI, I think something like the below would be good:
deletion UI mockup

from quickgui.

ymauray avatar ymauray commented on July 23, 2024

I have no objection, that sounds like the right thing to do.

from quickgui.

flexiondotorg avatar flexiondotorg commented on July 23, 2024

I've added --delete-disk and --delete-vm options to quickemu 2.3.3 which was released earlier today. The existing --delete is now an alias for --delete-disk.

from quickgui.

marxjohnson avatar marxjohnson commented on July 23, 2024

@diddledani I've pushed this to branch wip20, give it a go and let me know if you've got any feedback.

from quickgui.

philclifford avatar philclifford commented on July 23, 2024

@diddledani I've pushed this to branch wip20, give it a go and let me know if you've got any feedback.

It actually got mingled in with #52 last night

from quickgui.

marxjohnson avatar marxjohnson commented on July 23, 2024

How embarassing. Oh well, I'm happy enough with how it works for now, Hopefully the changes of someone running with an old version of quickemu are minimal. I think we can mark this closed, and open a new issue for any improvements.

from quickgui.

ymauray avatar ymauray commented on July 23, 2024

Yeah, sorry I didn't catch that up earlier. I didn't want to mess with my already very messy merge :P

from quickgui.

marxjohnson avatar marxjohnson commented on July 23, 2024

@ymauray I dont seem to have permission to close issues, could you grant it for me?

from quickgui.

ymauray avatar ymauray commented on July 23, 2024

Wimpy made us both owners now :)

from quickgui.

Related Issues (20)

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.