Skip to content

Commit

Permalink
Fixed issue with sandboxed tmp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
aleiepure committed Feb 26, 2023
1 parent 0d9c014 commit 7b5c02d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
7 changes: 7 additions & 0 deletions install/devtoolbox-run-script
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#! /bin/sh
# Copyright (C) 2022 - 2023 Alessandro Iepure
#
# SPDX-License-Identifier: GPL-3.0-or-later

export TMPDIR="$XDG_RUNTIME_DIR/app/me.iepure.devtoolbox"
exec /app/bin/devtoolbox-bin "$@"
7 changes: 5 additions & 2 deletions me.iepure.devtoolbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"--share=ipc",
"--socket=fallback-x11",
"--device=dri",
"--socket=wayland",
"--filesystem=/tmp"
"--socket=wayland"
],
"cleanup" : [
"/include",
Expand All @@ -29,6 +28,10 @@
"name" : "devtoolbox",
"builddir" : true,
"buildsystem" : "meson",
"post-install": [
"mv /app/bin/devtoolbox /app/bin/devtoolbox-bin",
"install -Dm755 /app/devtoolbox/devtoolbox-run-script /app/bin/devtoolbox"
],
"sources" : [
{
"type" : "git",
Expand Down
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ subdir('data')
subdir('src')
subdir('po')

install_data('install/devtoolbox-run-script', install_dir: join_paths(get_option('prefix'), meson.project_name()))

gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
Expand Down

0 comments on commit 7b5c02d

Please sign in to comment.