Coder Social home page Coder Social logo

A better way to open Disk Utility about imagr HOT 10 CLOSED

imagr avatar imagr commented on July 18, 2024
A better way to open Disk Utility

from imagr.

Comments (10)

gregneagle avatar gregneagle commented on July 18, 2024

I personally would prefer a setup more like the OS X Utilities you get when booted from Recovery partition, and Imagr is just one of the available utilities: Disk Utility and Terminal among the others.

from imagr.

natewalck avatar natewalck commented on July 18, 2024

Perhaps this could be an optional setting in the NetBoot set:

By default, boot directly to Imagr.

If SomeVar = True, boot to the main recovery window where Imagr.app is one option.

This would require the following functionality to be added:

  • Add Imagr.app to the Recovery Boot window (if it isn't already)
  • Add a preference for booting to the recovery window rather than imagr
  • modify the rc.imaging script example to read the aobve preference and take the correct action.

from imagr.

grahamgilbert avatar grahamgilbert commented on July 18, 2024

Hacking on that is definitely a route I don't want to go down. I'll just be chasing after whatever apple decide to do with that. I'll raise separate issues for menu items for opening Terminal and Disk Utility (maybe others).

This issue purely refers to Disk Utility being opened on the main thread and behind the main Imagr window.

from imagr.

natewalck avatar natewalck commented on July 18, 2024

By default, I think AutoNBI boots to the recovery window. So it would just be a matter of modifying rc.imaging and adding something to the menu.

If you don't want to bother with this method, thats fine, although I think it is more Apple-y to use their Recovery window to launch stuff.

from imagr.

natewalck avatar natewalck commented on July 18, 2024

Actually, this seems like an issue outside of Imagr altogether.

Adding things to the menu in recovery would be AutoNBI functionality, not Imagr functionality. So if you still want quick access to those tools, then obviously that needs to happen here (via Menu, etc).

I fiddled with AutoNBI and got to this state, which works quite well and is a simple plist file edit:

https://carousel.dropbox.com/photos/cc/gFJIXdfLjTUaLUe

Some classy photos there ;)

This method is like what Greg mentioned and can be done without modifying Imagr.

from imagr.

grahamgilbert avatar grahamgilbert commented on July 18, 2024

I like it, but agree that this is now outside of imagr.

from imagr.

grahamgilbert avatar grahamgilbert commented on July 18, 2024

But this does bring me back to the original issue - We need to find a way of opening Disk Utility without it opening behind the main imagr window.

from imagr.

gregneagle avatar gregneagle commented on July 18, 2024

Since we can use PyObjC, I'm pretty sure one of the NSWorkspace methods should be able to help.

https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWorkspace_Class/index.html

I'd start with NSWorkspace.sharedWorkspace().launchApplication_("path/to/Disk Utility.app")

from imagr.

grahamgilbert avatar grahamgilbert commented on July 18, 2024

Excellent - I saw that but was struggling with the syntax.

from imagr.

grahamgilbert avatar grahamgilbert commented on July 18, 2024

Looks like I was too eager. This doesn't work in an AutoNBI image.

from imagr.

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.