-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sf org open
not working under Linux (Snap)
#2769
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
It's the change in behavior from this PR: salesforcecli/plugin-org#913 My guess is that the temp file is being deleted before the browser can load it. Does this happen 100% of the time for you? Does it matter if Firefox is already open? Does another browser work more consistently? |
Can you try modifying this file: Let me know if that allows enough time for the redirect. Thanks! |
Hi @shetzel, thanks for getting back to me. I did some investigation, tldr even when removing Turns out it's due to snap sandboxing, the global I will investigate a bit more on what the suggested solution is. |
sf org open
not working under Ubuntusf org open
not working under Ubuntu (Snap)
sf org open
not working under Ubuntu (Snap)sf org open
not working under Linux (Snap)
For future reference, see salesforcecli/plugin-org#992 (comment) for a work around on this issue. |
We'll keep this issue open until the tmpfile-based logic is removed. some notes about the tmp env var workaround:
|
Summary
Running
sf org open
under Ubuntu 22.04 with latest sf cli 2.30.8 opens Firefox with "file:////tmp/org-open-1710254619760.html" and shows "File not found".Steps To Reproduce
Expected result
Org opens
Actual result
Org doesn't open and browser shows "File not found".
System Information
Terminal: Bash & Powershell 7.4 (same behavior)
Additional information
The last working version was
@salesforce/cli@2.24.4
. Maybe it has something to do with #923.Workaround is to run
sf org open --url-only
and paste the url manually into the browser or pipe it to firefox.The text was updated successfully, but these errors were encountered: