How can I search for ROM filenames with language tags and delete them?

0
0
Asked By MistyHarbor42 On

I'm using CachyOS to organize a very large ROM library. I want to remove ROMs for languages I don't speak, which are usually marked in filenames with tags such as (es), (fr), or (de). Dolphin ignores the parentheses and returns anything containing the letters, while KFind doesn't return useful results. FSearch correctly distinguishes the tags, but because I installed it as a Flatpak, trying to delete files produces a "trash portal failed" error. How can I fix FSearch's deletion permissions or handle this more easily without manually deleting hundreds of files?

2 Answers

Answered By CopperLynx7 On

The Flatpak probably doesn't have permission to access your ROM directory or use the desktop trash portal. Open Flatseal, select FSearch, and grant it access to the folder containing your ROMs—or temporarily allow access to all user files. Restart FSearch afterward and try again. You can also check whether the folder is on a filesystem or mount that supports the trash portal; if not, FSearch may only be able to permanently delete files rather than move them to Trash.

QuietMaple19 -

If you installed FSearch from a package instead of Flatpak, it would avoid the sandbox permission issue. Otherwise, enabling filesystem access with Flatseal is usually the simplest fix.

Answered By BluePanda88 On

For the search itself, make sure the pattern includes the literal parentheses, such as *(es)*, *(fr)*, or *(de)*, rather than just searching for es. If the graphical search tool still behaves oddly, a file manager that supports regular expressions can match tags like ((es|fr|de)) and let you review the results before deleting them. Be careful with bulk deletion and test the pattern on a small group first.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.