I have created a project using electron js, and now i want to make a linux distributable using electron forge make, but during installation of this software on any linux system i need to do execute this command:
sudo sed -i 's/^#[[:space:]]*(WaylandEnable)/1/' /etc/gdm3/custom.conf
which will uncomment WaylandEnable and then my software can capture screenshot of the screen without asking user to pick again and again while taking screenshot, it is an activity monitoring software.
I don’t know how to run this command on user’s machine while he install my software, and once this command is executed and then the software is install i want to ask user to restart his system to use application.