-
-
Notifications
You must be signed in to change notification settings - Fork 115
Add build and run controls for Flatpak based projects #940
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
Draft
meisenzahl
wants to merge
89
commits into
elementary:master
Choose a base branch
from
meisenzahl:add-button-to-run-project
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
cc6f3bc
Add run and stop button
meisenzahl f76b1da
Add ProjectManager
meisenzahl f060c56
Merge remote-tracking branch 'upstream/master' into add-button-to-run…
meisenzahl 2a66e7c
Satisfy linter
meisenzahl c99319f
Add TODO
meisenzahl fac9c1f
Remove stop action
meisenzahl 4dd8568
Make calls async
meisenzahl 3dba84e
Separate run button
meisenzahl 13c4b61
Prevent running same project multiple times
meisenzahl 808dcb6
Run application when hitting F5
meisenzahl be4d37d
Merge branch 'master' into add-button-to-run-project
meisenzahl afedcd0
Provide project command outputs with signals
meisenzahl 1d188e9
Add build action
meisenzahl 04d1003
Add stop button
meisenzahl fa5d865
Satisfy linter
meisenzahl 50b9f63
Set sensitive for build, run and stop buttons
meisenzahl 5929826
Select project when opening folder
meisenzahl fe58bdc
Merge branch 'master' into add-button-to-run-project
meisenzahl 2f99339
Merge branch 'master' into add-button-to-run-project
meisenzahl d8fed23
Merge branch 'master' into add-button-to-run-project
meisenzahl 21fc311
Restrict support to build and run projects to Flatpak
meisenzahl e006310
Satisfy linter
meisenzahl 8a1422a
Refactor variable names
meisenzahl a86ac53
Read command from Flatpak manifest
meisenzahl a8a4eff
Add support for JSON
meisenzahl b6bc311
Merge branch 'master' into add-button-to-run-project
meisenzahl 08b432f
Merge branch 'master' into add-button-to-run-project
meisenzahl 0bfee34
Merge branch 'master' into add-button-to-run-project
meisenzahl eb25136
Update path of build directory
meisenzahl f12c1ea
Merge branch 'add-button-to-run-project' of github.com:meisenzahl/cod…
meisenzahl 0a4549e
Merge branch 'master' into add-button-to-run-project
meisenzahl 2666385
Update tooltip text with project name
meisenzahl f456d2c
Merge branch 'add-button-to-run-project' of github.com:meisenzahl/cod…
meisenzahl 4970a07
Refactor
meisenzahl 03dfb71
Set sensitivity based on whether the project is a Flatpak
meisenzahl 01e542c
Merge branch 'master' into add-button-to-run-project
meisenzahl 5d4e492
Merge branch 'master' into add-button-to-run-project
meisenzahl 95531d6
Use `get_root_folder ()`
meisenzahl 9134c14
Merge branch 'master' into add-button-to-run-project
meisenzahl 38b7d1c
Merge branch 'master' into add-button-to-run-project
meisenzahl d4534fb
Merge branch 'master' into add-button-to-run-project
meisenzahl e7cd4c9
Merge branch 'master' into add-button-to-run-project
meisenzahl 8282a56
Merge branch 'master' into add-button-to-run-project
8d3d019
Apply suggestions from code review
meisenzahl 38a8f60
Fix
meisenzahl e6b1a77
Satisfy linter
meisenzahl 304764f
Show error dialog
meisenzahl 285a655
Satisfy linter
meisenzahl 50619fe
Show last line as secondary_text
meisenzahl aefd1c1
Merge branch 'master' into add-button-to-run-project
meisenzahl 59c696b
Merge branch 'master' into add-button-to-run-project
meisenzahl 210c5ba
Merge branch 'master' into add-button-to-run-project
b19d7ab
Merge branch 'master' into add-button-to-run-project
meisenzahl e6a8e2f
Use Gee.ArrayList
meisenzahl 8f52a02
Show error dialog only if project was not stopped on purpose
meisenzahl d32af7e
Merge branch 'master' into add-button-to-run-project
meisenzahl b46b4d4
Merge branch 'master' of https://github.com/elementary/code into add-…
8f36133
Merge branch 'master' into add-button-to-run-project
meisenzahl 7839ef3
Merge branch 'master' into add-button-to-run-project
meisenzahl 988a959
Merge branch 'master' into add-button-to-run-project
meisenzahl febe59e
Merge branch 'master' into add-button-to-run-project
meisenzahl 6fd3143
Merge branch 'master' into add-button-to-run-project
meisenzahl 3bf8399
Try to package flatpak-builder
meisenzahl 24f76f4
Merge branch 'master' into add-button-to-run-project
583ff71
Merge branch 'master' into add-button-to-run-project
meisenzahl 5473f78
Try to package flatpak-builder
meisenzahl 5f9c6fc
Add ostree
meisenzahl 8c6ec8e
Merge branch 'master' into add-button-to-run-project
meisenzahl 13397aa
Merge branch 'master' into add-button-to-run-project
meisenzahl f52aacb
Merge branch 'master' into add-button-to-run-project
meisenzahl 8532e9f
Merge branch 'master' into add-button-to-run-project
cassidyjames cbc9bcc
update manifest
Marukesu d956655
Merge branch 'master' into add-button-to-run-project
meisenzahl 5feda44
Merge branch 'master' into add-button-to-run-project
78f461a
Check if dependencies are installed and if running flatpaked
meisenzahl 1a72820
Merge branch 'master' into add-button-to-run-project
meisenzahl 830fd53
Satisfy linter
meisenzahl 07c3b88
Merge branch 'master' into add-button-to-run-project
meisenzahl 6c1eaae
ChooseProjectButton: Set path for ProjectManager
meisenzahl 4a48931
Merge branch 'master' into add-button-to-run-project
1ffdc12
Merge branch 'master' into add-button-to-run-project
meisenzahl 7c3d7dc
ProjectManager: Refactor access to is_running_flatpaked
meisenzahl 4f4c667
MainWindow: Stop build process when closing Code
meisenzahl 69aa4dd
ProjectManager: Hide output of run_command_sync
meisenzahl 2fe9d2a
Add Terminal widget from Installer
meisenzahl 242fc11
MainWindow: Add Terminal to show output of ProjectManager
meisenzahl 71bef7c
MainWindow: Set visibility of terminal revealer
meisenzahl 13c6b9f
MainWindow: Use Gtk.Paned to enable resize of terminal output
meisenzahl 2842bfa
Refactor
meisenzahl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| diff -up fuse-2.9.2/include/fuse_kernel.h.conflictfix fuse-2.9.2/include/fuse_kernel.h | ||
| --- fuse-2.9.2/include/fuse_kernel.h.conflictfix 2013-06-26 09:31:57.862198038 -0400 | ||
| +++ fuse-2.9.2/include/fuse_kernel.h 2013-06-26 09:32:19.679198365 -0400 | ||
| @@ -88,12 +88,16 @@ | ||
| #ifndef _LINUX_FUSE_H | ||
| #define _LINUX_FUSE_H | ||
|
|
||
| -#include <sys/types.h> | ||
| +#ifdef __linux__ | ||
| +#include <linux/types.h> | ||
| +#else | ||
| +#include <stdint.h> | ||
| #define __u64 uint64_t | ||
| #define __s64 int64_t | ||
| #define __u32 uint32_t | ||
| #define __s32 int32_t | ||
| #define __u16 uint16_t | ||
| +#endif | ||
|
|
||
| /* | ||
| * Version negotiation: |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| From 1ec935f4abecd08957affc7b21bae6bf5be78931 Mon Sep 17 00:00:00 2001 | ||
| From: Christian Hergert <chergert@redhat.com> | ||
| Date: Thu, 12 Apr 2018 01:47:57 -0700 | ||
| Subject: [PATCH] libfuse: disable sys mount under flatpak | ||
|
|
||
| --- | ||
| lib/mount.c | 3 +++ | ||
| 1 file changed, 3 insertions(+) | ||
|
|
||
| diff --git a/lib/mount.c b/lib/mount.c | ||
| index 7a18c11..1667db2 100644 | ||
| --- a/lib/mount.c | ||
| +++ b/lib/mount.c | ||
| @@ -392,6 +392,9 @@ static int fuse_mount_sys(const char *mnt, struct mount_opts *mo, | ||
| int fd; | ||
| int res; | ||
|
|
||
| + /* disable in flatpak */ | ||
| + return -2; | ||
| + | ||
| if (!mnt) { | ||
| fprintf(stderr, "fuse: missing mountpoint parameter\n"); | ||
| return -1; | ||
| -- | ||
| 2.17.0.rc2 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| #!/bin/sh | ||
|
|
||
| if [ -z "$_FUSE_COMMFD" ]; then | ||
| FD_ARGS= | ||
| else | ||
| FD_ARGS="--env=_FUSE_COMMFD=${_FUSE_COMMFD} --forward-fd=${_FUSE_COMMFD}" | ||
| fi | ||
|
|
||
| exec flatpak-spawn --host --forward-fd=1 --forward-fd=2 --forward-fd=3 $FD_ARGS fusermount "$@" |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.