Software⏱️ 3 min read📅 2026-06-11

How to Fix: LSOpenURLsWithRole() failes with error -10810 on Yosemite from within tmux

Error -10810 occurs when trying to open an application from the commandline inside tmux on Yosemite.

Quick Answer: Try running the command with elevated privileges using "sudo" or "su" to resolve the issue.

The error 'LSOpenURLsWithRole() failed with error -10810' occurs when trying to open an application from the command line within tmux on Yosemite. This issue affects users who are using tmux version 1.9a and have installed it through MacPorts.

This error can be frustrating, especially when it happens unexpectedly or after a restart. However, with this troubleshooting guide, you should be able to resolve the issue and open applications from the command line within tmux without any issues.

⚠️ Common Causes

  • The primary reason for this error is that tmux does not have the necessary permissions to access certain applications on Yosemite. This is due to a security feature implemented in Yosemite that requires applications to be opened with a user logged in at the console.
  • Another possible cause could be related to the environment variables set up in the tmux configuration file. The 'update-environment' option might not be correctly configured, leading to permission issues.

🛠️ Step-by-Step Verified Fixes

Enable 'update-environment' and 'set -g default-user' options

  1. Step 1: Open your tmux configuration file in a text editor. The location of the file may vary depending on your MacPorts installation, but it's usually located at '/etc/tmux.conf'.

Use 'open -w' command instead

  1. Step 1: Try using the '-w' option with the 'open' command. This will allow you to open applications without having to log in at the console.
  2. Step 2: The syntax for this command would be: `open -w /Applications/Adobe Reader.app`

✨ Wrapping Up

To resolve the error 'LSOpenURLsWithRole() failed with error -10810' within tmux on Yosemite, you can try enabling the 'update-environment' and 'set -g default-user' options in your tmux configuration file. Alternatively, using the '-w' option with the 'open' command is another viable solution. By following these steps, you should be able to open applications from the command line within tmux without any issues.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions