-
Notifications
You must be signed in to change notification settings - Fork 2.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
org.virt_manager.virt-viewer #391
org.virt_manager.virt-viewer #391
Conversation
@@ -0,0 +1,60 @@ | |||
<!-- https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html --> |
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.
Have you submitted this upstream?
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.
Not yet, I'm waiting for upstream to reply to an email I sent to their mailing-list. I'll probably submit this appstream rough-draft to upstream in a following email.
org.virt-manger.virt-viewer.json
Outdated
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "git://anongit.freedesktop.org/spice/spice-protocol", |
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.
Use https here.
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.
Will-do
bot, build org.virt_manager.virt-viewer |
Filename doesn't match app ID. |
I had been building only |
I put the wrong https link for that git repo, will push a fix for that too, as soon as I get libvirt to build. |
Take my comment literally. |
Oh, thanks, I'll fix this. |
This still needs some serious cleanup, but it builds correctly now. |
</categories> | ||
<url type="homepage">https://virt-manager.org/download/</url> | ||
<url type="bugtracker">https://bugzilla.redhat.com/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&classification=Community&component=virt-viewer&product=Virtualization%20Tools</url> | ||
<url type="help">https://support.mozilla.org/questions/thunderbird</url> |
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.
Wrong help URL.
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.
Thanks for catching this, I wasn't really able to find a good "help" URL, so I'll just remove that line. Is that okay?
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.
Sure.
@@ -0,0 +1,60 @@ | |||
<!-- https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html --> | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<component type="desktop"> |
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.
No screenshots.
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 resolution should screenshots be? As a reference.
org.virt_manger.virt-viewer.json
Outdated
"name": "lz4", | ||
"build-options": { | ||
"env": { | ||
"PREFIX": "/app" |
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.
You use ${FLATPAK_DEST} above.
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.
So are you saying to replace PREFIX
with FLATPAK_DEST
?
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.
No, see module gcrypt-wrapper
. I meant: Use /app
or ${FLATPAK_DEST}
consistently.
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.
does 72a6936 solve this?
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.
Sure. Not that it does have any effect, it was only a minor style thing.
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.
Thanks, you've been doing a great job of helping me better my manifest.
org.virt_manger.virt-viewer.json
Outdated
}, | ||
"buildsystem": "simple", | ||
"build-commands": [ | ||
"make", |
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.
make -j $FLATPAK_BUILDER_N_JOBS
org.virt_manger.virt-viewer.json
Outdated
"*" | ||
], | ||
"build-commands": [ | ||
"install -Dm755 libgcrypt-config ${FLATPAK_DEST}/bin/libgcrypt-config" |
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.
Can be shortened to: install libgcrypt-config ${FLATPAK_DEST}/bin
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.
Sorry, that was wrong. You could only drop the "m755".
<categories>Network</categories> | ||
</categories> | ||
<url type="homepage">https://virt-manager.org/download/</url> | ||
<url type="bugtracker">https://bugzilla.redhat.com/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&classification=Community&component=virt-viewer&product=Virtualization%20Tools</url> |
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.
$ appstream-util validate-relax org.virt_manger.virt-viewer.appdata.xml
org.virt_manger.virt-viewer.appdata.xml: failed to parse org.virt_manger.virt-viewer.appdata.xml: Error on line 16: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &
bot, build bot, build org.virt_manager.virt-viewer |
So now I've gotten I think this would need to be done by passing a file through to the sandbox via |
bot, build org.virt_manager.virt-viewer |
Sorry for the radio silence, I was on vacation and went to an event over the past weekend. |
No worries at all! "Having A Life" is not a problem, when you're donating your time for free you don't owe anybody anything (unless you want to). |
I don't think I'll be able to make USB redirection work, mostly because almost all of
Another thing I haven't worked out is how to connect to Also a way to pass the SSH-agent of the host through to the flatpak. |
bot, build org.virt_manager.virt-viewer |
As long as the appstream data is fine, I think I'm fine with merging this in it's current state. I think more people will use |
org.virt_manger.virt-viewer.json
Outdated
"sources": [ | ||
{ | ||
"type": "archive", | ||
"url": "https://github.com/gentoo/eudev/archive/v3.2.5.tar.gz", |
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.
We have it in shared-modules: https://github.com/flathub/shared-modules/tree/master/udev
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.
I think the version in shared modules was out of date for my needs.
org.virt_manger.virt-viewer.json
Outdated
"sources": [ | ||
{ | ||
"type": "archive", | ||
"url": "https://libvirt.org/sources/libvirt-4.3.0.tar.xz", |
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.
Not sure if it matters for app functionality, but 4.4.0 is o ut.
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.
Updated it (and a few other things) anyway.
org.virt_manger.virt-viewer.json
Outdated
"--talk-name=org.a11y.*", | ||
"--device=all", | ||
"--filesystem=xdg-pictures", | ||
"--filesystem=~/.ssh", |
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 is also --socket=ssh-auth
now, but I'm not sure if it's enough for ssh to work.
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.
I plan on testing this tonight.
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.
I'm also thinking of adding dri
, becasue spice can leverage openGL for rendering.
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.
So, while the ssh-auth socket is enough for ssh to work on a basic level, if ~/.ssh
isn't passed through, it seemingly doesn't create a known_hosts
file, and will always prompt the user whether they trust the fingerprint or not.
bot, build org.virt_manager.virt-viewer |
JSON manifest has typo in the filename, it h=should be |
Thanks. |
bot, build org.virt_manager.virt-viewer |
Makefile
Outdated
@@ -0,0 +1,18 @@ | |||
TARGET_REPO = repo | |||
FLATPAK_BUILDER = $(shell which flatpak-builder) | |||
MANIFEST = org.virt_manger.virt-viewer.json |
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.
Here is also a typo. I'd rather remove Makefile
completely.
@@ -0,0 +1,74 @@ | |||
<!-- https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html --> |
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.
You are not installing this file anywhere. Have you submitted it upstream too?
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.
Haven't yet, the last time I tried to contact upstream I got absolutely nothing back.
bot, build org.virt_manager.virt-viewer |
bot, build org.virt_manager.virt-viewer |
Not happy with how this flatpak operates. Mostly do USB redirection not working. I don't think I'll be submitting it after-all. I guess if anyone wants to pick it up in future, I could help them though. Thanks for all the help, apologies for the wasted effort. |
This is a rough-draft PR, I still need to write an appstream file, but mostly everything else seems done.