File: tilix.wrapper

package info (click to toggle)
tilix 1.9.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,200 kB
  • sloc: xml: 1,175; sh: 285; python: 127; perl: 72; ansic: 53; makefile: 9
file content (82 lines) | stat: -rwxr-xr-x 1,675 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#! /usr/bin/perl -w

my $login=0;

while ($opt = shift(@ARGV))
{
    if ($opt eq '-display')
    {
	$ENV{'DISPLAY'} = shift(@ARGV);
    }
    elsif ($opt eq '-name')
    {
	# Accept but ignore
	print STDERR "$0: The -name flag is not supported by the Tilix wrapper.\n"
    }
    elsif ($opt eq '-n')
    {
	# Accept but ignore
	print STDERR "$0: to set an icon, please use -name <profile> and set a profile icon\n"
    }
    elsif ($opt eq '-T' || $opt eq '-title')
    {
	push(@args, '-t', shift(@ARGV));
    }
    elsif ($opt eq '-ls')
    {
	$login = 1;
    }
    elsif ($opt eq '+ls')
    {
	$login = 0;
    }
    elsif ($opt eq '-geometry')
    {
	$arg = shift(@ARGV);
	push(@args, "--geometry=$arg");
    }
    elsif ($opt eq '-fn')
    {
	# Accept but ignore
	print STDERR "$0: The -fn flag is not supported by the Tilix wrapper.\n"
    }
    elsif ($opt eq '-fg')
    {
	# Accept but ignore
	print STDERR "$0: The -fg flag is not supported by the Tilix wrapper.\n"
    }
    elsif ($opt eq '-bg')
    {
	# Accept but ignore
	print STDERR "$0: The -bg flag is not supported by the Tilix wrapper.\n"
    }
    elsif ($opt eq '-tn')
    {
	# Accept but ignore
	print STDERR "$0: The -tn flag (set terminal name) is not supported by the Tilix wrapper.\n"
    }
    elsif ($opt eq '-e')
    {
	$arg = shift(@ARGV);
	if (@ARGV)
	{
	    push(@args, '-x', $arg, @ARGV);
	    last;
	}
	else
	{
	    push(@args, '-e', $arg);
	}
	last;
    }
    elsif ($opt eq '-h' || $opt eq '--help')
    {
	push(@args, '--help');
    }
}
if ($login == 1)
{
    # Accept but ignore
    print STDERR "$0: Running a login shell is not supported by the Tilix wrapper.\n"
}
exec('tilix', @args);