GithubHelp home page GithubHelp logo

elementary / screenshot Goto Github PK

View Code? Open in Web Editor NEW
82.0 25.0 21.0 3.82 MB

Screenshot tool designed for elementary OS

Home Page: https://elementary.io

License: GNU Lesser General Public License v3.0

Vala 92.60% Meson 7.40%
gtk gtk3 vala meson hacktoberfest

screenshot's Introduction

Screenshot

Translation status

Screenshot

Building, Testing, and Installation

You'll need the following dependencies:

  • meson >= 0.43.0
  • libgdk-pixbuf2.0-dev
  • libgranite-dev >= 6.0.0
  • libhandy-1-dev >= 0.83.0
  • valac

Run meson to configure the build environment and then ninja to build and run automated tests

meson build --prefix=/usr
cd build
ninja

To install, use ninja install, then execute with io.elementary.screenshot

sudo ninja install
io.elementary.screenshot

screenshot's People

Contributors

artemanufrij avatar bagjunggyu avatar cassidyjames avatar codygarver avatar colindemian avatar comradekingu avatar danirabbit avatar davidmhewitt avatar ddieter avatar djaler avatar donadigo avatar elementarybot avatar fitojb avatar hugok79 avatar hyuchia avatar ihorhordiichuk avatar johndumpling avatar josprachi avatar karim-inabi avatar lenemter avatar mtamas85 avatar nasserbinlaboun avatar nathanbnm avatar queeup avatar ryonakano avatar shtonchjo avatar thepieterdc avatar tomiohl avatar weblate avatar yarons avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

screenshot's Issues

Spaces under the lines are different

screenshot from 2018-06-11 21-17-23

It is very tiny difference, but it seems that the spaces under the lines of "Grab the whole screen" and "Grab the current window" are different.

Window position not remembered?

I like to move the screenshot window into a corner, so that it doesn't cover up the subject that I'd like to take a screenshot of. (I know the window is hidden automatically so this doesn't really matter). But when the screenshot is taken and saved the screenshot window is opened again in the middle of the screen. The previous window location isn't remembered / restored.

Can't take screenshot of notification panel

Notification panel collapses when I click "take screenshot" under "Grab the whole area" as well as "Select area to grab".

This is not working for the other opened icons in the panel such as Battery, Wi-Fi, Bluetooth, volume control, Power, Application list, and Calendar.

Launchpad Details: #LP1676152 Agastya Chandrakant - 2017-03-26 11:54:51 +0000

No title set

I've been using the screenshot tool in Pop!_OS, but it's a little awkward because the title for the dialog isn't set. It falls back to the RDNN.

image

Window / dialog has a different theme then other windows

In elementary OS, the window / dialog of the screenshot tool has a dark theme that's different from other windows (like Calender and Photos). Is there a specific reason why only this app's window has a different theme? I think it is inconsistent with the default theme of elementary OS.

I'm willing to submit a PR that removes the dark theme preference if that's appreciated.

If an active window is not found, main window doesn't open

To reproduce:

  • Open screenshot-tool
  • Close or minimize all other windows
  • Try to take screenshot of current window
  • Error message is displayed, close it
  • Main window doesn't pop up.

You can still see app icon in plank.

Launchpad Details: #LP1660969 Fabio Zaramella - 2017-02-01 13:09:54 +0000

Taking a screenshot using PrtScr button gives no visual feedback.

Right now, hitting PrtScr does take the screenshot and save it, but it gives absolutely no visual feedback whatsoever that the job has been done. Ubuntu Unity has a nice snapshot like animation showing the user that a screenshot is taken.

This is sometimes even more valuable when one wants to take screenshots at an exact moment, say during an animated GIF/video or any similar use case.

"Select area to grab" crashes the session

Whenever I initiate this mode and select the area I want to grab, it crashes the session I'm in and boots me back to the login screen.

Details:
GPU: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R7 Graphics]
CPU: AMD A8-7650K Radeon R7, Decacore [8G+2C]

$ dmesg :

