1
0
mirror of https://github.com/gryf/tabbedalt.git synced 2025-12-17 19:40:31 +01:00

Corrected pattern for process search.

This commit will close issue #7
This commit is contained in:
2019-06-05 10:50:47 +02:00
parent 9fc439b5e1
commit 33304b702f

2
tabbed
View File

@@ -450,7 +450,7 @@ sub on_start {
} while @argv && $argv[0] ne "-e"; } while @argv && $argv[0] ne "-e";
# Ugly as hell ``session'' implementation # Ugly as hell ``session'' implementation
if (!(@argv) && (qx(ps x|grep "[ ]urxvt "|wc -l) < 2) && scalar(@{$self->{session}})){ if (!(@argv) && (qx(ps x|grep "[ ]urxvt\$"|wc -l) < 2) && scalar(@{$self->{session}})){
my $count = 0; my $count = 0;
my @command; my @command;
for my $item (@{$self->{session}}){ for my $item (@{$self->{session}}){