1

I know globale linux shell has set of environment variables. And when an application is running it has own set of variables. But how to access them or access their shell. There are ways in some apps. Ex: It can be accessed to snap packages shell with snap run --shell app_name. But if I need to access application like gedit how to do it?

1 Answers1

0

As already answered on comments by our friends

sudo cat /proc/$(pgrep gedit)/environ | tr '\0' '\n'

References:

But it is not worth much as all classic GUI app run same environment accept when user customize a desktop launcher or script and modified it. Which is not the case with snaps.

user.dz
  • 48,105