-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add com.github._0negal.Viper #2991
Add com.github._0negal.Viper #2991
Conversation
com.github.onegal.Viper.yaml
Outdated
- --share=ipc # Necessary for X11 | ||
- --share=network # Network access | ||
- --device=dri # OpenGL rendering | ||
- --filesystem=host # Full filesystem access, Titanfall2 could be installed anywhere on disk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:-(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the issue here exactly? As explained in the initial description--filesystem=host
is sadly necessary :/
bot, build com.github.onegal.viper |
Queued test build for com.github.onegal.viper. |
bot, build com.github.onegal.Viper |
Queued test build for com.github.onegal.Viper. |
Co-authored-by: Hubert Figuière <hub@figuiere.net>
Co-authored-by: Hubert Figuière <hub@figuiere.net>
bot, build com.github._0negal.Viper |
Queued test build for com.github._0negal.Viper. |
Also I forgot to mention but if accepted, @0neGal should probably also be given write access to the repo ^^ |
Started test build 85162 |
Build 85162 successful
|
Please bear with me for a minute… If we're talking about installations done by host-level Steam or flatpaked Steam, wouldn't this location be the same in 99% of cases? The point of my question is that we generally prefer locked-down permissions that are good enough for the majority of users over wide ones, as they can always be modified through CLI or Flatseal. |
I agree, I'd also prefer more locked down permissions but the issue is the following: So the location of the Steam library config file is known and is always within the user's home directory in one of 3 places:
The default install location for the game itself is usually also within the user's home directory (depending on how Steam was installed):
However that's just the default location. For example one of our targets with Viper is the SteamDeck where the game it adds the mods for could be installed on the SD card. So we also need file system access to that location (usually There's also users that have games installed on a secondary drive (usually some HDD) due to games' ever increasing filesize. As such to make the install as smooth as possible for those users, Then finally, to my knowledge, on Linux a user can add arbitrary locations in the filesystem as a Steam library folder which is where things start to break down if we limit ourselves to just home directory, Now I agree with your reasoning that 99% of users will either have their install in either of those 3 ( |
As discussed in flathub#2991 (comment)
This shouldn't have been in there in the first place. I only intended to add the header image
I restricted file system access now in 8cc035d |
bot, build com.github._0negal.Viper |
Queued test build for com.github._0negal.Viper. |
Started test build 85208 |
Build 85208 successful
|
Newest build seems to still work ^^ |
/merge @0neGal |
A repository for this submission has been created: https://github.com/flathub/com.github._0negal.Viper You will receive an invitation to be a collaborator which will grant you write access to the repository above. The invite can be also viewed here. If you have never maintained an application before, common questions are answered in the app maintenance guide. Thanks! |
Please confirm your submission meets all the criteria
Non-standard permissions:
--filesystem=host
: I'd love to restrict this further but the point of this application is to autodetect the Steam install location of the game "Titanfall 2" and then access that location.In order to do that it needs access to Steam configuration file that specifies the install locations which can be located at multiple places inside the user's home directory depending on the install method (deb vs Flatpak). Further it then needs access to the game's install location which can be anywhere in the filesystem.--filesystem=home
: Required to access the Steam library location config file (read-only) as well as the installed "Titanfall 2" game itself (write access to download and add the mod).--filesystem=/media
: Alternative install location for games on Steam if they are installed on a SD card. Common on platforms like the SteamDeck.--filesystem=/mnt
: Alternative install location for games on Steam if they are installed a secondary drive (like an HDD due to storage limitations on the main drive.Link: feat: Flatpak support 0neGal/viper#75 (comment)
There's a small issue with this part:I cannot make the application ID 1:1 based on the repo URL as the owner's name starts with a zero, so the resulting ID would becom.github.0neGal.viper
. However having an element in the ID start with a digit is disallowed by Flatpak. As such, when discussing with the maintainer we settled oncom.github.onegal.Viper
. Checking Github, there exists no user with the nameonegal
so I guess this should be fine ¯\_(ツ)_/¯AppID updated to
com.github._0negal.Viper