File: 08_autostart-fix.patch

package info (click to toggle)
openbox 3.7~rc2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 5,892 kB
  • sloc: ansic: 38,834; xml: 1,358; sh: 665; makefile: 613; python: 421
file content (16 lines) | stat: -rw-r--r-- 610 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Add compatibility to obsession when the pyxdg is not running
Author: Mateusz Łukasik <mati75@linuxmint.pl>

--- a/data/autostart/openbox-autostart.in
+++ b/data/autostart/openbox-autostart.in
@@ -31,4 +31,9 @@ fi
 # Run the XDG autostart stuff.  These are found in /etc/xdg/autostart and
 # in $HOME/.config/autostart.  This requires PyXDG to be installed.
 # See openbox-xdg-autostart --help for more details.
-@libexecdir@/openbox-xdg-autostart "$@"
+if which xdg-autostart >/dev/null 2>/dev/null; then
+   CMD=xdg-autostart
+else
+   CMD=@libexecdir@/openbox-xdg-autostart
+fi
+exec $CMD "$@"