]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
New upstream version 1.11 upstream/1.11
authorDon Armstrong <don@donarmstrong.com>
Wed, 25 Nov 2020 17:54:06 +0000 (09:54 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 25 Nov 2020 17:54:06 +0000 (09:54 -0800)
README.md
autorandr.py
contrib/packaging/rpm/autorandr.spec
setup.py

index b1cc76de5f0fd23a170879ac2139438c60cbe00a..65603c233f36fc31a5bcf277dfb2cb58f88e9a69 100644 (file)
--- a/README.md
+++ b/README.md
@@ -212,8 +212,23 @@ asterisk to enable wildcard matching: Such EDIDs are matched against connected
 monitors using the usual file name globbing rules. This can be used to create
 profiles matching multiple (or any) monitors.
 
+### udev triggers with NVidia cards
+
+In order for `udev` to detect `drm` events from the native NVidia driver, the
+kernel parameter `nvidia-drm.modeset` must be set to 1. For example, add a file
+`/etc/modprobe.d/nvidia-drm-modeset.conf`:
+
+```
+options nvidia_drm modeset=1
+```
+
 ## Changelog
 
+**autorandr 1.11**
+* *2020-05-23* Handle empty sys.executable
+* *2020-06-08* Fix Python 2 compatibility
+* *2020-10-06* Set group membership of users in batch mode
+
 **autorandr 1.10.1**
 * *2020-05-04* Revert making the launcher the default (fixes #195)
 
index 824a7dbae0e52fca4deb79349c034e70e8ba1da1..25b0f53d79cfd7ab55580a0de370ff50bad5963b 100755 (executable)
@@ -48,7 +48,7 @@ if sys.version_info.major == 2:
 else:
     import configparser
 
-__version__ = "1.10.1"
+__version__ = "1.11"
 
 try:
     input = raw_input
@@ -1101,14 +1101,21 @@ def dispatch_call_to_sessions(argv):
             # so it should be safe. Also, note that since the environment
             # is taken from a process owned by the user, reusing it should
             # not leak any information.
-            os.setgroups([])
+            try:
+                os.setgroups(os.getgrouplist(pwent.pw_name, pwent.pw_gid))
+            except AttributeError:
+                # Python 2 doesn't have getgrouplist
+                os.setgroups([])
             os.setresgid(pwent.pw_gid, pwent.pw_gid, pwent.pw_gid)
             os.setresuid(pwent.pw_uid, pwent.pw_uid, pwent.pw_uid)
             os.chdir(pwent.pw_dir)
             os.environ.clear()
             os.environ.update(process_environ)
-            os.execl(sys.executable, sys.executable, autorandr_binary, *argv[1:])
-            os.exit(1)
+            if sys.executable != "" and sys.executable != None:
+                os.execl(sys.executable, sys.executable, autorandr_binary, *argv[1:])
+            else:
+                os.execl(autorandr_binary, autorandr_binary, *argv[1:])
+            sys.exit(1)
         os.waitpid(child_pid, 0)
 
     for directory in os.listdir("/proc"):
index 4b7f36922537700d2880441414fa4c14e0c81f1a..9bd576dbf07807a575e15fd0157e2ff5281e31a3 100644 (file)
@@ -1,5 +1,5 @@
 %define name autorandr
-%define version 1.8.1
+%define version 1.10.1
 %define release 1
 
 # pmutils
@@ -38,6 +38,10 @@ BuildRequires: bash-completion
 BuildRequires: python%{py_ver}-devel
 BuildRequires: systemd
 BuildRequires: udev
+%if %{py_ver} == 2
+BuildRequires: python3-devel
+%endif
+
 
 %description
 # autorandr
@@ -83,6 +87,7 @@ Contributors to this version of autorandr are:
 * Brice Waegeneire
 * Chris Dunder
 * Christoph Gysin
+* Christophe-Marie Duquesne
 * Daniel Hahler
 * Maciej Sitarz
 * Mathias Svensson
@@ -123,6 +128,7 @@ you can
   for various distributions (RPM and DEB based).
 * Use the [X binary package system](https://wiki.voidlinux.eu/XBPS)' on Void Linux 
 * Build a .deb-file from the source tree using `make deb`.
+* Build a .rpm-file from the source tree using `make rpm`.
 
 We appreciate packaging scripts for other distributions, please file a pull
 request if you write one.
@@ -194,7 +200,7 @@ candidate for doing that is `skip-options`, if you need it.
 
 ### Hook scripts
 
-Three more scripts can be placed in the configuration directory (as 
+Three more scripts can be placed in the configuration directory
 (as defined by the [XDG spec](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html),
 usually `~/.config/autorandr` or `~/.autorandr` if you have an old installation
 for user configuration and `/etc/xdg/autorandr` for system wide configuration):
@@ -231,7 +237,7 @@ configuration takes precedence, and
 it has a unique name.
 
 If you switch back from `docked` to `mobile`, `~/.config/autorandr/postswitch`
-is executed instead of the `mobile` specific `postswitch`.
+is executed instead of the `docked` specific `postswitch`.
 
 In these scripts, some of autorandr's state is exposed as environment variables
 prefixed with `AUTORANDR_`, such as:
@@ -254,6 +260,27 @@ profiles matching multiple (or any) monitors.
 
 ## Changelog
 
+**autorandr 1.10.1**
+* *2020-05-04* Revert making the launcher the default (fixes #195)
+
+**autorandr 1.10**
+* *2020-04-23* Fix hook script execution order to match description from readme
+* *2020-04-11* Handle negative gamma values (fixes #188)
+* *2020-04-11* Sort approximate matches in detected profiles by quality of match
+* *2020-01-31* Handle non-ASCII environment variables (fixes #180)
+* *2019-12-31* Fix output positioning if the top-left output is not the first
+* *2019-12-31* Accept negative gamma values (and interpret them as 0)
+* *2019-12-31* Prefer the X11 launcher over systemd/udev configuration
+
+**autorandr 1.9**
+
+* *2019-11-10* Count closed lids as disconnected outputs
+* *2019-10-05* Do not overwrite existing configurations without `--force`
+* *2019-08-16* Accept modes that don't match the WWWxHHH pattern
+* *2019-03-22* Improve bash autocompletion
+* *2019-03-21* Store CRTC values in configurations
+* *2019-03-24* Fix handling of recently disconnected outputs (See #128 and #143)
+
 **autorandr 1.8.1**
 
 * *2019-03-18* Removed mandb call from Makefile
@@ -313,6 +340,12 @@ profiles matching multiple (or any) monitors.
 * *2016-12-07* Tag the current code as version 1.0.0; see github issue #54
 * *2016-10-03* Install a desktop file to `/etc/xdg/autostart` by default
 
+%package zsh-completion
+Summary: zsh-completion for autorandr
+Requires: zsh
+Requires: %{name}
+%description zsh-completion
+This package provides zsh-completion files for autorandr
 
 %prep
 %setup -n %{name}-%{version} -n %{name}-%{version}
@@ -325,6 +358,8 @@ pathfix.py -pni "%{__python2} %{py2_shbang_opts}" ./autorandr.py
 %install
 make DESTDIR="%{buildroot}" PREFIX=/usr install
 install -vDm 644 README.md -t "%{buildroot}/usr/share/doc/%{name}/"
+install -vDm 644 contrib/zsh_completion/_autorandr -t %{buildroot}%{_datarootdir}/zsh/site-functions/
+
 
 %files
 %defattr(-,root,root,-)
@@ -336,7 +371,14 @@ install -vDm 644 README.md -t "%{buildroot}/usr/share/doc/%{name}/"
 %{_mandir}
 %{_datarootdir}/bash-completion/completions/autorandr
 %{_udevrulesdir}/40-monitor-hotplug.rules
+
+%files zsh-completion
+%{_datarootdir}/zsh/site-functions/_autorandr
+
 %changelog
+* Mon Jun 08 2020 Jerzy Drozdz <jerzy.drozdz@jdsieci.pl> - 1.10.1-1
+- Updated to stable 1.10.1
+- Added zsh-completion subpackage
 * Wed May 22 2019 Maciej Sitarz <macieksitarz@wp.pl> - 1.8.1-1
 - Updated to stable 1.8.1
 * Fri Sep 28 2018 Maciej Sitarz <macieksitarz@wp.pl> - 1.7-1
index a98a689e5ebdb9b24cb6d748304cd30cff55ef9b..dff8ac92e6c2e06f72646c4f4f58595704b035a5 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ except:
 setup(
     name='autorandr',
 
-    version='1.10.1.post1',
+    version='1.11.post1',
 
     description='Automatically select a display configuration based on connected devices',
     long_description=long_description,