hello folks, so, i use fedora, and i have steam installed as flatpak, i tried this suggestion i relaxed the flatpak, and log out, but the .desktop files are still in the /home/${USER}/.var/app/com.valvesoftware.Steam/.local/share/applications/ how i “force” the steam to re-create the .desktop files?

thank you!

(btw i just want the start-menu icons, i don’t put shortcuts in the desktop :)

  • hallettj@beehaw.org
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    Instead of trying to get Steam to write outside of its sandbox, I would configure the OS to search Steam’s files for application launchers.

    Your system searches “data” directories for directories called applications, and loads .desktop files from there. You can customize locations for data directories using the XDG_DATA_DIRS environment variable. See https://unix.stackexchange.com/a/492878

    In this case you want to set XDG_DATA_DIRS to include ~/.var/app/com.valvesoftware.Steam/.local/share because that is the parent of the applications directory.

    I think you’ll want to include the default data dirs so you don’t lose your other launchers. So something like,

    export XDG_DATA_DIRS="/usr/local/share/:/usr/share/:$HOME/.var/app/com.valvesoftware.Steam/.local/share"
    

    If I’m understanding the spec correctly you don’t need to include ~/.local/share because that is the default path for XDG_DATA_HOME which is always searched, and XDG_DATA_DIRS specifies additional paths to search.

    • Vilian@lemmy.caOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      but that isn’t gonna make some apps became confuse and install the .desktop in the steam directory?

  • slowbyrne@beehaw.org
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    I believe its an option when you right click the game in steam.

    If you don’t want the desktop icons, you don’t need to relax the flatpak permissions for the xdg-desktop. Just the first two for allowing steam to see the icons and the applications folders.

    If the right click option isn’t there in steam, there might be a way to regenerate the icon, but off the top of my head I’m not sure. Reinstalling the game should do it but that’s a pain for larger games.

    • Vilian@lemmy.caOP
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      yeah reinstaling it resolved, but, i mean i don’t want to reinstall every one😅, and repair the game files didn’t changed anything, even after deleting the one from the .var/steam

    • Vilian@lemmy.caOP
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      oh, i can just generate a .desktop file in my desktop, and copy it to the correctly location, anyway, thank you for answering!

      • slowbyrne@beehaw.org
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        No worries. Yeah I ran into this same issue with flatpak steam and got it mostly working about a year ago and then distro hopped. Lost the changes for some reason and just didn’t bother fixing it lol. Glad you got it working!!