Strange occurence with File Managers

Message
Author
User avatar
CharlesV
Global Moderator
Posts: 7314
Joined: Sun Jul 07, 2019 5:11 pm

Re: Strange occurence with File Managers

#21 Post by CharlesV »

I can assure you the size or number of the files in those folders is not the issue I have many folders that have more than that, both in sub folders AND in files.

I suspect that there is either a hidden or a corrupt file in that Geoff folder. ( or a file being read that is having issues.) You can see hidden folders / files using the following:
ls -a

Compare with just an ls and see what is different.

And, as stated earlier, I would create a bad folder and then move half of your files to that 'bad' folder and check. You might find that file.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
CharlesV
Global Moderator
Posts: 7314
Joined: Sun Jul 07, 2019 5:11 pm

Re: Strange occurence with File Managers

#22 Post by CharlesV »

There is a bug listed on the xfce website about file chooser and json files for Thunar - it may not be anything to do with your issue here, but just for a test, move those .json files to a different folder. (again create a BAD folder ?) .. and then once they are there, test it.

https://forum.xfce.org/viewtopic.php?id=17257
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

Charlie Brown

Re: Strange occurence with File Managers

#23 Post by Charlie Brown »

ceejayemm wrote: Tue Mar 26, 2024 6:30 am... creating a new user which seemed to go OK but I am not sure what it was meant to prove Thunar/Dolphin worked OK on folders created by the new user...
I meant to access those files and folders (wherever they are/wherever the problem is) when logged in as the new user, not the Downloads etc. of the new user. If Thunar doesn't crash that way, then it's not system-wide. Also have you tried what happens when on live session (with an official MX iso, not your snapshot) and access the same folders ... ?

ceejayemm
Posts: 26
Joined: Sun Jul 31, 2022 5:06 am

Re: Strange occurence with File Managers

#24 Post by ceejayemm »

Ok, progress is, perhaps, being made.

In #22 CharlesV noted a possible bug relating to Thunar and json files. This, or a variant, seems to be causing this problem. From the CLI I created a new folder and a new file within it, using touch text.json. While this file remained empty I could navigate to the folder with Thunar without any problem. I then copied some of the .json files from the Geoff folder structure above to this new folder (again using the CLI).

ceejayemm@cmlaptop1:~/Downloads/TEST
$ ls -lrt *.json
total 188
-rwxr-xr-x 1 ceejayemm ceejayemm 58269 Mar 27 10:47 data1.json
-rw-r--r-- 1 ceejayemm ceejayemm 0 Apr 5 17:00 test.json
-rwxr-xr-x 1 ceejayemm ceejayemm 185 Apr 5 17:12 tree.json

I tried again to navigate to this folder and immediately Thunar closed down. I renamed the date1.json and tree.json file to *.cm_json and I was then able to navigate to this location and open the files. You will note that at this stage the test.json file is still empty. I copied the content of date1.json into the empty test.json file and tried Thunar again. Thunar immediately closed down. Deleting the contents of test.json to leave an empty file once again allowed me to navigate to this folder with Thunar.

Similarly, out of interest, I tried navigating to a folder with .js files in it. Thunar refused to open on these folders. I copied one of these file to my test folder:

ceejayemm@cmlaptop1:~/Downloads/TEST
$ ls -lrt *.js
-rwxr-xr-x 1 ceejayemm ceejayemm 125495 Apr 5 17:11 all.min.js

Thunar would not open the test folder. Renaming all.min.js to all.min.cm_js allowed Thunar to open the folder. and view the files.

I have copied the files in question to this post so you can see for yourselves. The original .js and .json files are in their .cm_js* name form so that I could find them again in Thunar and copy them here.

Chris
You do not have the required permissions to view the files attached to this post.

User avatar
CharlesV
Global Moderator
Posts: 7314
Joined: Sun Jul 07, 2019 5:11 pm

Re: Strange occurence with File Managers

#25 Post by CharlesV »

Definitely making progress here!!

So, extracting those files down into a folder and then opening that folder was not an issue for me. (No crashing etc.)

Which leads me to believe that something is set in your mime database that it causing those .json files to be opened and the thumbnails / explore of them is the issue.

I suspect removing .json and .js from your mime db will resolve this. But I am going to have to look this up and test to make sure it doesn't impact something else.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

ceejayemm
Posts: 26
Joined: Sun Jul 31, 2022 5:06 am

Re: Strange occurence with File Managers

#26 Post by ceejayemm »

Glad its not just me. Did you rename the files back to their .js and .json extensions before trying Thunar ?

I don't know if it helps or not, but I installed the FlatPak version of Dolphin on my laptop (v24.02.1) - this does not seem to have any problem with navigating to the folder in question EXCEPT that I whilst I can double click any of these files to open them in a their respective application, if I look at the Properties of these files the 'Open With' states 'No associated application' and if I try to change this i get the message 'Could not find the "keditfiletype" executable in PATH.'

Chris

User avatar
fehlix
Developer
Posts: 12700
Joined: Wed Apr 11, 2018 5:09 pm

Re: Strange occurence with File Managers

#27 Post by fehlix »

ceejayemm wrote: Fri Apr 05, 2024 12:46 pm $ ls -lrt *.json
total 188
-rwxr-xr-x 1 ceejayemm ceejayemm 58269 Mar 27 10:47 data1.json
-rw-r--r-- 1 ceejayemm ceejayemm 0 Apr 5 17:00 test.json
-rwxr-xr-x 1 ceejayemm ceejayemm 185 Apr 5 17:12 tree.json

I tried again to navigate to this folder and immediately Thunar closed down. I renamed the date1.json and tree.json file to *.cm_json and I was then able to navigate to this location and open the files.
Maybe post the text-output of these two commands:

Code: Select all

gio mime  application/json
and

Code: Select all

xdg-mime query default application/json
Pls. post command and text-output within code-text-block.
Maybe resetting those to reasonable values might help.

User avatar
CharlesV
Global Moderator
Posts: 7314
Joined: Sun Jul 07, 2019 5:11 pm

Re: Strange occurence with File Managers

#28 Post by CharlesV »

@ceejayemm Yes, I renamed them as well and tried - and did not have any issue.

fehlix knows FAR more than I do about the mime database, but I am pretty confident that THIS is the issue!
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

ceejayemm
Posts: 26
Joined: Sun Jul 31, 2022 5:06 am

Re: Strange occurence with File Managers

#29 Post by ceejayemm »

As requested:

Code: Select all

ceejayemm@cmlaptop1:~
$ gio mime  application/json
Default application for “application/json”: featherpad.desktop
Registered applications:
	featherpad.desktop
	formiko-vim.desktop
	formiko.desktop
	xfce4-terminal-emulator.desktop
	code.desktop
	geany.desktop
	libreoffice-writer.desktop
	nano.desktop
	org.kde.kate.desktop
	org.kde.kwrite.desktop
Recommended applications:
	featherpad.desktop
	formiko-vim.desktop
	formiko.desktop
Thanks for your interest.

Chris

Code: Select all

ceejayemm@cmlaptop1:~
$ xdg-mime query default application/json
formiko-vim.desktop

User avatar
fehlix
Developer
Posts: 12700
Joined: Wed Apr 11, 2018 5:09 pm

Re: Strange occurence with File Managers

#30 Post by fehlix »

Maybe reset default to featherpad incase some issues related to formiko
e.g. reset with

Code: Select all

gio mime application/json featherpad.desktop
would this make any difference.

Post Reply

Return to “General”