Set TMPDIR to an app-local temp directory to not exaust /run#103
Open
Summertime wants to merge 1 commit intoflathub:masterfrom
Open
Set TMPDIR to an app-local temp directory to not exaust /run#103Summertime wants to merge 1 commit intoflathub:masterfrom
/run#103Summertime wants to merge 1 commit intoflathub:masterfrom
Conversation
See https://gitlab.gnome.org/GNOME/gnome-boxes/-/issues/1105 for more context. By using the GLib default of `/tmp`, Boxes will write to the host directory `/run/user/$USER/app/org.gnome.Boxes`, which, when downloading large enough images, will completely fill the tmpfs and partially hose the system. Telling GLib to use `/var/tmp`, this will be redirected by flatpak to the host directory `~/.var/app/org.gnome.Boxes/cache`. For something that may be XX GB in size, this seems to be a safer choice.
Contributor
|
Started test build 177857 |
Contributor
|
Build 177857 successful |
alatiera
reviewed
Sep 16, 2025
| "--talk-name=ca.desrt.dconf", | ||
| "--env=DCONF_USER_CONFIG_DIR=.config/dconf" | ||
| "--env=DCONF_USER_CONFIG_DIR=.config/dconf", | ||
| "--env=TMPDIR=/var/tmp" |
Member
There was a problem hiding this comment.
This is wrong, you don't want to override the tmpdir always, but rather the application should download the files in /var/tmp rather than /tmp
Collaborator
|
Sorry I didn't address this earlier. I have now posted a merge-request https://gitlab.gnome.org/GNOME/gnome-boxes/-/merge_requests/690 I can get this in 49.1. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See https://gitlab.gnome.org/GNOME/gnome-boxes/-/issues/1105 for more context.
By using the GLib default of
/tmp, Boxes will write to the host directory/run/user/$USER/app/org.gnome.Boxes, which, when downloading large enough images, will completely fill the tmpfs and partially hose the system.Telling GLib to use
/var/tmp, this will be redirected by flatpak to the host directory~/.var/app/org.gnome.Boxes/cache. For something that may be XX GB in size, this seems to be a safer choice.I've only tested with Flatseal to make the env change.