Remove inconsistency in autostart login scripts and logout scripts
There are several consistency issues in autostart
1. Name
As we can see in the screenshot above, login scripts and logout scripts are shown in different ways. Login scripts are shown using their file name while logout scripts are shown using an absolute path. It could confuse the user into thinking that logout scripts are pointing to the file while login scripts are saved somewhere as a snapshot while both are linking to the file that user selected so I think it is better to use absolute path for both.
Currently if user adds a login script in the name of .desktop
file of an application It replaces the application's desktop file.
2. Conflicting files
If the same script is added as login script twice then the first one gets replaced with the second one as created .desktop file will contain the same name. User might be trying to expecting that the script will be executed twice but it will not be.
So i think its better to check if a .desktop
file already exists and then creating another by renaming like KIO::CopyJob
As the logout scripts are made using KIO::CopyJob with job->setAutoRename(true);
. Duplicates are allowed in shutdown scripts without any issues
Please let me know on if you agree or disagree with my suggestions
- renaming of scripts to avoid conflicts
- showing absolute path for both login and logout scripts