Removing file from Home Directory

Valid point.
Until six hours ago,
after a dozen posts already made here,
the description of the issue changed along the way :grimacing:
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 link again:

Autocreation of files in templates folder

1 Like

I am thinking - these look like they are intended to reside in the Templates folder.

Summary

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.
4 Likes

It was mentioned here - though there wasn’t a direct reply to that…

3 Likes

As suggested by Takakage and Phemisters, I opened Tweaks>Start Applications and clicked remove next to Create Template. It didn’t resolve the problem.

just to verify:

open a terminal

rm ~/Empty*

gives an error and doesn’t remove the files?

Or is there no error and the files are gone?

ls -al ~/Empty*

If they are now gone,
are they still recreated after log out and log in?

Show output of:
ls -al ~/.config/autostart

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

@kay-dee

Again…

…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. :wink:

2 Likes

This is all very confusing. I don’t know what you want me to do.

… to edit your post to have it look like this:

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

It’s what the symbols in the top row of the editor window are for - this one </> in particular.
It is explained in the link you where given.

Unless you created the Templates folder and moved the files into the folder - it is not back to normal.

Your user’s home folder is crippled when have removed the Templates folder and the files that normally resides inside .

So what you call a struggle is in fact a self inflicted issue caused by lack of knowledge.

2 Likes

Thanks everyone… I give up.

If they are, the issue is resolved.

… nothing left to give up on :man_shrugging:

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.

Good luck :vulcan_salute:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.