[    3.301890] ACPI Error: [\_SB_.ALIB] Namespace lookup failure, AE_NOT_FOUND (20150930/psargs-359)
[    3.301897] ACPI Error: Method parse/execution failed [\_SB.PCI0.VGA.ATC0] (Node ffff8801f80c1a50), AE_NOT_FOUND (20150930/psparse-542)
[    3.301905] ACPI Error: Method parse/execution failed [\_SB.PCI0.VGA.ATCS] (Node ffff8801f80c1a28), AE_NOT_FOUND (20150930/psparse-542)

screenshot-tool is missing non-interactive mode

It's possible to make a screenshot using the terminal, but then it just opens the gui. There's no way to save the image to a file using something like --file /path/to/file.jpg or in the clipboard using --clipboard.

Launchpad Details: #LP1665708 Sergey Kislyakov - 2017-02-17 16:35:31 +0000

Save folder when screenshot key is pressed

At the moment, when I'm pressing the "print screen" key, the resulting screenshot is saved in my ~/Pictures folder instead of the folder specified in the "folder-dir" setting. If I'm calling the screenshot-tool from the command line using "screenshot-tool -s", the picture is saved as expected in the "folder-dir".

I am wondering which command is triggered when the print screen key is pressed? Having a hard time figuring that out somehow. Also I'm wondering if this is intended behavior? If not, and if I know the exact command which is triggered by the print screen key, I might be able to fix it.

Screenshot is including the gray box

Sometimes, when I am taking a custom screenshot, the gray box wich I draw over the screen does not disappear, which leads to the situation that it gets included into the screenshot (is making the picture darker).
Also, the mouse pointer stays in the 'cross'-state, which means I cannot click any buttons in the screenshot window. Keys like ESC or ENTER are working.

The Behavior is not clearly reproduceable, it happens about every third time I am taking a custom screenshot.

Here is a picture of how it looks like after I release the mouse button for drawing the gray box:
http://imgur.com/a/gpL9c

Launchpad Details: #LP1670010 Tobias Paar - 2017-03-04 14:51:25 +0000

Allow delay to be 0

The SpinButton and the logic behind the "conceal text" option should be re-written to support 0 delay.

Launchpad Details: #LP1681254 Sergey Kislyakov - 2017-04-09 18:19:11 +0000

Cancel should be Close

Right now the close button says "Cancel", but you're not always cancelling an action; sometimes you've already taken a screenshot and you just want to close the app.

We should probably change the "Cancel" button to "Close".

dependence on non-standard icon in the .desktop file

The screenshot-tool desktop file references an icon that is neither defined in the XDG icon naming spec, nor present in most icon themes (except elementary's) - accessories-screenshot. This leads to multiple issues.

Please consider shipping and using a branded "screenshot-tool" icon with screenshot-tool, since there is no generic screenshot tool icon defined in the XDG spec.

Drag and Drop from save dialog

It would be great if after a screenshot was taken a notification would be shown with the image file, in such a way that it could be dragged from this notification into other applications. This would allow users to more easily upload the screenshot's to websites like github, or to a custom folder, or their favorite image editor.

I didn't really come up with this myself, I heart that another Linux distro had this feature on the Linux action show.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Add a feature to upload the image to online picture sharing sites

... like imgur (and/or others)

I don't know if that feature should be a dedicated button in the app (1) , or a separate contract (2), but it could be very very useful.

Of course it can be (1) and (2) meaning a piece of code (likely a function) that would be called by a upload button and also available via command line so that a contract can be written to expose it.

Launchpad Details: #LP1407210 PerfectCarl - 2015-01-03 08:19:18 +0000

The app sometimes crashes the OS

Hi guys, seems like the app crashes the whole os , I tried to select area to screenshot but then the screen went grey, then a boot like prompt screen came up with just a "_" flashing then It threw me back on the login screen, it happened a few times sometimes even just by opening the app.

Take multiple screenshots rather than forcing user to decide ahead of time

Instead of having different "modes" for the screenshot tool, where it can snap a window or the full screen, perhaps the screenshot tool should just do both when invoked. That way, one isn't forced to choose ahead of time, and to remember two separate keybindings; instead, one just "takes a screenshot" with PrtSc or similar and then can be presented with both a fullscreen and a window screenshot. (Obviously, the UI might decide to present these separately rather than simultaneously -- one is shown a fullscreen screenshot and then choosing "Window" switches that to show the already-taken window screenshot -- if that's deemed a better approach.)

