Skip to content
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

Can't save files with new 9.2 version most of the time #267

Closed
pythongod opened this issue May 14, 2024 · 5 comments
Closed

Can't save files with new 9.2 version most of the time #267

pythongod opened this issue May 14, 2024 · 5 comments

Comments

@pythongod
Copy link

pythongod commented May 14, 2024

  • Open a file via right click (Edit with Visual Code)

  • Save (or "save as root" extension)

  • get Error, see below

  • did not get that error with 9.0 and 9.1

Error Messages:
Process returned exit code 1:
dd: failed to open '/home/jack/docker/homepage/config/services.yaml': Permission denied
-bash: line 37: /home/jack/docker/homepage/config/services.yaml: Permission denied

io.xpipe.core.process.ProcessOutputException: Process returned exit code 1:
dd: failed to open '/home/jack/docker/homepage/config/services.yaml': Permission denied
-bash: line 37: /home/jack/docker/homepage/config/services.yaml: Permission denied
at io.xpipe.core.process.ProcessOutputException.of(ProcessOutputException.java:53)
at io.xpipe.ext.proc.a.a(SourceFile:432)
at io.xpipe.ext.proc.a$2.close(SourceFile:115)
at io.xpipe.app.util.FileBridge.lambda$openIO$5(FileBridge.java:206)
at io.xpipe.app.util.FileBridge.handleWatchEvent(FileBridge.java:99)
at io.xpipe.app.util.FileBridge.lambda$init$0(FileBridge.java:59)
at io.xpipe.app.core.AppFileWatcher$WatchedDirectory.handleWatchEvent(AppFileWatcher.java:189)
at io.xpipe.app.core.AppFileWatcher$WatchedDirectory.update(AppFileWatcher.java:154)
at io.xpipe.app.core.AppFileWatcher.lambda$startWatcher$1(AppFileWatcher.java:75)
at java.lang.Thread.run(Thread.java:1583)

I'm on mac installed with homebrew

@crschnick
Copy link
Contributor

So according to the error, it can't open the file. If you open a terminal in that directory, and try to edit the files manually, does that also happen? What are the file permissions on that file? Is that a local file or remote?

@pythongod
Copy link
Author

It opens the file but can't save it.

i can open that remote file with nano and save only with sudo nano.

permissions are -rw-rw-r-- 1 root root (i open as jack)

if i take a file that is owned by Jack
-rw-rw-r-- 1 jack jack I can open and save it without an error.

Case 1 was possible with 9.0 and 9.1 without an error.

@crschnick
Copy link
Contributor

So how are you opening the file browser session? You should be able to open any directory as root in xpipe. If you are opening it as a normal user, then according to the permissions this fails as intended.

There should have been no changes to this behavior in 9.2, at least not intentional. Can you try downgrading to 9.1, maybe by downloading a separate portable version, and check this in 9.1?

@pythongod
Copy link
Author

Get the same error on 9.1 portable. Probably a problem on my end. Closing. Sorry.

@crschnick
Copy link
Contributor

Yeah so you would either have to change the owner of that file or use the button in the file browser to open a directory as root and edit it in that session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants