-
Notifications
You must be signed in to change notification settings - Fork 99
Add screenshot button to power menu #329
Add screenshot button to power menu #329
Conversation
Mhm... I understand the goal but it doesn't make much sense to me to have a screenshot button in the Power Down menu to be honest. Maybe in the Session indicator would be a better place? |
I agree with you that it's weird. I actually asked this very question myself in the Ubuntu Touch on PINE64 channel earlier. But then some of the more senior developers like @UniversalSuperBox, @dobey and @kugiigi seemed to be in favour of doing it this way, so that's why I gave it a shot. |
Some android phones have this as well in the power menu so I guess it's fine. Hardware button combo is still the better way to fo screenshots but it's good to have a software-only solution. Puttimg it in the indicator would be a lot more complicated in my guess. |
Yes, there's |
There are multiple cases for it:
However, Joan is correct and I didn't consider it before. The Session indicator would be another logical place to put this, and would solve both use cases: https://github.com/ubports/indicator-session It would be more difficult for sure. |
This seems fine on a phone which you can screenshot when using hardware buttons, however, what if on the pinephone I want to take a screenshot of the notification indicator or the audio indicator? The biggest problem with none-hardware based screenshot methods, is the speed issue, if you need or want to take a screenshot of a notification bubble, or of a chat that's moving quickly, or something else that's moving quickly, however I don't think thats fixable without being annoying. Another issue is where ever you put it, it seems like you might miss something, I think Joan is right when talking about screenshot apps, because with an app you can add fun extras like
I think maybe hardware screenshots could be instant, than open the app and ask what you want to do with it, and the screenshot via indicator or app could be tweaked a bit more before the screenshot or something, maybe the separation doesn't really have to happen, maybe both options could just take a screenshot than send you to the app, and ask if you want to retake it but in 5 seconds, or if you want to scroll down the app and stitch, or keep with the current screenshot, and if you want to keep with the current, do you want to save it or share it? |
A dedicated app would definitely be better but I feel like that's too advanced already. |
Checking on how «Report a bug» is working, an entry in the indicator that opens a link we have: The «Report a bug» entry is here: Its definition here(?): Its action is here: |
Indeed, or if you have trouble reaching multiple buttons at once and want to take a screenshot of an indicator. Well, that brings us back around to the button in the power menu. It allows screenshots to be taken of everything but the Power menu. If we go forward with this, we would need to reword the Power dialog so it includes powering off or taking a screenshot. It would make the dialog go against our HIG. Maybe that is worth it in the name of accessibility? |
I think in this case, the «app» to take screenshots in x seconds will be handful. So you can take screenshots of the indicators, the Power menu, etc. |
But can we so easily run a command like The PinePhone stack doesn't use the mirclient API, so you can't use something like |
I think this is fine tbh, android devices seem to do and imo i think it looks fine. |
A way would be to have a dbus command into Lomiri to grab screenshot |
By the way, is it expected for the CI to fail on this? |
There are tests for the shutdown dialog, and you've changed it, breaking the tests. So you'll need to fix the tests as well. |
Also, let's please not turn this simple fix into a massively complicated discussion about re-design of shell components, adding more features for screenshots, and what even is a screenshot anyway. This solves an immediate problem in a simple way, and is consistent with the most used mobile phone OS. We can solve bigger problems later. |
Ok, so this is in |
No, though that probably needs some tests added for the button, given the context of the change you made there. The failing tests you can find by searching for They are in the |
Well, I'm getting closer. Now only the |
So, the difference I'm seeing in the logs is this:
This happens only on the I haven't changed this file at all though. |
I think this is a issue with already flaky tests, I think those can be ignored in this case and should be fixed separably to this PR. Pinging @UniversalSuperBox for some input on this |
I agree with this, we can always fix this later, its better to have it working but not like we want it then not working at all. This is a blocker on pinephones so we should at least make a simple fix and fix it later. |
Has there been any consensus found on this matter? I am personally indifferent to where we're going to put a button, but I would like a solution to be found at some point. If we're not going to go forward with a button in the power menu, I could really use some help with adding one to an indicator or adding a second physical button combination (like Power + Volume Down) for screenshots so the PinePhone / PineTab can work as well. |
Let me try something today and I get back to you |
ubports/indicator-session#9 The idea could be opening a separate dialog for the user to chose between taking a screen shot in the moment or in x seconds Whta do you think? |
Initially I'd say that we don't need any pop-up at all. It should just take a screenshot similar to what VolUp+VolDown does on Halium-ported phones. Nothing fancy. Advanced screenshot functionality is probably best in a separate application that can be written in a (much) later stage. For now we should just focus on a clean way to get a simple screenshot without hardware buttons. The next step would - in my opinion - be adding a second key combination for hardware screenshots so the PinePhone / PineTab can be supported that way as well. I briefly looked into that a while back, but I'm just not very familiar with QML. And then finally we could make an application that allows taking screenshots of certain regions, with timeouts, and so on. |
Regardless of any future solutions, currently merges are frozen until OTA-13 is released this week. PinePhone won't be the only device affected either. |
Thanks for this change. We can merge it now, so Pinephone/Pinetab users can start taking screenshots without hacking up the system, and we can re-examine design around the dialog and how else to present a screenshot action on screen in the future. |
Checked this on a BQM10FHD running RC 2020 W-40. |
when will the mechanism be deployed on the Pinephone? I don't see it (in power menu) in last dev : take screenshots will be very useful for bug reports i think. |
Unfortunately there seems to be something causing some major issues with the unity8 build and tests on the edge/wayland builds, so as soon as that is resolved this will appear on pine images the following day. |
Device: VollaPhone Results:
|
The screenshot is always of the indicator |
@cibersheep I don't think I would consider this a regression, and it's also not clear what one expects to be taking a screenshot of at that point if not the indicator. But if you think it's an issue and the indicator should be hidden before the shutdown dialog is opened, could you open another ticket for that. I don't think it should block the OTA. :) |
I agree with Rodney. The implementation is in the power menu and not directly in the indicator. The proper use is using the power button. If the indicator has to be closed then the screenshot button should be in the indicators. |
No, it's more about whether the indicator should be closed when the menu item is tapped, in this case. Just like when you tap any of the other entries in the session indicator. |
|
This small patch adds a screenshot button to the power menu.
This is particularly welcome for the PinePhone, where the volume buttons cannot register both a VolUp and VolDown keypress at the same time.
I have also heard that other mobile OS'es add this button in this place in addition to a key combination. This would add it to Ubuntu Touch as well.