This can also be extended to other classes of screenshots; for example, if switching CSS fonts for an app can be done very quickly, then the screenshot tool might take a fullscreen, a windowed, and a windowed-with-the-REDACTED-font screenshot, and allow choosing between them. This has the advantage that it exposes the existence of the redaction scheme to people who might not otherwise have thought to do it. (Clearly it won't work if taking a redacted screenshot takes a great deal of time or is visually disruptive, since people won't want to pay that time cost for every screenshot if they didn't want that.)

Launchpad Details: #LP1556474 Stuart Langridge - 2016-03-12 18:29:33 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Screenshot region is darker than it should

So, here is a screenshot taken with Pantheon's Screenshot Tool : captura de pantalla de 2018-06-01 09-49-31

Similar screenshot taken by xfce4-screenshooter captura de pantalla_2018-06-01_09-50-21

I belive that for some reason the darker overlay is actually appearing on the screenshot causing the screenshot to be darker than it should be.

Build with meson

Hi! I bumped on problem when building rpm in OBS:

[   97s] RPM build errors:
[   97s]     Installed (but unpackaged) file(s) found:
[   97s]    /usr/share/locale/ar/LC_MESSAGES/extra.mo
[   97s]    /usr/share/locale/as/LC_MESSAGES/extra.mo
[   97s]    /usr/share/locale/ast/LC_MESSAGES/extra.mo
[   97s]    /usr/share/locale/be/LC_MESSAGES/extra.mo
[   97s]    /usr/share/locale/bg/LC_MESSAGES/extra.mo
[   97s]    /usr/share/locale/bn/LC_MESSAGES/extra.mo
...

https://build.opensuse.org/package/live_build_log/home:awissu:branches:X11:Pantheon:Next/screenshot-tool/openSUSE_Tumbleweed/x86_64
These files will conflicts with a file from another package.

Default to Screenshots subfolder

Camera defaults to a "Webcam" subfolder, and my Pictures folder quickly becomes over-crowded with Screenshots. I wonder if we should default to a ~/Pictures/Screenshots folder.

Screenshot Tool caused system and desktop font to change to Redacted Font (squiggles)

Very weird issue, was using the screenshot-tool to snap a pic to send to a client. I selected the "select area to grab" option, clicked "screenshot", moved my mouse right, and shortly after my desktop and system fonts changed to Redacted Font (squiggles). I managed to fix the issue by changing the font back using elementary-tweak-tools, resizing the desktop using tweak tools, changing the sizing back to it's original value, and restarting.

Any idea on what caused this? Here's a screenshot of the issue.

Request feature

i don't know, where to request feature. so i write to this repository.

please add new feature in this app like Quicktime on mac os, for record screen.

appdata file generation/installation broken since 0.1.3 Release

I don't understand why, but the "Release 0.1.3" commit / rev. 324 in bzr broke appdata generation (only an empty file is installed to the destination). The error is the same with the .tar.gz release tarball on github, the .tar.xz file on launchpad and a bzr snapshot of rev324.

segmentation fault on i586

Version 0.1.4 crashes on startup on i586 architecture.
gcc 5.3.1
vala 0.36.4
gtk+3.22

(gdb) backtrace
#0  0xb6fb2e8a in _IO_vfprintf_internal (s=0xbffff3c0, format=<optimized out>, 
    ap=0xbffff5a8 "\034") at vfprintf.c:1632
#1  0xb70504bc in __GI___vasprintf_chk (result_ptr=0xbffff4bc, flags=1, 
    format=0xb71c0784 "goption.c:2384: ignoring reverse flag on option of arg-type %d in entry %s:%s", args=0xbffff59c "lect") at vasprintf_chk.c:69
