Noah Vogt пре 1 година
родитељ
комит
c1c05ed22d
3 измењених фајлова са 23 додато и 3 уклоњено
  1. 3 1
      .SRCINFO
  2. 5 2
      PKGBUILD
  3. 15 0
      change-screenshot-filenaming.patch

+ 3 - 1
.SRCINFO

@@ -1,7 +1,7 @@
 pkgbase = gnome-shell-no-screenshot-notification
 pkgbase = gnome-shell-no-screenshot-notification
 	pkgdesc = Next generation desktop shell - without the screenshot notification
 	pkgdesc = Next generation desktop shell - without the screenshot notification
 	pkgver = 45.1
 	pkgver = 45.1
-	pkgrel = 1
+	pkgrel = 2
 	epoch = 1
 	epoch = 1
 	url = https://wiki.gnome.org/Projects/GnomeShell
 	url = https://wiki.gnome.org/Projects/GnomeShell
 	arch = x86_64
 	arch = x86_64
@@ -53,10 +53,12 @@ pkgbase = gnome-shell-no-screenshot-notification
 	source = git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
 	source = git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
 	source = disable-screenshot-notification.patch
 	source = disable-screenshot-notification.patch
 	source = disable-screenshot-sound.patch
 	source = disable-screenshot-sound.patch
+	source = change-screenshot-filenaming.patch
 	b2sums = SKIP
 	b2sums = SKIP
 	b2sums = SKIP
 	b2sums = SKIP
 	b2sums = a726caac6ec6dea7f7c8d122cedf30ad0a44921321ed763e2b4422e6f455edf2a93f6d9de72ac8c10560f69bb987a37acf6de2580b36464345afc08ab439d86e
 	b2sums = a726caac6ec6dea7f7c8d122cedf30ad0a44921321ed763e2b4422e6f455edf2a93f6d9de72ac8c10560f69bb987a37acf6de2580b36464345afc08ab439d86e
 	b2sums = aca63da0703e44401fa987660d9542d92df7e89da66d93dbf0cd75bc25868b75d9502fb73c6981d964ebbb3b6a719c9b1d84629560dafbfedf3781a6fab7769a
 	b2sums = aca63da0703e44401fa987660d9542d92df7e89da66d93dbf0cd75bc25868b75d9502fb73c6981d964ebbb3b6a719c9b1d84629560dafbfedf3781a6fab7769a
+	b2sums = e3d93ff6565a4e2db845fe95bfd965d39a042beb47a89a91aea5f7c21b7c4d52d377470b9803082d33924780cb5a82b06159cd6ace14e1ae4249ba08eda71dac
 
 
 pkgname = gnome-shell-no-screenshot-notification
 pkgname = gnome-shell-no-screenshot-notification
 	depends = accountsservice
 	depends = accountsservice

+ 5 - 2
PKGBUILD

@@ -6,7 +6,7 @@
 _base_name=gnome-shell
 _base_name=gnome-shell
 pkgname=gnome-shell-no-screenshot-notification
 pkgname=gnome-shell-no-screenshot-notification
 pkgver=45.1
 pkgver=45.1
-pkgrel=1
+pkgrel=2
 epoch=1
 epoch=1
 pkgdesc="Next generation desktop shell - without the screenshot notification"
 pkgdesc="Next generation desktop shell - without the screenshot notification"
 url="https://wiki.gnome.org/Projects/GnomeShell"
 url="https://wiki.gnome.org/Projects/GnomeShell"
@@ -69,11 +69,13 @@ source=(
   "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git"
   "git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git"
   "disable-screenshot-notification.patch"
   "disable-screenshot-notification.patch"
   "disable-screenshot-sound.patch"
   "disable-screenshot-sound.patch"
+  "change-screenshot-filenaming.patch"
 )
 )
 b2sums=('SKIP'
 b2sums=('SKIP'
         'SKIP'
         'SKIP'
         'a726caac6ec6dea7f7c8d122cedf30ad0a44921321ed763e2b4422e6f455edf2a93f6d9de72ac8c10560f69bb987a37acf6de2580b36464345afc08ab439d86e'
         'a726caac6ec6dea7f7c8d122cedf30ad0a44921321ed763e2b4422e6f455edf2a93f6d9de72ac8c10560f69bb987a37acf6de2580b36464345afc08ab439d86e'
-        'aca63da0703e44401fa987660d9542d92df7e89da66d93dbf0cd75bc25868b75d9502fb73c6981d964ebbb3b6a719c9b1d84629560dafbfedf3781a6fab7769a')
+        'aca63da0703e44401fa987660d9542d92df7e89da66d93dbf0cd75bc25868b75d9502fb73c6981d964ebbb3b6a719c9b1d84629560dafbfedf3781a6fab7769a'
+        'e3d93ff6565a4e2db845fe95bfd965d39a042beb47a89a91aea5f7c21b7c4d52d377470b9803082d33924780cb5a82b06159cd6ace14e1ae4249ba08eda71dac')
 
 
 pkgver() {
 pkgver() {
   cd $_base_name
   cd $_base_name
@@ -85,6 +87,7 @@ prepare() {
 
 
   patch -p1 -i "$srcdir/disable-screenshot-notification.patch"
   patch -p1 -i "$srcdir/disable-screenshot-notification.patch"
   patch -p1 -i "$srcdir/disable-screenshot-sound.patch"
   patch -p1 -i "$srcdir/disable-screenshot-sound.patch"
+  patch -p1 -i "$srcdir/change-screenshot-filenaming.patch"
 
 
   git submodule init
   git submodule init
   git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"
   git submodule set-url subprojects/gvc "$srcdir/libgnome-volume-control"

+ 15 - 0
change-screenshot-filenaming.patch

@@ -0,0 +1,15 @@
+--- a/js/ui/screenshot.js
++++ b/js/ui/screenshot.js
+@@ -2155,10 +2155,10 @@ function _storeScreenshot(bytes, pixbuf) {
+                 throw e;
+         }
+
+-        const timestamp = time.format('%Y-%m-%d %H-%M-%S');
++        const timestamp = time.format('%Y%m%d-%H%M%S_%N');
+         // Translators: this is the name of the file that the screenshot is
+         // saved to. The placeholder is a timestamp, e.g. "2017-05-21 12-24-03".
+-        const name = _('Screenshot from %s').format(timestamp);
++        const name = _('Screenshot_%s').format(timestamp);
+
+         // If the target file already exists, try appending a suffix with an
+         // increasing number to it.