qodot-plugin icon indicating copy to clipboard operation
qodot-plugin copied to clipboard

I should launch Godot as root to see Qodot nodes, strange no ?

Open nuxlight opened this issue 4 years ago • 8 comments
trafficstars

Hi Qodot community :)

I have a strange behavior on my Fedora... I have installed all requirement to launch Qodot and Trenchbroom on my system but after launch the scripts :

  • qodot_trenchbroom_config_file.tres
  • qodot_trenchbroom_config_folder.tres I correctly generate my Trenchbroom configurations but if I am not root I can't see the Qodot nodes :/

as user : image

as root : image

Have you an idea with this problem, it's only a permission problem ? Thanks for your help :)

nuxlight avatar Apr 20 '21 18:04 nuxlight

I have launch Godot in verbose in root and user mode I see no specific difference :/

nuxlight avatar Apr 20 '21 20:04 nuxlight

@nuxlight How did you install Qodot?

My first suspicion is that the GDNative libraries (libmap.so and libqodot.so for linux) have somehow ended up with root ownership or some other restrictive permissions, thus preventing the editor from reading and loading them unless it's running with root permissions.

If that's the case, you should be able to use some combination of chown and chmod to set things back to rights - provided that their permissions are as permissive as your Godot executable (which may have caused the problem initially if you installed while running as root) it should load as expected.

ProfLander avatar Apr 20 '21 21:04 ProfLander

@Shfty I have installed Qodot with the zip archive directly (The Godot Asset store API is down at this time) :)

nuxlight avatar Apr 20 '21 21:04 nuxlight

I have change all permissions (Godot executable and all folder/files presents in project folder) --> Same result, no nodes are presents in normal user :'(

nuxlight avatar Apr 20 '21 21:04 nuxlight

Did you activate the plugin in the plugin window?

PaperMartin avatar Apr 22 '21 19:04 PaperMartin

@PaperMartin Yes I did that but no effect on nodes explorer. I have tested on another Linux distribution (On Ubuntu) and you have exactly the same behavior :/

nuxlight avatar Apr 22 '21 20:04 nuxlight

@nuxlight

@Shfty I have installed Qodot with the zip archive directly (The Godot Asset store API is down at this time) :)

Installing by Zip, doesn't preserve read, write or execute permissions on the files. tar.gz does preserve read/write/execute permissions on the files. Use the .tar.gz to install OR give the files read and write permissions after unzipping it.

If you run this command chmod -R +wr addons to give read and write permissions for the addons folder, you should be able to see it without running Godot as root. What this does, is recursively give read and write permissions to all files and folders in the addons folder. If execute permissions are needed(I don't know if they are) change the command to chmod -R +wrx addons.

RisingThumb avatar May 01 '21 02:05 RisingThumb

This may be related to SELinux, which is enabled by default on Fedora (and set to Enforcing mode). Try setting it to Permissive mode using sudo setenforce 0 then restart the editor.

Calinou avatar Jun 25 '21 22:06 Calinou

@nuxlight Did you find a solution to this problem? If so, please document it here by commenting :slightly_smiling_face:

Calinou avatar Dec 06 '22 15:12 Calinou