#2  0xb718e228 in vasprintf (__ap=0xbffff59c "lect", 
    __fmt=0xb71c0784 "goption.c:2384: ignoring reverse flag on option of arg-type %d in entry %s:%s", __ptr=0xbffff4bc) at /usr/include/bits/stdio2.h:210
#3  g_vasprintf (string=0xbffff4bc, 
    format=0xb71c0784 "goption.c:2384: ignoring reverse flag on option of arg-type %d in entry %s:%s", args=0xbffff59c "lect") at gprintf.c:316
#4  0xb7167bf9 in g_strdup_vprintf (
    format=0xb71c0784 "goption.c:2384: ignoring reverse flag on option of arg-type %d in entry %s:%s", args=0xbffff59c "lect") at gstrfuncs.c:514
#5  0xb714ecc7 in g_logv (log_domain=0xb71b732e "GLib", 
    log_level=G_LOG_LEVEL_WARNING, 
    format=0xb71c0784 "goption.c:2384: ignoring reverse flag on option of arg-type %d in entry %s:%s", args=0xbffff59c "lect") at gmessages.c:1264
#6  0xb714f045 in g_log (log_domain=0xb71b732e "GLib", 
    log_level=G_LOG_LEVEL_WARNING, 
    format=0xb71c0784 "goption.c:2384: ignoring reverse flag on option of arg-type %d in entry %s:%s") at gmessages.c:1398
#7  0xb7154e81 in g_option_group_add_entries (group=0x81548c0, 
---Type <return> to continue, or q <return> to quit---
    entries=0xbffff618) at goption.c:2383
#8  0xb74d6816 in g_application_add_main_option_entries (
    application=0x8140108, entries=0x8179700) at gapplication.c:715
#9  0x0804cd59 in screenshot_screenshot_app_constructor (type=135569800, 
    n_construct_properties=1, construct_properties=0x80fc870)
    at /usr/src/debug/screenshot-tool-0.1.4/src/Application.vala:52
#10 0xb726bdd5 in g_object_new_with_custom_constructor (n_params=0, 
    params=0x0, class=0x818dea0) at gobject.c:1701
#11 g_object_new_internal (class=class@entry=0x818dea0, 
    params=params@entry=0x0, n_params=n_params@entry=0) at gobject.c:1781
#12 0xb726d933 in g_object_newv (object_type=135569800, n_parameters=0, 
    parameters=0x0) at gobject.c:1930
#13 0xb726e0bd in g_object_new (object_type=135569800, first_property_name=0x0)
    at gobject.c:1623
#14 0x0804c9c5 in screenshot_screenshot_app_construct (
    object_type=<optimized out>)
    at /usr/src/debug/screenshot-tool-0.1.4/src/Application.vala:22
#15 screenshot_screenshot_app_new ()
    at /usr/src/debug/screenshot-tool-0.1.4/src/Application.vala:22
#16 screenshot_screenshot_app_main (args=0xbffff8a4, args_length1=2)
    at /usr/src/debug/screenshot-tool-0.1.4/src/Application.vala:110
#17 0x0804c1bb in main (argc=2, argv=0xbffff8a4)
    at /usr/src/debug/screenshot-tool-0.1.4/src/Application.vala:101

Fonts sometimes don't change back after using "Conceal text" option

I'm on a fresh installation of Loki Beta. This is a default installation for which I set Finnish as a system-wide language after installation using "Language & Region" plug.

After installing language support and rebooting, I decided to try screenshot app. I set "Conceal text" option on and took a screenshot. After saving the screenshot I closed screenshot app but the whole UI is still gibberish text even after many reboots. Turning "Conceal text" option on/off in screenshot app doesn't do anything to UI.

See the screenshot to see how this one option turned elementary OS installation for me.

ProblemType: Bug
DistroRelease: elementary 0.4
Package: elementary-desktop 1.412+467dailyubuntu0.4.1 [origin: LP-PPA-elementary-os-daily]
ProcVersionSignature: Ubuntu 4.4.0-24.43-generic 4.4.10
Uname: Linux 4.4.0-24-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CrashDB: elementary_meta
CurrentDesktop: Pantheon
Date: Tue Jun 14 13:42:54 2016
SourcePackage: elementary-meta
SuspiciousXErrors:

