openbsd-ports/x11/i3/patches/patch-i3-dmenu-desktop
2012-12-13 12:10:13 +00:00

64 lines
2.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$OpenBSD: patch-i3-dmenu-desktop,v 1.1 2012/12/13 12:10:13 dcoppa Exp $
--- i3-dmenu-desktop.orig Thu Dec 13 09:55:16 2012
+++ i3-dmenu-desktop Thu Dec 13 10:00:16 2012
@@ -88,7 +88,7 @@ $xdg_data_home = $ENV{HOME} . '/.local/share' if
! -d $xdg_data_home;
my $xdg_data_dirs = $ENV{XDG_DATA_DIRS};
-$xdg_data_dirs = '/usr/local/share/:/usr/share/' if
+$xdg_data_dirs = '${LOCALBASE}/share/' if
!defined($xdg_data_dirs) ||
$xdg_data_dirs eq '';
@@ -187,12 +187,12 @@ for my $file (values %desktops) {
# 'evince.desktop' => {
# 'Exec' => 'evince %U',
# 'Name' => 'Dokumentenbetrachter',
-# '_Location' => '/usr/share/applications/evince.desktop'
+# '_Location' => '${LOCALBASE}/share/applications/evince.desktop'
# },
# 'gedit.desktop' => {
# 'Exec' => 'gedit %U',
# 'Name' => 'gedit',
-# '_Location' => '/usr/share/applications/gedit.desktop'
+# '_Location' => '${LOCALBASE}/share/applications/gedit.desktop'
# }
# };
@@ -355,7 +355,7 @@ if (exists($app->{Terminal}) && $app->{Terminal}) {
# we need to create a temporary script that contains the full command line
# as the syntax for starting commands with arguments varies from terminal
# emulator to terminal emulator.
- # Then, we launch that script with i3-sensible-terminal.
+ # Then, we launch that script with xterm.
my ($fh, $filename) = tempfile();
binmode($fh, ':utf8');
say $fh <<EOT;
@@ -366,7 +366,7 @@ EOT
close($fh);
chmod 0755, $filename;
- $cmd = qq|exec i3-sensible-terminal -e "$filename"|;
+ $cmd = qq|exec ${X11BASE}/bin/xterm -e "$filename"|;
} else {
# i3 executes applications by passing the argument to i3s “exec” command
# as-is to $SHELL -c. The i3 parser supports quoted strings: When a string
@@ -407,7 +407,7 @@ notifications.
The .desktop files are searched in $XDG_DATA_HOME/applications (by default
$HOME/.local/share/applications) and in the "applications" subdirectory of each
-entry of $XDG_DATA_DIRS (by default /usr/local/share/:/usr/share/).
+entry of $XDG_DATA_DIRS (by default ${LOCALBASE}/share/).
Files with the same name in $XDG_DATA_HOME/applications take precedence over
files in $XDG_DATA_DIRS, so that you can overwrite parts of the system-wide
@@ -421,7 +421,7 @@ file respectively) by appending it to the name of the
want to launch "GNU Emacs 24" with the patch /tmp/foobar.txt, you would type
"emacs", press TAB, type " /tmp/foobar.txt" and press ENTER.
-.desktop files with Terminal=true are started using i3-sensible-terminal(1).
+.desktop files with Terminal=true are started using xterm(1).
.desktop files with NoDisplay=true or Hidden=true are skipped.