0 votes

I'm trying to display a linux application, let's say the file manager of Gnome inside a Godot application I'm developing. I want to interact with the file manager normally, inside the Godot application. Is there a way I can display them as a viewport? or Is there any other way?

in Engine by (19 points)

1 Answer

0 votes

I may not be understanding your question and I probably don't have the answer. Please bear with me.

First, you could just spawn the new process with OS.execute, figuring out the arcana of the perfect command line. You should definately check the FeatureSet to be sure you can. In general, anything you spawn will be limited to your current permissions.

While I am unclear about Godot, the usual issue in spawning an interactive process is the keyboard buffering. You may find that something is buffering keys and only passing them on end of line.

Good luck! Come back and write-up your experience.

by (327 points)

I apologize if my question wasn't clear! Thanks for the information. I've looked into OS.execute, tried the demo too, I think that's the way to go. You also mentioned sending keyboard buffering which is needed. That being said, I'll further look into it.

Basically, what I'm trying to achieve is a ~sorta Virtual Desktop Window Manager inside a Godot Environment. I could open up bunch of desktop apps from a menu - possibly using OS.execute and the applications run inside that godot environment - can be 2D/3D environment. I could drag windows and interact with them.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.