M

Mario's Notes

A place for my thoughts.

Full Path in Finder Title Bar

defaults write com.apple.finder _FXShowPosixPathInTitle -bool true killall Finder Worked immediately on re-launch of Finder, super helpful when you're a few dirs down in list mode ...
Read post

Stop MacOS from writing .DS_Store files on Network Shares

It will do this on every sub-directory you navigate to on any SMB write-enabled share you browse. These files only contain Finder related view and other non-necessary metadata, they are totally safe to delete. Run this command to ensure MacOS/Finder stops writing these files for network shares. defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE Note there isn't presently a way to stop these files from being created on local filesystems. Thx Tim... ...
Read post

Disable Media keys and other devices opening Media apps on MacOS

I connected my Airpods Max's and Music launched. I don't want anything to happen when I connect a device. Turns out there's two pieces at work, the remote-control daemon looking for media keys, and the ImageCapture service looking at devices plugged in. Here's how to disable both. # disable the remote‐control daemon for your user launchctl disable gui/$(id -u)/com.apple.rcd # make it stick across reboots launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist # stop devices launc...
Read post

Stop Finder from writing .DS_Store files on Network Drives!

By default, finder does this to store your view (and potentially other) settings in directories you browse to. To stop it from doing this for network drives, execute the following: defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true killall Finder ...
Read post

Change MacOS Computer Name across all components

Here's definitively how to change your system name in MacOS across all components. These instructions for modern versions, worked perfectly on Sequoia 15.4.1 # Friendly name (shown in Finder/AirDrop) sudo scutil --set ComputerName "odyssey-redux" # Hostname (shown in Terminal prompts, network identification) sudo scutil --set HostName "odyssey-redux" # Bonjour/local network name (e.g. My-MacBook.local) sudo scutil --set LocalHostName "odyssey-redux" # Flush DNS cache to make sure changes stic...
Read post

Power Settings in MacOS (not available in the GUI)

There's multple key power management settings on MacOS that are either no longer in the System GUI or based on other features being enabled etc.. A couple of key settings that you might care about: Power Nap - Intermittent awake feature that connects to wifi and allows apps to pull latest i.e. Messages etc. Keep Alives - Pings out to Apple to support FindMyMac Keep Awake - allows open remote tty sessions to keep the computer from sleeping You can view the available "current" options using p...
Read post