Gert-dev / php-ide-serenata

Atom IDE package that integrates the Serenata server to provide PHP code assistance
https://serenata.gitlab.io/
Other
275 stars 22 forks source link

package spawning the process #506

Closed saidbakr closed 4 years ago

saidbakr commented 4 years ago

Whoa, there! Thanks for contributing by reporting issues, but before you do, check that you can answer all the following questions with a firm Yes:

On Ubuntu Linux that runs PHP from ppa:ondrej, The test settings always tells:

'/usr/bin/php' could not be spawned. Is it installed and on your path? If so please open an issue on the package spawning the process.

I have tried to change the binary path to /usr/bin/php7.2 without success. I don't know if the application has no execute permissions or not

Notice: The Atom that I have is a flatpak package!

Gert-dev commented 4 years ago

I've yet to get more familiar with Flatpak, but I think this depends on how (the) Flatpak is configured. IIUC, by default sandboxed applications do not have access to any host files in locations such as /usr/bin unless this was explicitly configured in the configuration or you overrode it.

If this is the case, you can try using an application such as Flatseal to "share" /usr/bin/php7.2 with the flatpak-ed Atom - or override the permissions via the command line, which is what Flatseal indirectly does, I think.

saidbakr commented 4 years ago

It looks like a structural limitation, simply flatpaks are sandboxes, could not be solved in Flatpak or at least it is very hard to solve it. The Flatseal itself is limited in applying permissions because it installed as flatpak package. So, in such type of applications that need to access another system applications or paths, flatpaks are not a good option. I just downloaded the debian package of atom and every thing worked fine!