Rolv-Apneseth / rofi-games

A rofi plugin which adds a mode that will list available games for launch along with their box art. Requires a good theme for the best results.
GNU General Public License v2.0
66 stars 1 forks source link

Help with custom entries #32

Closed mobedoor closed 1 month ago

mobedoor commented 1 month ago

Hi. My use case is compressing games into dwarfs archives and using a script "launchr" to launch them. I can't figure out how to get custom entries working Both

[[entries]]
title = "TESV"
path_box_art = "/home/user/Downloads/TESV.jpg"
launch_command = "launchr TESV.dwarfs"
path_game_dir = "/data/media/games/"

and

title = "TESV"
path_box_art = "/home/user/Downloads/TESV.jpg"
launch_command = "launchr /data/media/games/TESV.dwarfs"
#path_game_dir = ""

do not work. My script is added to path. I'd appreciate help with this.

Rolv-Apneseth commented 1 month ago

Can you give me the output of this:

rofi -modi games -show games -theme games-default

Rolv-Apneseth commented 1 month ago

path_game_dir doesn't mean that the command will launch there so the first one wouldn't work, but I would've thought that the second option would, assuming the box art path is valid and the command works when launched outside of this too.

Pretty cool btw - you do this to save disk space I assume? Did you really manage to get the full Skyrim compressed and still playable?

mobedoor commented 1 month ago

I figured it out. The issue was spaces in the filename. Enclosing game path in single quotes fixed the issue. Obviously you couldn't spot that since the example I posted doesn't have those issues😅 .

Pretty cool btw - you do this to save disk space I assume?

That and one big file is easier to backup. Using an overlay with it, means you can mess around in the game folder with mods and the like without worrying about messing stuff up.

Did you really manage to get the full Skyrim compressed and still playable?

Yeah. With SSD's, the game runs pretty fast. There are stutters in HDD's though.

Rolv-Apneseth commented 1 month ago

Nice, glad you got it sorted

That and one big file is easier to backup. Using an overlay with it, means you can mess around in the game folder with mods and the like without worrying about messing stuff up.

Makes sense yeah, that's awesome