Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Hot answers tagged

52

I would say desktop alias creation at install time for an app is an anti-pattern and bad practice for developers to implement as default behavior. The desktop belongs to the end user and macOS is designed to install apps for every user account and to consider more than one user per computer. To accomplish this, you’re either escalating the installer to ...


35

In the terminal, do this: defaults write com.apple.finder CreateDesktop -bool false && killall Finder After this, there'll be nothing on your Desktop (but still in ~/Desktop, i.e. your Desktop Folder). It'll look like this: Beautiful, isn't it? If you want to change it back: defaults write com.apple.finder CreateDesktop -bool true && ...


35

This answer was written before the clarification that the OP is from a developer perspective, not end user I've always been firmly of the school of "nothing on the desktop" personally - but each to his/her own. You can find apps to launch in one of at least 6 ways... The Apple  Menu > Recent Items The Applications folder itself LaunchPad Spotlight Drag ...


24

Type this in Terminal (/Applications/Utilities/Terminal.app): defaults write com.apple.finder AppleShowAllFiles FALSE killall Finder The first command sets the hidden files visibility to hidden; the second one forces Finder to restart. This is needed for the first command to take effect. You can also log out/reboot instead of killing the Finder, but the ...


21

None of these other solutions work on Mavericks anymore because Apple moved the settings to a sqlite DB. But that's ok because now it's easier, the png can be anywhere in the filesystem, and all desktops (even virtual) are updated. #!/usr/bin/env bash sqlite3 ~/Library/Application\ Support/Dock/desktoppicture.db "update data set value = '/path/to/any/...


21

This is because it loads the previews of the files, which replace the default file icons. To disable icon previews on the desktop, click on the desktop, press ⌘J and uncheck ‘Show icon previews’.


19

This happens because the LaunchServices database gets corrupted. To fix on Mountain Lion: Open Terminal.app in the /Applications/Utilities/ folder. run /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user Restart This command has ...


18

It's not that the icon is sideways, it's that the small thumbnail for the file that's used as the icon needs to be wide because the CSV file has at least one really long line of data in it. The thumbnail you're seeing is a dynamic preview of the contents of the file and in the case of the file on the top of the image, the data contents demand a lot of ...


18

Restarting the Dock seems to work for me, however I don't know what is causing this grey desktop background. To restart the Dock, type this into Terminal and press enter: killall Dock


16

Pressing the shortcuts for changing desktops while dragging a window should still work, but the shortcuts have to be enabled in System Preferences. SizeUp supports for example assigning ⌃⇧→ to moving a window to the next desktop.


16

No. You should just copy the app to /Applications (or ~/Applications), and let the user choose if they want to create a shortcut in the dock or somewhere else. A lot of the time, "installers" in macOS are just disk images (dmg files) containing the app itself and a shortcut to the Applications folder. The user can choose to drag the app there, or anywhere ...


15

This should work for you: osascript tell application "Finder" set desktop picture to POSIX file "/Library/Desktop Pictures/Solid Colors/Solid Gray Dark.png" end tell There are several other ways on this Mac Rumors thread, but his way is the easiest.


14

From this SO answer: Backup your old default Desktop folder If you have files in your existing Desktop folder, don’t worry. We’re going to back up your existing folder so you can copy your old Desktop files to your new DropBox Desktop folder afterwards. Simply open a terminal and enter the following command. sudo mv desktop desktop.bak ...


13

There's a way to hide all "dot" files from Desktop with 3rd party app called XtraFinder. Go to Settings → Features tab → Hide dot files on Desktop Though I still didn't manage to hide all .DS_Store files and keep all other dot files visible, this is a pleasant improvement.


13

Turns out this is a common problem. One of the following should get rid of the tooltip: Hover over another element with a tooltip in the same app that generated the stuck tooltip, as explained here Close the app which you think generated the tooltip Log out of OSX and log back in


12

The simplest way to do it in one line: osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Library/Desktop Pictures/Earth Horizon.jpg"'


12

It's possible to do it in one line of Terminal. Let's say you want to alias to the file "/Users/me/Library/Preferences/org.herf.Flux.plist". osascript -e 'tell application "Finder"' -e 'make new alias to file (posix file "/Users/me/Library/Preferences/org.herf.Flux.plist") at desktop' -e 'end tell' You should replace to file with to folder if you have a ...


12

Another option until Apple gives us a better one: If, like me, you have your additional desktops arranged just how you like them, then the thought of deleting and recreating them just to change the wallpaper would be like recommending that I demolish my house so that I can repaint the walls. I'm not going to do that. Instead, you can open up your Desktop ...


12

This is the downloaded disk image. Many applications downloaded from the internet will come as an internet ready disk image, which means that it mounts and opens when the downloaded file is opened. A disk image is a mountable image of any volume. Disk images can be images of physical volumes or virtual disks. Like a zip, dmg disk images can be compressed (...


12

Just 3 Easy Steps: 1 chrome reboot, but no software/installation required Step 1: (Re)Enable Chrome's feature to create OS level [shortcuts to] "applications" type chrome://flags in Chrome’s address bar. find the following settings: The new bookmark app system Allow hosted apps to be opened in windows Creation of app shims for hosted apps on Mac Quit ...


12

From my MacBook's Finder window, I deleted the empty Desktop folder from iCloud Drive and then immediately emptied the trash before the folder had time to reappear in iCloud Drive. The folder did not reappear. After a few seconds iCloud refreshed and the Documents folder was deleted from my iOS device as well! I then followed the same steps to delete the ...


11

I thought I should make an answer to this that describes solutions specifically for XQuartz. Many of the solutions here do not work for XQuartz. From this ticket: https://xquartz.macosforge.org/trac/ticket/796 , I've found two solutions that work and I feel it would be beneficial to state them here. If you can unplug/plug-in your monitor easily, then ...


10

Try this on Terminal: cd ~/Desktop ln -s ~/Library/path/to/folder


10

Go into System Preferences->Desktop & Screen Saver. Change the desktop to one of the defaults. Then drag the image file into the window. That should fix it.


10

Well, Apple does not recommend leaving your portable plugged in all the time, as for a lithium-based battery, it's important to keep the electrons in it moving occasionally. MacBook / Pro, though, are designed to deliver up to 1000 full charge and discharge cycles before it reaches 80% of its original capacity. A charge cycle means using all of the battery’...


10

Set the wallpaper for Desktop 1, delete all other desktops, then recreate them. New desktops created always share Desktop 1’s wallpaper.


10

You can have them all static or dynamic but not a mix of both. To make them static (so they stay as you put them) do this: Open System Preferences Click on Mission Control Uncheck Automatically rearrange Spaces based on most recent use This will keep them as they are arranged by you. To arrange them, drag them to the desired position after launching ...


9

This is a very wide reaching question, but to answer the central theme, the rough equivalent of explorer.exe on Windows is the Finder application. Finder is the only application you cannot remove from your dock, mainly because it is the finder that runs the dock etc, much like explorer.exe runs the taskbars etc in Windows (I think I got that right for ...


9

Just in case it's your preferences that have got corrupted somehow, you could try the following two commands in the Terminal: $ defaults write com.apple.finder CreateDesktop true $ killall Finder


Only top voted, non community-wiki answers of a minimum length are eligible