Is there a way to make apps force quit when crossed off?

lewissav
New Contributor II

Hi,

 

I am relatively new to Jamf, but just dabbling in some Plists to force a Google Chrome homepage. I have got this working, but the issue I'm having is that it only works once the app has been force quit. (So if I normally cross off Chrome and reopen it, it opens on a blank Google Search page. Then if I manually force quit Chrome and reopen it, it works as I want it to).

Is there a way to make it so that apps automatically force quit once they are just normally crossed off or even so that they automatically force quit when a user logs out? Students won't listen and go the long way around of manually force quitting - so this would be an ideal solution.

As well as this (similar query) is there a way to completely disable the option to 'reopen windows when logging back in'? I believe this would be a big help to this issue.

 

Many thanks

1 ACCEPTED SOLUTION

pete_c
Contributor III

To 'force' a homepage, use a configuration profile instead of deploying a .plist.

Easiest would be to start with a manifest, such as: https://github.com/Jamf-Custom-Profile-Schemas/ProfileManifestsMirror/blob/main/manifests/ManagedPre...

Use that to set your desired options, set scope, and that's it - no force quitting required.

View solution in original post

5 REPLIES 5

jamf-42
Valued Contributor II

force quitting apps is a bad idea and should never be required. Have a read of this: 

https://support.google.com/chrome/a/answer/7550274

AJPinto
Honored Contributor II

MacOS the Jellies (the stop light buttons at the top left of a window, and I think that is what they are actually called) work differently than they do on Windows.

  • "X" closes the active Window (not quits as frustrating as it is).
  • Minimize does just that.
  • Maximize moves the window to a new display space. 

You don't have to force quit an application to quit it, you can right click the application on the dock and click quit. 

 

As far as the behavior you are looking for. Chrome has both a home page, and a restore on startup page. It should look something like this. Chromes documentation is within their enterprise install package.

Download Chrome Browser for Your Business - Chrome Enterprise

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>HomepageIsNewTabPage</key>
    <false/>
    <key>HomepageLocation</key>
    <string>SomeURL</string>
    <key>RestoreOnStartup</key>
    <integer>4</integer>
    <key>ShowHomeButton</key>
    <true/>
    <key>RestoreOnStartupURLs</key>
    <array>
      <string>SomeURL</string>
    </array>
  </dict>
</plist>

 

pete_c
Contributor III

To 'force' a homepage, use a configuration profile instead of deploying a .plist.

Easiest would be to start with a manifest, such as: https://github.com/Jamf-Custom-Profile-Schemas/ProfileManifestsMirror/blob/main/manifests/ManagedPre...

Use that to set your desired options, set scope, and that's it - no force quitting required.

lewissav
New Contributor II

How do I implement this? Still getting to grips with Jamf - I'm assuming I download that and upload it to one of the tabs in Configuration Profile?

I really appreciate your help :)

Navigate to Configuration Profiles and select New, name and categorize. (Remember that anything you add to the Description will be visible on the device where the profile is installed.)

Choose Application & Custom Settings > External Applications. Change Source to Custom Schema, enter the domain (in this case, com.google.chrome) and then click Add schema. Uploading the manifest file is generally recommended over pasting.

Remember, this .JSON is just a 'wrapper' to all the options and descriptions that can be set via .plist - you undoubtedly won't need them all; you could use the Edit schema button to remove payloads you aren't using, though the built-in editor isn't very convenient.  Instead, consider using the "Add/remove properties" button to hide settings that you don't plan on managing.

Scroll to the 'Home page URL' entry and add your site. Assign the scope (test first, as always!) and Save. Remember to always set the scope back to None before you delete a Computer-level profile.

This will be more than what you need to get started, but is still an excellent session. https://www.youtube.com/watch?v=EYG-w3_Do3s