-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Update Pulsar's Linux desktop & metainfo mostly from Flatpak #935
Conversation
Changes from the Pulsar Flatpak
Thanks a ton for contributing! These changes look to make sense to me, and I'm happy to get this one merged unless any of our other more Linux focused devs have anything to add? |
I read Flathub's guidelines for this stuff a bit:
In following with what they suggest, maybe we can do the following: Summary:
(My thinking: This fits within the 35 character limit per the guidelines. Guidelines say things like "open source" or "using this framework" or "has this ethos" should not be in the summary, it should be "what can people do with the app, what does it do?" I reckon "text editor" covers that base, although I considered "Edit code just how you like." (???). But also, the guidelines say the summary is kind of a slogan or advertisement, and "Community-led hyper-hackable text editor" has been the tagline since really early days, it should resemble that, IMO. We can move "community-led" to the overhauled description, see below. Again, for the sake of staying under the character limit. Also adjust capitalization per the Flathub guidelines. Though I kind of like having our own style flair with the capitalization, and the guidelines for the description aren't mandatory, just guidelines, so hmmmmmmmm...) Description:
(My thinking: This seems to be in the vibes of what the guidelines wants from us here? And the current description is still "Pulsar is still brand new, we aspire to a lot, watch this space" whereas we aren't brand new and we're pretty established at this point. And we don't need to define our goals in terms of Atom, we started from Atom and carry some of that ethos forward, but "reaching feature parity with Atom" was achieved more or less day 1 when we forked and as soon as the package registry was live, basically. So, not an ongoing goal as much as checklist item completed, IMO. Of course, we don't have Teletype running yet, but... Still. This should be readable to a total newcomer who has never heard of us or Atom before. While giving context about our roots and such.) Screenshot: They really want that app window chrome and drop shadow, don't they? Dang. I guess we might be able to re-stage the Readme screenshot to be more window chrome-y and drop-shadow-y? Maybe? App Icon: Maybe I can download their icon gridlines thing and re-size our circle logo SVG so it's just right per their guidelines? I don't think it can possibly be very far off, but eh, they seem to care a bunch about it. Brand colors: Blarg, gotta come up with something the app icon would be legible on. Maybe a tint of the logo purple, or I can try and dig through the design mockups we got from the professional graphic designer that one time and see if we got some good backdrop colors/tints the logo can sit well on, for light + dark theming. (Side note: Seems to be used moreso for their app store/site than as necessarily our actual brand colors, so I dunno if I agree with their naming of what these colors are about, but eh...) Developer name: We can reformat this to use <developer>
<name></name>
</developer> Per: https://docs.flathub.org/docs/for-app-authors/metainfo-guidelines/#name-summary-and-developer-name So, a few little to-dos, maybe. I think the brand colors one might be the most pressing, if they're really going to start enforcing that like the screenshot above kind of implies?? |
So @DeeDeeG I have been looking into this and have made a PR at flathub/dev.pulsar_edit.Pulsar#36 in addition to the metadata already committed in the Pulsar Flatpak. Flathub aside, if this requires other assets, I am not sure as to how this will be packaged by Pulsar. |
Okay, thanks for linking that PR over at the flathub repo, @cat-master21, and for the additional details. Speaking for myself personally, I approve of those efforts (e.g. flathub/dev.pulsar_edit.Pulsar#36) generally to comply with their linter and the spirit of their guidelines, and we can all try to have some sort of consensus-oriented discussion here to update the various strings/colors/etc. if there is enough interest/participation here. Otherwise, just something that passes their linters and is basically in keeping with what it was before-ish is a safe way to proceed if there is no obvious consensus, IMO. In other words, I would like to see some some suggestions discussed with people here and trying to get multiple people okay with the same values for the metadata before considering them blessed by the group as a whole, whereas I am personally okay with the light maintenance stuff in flathub/dev.pulsar_edit.Pulsar#36 happening until then. Something is much better than nothing if it would have blocked posting more versions of Pulsar to flathub, IMHO. I am working on other stuff at the moment, I had simply chimed in above (#935 (comment)) with my thoughts as I had a free moment to do so at the time. But yeah, all is well IMO. Sorry if the async and/or very light amount of communication has been unclear at any point, but nevertheless I think it's all good, IMO personally. (If there is something urgent that remains un-addressed, feel free to say "hey this thing really needs some action or it's going to be less A-OK!", or if you're looking for input ahead of some deadline(s), feel free to raise that issue to attention. I may have missed it if that is the case, speaking for myself personally.) And thanks for keeping us posted on the updates/changes that the metadata guidelines are asking for or their linter is asking for, etc. (If I am understanding the context correctly.) |
I have been looking at improvements, and it looks like the icon should be 120px instead of 128px: |
I like the screenshot, looks pretty native to a GNOME desktop where FlatHub apps are probably most used at this point (besides KDE, etc?). If this satisfies their oddly specific need for window chrome and drop shadow, then that's great! Icon appears to have been scaled properly using the vector art (SVG source?), and lines up with their template thingy, which should be great, again per their oddly specific requests. (I guess it's good for them to be opinionated about design, and for them to strive for a consistent app browsing & usage experience within their ecosystem...)
It's defined here in the pulsar/script/electron-builder.js Line 43 in 7740b2f
Config is pointing to the actual icon files stored here in the repo --> https://github.com/pulsar-edit/pulsar/tree/7740b2f16812f811f0f2c95ae0edd5f771f93f26/resources/app-icons How to get the flatpak to use a different icon than the .deb? Maybe the little build script here (https://github.com/flathub/dev.pulsar_edit.Pulsar/blob/cecb17c99bcd9f9ed74c0a2f4640f90aace443bf/dev.pulsar_edit.Pulsar.json#L98-L110) can fetch a re-scaled icon from somewhere and replace the one from the Where to host the scaled SVG?
But realistically, this is such a small concern, I doubt there will be strong opinions on it, so short-circuiting that "wait around for people to voice an opinion" thing I'd expect to happen... taking the most conservative approach straight out of the gate to move quickly on, I would suggest just adding a new re-scaled icon in this repo, and leave the current icon used by the .deb alone, I suppose. |
Also I have updated Pulsar's Linux desktop file with support for opening |
Thanks for the info @DeeDeeG. I found what you said to be true except that Pulsar does not use the SVG or a single PNG! This is packaged at pulsar/script/electron-builder.js Lines 169 to 178 in 7740b2f
My solution to this is to instead delete the scaled icons and use a single SVG that is scalable and place it at In addition to the desktop & metainfo file changes done, another change I plan to implement is to actually package the appdata/metainfo at |
dev.pulsar_edit.Pulsar.metainfo.xml
from Pulsar FlatpakSigned-off-by: cat-master21 <96554164+cat-master21@users.noreply.github.com>
Here's how the updated icons look in Linux Mint MATE 21, at least on my machine. Taskbar(Looks pretty much identical to me.) MintMenu(If you look closely, the icon is smaller with this change, and the fine details are less-well resolved, in my opinion.) |
Finally got a chance to test the icon tweaks on Linux, looking at the .deb in particular. I think it'd be good to keep the icons as-is for the non-Flatpak packaging (.deb, .rpm, etc.). The larger-scaled version of the icon, which visually takes up the full size of its dimensions, looks better to me for small icon sizes where fine details don't resolve as well otherwise. (And perhaps some SVG scaling is being done by the OS with a fast but not as good-looking algorithm compared to the manually exported PNGs? But regardless, there are less pixel dimensions to work with, and the result seems to struggle at least a bit for it.) Can we revert the icon changes for the .deb and .rpm use-case, and apply the new scaled SVG only for purposes of the Flatpak? (Flatpak-specific icon tweaks can potentially be implemented during the packaging script in the Flathub Pulsar repo?) I don't mind if the new SVG lives in this repo ("upstream"), but I would personally like the keep the .PNGs for the time being. |
Signed-off-by: cat-master21 <96554164+cat-master21@users.noreply.github.com>
Okay then @DeeDeeG I have reverted the icon changes, but the SVG is still under |
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.
Looks good to me! Thanks for bearing with all the discussion and async communication, some delays, etc.
Changes
This PR updates/adds to the Linux metadata upstream,
dev.pulsar_edit.Pulsar.metainfo.xml
from the Pulsar Flatpak metadata at https://github.com/flathub/dev.pulsar_edit.Pulsar/blob/master/dev.pulsar_edit.Pulsar.metainfo.xml.Release Notes