Where are "Edit Source" scripts are stored on disk?

I’ve been recently trying to emulate Blender’s layout style referencing the raw code using the “Edit Source” menu option. However sometimes this option doesn’t when right clicking “hover” menus like these:

image

So to fix this, I thought:

Well the code must be stored somewhere on disk as how else “Edit Source” pull up the scripts.

So now my question is, where dose “Edit Source” grab its files?

Extra Info

I use now Zorin OS with KDE Plazma.
For Blender I use Blender Launcher mostly on Blender 4.2.19.