ThirdParty: True
UpgradeStatus: No upgrade log present (probably fresh install)

Launchpad Details: #LP1592363 Jiri Grönroos - 2016-06-14 11:08:02 +0000

Cancel doesn't work when using shortcut

On Juno beta (1), the shortcut to select an area to grab works out of the box again, but using esc to cancel doesn't work as it should.
When pressing esc before starting to draw an area (before mouse down) a screenshot isn't made, but it still makes the screenshot sound. When was already drawing the area esc generates the sound and a screenshot is made.

When using the Screenshot app this works fine.

This was also reported at: #34 (comment)

Wrong Save location when using Short-cut

When taking a screenshot using 'prt sc' shortcut, the screenshot is stored in Pictures folder instead of Screenshots. Taking the screenshot from the application works as expected.

Shortcut to take screenshot of an area not working

Expected behavior

When the shortcut Shift+Print Screen the cursor should change to a plus sign allowing to select an area of the screen.

Actual behavior

Nothing happens.
All the other shortcuts related to screenshot are working properly.

Steps to reproduce the behavior

Press Shift + Print
System information

Operating system version: 0.4.1 Loki

"open with" or contractor dialog

Would be extremely useful to have an option to open the screenshot directly in other apps (eg. GIMP) without previously saving it and than opening with the other app.

A simple "open with.." option (maybe implemented with contractor) would be a nice and easy solution.

Launchpad Details: #LP1409439 Eric Göpel - 2015-01-11 12:56:00 +0000


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Default filename invalid for web uploads

When taking a screenshot, the default filename is the date and time. The problem is when you try to upload that screenshot, some web forms (such as JIRA) don't like the colon in the timestamp. Mac screenshots solve this by changing colons to dots. So 12:30:57 turns into 12.30.57

Launchpad Details: #LP1663734 Jeremy - 2017-02-10 20:13:06 +0000

Automatically append scaling factor to filenames

It's a super common web convention to append @2x to any images that are at a 2x scaling factor. It might be handy to automatically append the scaling factor to images when it's >1.

For example, this lets websites like Medium automatically set up the right sizing and scaling without any extra work from the user which is incredibly convenient.

Hot corner bad responds

The right side of the screen is almost not working. I have to put the mouse cursor at a very specific point in a specific type to make it run. It was working well before the last system update. I hope it's fixed soon.

Fix crash on some systems (eg. FreeBSD)

I noticed, when default encoding is not UTF-8, saved widget dialog crashes, due to missing internationalization support.

Then, when GLib.UserDirectory.PICTURES is not defined, image is not saved, so I rewrite test case, with fallback directory.

Launchpad Details: #LP1645472 Olivier Duchateau - 2016-11-28 21:00:36 +0000

mouse position shows in upper-left corner when taking a custom area screenshot

Observed behavior: Screenshot app, select option to preserve mouse position, take custom area shot, in the resulting screenshot, submenus are not highlighted as expected and the mouse is moved to the upper-left corner, not where it was hovering during the screenshot.

For example, http://i.stack.imgur.com/R4VVf.png

Expected behavior: Both window and area select should capture the space exactly as set up when the screenshot is taken, but at the very least, the mouse position should not move to the upper-left corner when the toggle indicates that the mouse position would be included in the screenshot.

Launchpad Details: #LP1627704 wolf - 2016-09-26 11:18:38 +0000

Unify the name of app

Which is the correct name, "Screenshot Tool" or "Screenshot"?

The name of this repo is screenshot-tool, and at the top of README.md the title is written "Screenshot Tool". RDNN name also says "io.elementary.screenshot-tool". However, at 8 line in the appdata file says Screenshot and at 3 line in the desktop file also says Screenshot. Also the icon name is accessories-screenshot.

The name is not unified and this might make users confusing. I think we should unify the name of app to either notation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.