QodotPlugin / qodot-plugin

(LEGACY) Quake .map support for Godot 3.x
MIT License
960 stars 70 forks source link

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

Closed nuxlight closed 1 year ago

nuxlight commented 3 years ago

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 :

as user : image

as root : image

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

nuxlight commented 3 years ago

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

Shfty commented 3 years ago

@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.

nuxlight commented 3 years ago

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

nuxlight commented 3 years ago

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

PaperMartin commented 3 years ago

Did you activate the plugin in the plugin window?

nuxlight commented 3 years ago

@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 :/

RisingThumb commented 3 years ago

@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.

Calinou commented 3 years ago

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 commented 1 year ago

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