cboxdoerfer / fsearch

A fast file search utility for Unix-like systems based on GTK3
GNU General Public License v2.0
3.27k stars 207 forks source link

Broken on Steam Deck #422

Open The-Hoff opened 1 year ago

The-Hoff commented 1 year ago

It is broken on Steam Deck. You update the database, and it finds all the folders perfectly. However, nothing happens when you click on the folders to go to them. I tried everything, but it will not open/go to and found folders. I am left with having to memorise the path and manually search them. Removing and reinstalling FSearch did nothing to resolve it.

cboxdoerfer commented 1 year ago

Hi, sorry for the late reply. I was on vacation this week.

nothing happens when you click on the folders to go to them

Does this only happen with folders or also when you want to open files? What file manager is used on your system? And how did you install FSearch (e.g. as a Flatpak from the store, build yourself, ...)?

The-Hoff commented 1 year ago

Hi, no worries and thanks for getting back to me. I downloaded it from discovery from the Steam Deck desktop. It worked fine for days when I first installed it. It would go straight to the folders when clicking on them. I assumed maybe something was not working with the Steam Deck. I factory reset the Deck and installed FSearch again, but with the same result. I will double-check that it opens files, but it is folders that I need to use FSearch for. I was a bit surprised a factory install still didn't resolve it. Hope this information helps, and thanks.

pixel96x commented 1 year ago

I can confirm that this indeed happen on Steam Deck, but I think that the problem is strictly tied to Steam Deck/SteamOS since on every other device, where app is installed as flatpak, this does not occur. My guess is, that the SteamOS might be somehow miss-configured by Valve. E.g. Portfolio (file manager; installed as flatpak) on SteamOS also cannot open any files in external programs (such as image viewers), even when select dialog shows up.

cboxdoerfer commented 1 year ago

Maybe the SteamOS doesn't have the xdg-desktop-portal-{gnome,kde,...} installed by default?

The-Hoff commented 1 year ago

It is strange why it worked fine when I first installed it a couple of weeks ago. There had been no updates to either Steam OS or FSearch.

Doc-4 commented 1 year ago

Would appreciate revisiting this, it makes the deck much faster and more pleasant to file manage but having to manually copy path and paste it is pretty awful

cboxdoerfer commented 1 year ago

Assuming you're using the Flatpak version of FSearch, can you run the following commands in a terminal:

  1. flatpak run --command=/bin/bash io.github.cboxdoerfer.FSearch followed by
  2. gio open ~

Does this open your file manager at your home directory?

You can then close the Flatpak bash shell opened in step 1 with exit or ctrl-d, or simply close the terminal if you don't need it anymore.

Doc-4 commented 1 year ago

Yes, the flatpak version. Running the flatpak via gui results in it "mostly" working, outside of being able to invoke any outside applications or them showing up as available at all.

Running these commands in sequence results in the first command trying to launch the flatpak and returning "bash: xhost: command not found" Running the second command results in "gio: file:///home/deck: Launch failed"

cboxdoerfer commented 1 year ago

@Doc-4, thx for the feedback. Can you also tell me what's the output of:

flatpak info --show-permissions io.github.cboxdoerfer.FSearch

Doc-4 commented 1 year ago

(deck@steamdeck ~)$ flatpak info --show-permissions io.github.cboxdoerfer.FSearch [Context] shared=ipc; sockets=x11;wayland;fallback-x11; filesystems=host;

cboxdoerfer commented 1 year ago

Hm, I'm out of ideas for now. The fact that gio from within the Flatpak can't open folders tells me that there's likely some issue at the system level (maybe with dbus communication). Because the Flatpak has all the necessary permissions and it's working on all other systems I've tested it so far.

Is there any easy way to test SteamOS from within a VM?

Doc-4 commented 1 year ago

There's HoloISO, but it's modified so may not be an accurate representation. You might also try getting the recovery image to work in a VM here: https://help.steampowered.com/en/faqs/view/1B71-EDF2-EB6D-2BB3

If there's anything further I can help test, just ask