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

Feature Request: Support adding remotes to arbitrary filesystem locations #86

Open
3 tasks done
Newbytee opened this issue Jan 26, 2024 · 4 comments
Open
3 tasks done
Labels
enhancement New feature or request

Comments

@Newbytee
Copy link
Contributor

  • My proposal does not exist in the PLANNED & NOT PLANNED.md document
  • I have not found any other opened issues on the same feature request
  • I believe this fits within Warehouse's scope of Flatpak management

Describe the feature idea in detail

When adding a remote, it would be nice to be able to specify where in the filesystem it will install to. This is useful when you want to install Flatpaks to a different storage medium, such as a secondary internal hard drive or an SD card in the case of phones. It may also be useful to be able to "copy" configured remotes to new directories.

@Newbytee Newbytee added the enhancement New feature or request label Jan 26, 2024
@heliguy4599
Copy link
Member

This sounds like an amazing idea, but I am unaware of a way to point flatpak installations to a new location. Also sorry for the late reply. Do you know something more about custom install locations?

@Newbytee
Copy link
Contributor Author

Newbytee commented Feb 5, 2024

You can read about it here: https://docs.flatpak.org/en/latest/tips-and-tricks.html#adding-a-custom-installation. Sorry, forgot to link that in the initial post. There's no good way to do this from a Flatpak package unfortunately, but it is possible. You have to escape the sandbox using $ flatpak-spawn --host (requires --talk-name=org.freedesktop.Flatpak) and then use $ pkexec to elevate privileges. Granted, both of these could fail — former in case the user has denied the required permission, and the later if the user doesn't have the relevant command installed. Still, I think this is the best way to do it.

@Newbytee
Copy link
Contributor Author

Newbytee commented Feb 5, 2024

I might try working on this myself btw, just wanted to know what you thought of the idea.

@heliguy4599
Copy link
Member

Oh I see. Thank you very much for that info. Also, I make heavy use of flatpak-spawn --host and some use of pkexec already in Warehouse, so those requirements are perfectly fine. And yeah, I think it would be a great feature to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants