Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] : Create shortcut button issues on Linux Flatpak #742

Closed
ImSapphire opened this issue Jan 14, 2025 · 2 comments · Fixed by #745
Closed

[BUG] : Create shortcut button issues on Linux Flatpak #742

ImSapphire opened this issue Jan 14, 2025 · 2 comments · Fixed by #745
Assignees
Labels
bug Something isn't working linux

Comments

@ImSapphire
Copy link

Issue encountered

The Flatpak is missing rw permissions on xdg-desktop (for non-Steam shortcuts) and ~/.steam/steam/userdata (for Steam shortcuts), so creating shortcuts fails.
After adding these permissions, the created shortcuts don't work since the Exe and StartDir are not correct

Expected Behavior

No response

Steps to Reproduce

No response

Operating System

Linux

Version

1.5.0-alpha.8

Additional Context

Permission issues:

17:12:32.994 › Error: EROFS: read-only file system, open '/home/sapphire/.steam/steam/userdata/1567182911/config/shortcuts.vdf'
17:16:58.226 › Error: EROFS: read-only file system, open '/home/sapphire/Desktop/Beat Saber 1.40.0 DLC.desktop' EROFS null

Shortcut data:

17:14:45.781 › Shortcut created {
  AppName: 'Beat Saber 1.40.0 DLC',
  Exe: '/app/lib/io.bsmanager.bsmanager/bs-manager',
  StartDir: '/app/lib/io.bsmanager.bsmanager',
  LaunchOptions: 'bsmanager://launch?version=1.40.0&versionName=DLC&versionIno=8191312',
  icon: '/home/sapphire/.var/app/io.bsmanager.bsmanager/config/bs-manager/CachedData/imagescache/launch_shortcut_#9C45FF.png',
  OpenVR: '\x01'
}

The correct 'StartDir' for system Flatpak installation should be '/var/lib/flatpak/app/io.bsmanager.bsmanager/current/active/files/lib/io.bsmanager.bsmanager', Exe should be '/var/lib/flatpak/app/io.bsmanager.bsmanager/current/active/files/lib/io.bsmanager.bsmanager/bs-manager'

@ImSapphire ImSapphire added the bug Something isn't working label Jan 14, 2025
@Zagrios Zagrios added the linux label Jan 14, 2025
@silentrald
Copy link
Contributor

silentrald commented Jan 15, 2025

Duplicate of #738

@ImSapphire Can you check if you could change the desktop exec to flatpak run io.io.bsmanager to check if that works, remove the startdir as well. I'm not sure if I could pull the custom pathing for your flatpak or you installs that easy without manually telling BSManager the path.

@ImSapphire
Copy link
Author

@silentrald The file /.flatpak-info in the sandbox has information about where the flatpak is installed, you could grab the path from there
.flatpak-info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linux
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants