Esempio n. 1
0
        private static string KdeTerminalRunner(string command, string args, string dir, string title, bool pause, Guid applicationId)
        {
            string extra_commands = pause
                                ? BashPause.Replace("'", "\"")
                                        : String.Empty;

            return(String.Format(@" --nofork --workdir=""{3}"" -e ""bash"" -c '{0} {1} ; {2}'",
                                 command,
                                 args,
                                 extra_commands,
                                 EscapeDir(dir)));
        }
Esempio n. 2
0
        private static string MateTerminalRunner(string command, string args, string dir, string title, bool pause, Guid applicationId)
        {
            string extra_commands = pause
                                ? BashPause.Replace("'", "\\\"")
                                : String.Empty;

            return(String.Format(@"--name ""{4}"" -e ""bash -c 'cd {3} ; {0} {1} ; {2}'""",
                                 command,
                                 EscapeArgs(args),
                                 extra_commands,
                                 EscapeDir(dir),
                                 title));
        }
Esempio n. 3
0
        private static string GnomeTerminalRunner(string command, string args, string dir, string title, bool pause)
        {
            string extra_commands = pause
                                ? BashPause.Replace("'", "\\\"")
                                : String.Empty;

            return(String.Format(@" --disable-factory --title ""{4}"" -e ""bash -c 'cd {3} ; {0} {1} ; {2}'""",
                                 command,
                                 EscapeArgs(args),
                                 extra_commands,
                                 EscapeDir(dir),
                                 title));
        }