Valid point.
Until six hours ago,
after a dozen posts already made here,
the description of the issue changed along the way
and makes something like this much more likely.
Especially OP (@kay-dee) should have recognized this immediately …
but I’m guilty of not noticing it as well.
The Templates folder is a default XDG folder - defined in the file ~/.config/user-dirs.dirs.
These templates are made available when you right click in your file manager and choose Create new file
Manjaro Linux provides an autostart/autorun script which creates the files if they do not exist.
As mentioned above
At some point you have removed the Templates folder - but the script references the XDG_TEMPLATES_DIR folder but if that folder do not exist - the files is created in the user’s home root instead.
There is two options to remedy the situation
Either
Create the Templates folder and move the mentioned files into the folder.
Or remove the entry create-template responsible for creating the files
Either by
Open the Gnome Tweaks and locate the Startup Applications section
Or by
Open the file manager and navigate to ~/.config/autostart and remove the create-template.desktop launcher.
Okay… rm ~/Empty* worked this time. The three files have been deleted from the Home Directory and now, don’t return after re-booting. I’m not sure what changed except maybe there is a connection with my last post where I clicked remove Create Template. Could a combination of the two functions have produced the required result?
Anyway, thank you. Things appear back to normal. What a struggle.
Katie
~ ls -al ~/.config/autostart ✔
total 20
drwxr-xr-x 2 kaydee kaydee 4096 Jun 22 11:38 .
drwxr-xr-x 34 kaydee kaydee 4096 Jun 18 22:50 ..
-rw-r--r-- 1 kaydee kaydee 175 May 24 13:10 FDM.desktop
-rw-r--r-- 1 kaydee kaydee 214 Jun 10 2024 manjaro-app-folder-settings.desktop
-rw-r--r-- 1 kaydee kaydee 115 Jun 10 2024 msm_notifier.desktop
…and please edit your last reply to correct your formatting for the terminal output.
Either way, it was already explained where those files should be and what they’re for. I use my own custom Templates every day when I package software for Manjaro.
The only remaining question is whether they’ll return - and then whether they’ll need to be deleted again or if we can work out where they came from.
It is possible that you mis-clicked (i.e. right click-newdocument-emptyfile), but that doesn’t cover the .desktop or bash file.
It could be some bug that occurred in an extension or application, or a script… or even a simple file manager glitch (hence the discussion about Templates).
So really, just carry on and see if they come back.