Without the ability to create a .desktop file that Manjaro will recognise however, I’m pretty much stuck for getting either of those functions to work.
On Ubuntu there used to be GUI programs you could use to create a .desktop file. Are there such programs available for Manjaro that would work for this purpose maybe?
Next thing will be to get the Gnome tweak program to be able to load it on log in.
As you can see here it’s accepting the Lock Screen .desktop file in my application launchers directory:
But when I log into my user account, it tells me that the screen lock was blocked by “an application”. I suppose I’ll have to dig around and see if there’s some kind of policy in Manjaro that blocks the screen lock command I’m trying to run, and see if I can convince Manjaro to let me run it :OP
Or find some alternative command I can run perhaps.
Which launches a script in my home folder:
#!/bin/bash
sleep 5
xdg-screensaver lock
And I’m able to add that to the startup entries for my user using the Tweak tool. Note that you have to log out of your user session after putting the .desktop file in ~/.local/share/applications, and only after logging back in will the .desktop file be recognised by Manjaro. After that you can go to the tweak tool, and add it to the startup entries from in there.