ksguin / Falguni

A must-have GUI-based shell-script for a clean, hassle-free setup for Ubuntu and Ubuntu-based distros, especially handy if you're new to Linux.
2 stars 0 forks source link

Creating an Icon to avoid launch using Terminal #3

Open ksguin opened 3 years ago

ksguin commented 3 years ago

Since this project is aimed at absolute beginners, it'd be great if it's possible to avoid sudo bash run.sh & simply double-click to run program.

Desktop entry file as follows can be an option in my opinion (I'm just being hopeful, please correct me if I'm wrong!) :

[Desktop Entry] Name=Ubuntu-AIO Comment=All-in-One Debloat & SetUp utility for your System Exec=sudo bash /path-to-application/run.sh Icon=/path-to-application/Ubuntu-AIO.png Terminal=true

The issue here is that the path-to-application has to be dynamic because a user can download the application anywhere in any folder and the Desktop Entry file will be inside the extracted folder.

ksguin commented 3 years ago

The [Desktop Entry] approach doesn't seem to work!

Even if I input the absolute path in Exec and somehow run run.sh file, the related relative scripts are not found using the find command (which are located under /scripts folder)!

Also, Untrusted script runs are not in line with Linux's safety, hence few extra (overwhelming for beginners) steps to enable :

But that is also meaningless if connected scripts don't work properly!

P.S.: I'm open to suggestions!