0 | |
/* gterminal.c generated by valac 0.32.1, the Vala compiler
|
|
0 |
/* gterminal.c generated by valac 0.34.6, the Vala compiler
|
1 | 1 |
* generated from gterminal.vala, do not modify */
|
2 | 2 |
|
3 | 3 |
/*
|
|
390 | 390 |
gboolean result = FALSE;
|
391 | 391 |
const gchar* _tmp0_ = NULL;
|
392 | 392 |
gboolean _tmp1_ = FALSE;
|
393 | |
const gchar* _tmp5_ = NULL;
|
394 | |
gchar* _tmp6_ = NULL;
|
|
393 |
const gchar* _tmp7_ = NULL;
|
|
394 |
gchar* _tmp8_ = NULL;
|
395 | 395 |
GError * _inner_error_ = NULL;
|
396 | 396 |
g_return_val_if_fail (option_name != NULL, FALSE);
|
397 | 397 |
g_return_val_if_fail (value != NULL, FALSE);
|
|
406 | 406 |
_tmp4_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp2_, _tmp3_);
|
407 | 407 |
_inner_error_ = _tmp4_;
|
408 | 408 |
if (_inner_error_->domain == G_OPTION_ERROR) {
|
|
409 |
gboolean _tmp5_ = FALSE;
|
409 | 410 |
g_propagate_error (error, _inner_error_);
|
410 | |
return FALSE;
|
|
411 |
return _tmp5_;
|
411 | 412 |
} else {
|
|
413 |
gboolean _tmp6_ = FALSE;
|
412 | 414 |
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
|
413 | 415 |
g_clear_error (&_inner_error_);
|
414 | |
return FALSE;
|
|
416 |
return _tmp6_;
|
415 | 417 |
}
|
416 | 418 |
}
|
417 | |
_tmp5_ = value;
|
418 | |
_tmp6_ = g_strdup (_tmp5_);
|
|
419 |
_tmp7_ = value;
|
|
420 |
_tmp8_ = g_strdup (_tmp7_);
|
419 | 421 |
_g_free0 (gterminal_global_options_app_id);
|
420 | |
gterminal_global_options_app_id = _tmp6_;
|
|
422 |
gterminal_global_options_app_id = _tmp8_;
|
421 | 423 |
result = TRUE;
|
422 | 424 |
return result;
|
423 | 425 |
}
|
|
548 | 550 |
gboolean _tmp0_ = FALSE;
|
549 | 551 |
gboolean _tmp1_ = FALSE;
|
550 | 552 |
gboolean _tmp2_ = FALSE;
|
551 | |
gchar** _tmp13_ = NULL;
|
552 | |
gint _tmp13__length1 = 0;
|
553 | |
GUnixFDList* _tmp14_ = NULL;
|
|
553 |
gchar** _tmp14_ = NULL;
|
|
554 |
gint _tmp14__length1 = 0;
|
|
555 |
GUnixFDList* _tmp15_ = NULL;
|
554 | 556 |
PassFdElement* arr = NULL;
|
555 | |
PassFdElement* _tmp15_ = NULL;
|
|
557 |
PassFdElement* _tmp16_ = NULL;
|
556 | 558 |
gint arr_length1 = 0;
|
557 | 559 |
gint _arr_size_ = 0;
|
558 | |
PassFdElement* _tmp73_ = NULL;
|
559 | |
gint _tmp73__length1 = 0;
|
560 | |
PassFdElement* _tmp74_ = NULL;
|
561 | |
gint _tmp74__length1 = 0;
|
|
560 |
PassFdElement* _tmp78_ = NULL;
|
|
561 |
gint _tmp78__length1 = 0;
|
|
562 |
PassFdElement* _tmp79_ = NULL;
|
|
563 |
gint _tmp79__length1 = 0;
|
562 | 564 |
GError * _inner_error_ = NULL;
|
563 | 565 |
g_return_val_if_fail (context != NULL, FALSE);
|
564 | 566 |
g_return_val_if_fail (group != NULL, FALSE);
|
|
581 | 583 |
const gchar* _tmp5_ = NULL;
|
582 | 584 |
gboolean _tmp6_ = FALSE;
|
583 | 585 |
GError* _tmp12_ = NULL;
|
|
586 |
gboolean _tmp13_ = FALSE;
|
584 | 587 |
_tmp6_ = gterminal_open_options_pass_stdin;
|
585 | 588 |
if (_tmp6_) {
|
586 | 589 |
const gchar* _tmp7_ = NULL;
|
|
604 | 607 |
_tmp12_ = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp5_);
|
605 | 608 |
_inner_error_ = _tmp12_;
|
606 | 609 |
g_propagate_error (error, _inner_error_);
|
607 | |
return FALSE;
|
608 | |
}
|
609 | |
_tmp13_ = gterminal_open_options_pass_fds;
|
610 | |
_tmp13__length1 = _vala_array_length (gterminal_open_options_pass_fds);
|
611 | |
if (_tmp13_ == NULL) {
|
|
610 |
return _tmp13_;
|
|
611 |
}
|
|
612 |
_tmp14_ = gterminal_open_options_pass_fds;
|
|
613 |
_tmp14__length1 = _vala_array_length (gterminal_open_options_pass_fds);
|
|
614 |
if (_tmp14_ == NULL) {
|
612 | 615 |
result = TRUE;
|
613 | 616 |
return result;
|
614 | 617 |
}
|
615 | |
_tmp14_ = g_unix_fd_list_new ();
|
|
618 |
_tmp15_ = g_unix_fd_list_new ();
|
616 | 619 |
_g_object_unref0 (gterminal_open_options_fd_list);
|
617 | |
gterminal_open_options_fd_list = _tmp14_;
|
618 | |
_tmp15_ = g_new0 (PassFdElement, 0);
|
619 | |
arr = _tmp15_;
|
|
620 |
gterminal_open_options_fd_list = _tmp15_;
|
|
621 |
_tmp16_ = g_new0 (PassFdElement, 0);
|
|
622 |
arr = _tmp16_;
|
620 | 623 |
arr_length1 = 0;
|
621 | 624 |
_arr_size_ = arr_length1;
|
622 | 625 |
{
|
623 | 626 |
guint i = 0U;
|
624 | 627 |
i = (guint) 0;
|
625 | 628 |
{
|
626 | |
gboolean _tmp16_ = FALSE;
|
627 | |
_tmp16_ = TRUE;
|
|
629 |
gboolean _tmp17_ = FALSE;
|
|
630 |
_tmp17_ = TRUE;
|
628 | 631 |
while (TRUE) {
|
629 | |
guint _tmp18_ = 0U;
|
630 | |
gchar** _tmp19_ = NULL;
|
631 | |
gint _tmp19__length1 = 0;
|
|
632 |
guint _tmp19_ = 0U;
|
|
633 |
gchar** _tmp20_ = NULL;
|
|
634 |
gint _tmp20__length1 = 0;
|
632 | 635 |
gint64 v = 0LL;
|
633 | |
gboolean _tmp20_ = FALSE;
|
634 | 636 |
gboolean _tmp21_ = FALSE;
|
635 | 637 |
gboolean _tmp22_ = FALSE;
|
636 | |
gchar** _tmp23_ = NULL;
|
637 | |
gint _tmp23__length1 = 0;
|
638 | |
guint _tmp24_ = 0U;
|
639 | |
const gchar* _tmp25_ = NULL;
|
640 | |
gint64 _tmp26_ = 0LL;
|
641 | |
gboolean _tmp27_ = FALSE;
|
|
638 |
gboolean _tmp23_ = FALSE;
|
|
639 |
gchar** _tmp24_ = NULL;
|
|
640 |
gint _tmp24__length1 = 0;
|
|
641 |
guint _tmp25_ = 0U;
|
|
642 |
const gchar* _tmp26_ = NULL;
|
|
643 |
gint64 _tmp27_ = 0LL;
|
|
644 |
gboolean _tmp28_ = FALSE;
|
642 | 645 |
gint fd = 0;
|
643 | |
gint64 _tmp36_ = 0LL;
|
644 | |
gboolean _tmp37_ = FALSE;
|
645 | |
gboolean _tmp38_ = FALSE;
|
646 | |
gint _tmp39_ = 0;
|
|
646 |
gint64 _tmp38_ = 0LL;
|
|
647 |
gboolean _tmp39_ = FALSE;
|
|
648 |
gboolean _tmp40_ = FALSE;
|
|
649 |
gint _tmp41_ = 0;
|
647 | 650 |
gint idx = 0;
|
648 | |
GUnixFDList* _tmp62_ = NULL;
|
649 | |
gint _tmp63_ = 0;
|
650 | |
gint _tmp64_ = 0;
|
|
651 |
GUnixFDList* _tmp66_ = NULL;
|
|
652 |
gint _tmp67_ = 0;
|
|
653 |
gint _tmp68_ = 0;
|
651 | 654 |
PassFdElement e = {0};
|
652 | |
gint _tmp65_ = 0;
|
653 | |
gint _tmp66_ = 0;
|
654 | |
PassFdElement _tmp67_ = {0};
|
655 | |
PassFdElement* _tmp68_ = NULL;
|
656 | |
gint _tmp68__length1 = 0;
|
657 | |
PassFdElement _tmp69_ = {0};
|
658 | |
gboolean _tmp70_ = FALSE;
|
|
655 |
gint _tmp70_ = 0;
|
659 | 656 |
gint _tmp71_ = 0;
|
660 | |
if (!_tmp16_) {
|
661 | |
guint _tmp17_ = 0U;
|
662 | |
_tmp17_ = i;
|
663 | |
i = _tmp17_ + 1;
|
|
657 |
PassFdElement _tmp72_ = {0};
|
|
658 |
PassFdElement* _tmp73_ = NULL;
|
|
659 |
gint _tmp73__length1 = 0;
|
|
660 |
PassFdElement _tmp74_ = {0};
|
|
661 |
gboolean _tmp75_ = FALSE;
|
|
662 |
gint _tmp76_ = 0;
|
|
663 |
if (!_tmp17_) {
|
|
664 |
guint _tmp18_ = 0U;
|
|
665 |
_tmp18_ = i;
|
|
666 |
i = _tmp18_ + 1;
|
664 | 667 |
}
|
665 | |
_tmp16_ = FALSE;
|
666 | |
_tmp18_ = i;
|
667 | |
_tmp19_ = gterminal_open_options_pass_fds;
|
668 | |
_tmp19__length1 = _vala_array_length (gterminal_open_options_pass_fds);
|
669 | |
if (!(_tmp18_ < ((guint) _tmp19__length1))) {
|
|
668 |
_tmp17_ = FALSE;
|
|
669 |
_tmp19_ = i;
|
|
670 |
_tmp20_ = gterminal_open_options_pass_fds;
|
|
671 |
_tmp20__length1 = _vala_array_length (gterminal_open_options_pass_fds);
|
|
672 |
if (!(_tmp19_ < ((guint) _tmp20__length1))) {
|
670 | 673 |
break;
|
671 | 674 |
}
|
672 | |
_tmp23_ = gterminal_open_options_pass_fds;
|
673 | |
_tmp23__length1 = _vala_array_length (gterminal_open_options_pass_fds);
|
674 | |
_tmp24_ = i;
|
675 | |
_tmp25_ = _tmp23_[_tmp24_];
|
676 | |
_tmp27_ = int64_try_parse (_tmp25_, &_tmp26_);
|
677 | |
v = _tmp26_;
|
678 | |
if (!_tmp27_) {
|
|
675 |
_tmp24_ = gterminal_open_options_pass_fds;
|
|
676 |
_tmp24__length1 = _vala_array_length (gterminal_open_options_pass_fds);
|
|
677 |
_tmp25_ = i;
|
|
678 |
_tmp26_ = _tmp24_[_tmp25_];
|
|
679 |
_tmp28_ = int64_try_parse (_tmp26_, &_tmp27_);
|
|
680 |
v = _tmp27_;
|
|
681 |
if (!_tmp28_) {
|
|
682 |
_tmp23_ = TRUE;
|
|
683 |
} else {
|
|
684 |
gint64 _tmp29_ = 0LL;
|
|
685 |
_tmp29_ = v;
|
|
686 |
_tmp23_ = _tmp29_ == ((gint64) -1);
|
|
687 |
}
|
|
688 |
if (_tmp23_) {
|
679 | 689 |
_tmp22_ = TRUE;
|
680 | 690 |
} else {
|
681 | |
gint64 _tmp28_ = 0LL;
|
682 | |
_tmp28_ = v;
|
683 | |
_tmp22_ = _tmp28_ == ((gint64) -1);
|
|
691 |
gint64 _tmp30_ = 0LL;
|
|
692 |
_tmp30_ = v;
|
|
693 |
_tmp22_ = _tmp30_ < ((gint64) G_MININT);
|
684 | 694 |
}
|
685 | 695 |
if (_tmp22_) {
|
686 | 696 |
_tmp21_ = TRUE;
|
687 | 697 |
} else {
|
688 | |
gint64 _tmp29_ = 0LL;
|
689 | |
_tmp29_ = v;
|
690 | |
_tmp21_ = _tmp29_ < ((gint64) G_MININT);
|
|
698 |
gint64 _tmp31_ = 0LL;
|
|
699 |
_tmp31_ = v;
|
|
700 |
_tmp21_ = _tmp31_ > ((gint64) G_MAXINT);
|
691 | 701 |
}
|
692 | 702 |
if (_tmp21_) {
|
693 | |
_tmp20_ = TRUE;
|
694 | |
} else {
|
695 | |
gint64 _tmp30_ = 0LL;
|
696 | |
_tmp30_ = v;
|
697 | |
_tmp20_ = _tmp30_ > ((gint64) G_MAXINT);
|
698 | |
}
|
699 | |
if (_tmp20_) {
|
700 | |
const gchar* _tmp31_ = NULL;
|
701 | |
gchar** _tmp32_ = NULL;
|
702 | |
gint _tmp32__length1 = 0;
|
703 | |
guint _tmp33_ = 0U;
|
704 | |
const gchar* _tmp34_ = NULL;
|
705 | |
GError* _tmp35_ = NULL;
|
706 | |
_tmp31_ = _ ("Invalid argument \"%s\" to --fd option");
|
707 | |
_tmp32_ = gterminal_open_options_pass_fds;
|
708 | |
_tmp32__length1 = _vala_array_length (gterminal_open_options_pass_fds);
|
709 | |
_tmp33_ = i;
|
710 | |
_tmp34_ = _tmp32_[_tmp33_];
|
711 | |
_tmp35_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp31_, _tmp34_);
|
712 | |
_inner_error_ = _tmp35_;
|
|
703 |
const gchar* _tmp32_ = NULL;
|
|
704 |
gchar** _tmp33_ = NULL;
|
|
705 |
gint _tmp33__length1 = 0;
|
|
706 |
guint _tmp34_ = 0U;
|
|
707 |
const gchar* _tmp35_ = NULL;
|
|
708 |
GError* _tmp36_ = NULL;
|
|
709 |
gboolean _tmp37_ = FALSE;
|
|
710 |
_tmp32_ = _ ("Invalid argument \"%s\" to --fd option");
|
|
711 |
_tmp33_ = gterminal_open_options_pass_fds;
|
|
712 |
_tmp33__length1 = _vala_array_length (gterminal_open_options_pass_fds);
|
|
713 |
_tmp34_ = i;
|
|
714 |
_tmp35_ = _tmp33_[_tmp34_];
|
|
715 |
_tmp36_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp32_, _tmp35_);
|
|
716 |
_inner_error_ = _tmp36_;
|
713 | 717 |
g_propagate_error (error, _inner_error_);
|
714 | 718 |
arr = (g_free (arr), NULL);
|
715 | |
return FALSE;
|
|
719 |
return _tmp37_;
|
716 | 720 |
}
|
717 | |
_tmp36_ = v;
|
718 | |
fd = (gint) _tmp36_;
|
719 | |
_tmp39_ = fd;
|
720 | |
if (_tmp39_ == STDIN_FILENO) {
|
721 | |
_tmp38_ = TRUE;
|
|
721 |
_tmp38_ = v;
|
|
722 |
fd = (gint) _tmp38_;
|
|
723 |
_tmp41_ = fd;
|
|
724 |
if (_tmp41_ == STDIN_FILENO) {
|
|
725 |
_tmp40_ = TRUE;
|
722 | 726 |
} else {
|
723 | |
gint _tmp40_ = 0;
|
724 | |
_tmp40_ = fd;
|
725 | |
_tmp38_ = _tmp40_ == STDOUT_FILENO;
|
|
727 |
gint _tmp42_ = 0;
|
|
728 |
_tmp42_ = fd;
|
|
729 |
_tmp40_ = _tmp42_ == STDOUT_FILENO;
|
726 | 730 |
}
|
727 | |
if (_tmp38_) {
|
728 | |
_tmp37_ = TRUE;
|
|
731 |
if (_tmp40_) {
|
|
732 |
_tmp39_ = TRUE;
|
729 | 733 |
} else {
|
730 | |
gint _tmp41_ = 0;
|
731 | |
_tmp41_ = fd;
|
732 | |
_tmp37_ = _tmp41_ == STDERR_FILENO;
|
|
734 |
gint _tmp43_ = 0;
|
|
735 |
_tmp43_ = fd;
|
|
736 |
_tmp39_ = _tmp43_ == STDERR_FILENO;
|
733 | 737 |
}
|
734 | |
if (_tmp37_) {
|
735 | |
const gchar* _tmp42_ = NULL;
|
736 | |
gint _tmp43_ = 0;
|
737 | |
GError* _tmp49_ = NULL;
|
738 | |
_tmp43_ = fd;
|
739 | |
if (_tmp43_ == STDIN_FILENO) {
|
740 | |
const gchar* _tmp44_ = NULL;
|
741 | |
_tmp44_ = _ ("FD passing of stdin is not supported");
|
742 | |
_tmp42_ = _tmp44_;
|
|
738 |
if (_tmp39_) {
|
|
739 |
const gchar* _tmp44_ = NULL;
|
|
740 |
gint _tmp45_ = 0;
|
|
741 |
GError* _tmp51_ = NULL;
|
|
742 |
gboolean _tmp52_ = FALSE;
|
|
743 |
_tmp45_ = fd;
|
|
744 |
if (_tmp45_ == STDIN_FILENO) {
|
|
745 |
const gchar* _tmp46_ = NULL;
|
|
746 |
_tmp46_ = _ ("FD passing of stdin is not supported");
|
|
747 |
_tmp44_ = _tmp46_;
|
743 | 748 |
} else {
|
744 | |
const gchar* _tmp45_ = NULL;
|
745 | |
gint _tmp46_ = 0;
|
746 | |
_tmp46_ = fd;
|
747 | |
if (_tmp46_ == STDOUT_FILENO) {
|
748 | |
const gchar* _tmp47_ = NULL;
|
749 | |
_tmp47_ = _ ("FD passing of stdout is not supported");
|
750 | |
_tmp45_ = _tmp47_;
|
|
749 |
const gchar* _tmp47_ = NULL;
|
|
750 |
gint _tmp48_ = 0;
|
|
751 |
_tmp48_ = fd;
|
|
752 |
if (_tmp48_ == STDOUT_FILENO) {
|
|
753 |
const gchar* _tmp49_ = NULL;
|
|
754 |
_tmp49_ = _ ("FD passing of stdout is not supported");
|
|
755 |
_tmp47_ = _tmp49_;
|
751 | 756 |
} else {
|
752 | |
const gchar* _tmp48_ = NULL;
|
753 | |
_tmp48_ = _ ("FD passing of stderr is not supported");
|
754 | |
_tmp45_ = _tmp48_;
|
|
757 |
const gchar* _tmp50_ = NULL;
|
|
758 |
_tmp50_ = _ ("FD passing of stderr is not supported");
|
|
759 |
_tmp47_ = _tmp50_;
|
755 | 760 |
}
|
756 | |
_tmp42_ = _tmp45_;
|
|
761 |
_tmp44_ = _tmp47_;
|
757 | 762 |
}
|
758 | |
_tmp49_ = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp42_);
|
759 | |
_inner_error_ = _tmp49_;
|
|
763 |
_tmp51_ = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp44_);
|
|
764 |
_inner_error_ = _tmp51_;
|
760 | 765 |
g_propagate_error (error, _inner_error_);
|
761 | 766 |
arr = (g_free (arr), NULL);
|
762 | |
return FALSE;
|
|
767 |
return _tmp52_;
|
763 | 768 |
}
|
764 | 769 |
{
|
765 | 770 |
guint j = 0U;
|
766 | 771 |
j = (guint) 0;
|
767 | 772 |
{
|
768 | |
gboolean _tmp50_ = FALSE;
|
769 | |
_tmp50_ = TRUE;
|
|
773 |
gboolean _tmp53_ = FALSE;
|
|
774 |
_tmp53_ = TRUE;
|
770 | 775 |
while (TRUE) {
|
771 | |
guint _tmp52_ = 0U;
|
772 | |
PassFdElement* _tmp53_ = NULL;
|
773 | |
gint _tmp53__length1 = 0;
|
774 | |
PassFdElement* _tmp54_ = NULL;
|
775 | |
gint _tmp54__length1 = 0;
|
776 | 776 |
guint _tmp55_ = 0U;
|
777 | |
PassFdElement _tmp56_ = {0};
|
778 | |
gint _tmp57_ = 0;
|
779 | |
gint _tmp58_ = 0;
|
780 | |
if (!_tmp50_) {
|
781 | |
guint _tmp51_ = 0U;
|
782 | |
_tmp51_ = j;
|
783 | |
j = _tmp51_ + 1;
|
|
777 |
PassFdElement* _tmp56_ = NULL;
|
|
778 |
gint _tmp56__length1 = 0;
|
|
779 |
PassFdElement* _tmp57_ = NULL;
|
|
780 |
gint _tmp57__length1 = 0;
|
|
781 |
guint _tmp58_ = 0U;
|
|
782 |
PassFdElement _tmp59_ = {0};
|
|
783 |
gint _tmp60_ = 0;
|
|
784 |
gint _tmp61_ = 0;
|
|
785 |
if (!_tmp53_) {
|
|
786 |
guint _tmp54_ = 0U;
|
|
787 |
_tmp54_ = j;
|
|
788 |
j = _tmp54_ + 1;
|
784 | 789 |
}
|
785 | |
_tmp50_ = FALSE;
|
786 | |
_tmp52_ = j;
|
787 | |
_tmp53_ = arr;
|
788 | |
_tmp53__length1 = arr_length1;
|
789 | |
if (!(_tmp52_ < ((guint) _tmp53__length1))) {
|
|
790 |
_tmp53_ = FALSE;
|
|
791 |
_tmp55_ = j;
|
|
792 |
_tmp56_ = arr;
|
|
793 |
_tmp56__length1 = arr_length1;
|
|
794 |
if (!(_tmp55_ < ((guint) _tmp56__length1))) {
|
790 | 795 |
break;
|
791 | 796 |
}
|
792 | |
_tmp54_ = arr;
|
793 | |
_tmp54__length1 = arr_length1;
|
794 | |
_tmp55_ = j;
|
795 | |
_tmp56_ = _tmp54_[_tmp55_];
|
796 | |
_tmp57_ = _tmp56_.fd;
|
797 | |
_tmp58_ = fd;
|
798 | |
if (_tmp57_ == _tmp58_) {
|
799 | |
const gchar* _tmp59_ = NULL;
|
800 | |
gint _tmp60_ = 0;
|
801 | |
GError* _tmp61_ = NULL;
|
802 | |
_tmp59_ = _ ("Cannot pass FD %d twice");
|
803 | |
_tmp60_ = fd;
|
804 | |
_tmp61_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp59_, _tmp60_);
|
805 | |
_inner_error_ = _tmp61_;
|
|
797 |
_tmp57_ = arr;
|
|
798 |
_tmp57__length1 = arr_length1;
|
|
799 |
_tmp58_ = j;
|
|
800 |
_tmp59_ = _tmp57_[_tmp58_];
|
|
801 |
_tmp60_ = _tmp59_.fd;
|
|
802 |
_tmp61_ = fd;
|
|
803 |
if (_tmp60_ == _tmp61_) {
|
|
804 |
const gchar* _tmp62_ = NULL;
|
|
805 |
gint _tmp63_ = 0;
|
|
806 |
GError* _tmp64_ = NULL;
|
|
807 |
gboolean _tmp65_ = FALSE;
|
|
808 |
_tmp62_ = _ ("Cannot pass FD %d twice");
|
|
809 |
_tmp63_ = fd;
|
|
810 |
_tmp64_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp62_, _tmp63_);
|
|
811 |
_inner_error_ = _tmp64_;
|
806 | 812 |
g_propagate_error (error, _inner_error_);
|
807 | 813 |
arr = (g_free (arr), NULL);
|
808 | |
return FALSE;
|
|
814 |
return _tmp65_;
|
809 | 815 |
}
|
810 | 816 |
}
|
811 | 817 |
}
|
812 | 818 |
}
|
813 | |
_tmp62_ = gterminal_open_options_fd_list;
|
814 | |
_tmp63_ = fd;
|
815 | |
_tmp64_ = g_unix_fd_list_append (_tmp62_, _tmp63_, &_inner_error_);
|
816 | |
idx = _tmp64_;
|
|
819 |
_tmp66_ = gterminal_open_options_fd_list;
|
|
820 |
_tmp67_ = fd;
|
|
821 |
_tmp68_ = g_unix_fd_list_append (_tmp66_, _tmp67_, &_inner_error_);
|
|
822 |
idx = _tmp68_;
|
817 | 823 |
if (G_UNLIKELY (_inner_error_ != NULL)) {
|
|
824 |
gboolean _tmp69_ = FALSE;
|
818 | 825 |
g_propagate_error (error, _inner_error_);
|
819 | 826 |
arr = (g_free (arr), NULL);
|
820 | |
return FALSE;
|
|
827 |
return _tmp69_;
|
821 | 828 |
}
|
822 | |
_tmp65_ = idx;
|
823 | |
_tmp66_ = fd;
|
824 | |
_tmp67_.index = _tmp65_;
|
825 | |
_tmp67_.fd = _tmp66_;
|
826 | |
e = _tmp67_;
|
827 | |
_tmp68_ = arr;
|
828 | |
_tmp68__length1 = arr_length1;
|
829 | |
_tmp69_ = e;
|
830 | |
_vala_array_add1 (&arr, &arr_length1, &_arr_size_, _tmp69_);
|
|
829 |
_tmp70_ = idx;
|
831 | 830 |
_tmp71_ = fd;
|
832 | |
if (_tmp71_ == STDOUT_FILENO) {
|
833 | |
_tmp70_ = TRUE;
|
|
831 |
_tmp72_.index = _tmp70_;
|
|
832 |
_tmp72_.fd = _tmp71_;
|
|
833 |
e = _tmp72_;
|
|
834 |
_tmp73_ = arr;
|
|
835 |
_tmp73__length1 = arr_length1;
|
|
836 |
_tmp74_ = e;
|
|
837 |
_vala_array_add1 (&arr, &arr_length1, &_arr_size_, _tmp74_);
|
|
838 |
_tmp76_ = fd;
|
|
839 |
if (_tmp76_ == STDOUT_FILENO) {
|
|
840 |
_tmp75_ = TRUE;
|
834 | 841 |
} else {
|
835 | |
gint _tmp72_ = 0;
|
836 | |
_tmp72_ = fd;
|
837 | |
_tmp70_ = _tmp72_ == STDERR_FILENO;
|
|
842 |
gint _tmp77_ = 0;
|
|
843 |
_tmp77_ = fd;
|
|
844 |
_tmp75_ = _tmp77_ == STDERR_FILENO;
|
838 | 845 |
}
|
839 | |
if (_tmp70_) {
|
|
846 |
if (_tmp75_) {
|
840 | 847 |
gterminal_output_set_quiet (TRUE);
|
841 | 848 |
}
|
842 | 849 |
}
|
843 | 850 |
}
|
844 | 851 |
}
|
845 | |
_tmp73_ = arr;
|
846 | |
_tmp73__length1 = arr_length1;
|
847 | |
_tmp74_ = (_tmp73_ != NULL) ? _vala_array_dup1 (_tmp73_, _tmp73__length1) : ((gpointer) _tmp73_);
|
848 | |
_tmp74__length1 = _tmp73__length1;
|
|
852 |
_tmp78_ = arr;
|
|
853 |
_tmp78__length1 = arr_length1;
|
|
854 |
_tmp79_ = (_tmp78_ != NULL) ? _vala_array_dup1 (_tmp78_, _tmp78__length1) : ((gpointer) _tmp78_);
|
|
855 |
_tmp79__length1 = _tmp78__length1;
|
849 | 856 |
gterminal_open_options_fd_array = (g_free (gterminal_open_options_fd_array), NULL);
|
850 | |
gterminal_open_options_fd_array = _tmp74_;
|
851 | |
gterminal_open_options_fd_array_length1 = _tmp74__length1;
|
|
857 |
gterminal_open_options_fd_array = _tmp79_;
|
|
858 |
gterminal_open_options_fd_array_length1 = _tmp79__length1;
|
852 | 859 |
result = TRUE;
|
853 | 860 |
arr = (g_free (arr), NULL);
|
854 | 861 |
return result;
|
|
886 | 893 |
gboolean result = FALSE;
|
887 | 894 |
const gchar* _tmp0_ = NULL;
|
888 | 895 |
TerminalSettingsList* profiles = NULL;
|
889 | |
TerminalSettingsList* _tmp4_ = NULL;
|
890 | |
gchar* _tmp5_ = NULL;
|
891 | |
const gchar* _tmp6_ = NULL;
|
892 | |
gchar* _tmp7_ = NULL;
|
|
896 |
TerminalSettingsList* _tmp5_ = NULL;
|
|
897 |
gchar* _tmp6_ = NULL;
|
|
898 |
const gchar* _tmp7_ = NULL;
|
893 | 899 |
gchar* _tmp8_ = NULL;
|
|
900 |
gchar* _tmp10_ = NULL;
|
894 | 901 |
GError * _inner_error_ = NULL;
|
895 | 902 |
g_return_val_if_fail (option_name != NULL, FALSE);
|
896 | 903 |
_tmp0_ = gterminal_open_options_profile;
|
|
898 | 905 |
const gchar* _tmp1_ = NULL;
|
899 | 906 |
const gchar* _tmp2_ = NULL;
|
900 | 907 |
GError* _tmp3_ = NULL;
|
|
908 |
gboolean _tmp4_ = FALSE;
|
901 | 909 |
_tmp1_ = _ ("May only use option %s once");
|
902 | 910 |
_tmp2_ = option_name;
|
903 | 911 |
_tmp3_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp1_, _tmp2_);
|
904 | 912 |
_inner_error_ = _tmp3_;
|
905 | 913 |
g_propagate_error (error, _inner_error_);
|
906 | |
return FALSE;
|
907 | |
}
|
908 | |
_tmp4_ = terminal_profiles_list_new ();
|
909 | |
profiles = _tmp4_;
|
910 | |
_tmp6_ = value;
|
911 | |
_tmp7_ = terminal_profiles_list_dup_uuid (profiles, _tmp6_, &_inner_error_);
|
912 | |
_tmp5_ = _tmp7_;
|
|
914 |
return _tmp4_;
|
|
915 |
}
|
|
916 |
_tmp5_ = terminal_profiles_list_new ();
|
|
917 |
profiles = _tmp5_;
|
|
918 |
_tmp7_ = value;
|
|
919 |
_tmp8_ = terminal_profiles_list_dup_uuid (profiles, _tmp7_, &_inner_error_);
|
|
920 |
_tmp6_ = _tmp8_;
|
913 | 921 |
if (G_UNLIKELY (_inner_error_ != NULL)) {
|
|
922 |
gboolean _tmp9_ = FALSE;
|
914 | 923 |
g_propagate_error (error, _inner_error_);
|
915 | 924 |
_g_object_unref0 (profiles);
|
916 | |
return FALSE;
|
917 | |
}
|
918 | |
_tmp8_ = _tmp5_;
|
919 | |
_tmp5_ = NULL;
|
|
925 |
return _tmp9_;
|
|
926 |
}
|
|
927 |
_tmp10_ = _tmp6_;
|
|
928 |
_tmp6_ = NULL;
|
920 | 929 |
_g_free0 (gterminal_open_options_profile);
|
921 | |
gterminal_open_options_profile = _tmp8_;
|
|
930 |
gterminal_open_options_profile = _tmp10_;
|
922 | 931 |
result = TRUE;
|
923 | |
_g_free0 (_tmp5_);
|
|
932 |
_g_free0 (_tmp6_);
|
924 | 933 |
_g_object_unref0 (profiles);
|
925 | 934 |
return result;
|
926 | 935 |
}
|
|
973 | 982 |
const gchar* _tmp0_ = NULL;
|
974 | 983 |
gdouble _tmp1_ = 0.0;
|
975 | 984 |
gboolean _tmp2_ = FALSE;
|
976 | |
gboolean _tmp6_ = FALSE;
|
977 | |
gdouble _tmp7_ = 0.0;
|
978 | |
gdouble _tmp12_ = 0.0;
|
|
985 |
gboolean _tmp7_ = FALSE;
|
|
986 |
gdouble _tmp8_ = 0.0;
|
|
987 |
gdouble _tmp14_ = 0.0;
|
979 | 988 |
GError * _inner_error_ = NULL;
|
980 | 989 |
g_return_val_if_fail (option_name != NULL, FALSE);
|
981 | 990 |
_tmp0_ = value;
|
|
985 | 994 |
const gchar* _tmp3_ = NULL;
|
986 | 995 |
const gchar* _tmp4_ = NULL;
|
987 | 996 |
GError* _tmp5_ = NULL;
|
|
997 |
gboolean _tmp6_ = FALSE;
|
988 | 998 |
_tmp3_ = _ ("\"%s\" is not a valid zoom factor");
|
989 | 999 |
_tmp4_ = value;
|
990 | 1000 |
_tmp5_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp3_, _tmp4_);
|
991 | 1001 |
_inner_error_ = _tmp5_;
|
992 | 1002 |
g_propagate_error (error, _inner_error_);
|
993 | |
return FALSE;
|
994 | |
}
|
995 | |
_tmp7_ = v;
|
996 | |
if (_tmp7_ < 0.25) {
|
997 | |
_tmp6_ = TRUE;
|
|
1003 |
return _tmp6_;
|
|
1004 |
}
|
|
1005 |
_tmp8_ = v;
|
|
1006 |
if (_tmp8_ < 0.25) {
|
|
1007 |
_tmp7_ = TRUE;
|
998 | 1008 |
} else {
|
999 | |
gdouble _tmp8_ = 0.0;
|
1000 | |
_tmp8_ = v;
|
1001 | |
_tmp6_ = _tmp8_ > 4.0;
|
1002 | |
}
|
1003 | |
if (_tmp6_) {
|
1004 | |
const gchar* _tmp9_ = NULL;
|
|
1009 |
gdouble _tmp9_ = 0.0;
|
|
1010 |
_tmp9_ = v;
|
|
1011 |
_tmp7_ = _tmp9_ > 4.0;
|
|
1012 |
}
|
|
1013 |
if (_tmp7_) {
|
1005 | 1014 |
const gchar* _tmp10_ = NULL;
|
1006 | |
GError* _tmp11_ = NULL;
|
1007 | |
_tmp9_ = _ ("Zoom value \"%s\" is outside allowed range");
|
1008 | |
_tmp10_ = value;
|
1009 | |
_tmp11_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp9_, _tmp10_);
|
1010 | |
_inner_error_ = _tmp11_;
|
1011 | |
g_propagate_error (error, _inner_error_);
|
1012 | |
return FALSE;
|
1013 | |
}
|
1014 | |
_tmp12_ = v;
|
1015 | |
gterminal_open_options_zoom = _tmp12_;
|
|
1015 |
const gchar* _tmp11_ = NULL;
|
|
1016 |
GError* _tmp12_ = NULL;
|
|
1017 |
gboolean _tmp13_ = FALSE;
|
|
1018 |
_tmp10_ = _ ("Zoom value \"%s\" is outside allowed range");
|
|
1019 |
_tmp11_ = value;
|
|
1020 |
_tmp12_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp10_, _tmp11_);
|
|
1021 |
_inner_error_ = _tmp12_;
|
|
1022 |
g_propagate_error (error, _inner_error_);
|
|
1023 |
return _tmp13_;
|
|
1024 |
}
|
|
1025 |
_tmp14_ = v;
|
|
1026 |
gterminal_open_options_zoom = _tmp14_;
|
1016 | 1027 |
result = TRUE;
|
1017 | 1028 |
return result;
|
1018 | 1029 |
}
|
|
1765 | 1776 |
gint result = 0;
|
1766 | 1777 |
gboolean _tmp0_ = FALSE;
|
1767 | 1778 |
gboolean _tmp1_ = FALSE;
|
1768 | |
gchar** _tmp5_ = NULL;
|
1769 | |
gint _tmp5__length1 = 0;
|
1770 | |
gboolean _tmp23_ = FALSE;
|
|
1779 |
gchar** _tmp6_ = NULL;
|
|
1780 |
gint _tmp6__length1 = 0;
|
|
1781 |
gboolean _tmp25_ = FALSE;
|
1771 | 1782 |
GError * _inner_error_ = NULL;
|
1772 | 1783 |
_tmp1_ = gterminal_global_options_get_complete ();
|
1773 | 1784 |
if (!_tmp1_) {
|
|
1782 | 1793 |
if (_tmp0_) {
|
1783 | 1794 |
const gchar* _tmp3_ = NULL;
|
1784 | 1795 |
GError* _tmp4_ = NULL;
|
|
1796 |
gint _tmp5_ = 0;
|
1785 | 1797 |
_tmp3_ = _ ("Missing argument");
|
1786 | 1798 |
_tmp4_ = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_UNKNOWN_OPTION, _tmp3_);
|
1787 | 1799 |
_inner_error_ = _tmp4_;
|
1788 | 1800 |
g_propagate_error (error, _inner_error_);
|
1789 | |
return 0;
|
1790 | |
}
|
1791 | |
_tmp5_ = argv;
|
1792 | |
_tmp5__length1 = argv_length1;
|
1793 | |
if (_tmp5__length1 != 0) {
|
|
1801 |
return _tmp5_;
|
|
1802 |
}
|
|
1803 |
_tmp6_ = argv;
|
|
1804 |
_tmp6__length1 = argv_length1;
|
|
1805 |
if (_tmp6__length1 != 0) {
|
1794 | 1806 |
{
|
1795 | 1807 |
guint i = 0U;
|
1796 | 1808 |
i = (guint) 0;
|
1797 | 1809 |
{
|
1798 | |
gboolean _tmp6_ = FALSE;
|
1799 | |
_tmp6_ = TRUE;
|
|
1810 |
gboolean _tmp7_ = FALSE;
|
|
1811 |
_tmp7_ = TRUE;
|
1800 | 1812 |
while (TRUE) {
|
1801 | |
guint _tmp8_ = 0U;
|
1802 | |
GTerminalVerb* _tmp9_ = NULL;
|
1803 | |
gint _tmp9__length1 = 0;
|
|
1813 |
guint _tmp9_ = 0U;
|
1804 | 1814 |
GTerminalVerb* _tmp10_ = NULL;
|
1805 | 1815 |
gint _tmp10__length1 = 0;
|
1806 | |
guint _tmp11_ = 0U;
|
1807 | |
GTerminalVerb _tmp12_ = {0};
|
1808 | |
const gchar* _tmp13_ = NULL;
|
1809 | |
gchar** _tmp14_ = NULL;
|
1810 | |
gint _tmp14__length1 = 0;
|
1811 | |
const gchar* _tmp15_ = NULL;
|
1812 | |
if (!_tmp6_) {
|
1813 | |
guint _tmp7_ = 0U;
|
1814 | |
_tmp7_ = i;
|
1815 | |
i = _tmp7_ + 1;
|
|
1816 |
GTerminalVerb* _tmp11_ = NULL;
|
|
1817 |
gint _tmp11__length1 = 0;
|
|
1818 |
guint _tmp12_ = 0U;
|
|
1819 |
GTerminalVerb _tmp13_ = {0};
|
|
1820 |
const gchar* _tmp14_ = NULL;
|
|
1821 |
gchar** _tmp15_ = NULL;
|
|
1822 |
gint _tmp15__length1 = 0;
|
|
1823 |
const gchar* _tmp16_ = NULL;
|
|
1824 |
if (!_tmp7_) {
|
|
1825 |
guint _tmp8_ = 0U;
|
|
1826 |
_tmp8_ = i;
|
|
1827 |
i = _tmp8_ + 1;
|
1816 | 1828 |
}
|
1817 | |
_tmp6_ = FALSE;
|
1818 | |
_tmp8_ = i;
|
1819 | |
_tmp9_ = commands;
|
1820 | |
_tmp9__length1 = commands_length1;
|
1821 | |
if (!(_tmp8_ < ((guint) _tmp9__length1))) {
|
|
1829 |
_tmp7_ = FALSE;
|
|
1830 |
_tmp9_ = i;
|
|
1831 |
_tmp10_ = commands;
|
|
1832 |
_tmp10__length1 = commands_length1;
|
|
1833 |
if (!(_tmp9_ < ((guint) _tmp10__length1))) {
|
1822 | 1834 |
break;
|
1823 | 1835 |
}
|
1824 | |
_tmp10_ = commands;
|
1825 | |
_tmp10__length1 = commands_length1;
|
1826 | |
_tmp11_ = i;
|
1827 | |
_tmp12_ = _tmp10_[_tmp11_];
|
1828 | |
_tmp13_ = _tmp12_.verb;
|
1829 | |
_tmp14_ = argv;
|
1830 | |
_tmp14__length1 = argv_length1;
|
1831 | |
_tmp15_ = _tmp14_[0];
|
1832 | |
if (g_strcmp0 (_tmp13_, _tmp15_) == 0) {
|
1833 | |
gint _tmp16_ = 0;
|
1834 | |
GTerminalVerb* _tmp17_ = NULL;
|
1835 | |
gint _tmp17__length1 = 0;
|
1836 | |
guint _tmp18_ = 0U;
|
1837 | |
GTerminalVerb _tmp19_ = {0};
|
1838 | |
GTerminalVerbFunc _tmp20_ = NULL;
|
1839 | |
void* _tmp20__target = NULL;
|
1840 | |
gchar** _tmp21_ = NULL;
|
1841 | |
gint _tmp21__length1 = 0;
|
1842 | |
gint _tmp22_ = 0;
|
1843 | |
_tmp17_ = commands;
|
1844 | |
_tmp17__length1 = commands_length1;
|
1845 | |
_tmp18_ = i;
|
1846 | |
_tmp19_ = _tmp17_[_tmp18_];
|
1847 | |
_tmp20_ = _tmp19_.func;
|
1848 | |
_tmp20__target = _tmp19_.func_target;
|
1849 | |
_tmp21_ = argv;
|
1850 | |
_tmp21__length1 = argv_length1;
|
1851 | |
_tmp22_ = _tmp20_ (_tmp21_, _tmp21__length1, _tmp20__target, &_inner_error_);
|
1852 | |
_tmp16_ = _tmp22_;
|
|
1836 |
_tmp11_ = commands;
|
|
1837 |
_tmp11__length1 = commands_length1;
|
|
1838 |
_tmp12_ = i;
|
|
1839 |
_tmp13_ = _tmp11_[_tmp12_];
|
|
1840 |
_tmp14_ = _tmp13_.verb;
|
|
1841 |
_tmp15_ = argv;
|
|
1842 |
_tmp15__length1 = argv_length1;
|
|
1843 |
_tmp16_ = _tmp15_[0];
|
|
1844 |
if (g_strcmp0 (_tmp14_, _tmp16_) == 0) {
|
|
1845 |
gint _tmp17_ = 0;
|
|
1846 |
GTerminalVerb* _tmp18_ = NULL;
|
|
1847 |
gint _tmp18__length1 = 0;
|
|
1848 |
guint _tmp19_ = 0U;
|
|
1849 |
GTerminalVerb _tmp20_ = {0};
|
|
1850 |
GTerminalVerbFunc _tmp21_ = NULL;
|
|
1851 |
void* _tmp21__target = NULL;
|
|
1852 |
gchar** _tmp22_ = NULL;
|
|
1853 |
gint _tmp22__length1 = 0;
|
|
1854 |
gint _tmp23_ = 0;
|
|
1855 |
_tmp18_ = commands;
|
|
1856 |
_tmp18__length1 = commands_length1;
|
|
1857 |
_tmp19_ = i;
|
|
1858 |
_tmp20_ = _tmp18_[_tmp19_];
|
|
1859 |
_tmp21_ = _tmp20_.func;
|
|
1860 |
_tmp21__target = _tmp20_.func_target;
|
|
1861 |
_tmp22_ = argv;
|
|
1862 |
_tmp22__length1 = argv_length1;
|
|
1863 |
_tmp23_ = _tmp21_ (_tmp22_, _tmp22__length1, _tmp21__target, &_inner_error_);
|
|
1864 |
_tmp17_ = _tmp23_;
|
1853 | 1865 |
if (G_UNLIKELY (_inner_error_ != NULL)) {
|
|
1866 |
gint _tmp24_ = 0;
|
1854 | 1867 |
g_propagate_error (error, _inner_error_);
|
1855 | |
return 0;
|
|
1868 |
return _tmp24_;
|
1856 | 1869 |
}
|
1857 | |
result = _tmp16_;
|
|
1870 |
result = _tmp17_;
|
1858 | 1871 |
return result;
|
1859 | 1872 |
}
|
1860 | 1873 |
}
|
1861 | 1874 |
}
|
1862 | 1875 |
}
|
1863 | 1876 |
}
|
1864 | |
_tmp23_ = gterminal_global_options_get_complete ();
|
1865 | |
if (_tmp23_) {
|
1866 | |
const gchar* _tmp24_ = NULL;
|
1867 | |
gchar** _tmp25_ = NULL;
|
1868 | |
gint _tmp25__length1 = 0;
|
|
1877 |
_tmp25_ = gterminal_global_options_get_complete ();
|
|
1878 |
if (_tmp25_) {
|
|
1879 |
const gchar* _tmp26_ = NULL;
|
|
1880 |
gchar** _tmp27_ = NULL;
|
|
1881 |
gint _tmp27__length1 = 0;
|
1869 | 1882 |
gchar* prefix = NULL;
|
1870 | |
gchar* _tmp28_ = NULL;
|
1871 | |
_tmp25_ = argv;
|
1872 | |
_tmp25__length1 = argv_length1;
|
1873 | |
if (_tmp25__length1 > 0) {
|
1874 | |
gchar** _tmp26_ = NULL;
|
1875 | |
gint _tmp26__length1 = 0;
|
1876 | |
const gchar* _tmp27_ = NULL;
|
1877 | |
_tmp26_ = argv;
|
1878 | |
_tmp26__length1 = argv_length1;
|
1879 | |
_tmp27_ = _tmp26_[0];
|
1880 | |
_tmp24_ = _tmp27_;
|
|
1883 |
gchar* _tmp30_ = NULL;
|
|
1884 |
_tmp27_ = argv;
|
|
1885 |
_tmp27__length1 = argv_length1;
|
|
1886 |
if (_tmp27__length1 > 0) {
|
|
1887 |
gchar** _tmp28_ = NULL;
|
|
1888 |
gint _tmp28__length1 = 0;
|
|
1889 |
const gchar* _tmp29_ = NULL;
|
|
1890 |
_tmp28_ = argv;
|
|
1891 |
_tmp28__length1 = argv_length1;
|
|
1892 |
_tmp29_ = _tmp28_[0];
|
|
1893 |
_tmp26_ = _tmp29_;
|
1881 | 1894 |
} else {
|
1882 | |
_tmp24_ = NULL;
|
|
1895 |
_tmp26_ = NULL;
|
1883 | 1896 |
}
|
1884 | |
_tmp28_ = g_strdup (_tmp24_);
|
1885 | |
prefix = _tmp28_;
|
|
1897 |
_tmp30_ = g_strdup (_tmp26_);
|
|
1898 |
prefix = _tmp30_;
|
1886 | 1899 |
{
|
1887 | 1900 |
guint i = 0U;
|
1888 | 1901 |
i = (guint) 0;
|
1889 | 1902 |
{
|
1890 | |
gboolean _tmp29_ = FALSE;
|
1891 | |
_tmp29_ = TRUE;
|
|
1903 |
gboolean _tmp31_ = FALSE;
|
|
1904 |
_tmp31_ = TRUE;
|
1892 | 1905 |
while (TRUE) {
|
1893 | |
guint _tmp31_ = 0U;
|
1894 | |
GTerminalVerb* _tmp32_ = NULL;
|
1895 | |
gint _tmp32__length1 = 0;
|
1896 | |
GTerminalVerb* _tmp33_ = NULL;
|
1897 | |
gint _tmp33__length1 = 0;
|
1898 | |
guint _tmp34_ = 0U;
|
1899 | |
GTerminalVerb _tmp35_ = {0};
|
1900 | |
const gchar* _tmp36_ = NULL;
|
1901 | |
gchar _tmp37_ = '\0';
|
1902 | |
gboolean _tmp38_ = FALSE;
|
1903 | |
const gchar* _tmp39_ = NULL;
|
1904 | |
if (!_tmp29_) {
|
1905 | |
guint _tmp30_ = 0U;
|
1906 | |
_tmp30_ = i;
|
1907 | |
i = _tmp30_ + 1;
|
|
1906 |
guint _tmp33_ = 0U;
|
|
1907 |
GTerminalVerb* _tmp34_ = NULL;
|
|
1908 |
gint _tmp34__length1 = 0;
|
|
1909 |
GTerminalVerb* _tmp35_ = NULL;
|
|
1910 |
gint _tmp35__length1 = 0;
|
|
1911 |
guint _tmp36_ = 0U;
|
|
1912 |
GTerminalVerb _tmp37_ = {0};
|
|
1913 |
const gchar* _tmp38_ = NULL;
|
|
1914 |
gchar _tmp39_ = '\0';
|
|
1915 |
gboolean _tmp40_ = FALSE;
|
|
1916 |
const gchar* _tmp41_ = NULL;
|
|
1917 |
if (!_tmp31_) {
|
|
1918 |
guint _tmp32_ = 0U;
|
|
1919 |
_tmp32_ = i;
|
|
1920 |
i = _tmp32_ + 1;
|
1908 | 1921 |
}
|
1909 | |
_tmp29_ = FALSE;
|
1910 | |
_tmp31_ = i;
|
1911 | |
_tmp32_ = commands;
|
1912 | |
_tmp32__length1 = commands_length1;
|
1913 | |
if (!(_tmp31_ < ((guint) _tmp32__length1))) {
|
|
1922 |
_tmp31_ = FALSE;
|
|
1923 |
_tmp33_ = i;
|
|
1924 |
_tmp34_ = commands;
|
|
1925 |
_tmp34__length1 = commands_length1;
|
|
1926 |
if (!(_tmp33_ < ((guint) _tmp34__length1))) {
|
1914 | 1927 |
break;
|
1915 | 1928 |
}
|
1916 | |
_tmp33_ = commands;
|
1917 | |
_tmp33__length1 = commands_length1;
|
1918 | |
_tmp34_ = i;
|
1919 | |
_tmp35_ = _tmp33_[_tmp34_];
|
1920 | |
_tmp36_ = _tmp35_.verb;
|
1921 | |
_tmp37_ = string_get (_tmp36_, (glong) 0);
|
1922 | |
if (_tmp37_ == '_') {
|
|
1929 |
_tmp35_ = commands;
|
|
1930 |
_tmp35__length1 = commands_length1;
|
|
1931 |
_tmp36_ = i;
|
|
1932 |
_tmp37_ = _tmp35_[_tmp36_];
|
|
1933 |
_tmp38_ = _tmp37_.verb;
|
|
1934 |
_tmp39_ = string_get (_tmp38_, (glong) 0);
|
|
1935 |
if (_tmp39_ == '_') {
|
1923 | 1936 |
continue;
|
1924 | 1937 |
}
|
1925 | |
_tmp39_ = prefix;
|
1926 | |
if (_tmp39_ == NULL) {
|
1927 | |
_tmp38_ = TRUE;
|
|
1938 |
_tmp41_ = prefix;
|
|
1939 |
if (_tmp41_ == NULL) {
|
|
1940 |
_tmp40_ = TRUE;
|
1928 | 1941 |
} else {
|
1929 | |
GTerminalVerb* _tmp40_ = NULL;
|
1930 | |
gint _tmp40__length1 = 0;
|
1931 | |
guint _tmp41_ = 0U;
|
1932 | |
GTerminalVerb _tmp42_ = {0};
|
1933 | |
const gchar* _tmp43_ = NULL;
|
1934 | |
const gchar* _tmp44_ = NULL;
|
1935 | |
gboolean _tmp45_ = FALSE;
|
1936 | |
_tmp40_ = commands;
|
1937 | |
_tmp40__length1 = commands_length1;
|
1938 | |
_tmp41_ = i;
|
1939 | |
_tmp42_ = _tmp40_[_tmp41_];
|
1940 | |
_tmp43_ = _tmp42_.verb;
|
1941 | |
_tmp44_ = prefix;
|
1942 | |
_tmp45_ = g_str_has_prefix (_tmp43_, _tmp44_);
|
1943 | |
_tmp38_ = _tmp45_;
|
|
1942 |
GTerminalVerb* _tmp42_ = NULL;
|
|
1943 |
gint _tmp42__length1 = 0;
|
|
1944 |
guint _tmp43_ = 0U;
|
|
1945 |
GTerminalVerb _tmp44_ = {0};
|
|
1946 |
const gchar* _tmp45_ = NULL;
|
|
1947 |
const gchar* _tmp46_ = NULL;
|
|
1948 |
gboolean _tmp47_ = FALSE;
|
|
1949 |
_tmp42_ = commands;
|
|
1950 |
_tmp42__length1 = commands_length1;
|
|
1951 |
_tmp43_ = i;
|
|
1952 |
_tmp44_ = _tmp42_[_tmp43_];
|
|
1953 |
_tmp45_ = _tmp44_.verb;
|
|
1954 |
_tmp46_ = prefix;
|
|
1955 |
_tmp47_ = g_str_has_prefix (_tmp45_, _tmp46_);
|
|
1956 |
_tmp40_ = _tmp47_;
|
1944 | 1957 |
}
|
1945 | |
if (_tmp38_) {
|
1946 | |
GTerminalVerb* _tmp46_ = NULL;
|
1947 | |
gint _tmp46__length1 = 0;
|
1948 | |
guint _tmp47_ = 0U;
|
1949 | |
GTerminalVerb _tmp48_ = {0};
|
1950 | |
const gchar* _tmp49_ = NULL;
|
1951 | |
_tmp46_ = commands;
|
1952 | |
_tmp46__length1 = commands_length1;
|
1953 | |
_tmp47_ = i;
|
1954 | |
_tmp48_ = _tmp46_[_tmp47_];
|
1955 | |
_tmp49_ = _tmp48_.verb;
|
1956 | |
gterminal_output_print ("%s\n", _tmp49_);
|
|
1958 |
if (_tmp40_) {
|
|
1959 |
GTerminalVerb* _tmp48_ = NULL;
|
|
1960 |
gint _tmp48__length1 = 0;
|
|
1961 |
guint _tmp49_ = 0U;
|
|
1962 |
GTerminalVerb _tmp50_ = {0};
|
|
1963 |
const gchar* _tmp51_ = NULL;
|
|
1964 |
_tmp48_ = commands;
|
|
1965 |
_tmp48__length1 = commands_length1;
|
|
1966 |
_tmp49_ = i;
|
|
1967 |
_tmp50_ = _tmp48_[_tmp49_];
|
|
1968 |
_tmp51_ = _tmp50_.verb;
|
|
1969 |
gterminal_output_print ("%s\n", _tmp51_);
|
1957 | 1970 |
}
|
1958 | 1971 |
}
|
1959 | 1972 |
}
|
1960 | 1973 |
}
|
1961 | 1974 |
_g_free0 (prefix);
|
1962 | 1975 |
} else {
|
1963 | |
const gchar* _tmp50_ = NULL;
|
1964 | |
gchar** _tmp51_ = NULL;
|
1965 | |
gint _tmp51__length1 = 0;
|
1966 | 1976 |
const gchar* _tmp52_ = NULL;
|
1967 | |
GError* _tmp53_ = NULL;
|
1968 | |
_tmp50_ = _ ("Unknown command \"%s\"");
|
1969 | |
_tmp51_ = argv;
|
1970 | |
_tmp51__length1 = argv_length1;
|
1971 | |
_tmp52_ = _tmp51_[0];
|
1972 | |
_tmp53_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_FAILED, _tmp50_, _tmp52_);
|
1973 | |
_inner_error_ = _tmp53_;
|
1974 | |
g_propagate_error (error, _inner_error_);
|
1975 | |
return 0;
|
|
1977 |
gchar** _tmp53_ = NULL;
|
|
1978 |
gint _tmp53__length1 = 0;
|
|
1979 |
const gchar* _tmp54_ = NULL;
|
|
1980 |
GError* _tmp55_ = NULL;
|
|
1981 |
gint _tmp56_ = 0;
|
|
1982 |
_tmp52_ = _ ("Unknown command \"%s\"");
|
|
1983 |
_tmp53_ = argv;
|
|
1984 |
_tmp53__length1 = argv_length1;
|
|
1985 |
_tmp54_ = _tmp53_[0];
|
|
1986 |
_tmp55_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_FAILED, _tmp52_, _tmp54_);
|
|
1987 |
_inner_error_ = _tmp55_;
|
|
1988 |
g_propagate_error (error, _inner_error_);
|
|
1989 |
return _tmp56_;
|
1976 | 1990 |
}
|
1977 | 1991 |
result = EXIT_SUCCESS;
|
1978 | 1992 |
return result;
|
|
2045 | 2059 |
gint result = 0;
|
2046 | 2060 |
gchar** _tmp0_ = NULL;
|
2047 | 2061 |
gint _tmp0__length1 = 0;
|
2048 | |
gboolean _tmp1_ = FALSE;
|
2049 | |
gchar** _tmp2_ = NULL;
|
2050 | |
gint _tmp2__length1 = 0;
|
2051 | |
const gchar* _tmp3_ = NULL;
|
|
2062 |
gboolean _tmp2_ = FALSE;
|
|
2063 |
gchar** _tmp3_ = NULL;
|
|
2064 |
gint _tmp3__length1 = 0;
|
|
2065 |
const gchar* _tmp4_ = NULL;
|
2052 | 2066 |
GVariantBuilder* builder = NULL;
|
2053 | |
const GVariantType* _tmp15_ = NULL;
|
2054 | |
GVariantBuilder* _tmp16_ = NULL;
|
2055 | |
GVariantBuilder* _tmp17_ = NULL;
|
2056 | 2067 |
const GVariantType* _tmp18_ = NULL;
|
2057 | |
GVariantBuilder* _tmp24_ = NULL;
|
2058 | |
GVariantBuilder* _tmp25_ = NULL;
|
2059 | |
gchar** _tmp26_ = NULL;
|
2060 | |
gint _tmp26__length1 = 0;
|
2061 | |
GVariant* _tmp27_ = NULL;
|
2062 | |
GVariant* _tmp28_ = NULL;
|
|
2068 |
GVariantBuilder* _tmp19_ = NULL;
|
|
2069 |
GVariantBuilder* _tmp20_ = NULL;
|
|
2070 |
const GVariantType* _tmp21_ = NULL;
|
|
2071 |
GVariantBuilder* _tmp27_ = NULL;
|
|
2072 |
GVariantBuilder* _tmp28_ = NULL;
|
|
2073 |
gchar** _tmp29_ = NULL;
|
|
2074 |
gint _tmp29__length1 = 0;
|
|
2075 |
GVariant* _tmp30_ = NULL;
|
|
2076 |
GVariant* _tmp31_ = NULL;
|
2063 | 2077 |
GTerminalReceiver* receiver = NULL;
|
2064 | |
GTerminalReceiver* _tmp29_ = NULL;
|
2065 | |
GTerminalReceiver* _tmp30_ = NULL;
|
2066 | |
GVariantBuilder* _tmp31_ = NULL;
|
2067 | |
GVariant* _tmp32_ = NULL;
|
2068 | |
GVariant* _tmp33_ = NULL;
|
2069 | |
GUnixFDList* _tmp34_ = NULL;
|
2070 | |
GVariant* _tmp35_ = NULL;
|
|
2078 |
GTerminalReceiver* _tmp32_ = NULL;
|
|
2079 |
GTerminalReceiver* _tmp34_ = NULL;
|
|
2080 |
GVariantBuilder* _tmp35_ = NULL;
|
2071 | 2081 |
GVariant* _tmp36_ = NULL;
|
2072 | |
gboolean _tmp37_ = FALSE;
|
2073 | |
GTerminalReceiver* _tmp38_ = NULL;
|
2074 | |
gint _tmp39_ = 0;
|
|
2082 |
GVariant* _tmp37_ = NULL;
|
|
2083 |
GUnixFDList* _tmp38_ = NULL;
|
|
2084 |
GVariant* _tmp39_ = NULL;
|
|
2085 |
GVariant* _tmp40_ = NULL;
|
|
2086 |
gboolean _tmp42_ = FALSE;
|
|
2087 |
GTerminalReceiver* _tmp43_ = NULL;
|
|
2088 |
gint _tmp44_ = 0;
|
2075 | 2089 |
GError * _inner_error_ = NULL;
|
2076 | 2090 |
_tmp0_ = argv;
|
2077 | 2091 |
_tmp0__length1 = argv_length1;
|
2078 | 2092 |
gterminal_open_options_parse_argv (_tmp0_, _tmp0__length1, &_inner_error_);
|
2079 | 2093 |
if (G_UNLIKELY (_inner_error_ != NULL)) {
|
2080 | |
g_propagate_error (error, _inner_error_);
|
2081 | |
return 0;
|
2082 | |
}
|
2083 | |
_tmp2_ = argv;
|
2084 | |
_tmp2__length1 = argv_length1;
|
2085 | |
_tmp3_ = _tmp2_[0];
|
2086 | |
if (g_strcmp0 (_tmp3_, "run") == 0) {
|
2087 | |
gchar** _tmp4_ = NULL;
|
2088 | |
gint _tmp4__length1 = 0;
|
2089 | |
_tmp4_ = gterminal_open_options_argv_post;
|
2090 | |
_tmp4__length1 = _vala_array_length (gterminal_open_options_argv_post);
|
2091 | |
_tmp1_ = _tmp4_ == NULL;
|
|
2094 |
gint _tmp1_ = 0;
|
|
2095 |
g_propagate_error (error, _inner_error_);
|
|
2096 |
return _tmp1_;
|
|
2097 |
}
|
|
2098 |
_tmp3_ = argv;
|
|
2099 |
_tmp3__length1 = argv_length1;
|
|
2100 |
_tmp4_ = _tmp3_[0];
|
|
2101 |
if (g_strcmp0 (_tmp4_, "run") == 0) {
|
|
2102 |
gchar** _tmp5_ = NULL;
|
|
2103 |
gint _tmp5__length1 = 0;
|
|
2104 |
_tmp5_ = gterminal_open_options_argv_post;
|
|
2105 |
_tmp5__length1 = _vala_array_length (gterminal_open_options_argv_post);
|
|
2106 |
_tmp2_ = _tmp5_ == NULL;
|
2092 | 2107 |
} else {
|
2093 | |
_tmp1_ = FALSE;
|
2094 | |
}
|
2095 | |
if (_tmp1_) {
|
2096 | |
const gchar* _tmp5_ = NULL;
|
2097 | |
gchar** _tmp6_ = NULL;
|
2098 | |
gint _tmp6__length1 = 0;
|
2099 | |
const gchar* _tmp7_ = NULL;
|
2100 | |
GError* _tmp8_ = NULL;
|
2101 | |
_tmp5_ = _ ("'%s' needs the command to run as arguments after '--'");
|
2102 | |
_tmp6_ = argv;
|
2103 | |
_tmp6__length1 = argv_length1;
|
2104 | |
_tmp7_ = _tmp6_[0];
|
2105 | |
_tmp8_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp5_, _tmp7_);
|
2106 | |
_inner_error_ = _tmp8_;
|
2107 | |
g_propagate_error (error, _inner_error_);
|
2108 | |
return 0;
|
|
2108 |
_tmp2_ = FALSE;
|
|
2109 |
}
|
|
2110 |
if (_tmp2_) {
|
|
2111 |
const gchar* _tmp6_ = NULL;
|
|
2112 |
gchar** _tmp7_ = NULL;
|
|
2113 |
gint _tmp7__length1 = 0;
|
|
2114 |
const gchar* _tmp8_ = NULL;
|
|
2115 |
GError* _tmp9_ = NULL;
|
|
2116 |
gint _tmp10_ = 0;
|
|
2117 |
_tmp6_ = _ ("'%s' needs the command to run as arguments after '--'");
|
|
2118 |
_tmp7_ = argv;
|
|
2119 |
_tmp7__length1 = argv_length1;
|
|
2120 |
_tmp8_ = _tmp7_[0];
|
|
2121 |
_tmp9_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp6_, _tmp8_);
|
|
2122 |
_inner_error_ = _tmp9_;
|
|
2123 |
g_propagate_error (error, _inner_error_);
|
|
2124 |
return _tmp10_;
|
2109 | 2125 |
} else {
|
2110 | |
gboolean _tmp9_ = FALSE;
|
2111 | |
gchar** _tmp10_ = NULL;
|
2112 | |
gint _tmp10__length1 = 0;
|
2113 | |
const gchar* _tmp11_ = NULL;
|
2114 | |
_tmp10_ = argv;
|
2115 | |
_tmp10__length1 = argv_length1;
|
2116 | |
_tmp11_ = _tmp10_[0];
|
2117 | |
if (g_strcmp0 (_tmp11_, "shell") == 0) {
|
2118 | |
gchar** _tmp12_ = NULL;
|
2119 | |
gint _tmp12__length1 = 0;
|
2120 | |
_tmp12_ = gterminal_open_options_argv_post;
|
2121 | |
_tmp12__length1 = _vala_array_length (gterminal_open_options_argv_post);
|
2122 | |
_tmp9_ = _tmp12_ != NULL;
|
|
2126 |
gboolean _tmp11_ = FALSE;
|
|
2127 |
gchar** _tmp12_ = NULL;
|
|
2128 |
gint _tmp12__length1 = 0;
|
|
2129 |
const gchar* _tmp13_ = NULL;
|
|
2130 |
_tmp12_ = argv;
|
|
2131 |
_tmp12__length1 = argv_length1;
|
|
2132 |
_tmp13_ = _tmp12_[0];
|
|
2133 |
if (g_strcmp0 (_tmp13_, "shell") == 0) {
|
|
2134 |
gchar** _tmp14_ = NULL;
|
|
2135 |
gint _tmp14__length1 = 0;
|
|
2136 |
_tmp14_ = gterminal_open_options_argv_post;
|
|
2137 |
_tmp14__length1 = _vala_array_length (gterminal_open_options_argv_post);
|
|
2138 |
_tmp11_ = _tmp14_ != NULL;
|
2123 | 2139 |
} else {
|
2124 | |
_tmp9_ = FALSE;
|
|
2140 |
_tmp11_ = FALSE;
|
2125 | 2141 |
}
|
2126 | |
if (_tmp9_) {
|
2127 | |
const gchar* _tmp13_ = NULL;
|
2128 | |
GError* _tmp14_ = NULL;
|
2129 | |
_tmp13_ = _ ("Extraneous arguments after '--'");
|
2130 | |
_tmp14_ = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp13_);
|
2131 | |
_inner_error_ = _tmp14_;
|
|
2142 |
if (_tmp11_) {
|
|
2143 |
const gchar* _tmp15_ = NULL;
|
|
2144 |
GError* _tmp16_ = NULL;
|
|
2145 |
gint _tmp17_ = 0;
|
|
2146 |
_tmp15_ = _ ("Extraneous arguments after '--'");
|
|
2147 |
_tmp16_ = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, _tmp15_);
|
|
2148 |
_inner_error_ = _tmp16_;
|
2132 | 2149 |
g_propagate_error (error, _inner_error_);
|
2133 | |
return 0;
|
|
2150 |
return _tmp17_;
|
2134 | 2151 |
}
|
2135 | 2152 |
}
|
2136 | |
_tmp15_ = G_VARIANT_TYPE_TUPLE;
|
2137 | |
_tmp16_ = g_variant_builder_new (_tmp15_);
|
2138 | |
builder = _tmp16_;
|
2139 | |
_tmp17_ = builder;
|
2140 | |
_tmp18_ = G_VARIANT_TYPE_VARDICT;
|
2141 | |
g_variant_builder_open (_tmp17_, _tmp18_);
|
|
2153 |
_tmp18_ = G_VARIANT_TYPE_TUPLE;
|
|
2154 |
_tmp19_ = g_variant_builder_new (_tmp18_);
|
|
2155 |
builder = _tmp19_;
|
|
2156 |
_tmp20_ = builder;
|
|
2157 |
_tmp21_ = G_VARIANT_TYPE_VARDICT;
|
|
2158 |
g_variant_builder_open (_tmp20_, _tmp21_);
|
2142 | 2159 |
{
|
2143 | |
GVariantBuilder* _tmp19_ = NULL;
|
2144 | |
const gchar* _tmp20_ = NULL;
|
2145 | |
PassFdElement* _tmp21_ = NULL;
|
2146 | |
gint _tmp21__length1 = 0;
|
2147 | |
gchar** _tmp22_ = NULL;
|
2148 | |
gint _tmp22__length1 = 0;
|
|
2160 |
GVariantBuilder* _tmp22_ = NULL;
|
2149 | 2161 |
const gchar* _tmp23_ = NULL;
|
2150 | |
_tmp19_ = builder;
|
2151 | |
_tmp20_ = gterminal_open_options_working_directory;
|
2152 | |
_tmp21_ = gterminal_open_options_fd_array;
|
2153 | |
_tmp21__length1 = gterminal_open_options_fd_array_length1;
|
2154 | |
_tmp22_ = argv;
|
2155 | |
_tmp22__length1 = argv_length1;
|
2156 | |
_tmp23_ = _tmp22_[0];
|
2157 | |
terminal_client_append_exec_options (_tmp19_, _tmp20_, _tmp21_, _tmp21__length1, g_strcmp0 (_tmp23_, "shell") == 0);
|
2158 | |
}
|
2159 | |
_tmp24_ = builder;
|
2160 | |
g_variant_builder_close (_tmp24_);
|
2161 | |
_tmp25_ = builder;
|
2162 | |
_tmp26_ = gterminal_open_options_argv_post;
|
2163 | |
_tmp26__length1 = _vala_array_length (gterminal_open_options_argv_post);
|
2164 | |
_tmp27_ = g_variant_new_bytestring_array (_tmp26_, _tmp26__length1);
|
2165 | |
g_variant_ref_sink (_tmp27_);
|
2166 | |
_tmp28_ = _tmp27_;
|
2167 | |
g_variant_builder_add_value (_tmp25_, _tmp28_);
|
2168 | |
_g_variant_unref0 (_tmp28_);
|
2169 | |
_tmp29_ = gterminal_create_terminal (&_inner_error_);
|
2170 | |
receiver = _tmp29_;
|
|
2162 |
PassFdElement* _tmp24_ = NULL;
|
|
2163 |
gint _tmp24__length1 = 0;
|
|
2164 |
gchar** _tmp25_ = NULL;
|
|
2165 |
gint _tmp25__length1 = 0;
|
|
2166 |
const gchar* _tmp26_ = NULL;
|
|
2167 |
_tmp22_ = builder;
|
|
2168 |
_tmp23_ = gterminal_open_options_working_directory;
|
|
2169 |
_tmp24_ = gterminal_open_options_fd_array;
|
|
2170 |
_tmp24__length1 = gterminal_open_options_fd_array_length1;
|
|
2171 |
_tmp25_ = argv;
|
|
2172 |
_tmp25__length1 = argv_length1;
|
|
2173 |
_tmp26_ = _tmp25_[0];
|
|
2174 |
terminal_client_append_exec_options (_tmp22_, _tmp23_, _tmp24_, _tmp24__length1, g_strcmp0 (_tmp26_, "shell") == 0);
|
|
2175 |
}
|
|
2176 |
_tmp27_ = builder;
|
|
2177 |
g_variant_builder_close (_tmp27_);
|
|
2178 |
_tmp28_ = builder;
|
|
2179 |
_tmp29_ = gterminal_open_options_argv_post;
|
|
2180 |
_tmp29__length1 = _vala_array_length (gterminal_open_options_argv_post);
|
|
2181 |
_tmp30_ = g_variant_new_bytestring_array (_tmp29_, _tmp29__length1);
|
|
2182 |
g_variant_ref_sink (_tmp30_);
|
|
2183 |
_tmp31_ = _tmp30_;
|
|
2184 |
g_variant_builder_add_value (_tmp28_, _tmp31_);
|
|
2185 |
_g_variant_unref0 (_tmp31_);
|
|
2186 |
_tmp32_ = gterminal_create_terminal (&_inner_error_);
|
|
2187 |
receiver = _tmp32_;
|
2171 | 2188 |
if (G_UNLIKELY (_inner_error_ != NULL)) {
|
|
2189 |
gint _tmp33_ = 0;
|
2172 | 2190 |
g_propagate_error (error, _inner_error_);
|
2173 | 2191 |
_g_variant_builder_unref0 (builder);
|
2174 | |
return 0;
|
2175 | |
}
|
2176 | |
_tmp30_ = receiver;
|
2177 | |
_tmp31_ = builder;
|
2178 | |
_tmp32_ = g_variant_builder_end (_tmp31_);
|
2179 | |
g_variant_ref_sink (_tmp32_);
|
2180 | |
_tmp33_ = _tmp32_;
|
2181 | |
_tmp34_ = gterminal_open_options_fd_list;
|
2182 | |
_tmp35_ = g_dbus_proxy_call_with_unix_fd_list_sync ((GDBusProxy*) _tmp30_, "Exec", _tmp33_, G_DBUS_CALL_FLAGS_NO_AUTO_START, -1, _tmp34_, NULL, NULL, &_inner_error_);
|
2183 | |
_tmp36_ = _tmp35_;
|
2184 | |
_g_variant_unref0 (_tmp36_);
|
2185 | |
_g_variant_unref0 (_tmp33_);
|
|
2192 |
return _tmp33_;
|
|
2193 |
}
|
|
2194 |
_tmp34_ = receiver;
|
|
2195 |
_tmp35_ = builder;
|
|
2196 |
_tmp36_ = g_variant_builder_end (_tmp35_);
|
|
2197 |
g_variant_ref_sink (_tmp36_);
|
|
2198 |
_tmp37_ = _tmp36_;
|
|
2199 |
_tmp38_ = gterminal_open_options_fd_list;
|
|
2200 |
_tmp39_ = g_dbus_proxy_call_with_unix_fd_list_sync ((GDBusProxy*) _tmp34_, "Exec", _tmp37_, G_DBUS_CALL_FLAGS_NO_AUTO_START, -1, _tmp38_, NULL, NULL, &_inner_error_);
|
|
2201 |
_tmp40_ = _tmp39_;
|
|
2202 |
_g_variant_unref0 (_tmp40_);
|
|
2203 |
_g_variant_unref0 (_tmp37_);
|
2186 | 2204 |
if (G_UNLIKELY (_inner_error_ != NULL)) {
|
|
2205 |
gint _tmp41_ = 0;
|
2187 | 2206 |
g_propagate_error (error, _inner_error_);
|
2188 | 2207 |
_g_object_unref0 (receiver);
|
2189 | 2208 |
_g_variant_builder_unref0 (builder);
|
2190 | |
return 0;
|
2191 | |
}
|
2192 | |
_tmp37_ = gterminal_open_options_wait_for_remote;
|
2193 | |
if (!_tmp37_) {
|
|
2209 |
return _tmp41_;
|
|
2210 |
}
|
|
2211 |
_tmp42_ = gterminal_open_options_wait_for_remote;
|
|
2212 |
if (!_tmp42_) {
|
2194 | 2213 |
result = EXIT_SUCCESS;
|
2195 | 2214 |
_g_object_unref0 (receiver);
|
2196 | 2215 |
_g_variant_builder_unref0 (builder);
|
2197 | 2216 |
return result;
|
2198 | 2217 |
}
|
2199 | |
_tmp38_ = receiver;
|
2200 | |
_tmp39_ = gterminal_run (_tmp38_);
|
2201 | |
result = _tmp39_;
|
|
2218 |
_tmp43_ = receiver;
|
|
2219 |
_tmp44_ = gterminal_run (_tmp43_);
|
|
2220 |
result = _tmp44_;
|
2202 | 2221 |
_g_object_unref0 (receiver);
|
2203 | 2222 |
_g_variant_builder_unref0 (builder);
|
2204 | 2223 |
return result;
|
|
2221 | 2240 |
GSettings* _tmp2_ = NULL;
|
2222 | 2241 |
GSettings* _tmp3_ = NULL;
|
2223 | 2242 |
gchar** keys = NULL;
|
2224 | |
GSettings* _tmp5_ = NULL;
|
2225 | |
gchar** _tmp6_ = NULL;
|
|
2243 |
GSettings* _tmp6_ = NULL;
|
2226 | 2244 |
gchar** _tmp7_ = NULL;
|
|
2245 |
gchar** _tmp8_ = NULL;
|
2227 | 2246 |
gint keys_length1 = 0;
|
2228 | 2247 |
gint _keys_size_ = 0;
|
2229 | 2248 |
GError * _inner_error_ = NULL;
|
|
2235 | 2254 |
_tmp3_ = def;
|
2236 | 2255 |
if (_tmp3_ == NULL) {
|
2237 | 2256 |
GError* _tmp4_ = NULL;
|
|
2257 |
gint _tmp5_ = 0;
|
2238 | 2258 |
_tmp4_ = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_FAILED, "");
|
2239 | 2259 |
_inner_error_ = _tmp4_;
|
2240 | 2260 |
g_propagate_error (error, _inner_error_);
|
2241 | 2261 |
_g_object_unref0 (def);
|
2242 | 2262 |
_g_object_unref0 (service);
|
2243 | |
return 0;
|
2244 | |
}
|
2245 | |
_tmp5_ = def;
|
2246 | |
_tmp7_ = _tmp6_ = g_settings_list_keys (_tmp5_);
|
2247 | |
keys = _tmp7_;
|
2248 | |
keys_length1 = _vala_array_length (_tmp6_);
|
|
2263 |
return _tmp5_;
|
|
2264 |
}
|
|
2265 |
_tmp6_ = def;
|
|
2266 |
_tmp8_ = _tmp7_ = g_settings_list_keys (_tmp6_);
|
|
2267 |
keys = _tmp8_;
|
|
2268 |
keys_length1 = _vala_array_length (_tmp7_);
|
2249 | 2269 |
_keys_size_ = keys_length1;
|
2250 | 2270 |
{
|
2251 | 2271 |
guint i = 0U;
|
2252 | 2272 |
i = (guint) 0;
|
2253 | 2273 |
{
|
2254 | |
gboolean _tmp8_ = FALSE;
|
2255 | |
_tmp8_ = TRUE;
|
|
2274 |
gboolean _tmp9_ = FALSE;
|
|
2275 |
_tmp9_ = TRUE;
|
2256 | 2276 |
while (TRUE) {
|
2257 | |
guint _tmp10_ = 0U;
|
2258 | |
gchar** _tmp11_ = NULL;
|
2259 | |
gint _tmp11__length1 = 0;
|
|
2277 |
guint _tmp11_ = 0U;
|
2260 | 2278 |
gchar** _tmp12_ = NULL;
|
2261 | 2279 |
gint _tmp12__length1 = 0;
|
2262 | |
guint _tmp13_ = 0U;
|
2263 | |
const gchar* _tmp14_ = NULL;
|
2264 | |
if (!_tmp8_) {
|
2265 | |
guint _tmp9_ = 0U;
|
2266 | |
_tmp9_ = i;
|
2267 | |
i = _tmp9_ + 1;
|
|
2280 |
gchar** _tmp13_ = NULL;
|
|
2281 |
gint _tmp13__length1 = 0;
|
|
2282 |
guint _tmp14_ = 0U;
|
|
2283 |
const gchar* _tmp15_ = NULL;
|
|
2284 |
if (!_tmp9_) {
|
|
2285 |
guint _tmp10_ = 0U;
|
|
2286 |
_tmp10_ = i;
|
|
2287 |
i = _tmp10_ + 1;
|
2268 | 2288 |
}
|
2269 | |
_tmp8_ = FALSE;
|
2270 | |
_tmp10_ = i;
|
2271 | |
_tmp11_ = keys;
|
2272 | |
_tmp11__length1 = keys_length1;
|
2273 | |
if (!(_tmp10_ < ((guint) _tmp11__length1))) {
|
|
2289 |
_tmp9_ = FALSE;
|
|
2290 |
_tmp11_ = i;
|
|
2291 |
_tmp12_ = keys;
|
|
2292 |
_tmp12__length1 = keys_length1;
|
|
2293 |
if (!(_tmp11_ < ((guint) _tmp12__length1))) {
|
2274 | 2294 |
break;
|
2275 | 2295 |
}
|
2276 | |
_tmp12_ = keys;
|
2277 | |
_tmp12__length1 = keys_length1;
|
2278 | |
_tmp13_ = i;
|
2279 | |
_tmp14_ = _tmp12_[_tmp13_];
|
2280 | |
gterminal_output_print ("%s\n", _tmp14_);
|
|
2296 |
_tmp13_ = keys;
|
|
2297 |
_tmp13__length1 = keys_length1;
|
|
2298 |
_tmp14_ = i;
|
|
2299 |
_tmp15_ = _tmp13_[_tmp14_];
|
|
2300 |
gterminal_output_print ("%s\n", _tmp15_);
|
2281 | 2301 |
}
|
2282 | 2302 |
}
|
2283 | 2303 |
}
|
|
2294 | 2314 |
gchar** _tmp0_ = NULL;
|
2295 | 2315 |
gint _tmp0__length1 = 0;
|
2296 | 2316 |
gchar* uuid = NULL;
|
2297 | |
gchar** _tmp3_ = NULL;
|
2298 | |
gint _tmp3__length1 = 0;
|
2299 | |
const gchar* _tmp4_ = NULL;
|
2300 | |
gchar* _tmp5_ = NULL;
|
|
2317 |
gchar** _tmp4_ = NULL;
|
|
2318 |
gint _tmp4__length1 = 0;
|
|
2319 |
const gchar* _tmp5_ = NULL;
|
|
2320 |
gchar* _tmp6_ = NULL;
|
2301 | 2321 |
gchar* key = NULL;
|
2302 | |
gchar** _tmp6_ = NULL;
|
2303 | |
gint _tmp6__length1 = 0;
|
2304 | |
const gchar* _tmp7_ = NULL;
|
2305 | |
gchar* _tmp8_ = NULL;
|
2306 | |
const gchar* _tmp9_ = NULL;
|
2307 | |
gboolean _tmp10_ = FALSE;
|
|
2322 |
gchar** _tmp7_ = NULL;
|
|
2323 |
gint _tmp7__length1 = 0;
|
|
2324 |
const gchar* _tmp8_ = NULL;
|
|
2325 |
gchar* _tmp9_ = NULL;
|
|
2326 |
const gchar* _tmp10_ = NULL;
|
|
2327 |
gboolean _tmp11_ = FALSE;
|
2308 | 2328 |
TerminalSettingsList* service = NULL;
|
2309 | |
TerminalSettingsList* _tmp13_ = NULL;
|
|
2329 |
TerminalSettingsList* _tmp15_ = NULL;
|
2310 | 2330 |
GSettings* profile = NULL;
|
2311 | |
TerminalSettingsList* _tmp14_ = NULL;
|
2312 | |
const gchar* _tmp15_ = NULL;
|
2313 | |
GSettings* _tmp16_ = NULL;
|
2314 | |
GSettings* _tmp17_ = NULL;
|
2315 | |
GSettings* _tmp20_ = NULL;
|
2316 | |
GSettingsSchema* _tmp21_ = NULL;
|
2317 | |
GSettingsSchema* _tmp22_ = NULL;
|
2318 | |
GSettingsSchema* _tmp23_ = NULL;
|
2319 | |
const gchar* _tmp24_ = NULL;
|
2320 | |
gboolean _tmp25_ = FALSE;
|
2321 | |
gboolean _tmp26_ = FALSE;
|
2322 | |
GSettings* _tmp29_ = NULL;
|
2323 | |
const gchar* _tmp30_ = NULL;
|
2324 | |
GVariant* _tmp31_ = NULL;
|
2325 | |
GVariant* _tmp32_ = NULL;
|
2326 | |
gchar* _tmp33_ = NULL;
|
2327 | |
gchar* _tmp34_ = NULL;
|
|
2331 |
TerminalSettingsList* _tmp16_ = NULL;
|
|
2332 |
const gchar* _tmp17_ = NULL;
|
|
2333 |
GSettings* _tmp18_ = NULL;
|
|
2334 |
GSettings* _tmp19_ = NULL;
|
|
2335 |
GSettings* _tmp23_ = NULL;
|
|
2336 |
GSettingsSchema* _tmp24_ = NULL;
|
|
2337 |
GSettingsSchema* _tmp25_ = NULL;
|
|
2338 |
GSettingsSchema* _tmp26_ = NULL;
|
|
2339 |
const gchar* _tmp27_ = NULL;
|
|
2340 |
gboolean _tmp28_ = FALSE;
|
|
2341 |
gboolean _tmp29_ = FALSE;
|
|
2342 |
GSettings* _tmp33_ = NULL;
|
|
2343 |
const gchar* _tmp34_ = NULL;
|
|
2344 |
GVariant* _tmp35_ = NULL;
|
|
2345 |
GVariant* _tmp36_ = NULL;
|
|
2346 |
gchar* _tmp37_ = NULL;
|
|
2347 |
gchar* _tmp38_ = NULL;
|
2328 | 2348 |
GError * _inner_error_ = NULL;
|
2329 | 2349 |
_tmp0_ = argv;
|
2330 | 2350 |
_tmp0__length1 = argv_length1;
|
2331 | 2351 |
if (_tmp0__length1 < 3) {
|
2332 | 2352 |
const gchar* _tmp1_ = NULL;
|
2333 | 2353 |
GError* _tmp2_ = NULL;
|
|
2354 |
gint _tmp3_ = 0;
|
2334 | 2355 |
_tmp1_ = _ ("Missing argument");
|
2335 | 2356 |
_tmp2_ = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_UNKNOWN_OPTION, _tmp1_);
|
2336 | 2357 |
_inner_error_ = _tmp2_;
|
2337 | 2358 |
g_propagate_error (error, _inner_error_);
|
2338 | |
return 0;
|
2339 | |
}
|
2340 | |
_tmp3_ = argv;
|
2341 | |
_tmp3__length1 = argv_length1;
|
2342 | |
_tmp4_ = _tmp3_[1];
|
2343 | |
_tmp5_ = g_strdup (_tmp4_);
|
2344 | |
uuid = _tmp5_;
|
2345 | |
_tmp6_ = argv;
|
2346 | |
_tmp6__length1 = argv_length1;
|
2347 | |
_tmp7_ = _tmp6_[2];
|
2348 | |
_tmp8_ = g_strdup (_tmp7_);
|
2349 | |
key = _tmp8_;
|
2350 | |
_tmp9_ = uuid;
|
2351 | |
_tmp10_ = terminal_settings_list_valid_uuid (_tmp9_);
|
2352 | |
if (!_tmp10_) {
|
2353 | |
const gchar* _tmp11_ = NULL;
|
2354 | |
GError* _tmp12_ = NULL;
|
2355 | |
_tmp11_ = uuid;
|
2356 | |
_tmp12_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile UUID", _tmp11_);
|
2357 | |
_inner_error_ = _tmp12_;
|
|
2359 |
return _tmp3_;
|
|
2360 |
}
|
|
2361 |
_tmp4_ = argv;
|
|
2362 |
_tmp4__length1 = argv_length1;
|
|
2363 |
_tmp5_ = _tmp4_[1];
|
|
2364 |
_tmp6_ = g_strdup (_tmp5_);
|
|
2365 |
uuid = _tmp6_;
|
|
2366 |
_tmp7_ = argv;
|
|
2367 |
_tmp7__length1 = argv_length1;
|
|
2368 |
_tmp8_ = _tmp7_[2];
|
|
2369 |
_tmp9_ = g_strdup (_tmp8_);
|
|
2370 |
key = _tmp9_;
|
|
2371 |
_tmp10_ = uuid;
|
|
2372 |
_tmp11_ = terminal_settings_list_valid_uuid (_tmp10_);
|
|
2373 |
if (!_tmp11_) {
|
|
2374 |
const gchar* _tmp12_ = NULL;
|
|
2375 |
GError* _tmp13_ = NULL;
|
|
2376 |
gint _tmp14_ = 0;
|
|
2377 |
_tmp12_ = uuid;
|
|
2378 |
_tmp13_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile UUID", _tmp12_);
|
|
2379 |
_inner_error_ = _tmp13_;
|
2358 | 2380 |
g_propagate_error (error, _inner_error_);
|
2359 | 2381 |
_g_free0 (key);
|
2360 | 2382 |
_g_free0 (uuid);
|
2361 | |
return 0;
|
2362 | |
}
|
2363 | |
_tmp13_ = terminal_profiles_list_new ();
|
2364 | |
service = _tmp13_;
|
2365 | |
_tmp14_ = service;
|
2366 | |
_tmp15_ = uuid;
|
2367 | |
_tmp16_ = terminal_settings_list_ref_child (_tmp14_, _tmp15_);
|
2368 | |
profile = _tmp16_;
|
2369 | |
_tmp17_ = profile;
|
2370 | |
if (_tmp17_ == NULL) {
|
2371 | |
const gchar* _tmp18_ = NULL;
|
2372 | |
GError* _tmp19_ = NULL;
|
2373 | |
_tmp18_ = uuid;
|
2374 | |
_tmp19_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "No profile with UUID \"%s\" exists", _tmp18_);
|
2375 | |
_inner_error_ = _tmp19_;
|
|
2383 |
return _tmp14_;
|
|
2384 |
}
|
|
2385 |
_tmp15_ = terminal_profiles_list_new ();
|
|
2386 |
service = _tmp15_;
|
|
2387 |
_tmp16_ = service;
|
|
2388 |
_tmp17_ = uuid;
|
|
2389 |
_tmp18_ = terminal_settings_list_ref_child (_tmp16_, _tmp17_);
|
|
2390 |
profile = _tmp18_;
|
|
2391 |
_tmp19_ = profile;
|
|
2392 |
if (_tmp19_ == NULL) {
|
|
2393 |
const gchar* _tmp20_ = NULL;
|
|
2394 |
GError* _tmp21_ = NULL;
|
|
2395 |
gint _tmp22_ = 0;
|
|
2396 |
_tmp20_ = uuid;
|
|
2397 |
_tmp21_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "No profile with UUID \"%s\" exists", _tmp20_);
|
|
2398 |
_inner_error_ = _tmp21_;
|
2376 | 2399 |
g_propagate_error (error, _inner_error_);
|
2377 | 2400 |
_g_object_unref0 (profile);
|
2378 | 2401 |
_g_object_unref0 (service);
|
2379 | 2402 |
_g_free0 (key);
|
2380 | 2403 |
_g_free0 (uuid);
|
2381 | |
return 0;
|
2382 | |
}
|
2383 | |
_tmp20_ = profile;
|
2384 | |
g_object_get (_tmp20_, "settings-schema", &_tmp21_, NULL);
|
2385 | |
_tmp22_ = _tmp21_;
|
2386 | |
_tmp23_ = _tmp22_;
|
2387 | |
_tmp24_ = key;
|
2388 | |
_tmp25_ = g_settings_schema_has_key (_tmp23_, _tmp24_);
|
2389 | |
_tmp26_ = !_tmp25_;
|
2390 | |
_g_settings_schema_unref0 (_tmp23_);
|
2391 | |
if (_tmp26_) {
|
2392 | |
const gchar* _tmp27_ = NULL;
|
2393 | |
GError* _tmp28_ = NULL;
|
2394 | |
_tmp27_ = key;
|
2395 | |
_tmp28_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile key name", _tmp27_);
|
2396 | |
_inner_error_ = _tmp28_;
|
|
2404 |
return _tmp22_;
|
|
2405 |
}
|
|
2406 |
_tmp23_ = profile;
|
|
2407 |
g_object_get (_tmp23_, "settings-schema", &_tmp24_, NULL);
|
|
2408 |
_tmp25_ = _tmp24_;
|
|
2409 |
_tmp26_ = _tmp25_;
|
|
2410 |
_tmp27_ = key;
|
|
2411 |
_tmp28_ = g_settings_schema_has_key (_tmp26_, _tmp27_);
|
|
2412 |
_tmp29_ = !_tmp28_;
|
|
2413 |
_g_settings_schema_unref0 (_tmp26_);
|
|
2414 |
if (_tmp29_) {
|
|
2415 |
const gchar* _tmp30_ = NULL;
|
|
2416 |
GError* _tmp31_ = NULL;
|
|
2417 |
gint _tmp32_ = 0;
|
|
2418 |
_tmp30_ = key;
|
|
2419 |
_tmp31_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile key name", _tmp30_);
|
|
2420 |
_inner_error_ = _tmp31_;
|
2397 | 2421 |
g_propagate_error (error, _inner_error_);
|
2398 | 2422 |
_g_object_unref0 (profile);
|
2399 | 2423 |
_g_object_unref0 (service);
|
2400 | 2424 |
_g_free0 (key);
|
2401 | 2425 |
_g_free0 (uuid);
|
2402 | |
return 0;
|
2403 | |
}
|
2404 | |
_tmp29_ = profile;
|
2405 | |
_tmp30_ = key;
|
2406 | |
_tmp31_ = g_settings_get_value (_tmp29_, _tmp30_);
|
2407 | |
_tmp32_ = _tmp31_;
|
2408 | |
_tmp33_ = g_variant_print (_tmp32_, TRUE);
|
2409 | |
_tmp34_ = _tmp33_;
|
2410 | |
gterminal_output_print ("%s\n", _tmp34_);
|
2411 | |
_g_free0 (_tmp34_);
|
2412 | |
_g_variant_unref0 (_tmp32_);
|
|
2426 |
return _tmp32_;
|
|
2427 |
}
|
|
2428 |
_tmp33_ = profile;
|
|
2429 |
_tmp34_ = key;
|
|
2430 |
_tmp35_ = g_settings_get_value (_tmp33_, _tmp34_);
|
|
2431 |
_tmp36_ = _tmp35_;
|
|
2432 |
_tmp37_ = g_variant_print (_tmp36_, TRUE);
|
|
2433 |
_tmp38_ = _tmp37_;
|
|
2434 |
gterminal_output_print ("%s\n", _tmp38_);
|
|
2435 |
_g_free0 (_tmp38_);
|
|
2436 |
_g_variant_unref0 (_tmp36_);
|
2413 | 2437 |
result = EXIT_SUCCESS;
|
2414 | 2438 |
_g_object_unref0 (profile);
|
2415 | 2439 |
_g_object_unref0 (service);
|
|
2424 | 2448 |
gchar** _tmp0_ = NULL;
|
2425 | 2449 |
gint _tmp0__length1 = 0;
|
2426 | 2450 |
gchar* uuid = NULL;
|
2427 | |
gchar** _tmp3_ = NULL;
|
2428 | |
gint _tmp3__length1 = 0;
|
2429 | |
const gchar* _tmp4_ = NULL;
|
2430 | |
gchar* _tmp5_ = NULL;
|
|
2451 |
gchar** _tmp4_ = NULL;
|
|
2452 |
gint _tmp4__length1 = 0;
|
|
2453 |
const gchar* _tmp5_ = NULL;
|
|
2454 |
gchar* _tmp6_ = NULL;
|
2431 | 2455 |
gchar* key = NULL;
|
2432 | |
gchar** _tmp6_ = NULL;
|
2433 | |
gint _tmp6__length1 = 0;
|
2434 | |
const gchar* _tmp7_ = NULL;
|
2435 | |
gchar* _tmp8_ = NULL;
|
|
2456 |
gchar** _tmp7_ = NULL;
|
|
2457 |
gint _tmp7__length1 = 0;
|
|
2458 |
const gchar* _tmp8_ = NULL;
|
|
2459 |
gchar* _tmp9_ = NULL;
|
2436 | 2460 |
gchar* value = NULL;
|
2437 | |
gchar** _tmp9_ = NULL;
|
2438 | |
gint _tmp9__length1 = 0;
|
2439 | |
const gchar* _tmp10_ = NULL;
|
2440 | |
gchar* _tmp11_ = NULL;
|
2441 | |
const gchar* _tmp12_ = NULL;
|
2442 | |
gboolean _tmp13_ = FALSE;
|
|
2461 |
gchar** _tmp10_ = NULL;
|
|
2462 |
gint _tmp10__length1 = 0;
|
|
2463 |
const gchar* _tmp11_ = NULL;
|
|
2464 |
gchar* _tmp12_ = NULL;
|
|
2465 |
const gchar* _tmp13_ = NULL;
|
|
2466 |
gboolean _tmp14_ = FALSE;
|
2443 | 2467 |
TerminalSettingsList* service = NULL;
|
2444 | |
TerminalSettingsList* _tmp16_ = NULL;
|
|
2468 |
TerminalSettingsList* _tmp18_ = NULL;
|
2445 | 2469 |
GSettings* profile = NULL;
|
2446 | |
TerminalSettingsList* _tmp17_ = NULL;
|
2447 | |
const gchar* _tmp18_ = NULL;
|
2448 | |
GSettings* _tmp19_ = NULL;
|
2449 | |
GSettings* _tmp20_ = NULL;
|
|
2470 |
TerminalSettingsList* _tmp19_ = NULL;
|
|
2471 |
const gchar* _tmp20_ = NULL;
|
|
2472 |
GSettings* _tmp21_ = NULL;
|
|
2473 |
GSettings* _tmp22_ = NULL;
|
2450 | 2474 |
GSettingsSchema* schema = NULL;
|
2451 | |
GSettings* _tmp23_ = NULL;
|
2452 | |
GSettingsSchema* _tmp24_ = NULL;
|
2453 | |
GSettingsSchema* _tmp25_ = NULL;
|
2454 | |
GSettingsSchema* _tmp26_ = NULL;
|
2455 | |
const gchar* _tmp27_ = NULL;
|
2456 | |
gboolean _tmp28_ = FALSE;
|
|
2475 |
GSettings* _tmp26_ = NULL;
|
|
2476 |
GSettingsSchema* _tmp27_ = NULL;
|
|
2477 |
GSettingsSchema* _tmp28_ = NULL;
|
|
2478 |
GSettingsSchema* _tmp29_ = NULL;
|
|
2479 |
const gchar* _tmp30_ = NULL;
|
|
2480 |
gboolean _tmp31_ = FALSE;
|
2457 | 2481 |
GVariant* v = NULL;
|
2458 | |
GSettingsSchema* _tmp31_ = NULL;
|
2459 | |
const gchar* _tmp32_ = NULL;
|
2460 | |
GSettingsSchemaKey* _tmp33_ = NULL;
|
2461 | |
GSettingsSchemaKey* _tmp34_ = NULL;
|
2462 | |
const GVariantType* _tmp35_ = NULL;
|
|
2482 |
GSettingsSchema* _tmp35_ = NULL;
|
2463 | 2483 |
const gchar* _tmp36_ = NULL;
|
2464 | |
GVariant* _tmp37_ = NULL;
|
2465 | |
GVariant* _tmp38_ = NULL;
|
2466 | |
GSettings* _tmp39_ = NULL;
|
|
2484 |
GSettingsSchemaKey* _tmp37_ = NULL;
|
|
2485 |
GSettingsSchemaKey* _tmp38_ = NULL;
|
|
2486 |
const GVariantType* _tmp39_ = NULL;
|
2467 | 2487 |
const gchar* _tmp40_ = NULL;
|
2468 | 2488 |
GVariant* _tmp41_ = NULL;
|
|
2489 |
GVariant* _tmp42_ = NULL;
|
|
2490 |
GSettings* _tmp44_ = NULL;
|
|
2491 |
const gchar* _tmp45_ = NULL;
|
|
2492 |
GVariant* _tmp46_ = NULL;
|
2469 | 2493 |
GError * _inner_error_ = NULL;
|
2470 | 2494 |
_tmp0_ = argv;
|
2471 | 2495 |
_tmp0__length1 = argv_length1;
|
2472 | 2496 |
if (_tmp0__length1 < 4) {
|
2473 | 2497 |
const gchar* _tmp1_ = NULL;
|
2474 | 2498 |
GError* _tmp2_ = NULL;
|
|
2499 |
gint _tmp3_ = 0;
|
2475 | 2500 |
_tmp1_ = _ ("Missing argument");
|
2476 | 2501 |
_tmp2_ = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_UNKNOWN_OPTION, _tmp1_);
|
2477 | 2502 |
_inner_error_ = _tmp2_;
|
2478 | 2503 |
g_propagate_error (error, _inner_error_);
|
2479 | |
return 0;
|
2480 | |
}
|
2481 | |
_tmp3_ = argv;
|
2482 | |
_tmp3__length1 = argv_length1;
|
2483 | |
_tmp4_ = _tmp3_[1];
|
2484 | |
_tmp5_ = g_strdup (_tmp4_);
|
2485 | |
uuid = _tmp5_;
|
2486 | |
_tmp6_ = argv;
|
2487 | |
_tmp6__length1 = argv_length1;
|
2488 | |
_tmp7_ = _tmp6_[2];
|
2489 | |
_tmp8_ = g_strdup (_tmp7_);
|
2490 | |
key = _tmp8_;
|
2491 | |
_tmp9_ = argv;
|
2492 | |
_tmp9__length1 = argv_length1;
|
2493 | |
_tmp10_ = _tmp9_[3];
|
2494 | |
_tmp11_ = g_strdup (_tmp10_);
|
2495 | |
value = _tmp11_;
|
2496 | |
_tmp12_ = uuid;
|
2497 | |
_tmp13_ = terminal_settings_list_valid_uuid (_tmp12_);
|
2498 | |
if (!_tmp13_) {
|
2499 | |
const gchar* _tmp14_ = NULL;
|
2500 | |
GError* _tmp15_ = NULL;
|
2501 | |
_tmp14_ = uuid;
|
2502 | |
_tmp15_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile UUID", _tmp14_);
|
2503 | |
_inner_error_ = _tmp15_;
|
|
2504 |
return _tmp3_;
|
|
2505 |
}
|
|
2506 |
_tmp4_ = argv;
|
|
2507 |
_tmp4__length1 = argv_length1;
|
|
2508 |
_tmp5_ = _tmp4_[1];
|
|
2509 |
_tmp6_ = g_strdup (_tmp5_);
|
|
2510 |
uuid = _tmp6_;
|
|
2511 |
_tmp7_ = argv;
|
|
2512 |
_tmp7__length1 = argv_length1;
|
|
2513 |
_tmp8_ = _tmp7_[2];
|
|
2514 |
_tmp9_ = g_strdup (_tmp8_);
|
|
2515 |
key = _tmp9_;
|
|
2516 |
_tmp10_ = argv;
|
|
2517 |
_tmp10__length1 = argv_length1;
|
|
2518 |
_tmp11_ = _tmp10_[3];
|
|
2519 |
_tmp12_ = g_strdup (_tmp11_);
|
|
2520 |
value = _tmp12_;
|
|
2521 |
_tmp13_ = uuid;
|
|
2522 |
_tmp14_ = terminal_settings_list_valid_uuid (_tmp13_);
|
|
2523 |
if (!_tmp14_) {
|
|
2524 |
const gchar* _tmp15_ = NULL;
|
|
2525 |
GError* _tmp16_ = NULL;
|
|
2526 |
gint _tmp17_ = 0;
|
|
2527 |
_tmp15_ = uuid;
|
|
2528 |
_tmp16_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile UUID", _tmp15_);
|
|
2529 |
_inner_error_ = _tmp16_;
|
2504 | 2530 |
g_propagate_error (error, _inner_error_);
|
2505 | 2531 |
_g_free0 (value);
|
2506 | 2532 |
_g_free0 (key);
|
2507 | 2533 |
_g_free0 (uuid);
|
2508 | |
return 0;
|
2509 | |
}
|
2510 | |
_tmp16_ = terminal_profiles_list_new ();
|
2511 | |
service = _tmp16_;
|
2512 | |
_tmp17_ = service;
|
2513 | |
_tmp18_ = uuid;
|
2514 | |
_tmp19_ = terminal_settings_list_ref_child (_tmp17_, _tmp18_);
|
2515 | |
profile = _tmp19_;
|
2516 | |
_tmp20_ = profile;
|
2517 | |
if (_tmp20_ == NULL) {
|
2518 | |
const gchar* _tmp21_ = NULL;
|
2519 | |
GError* _tmp22_ = NULL;
|
2520 | |
_tmp21_ = uuid;
|
2521 | |
_tmp22_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "No profile with UUID \"%s\" exists", _tmp21_);
|
2522 | |
_inner_error_ = _tmp22_;
|
|
2534 |
return _tmp17_;
|
|
2535 |
}
|
|
2536 |
_tmp18_ = terminal_profiles_list_new ();
|
|
2537 |
service = _tmp18_;
|
|
2538 |
_tmp19_ = service;
|
|
2539 |
_tmp20_ = uuid;
|
|
2540 |
_tmp21_ = terminal_settings_list_ref_child (_tmp19_, _tmp20_);
|
|
2541 |
profile = _tmp21_;
|
|
2542 |
_tmp22_ = profile;
|
|
2543 |
if (_tmp22_ == NULL) {
|
|
2544 |
const gchar* _tmp23_ = NULL;
|
|
2545 |
GError* _tmp24_ = NULL;
|
|
2546 |
gint _tmp25_ = 0;
|
|
2547 |
_tmp23_ = uuid;
|
|
2548 |
_tmp24_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "No profile with UUID \"%s\" exists", _tmp23_);
|
|
2549 |
_inner_error_ = _tmp24_;
|
2523 | 2550 |
g_propagate_error (error, _inner_error_);
|
2524 | 2551 |
_g_object_unref0 (profile);
|
2525 | 2552 |
_g_object_unref0 (service);
|
2526 | 2553 |
_g_free0 (value);
|
2527 | 2554 |
_g_free0 (key);
|
2528 | 2555 |
_g_free0 (uuid);
|
2529 | |
return 0;
|
2530 | |
}
|
2531 | |
_tmp23_ = profile;
|
2532 | |
g_object_get (_tmp23_, "settings-schema", &_tmp24_, NULL);
|
2533 | |
_tmp25_ = _tmp24_;
|
2534 | |
schema = _tmp25_;
|
2535 | |
_tmp26_ = schema;
|
2536 | |
_tmp27_ = key;
|
2537 | |
_tmp28_ = g_settings_schema_has_key (_tmp26_, _tmp27_);
|
2538 | |
if (!_tmp28_) {
|
2539 | |
const gchar* _tmp29_ = NULL;
|
2540 | |
GError* _tmp30_ = NULL;
|
2541 | |
_tmp29_ = key;
|
2542 | |
_tmp30_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile key name", _tmp29_);
|
2543 | |
_inner_error_ = _tmp30_;
|
|
2556 |
return _tmp25_;
|
|
2557 |
}
|
|
2558 |
_tmp26_ = profile;
|
|
2559 |
g_object_get (_tmp26_, "settings-schema", &_tmp27_, NULL);
|
|
2560 |
_tmp28_ = _tmp27_;
|
|
2561 |
schema = _tmp28_;
|
|
2562 |
_tmp29_ = schema;
|
|
2563 |
_tmp30_ = key;
|
|
2564 |
_tmp31_ = g_settings_schema_has_key (_tmp29_, _tmp30_);
|
|
2565 |
if (!_tmp31_) {
|
|
2566 |
const gchar* _tmp32_ = NULL;
|
|
2567 |
GError* _tmp33_ = NULL;
|
|
2568 |
gint _tmp34_ = 0;
|
|
2569 |
_tmp32_ = key;
|
|
2570 |
_tmp33_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile key name", _tmp32_);
|
|
2571 |
_inner_error_ = _tmp33_;
|
2544 | 2572 |
g_propagate_error (error, _inner_error_);
|
2545 | 2573 |
_g_settings_schema_unref0 (schema);
|
2546 | 2574 |
_g_object_unref0 (profile);
|
|
2548 | 2576 |
_g_free0 (value);
|
2549 | 2577 |
_g_free0 (key);
|
2550 | 2578 |
_g_free0 (uuid);
|
2551 | |
return 0;
|
2552 | |
}
|
2553 | |
_tmp31_ = schema;
|
2554 | |
_tmp32_ = key;
|
2555 | |
_tmp33_ = g_settings_schema_get_key (_tmp31_, _tmp32_);
|
2556 | |
_tmp34_ = _tmp33_;
|
2557 | |
_tmp35_ = g_settings_schema_key_get_value_type (_tmp34_);
|
2558 | |
_tmp36_ = value;
|
2559 | |
_tmp37_ = g_variant_parse (_tmp35_, _tmp36_, NULL, NULL, &_inner_error_);
|
|
2579 |
return _tmp34_;
|
|
2580 |
}
|
|
2581 |
_tmp35_ = schema;
|
|
2582 |
_tmp36_ = key;
|
|
2583 |
_tmp37_ = g_settings_schema_get_key (_tmp35_, _tmp36_);
|
2560 | 2584 |
_tmp38_ = _tmp37_;
|
2561 | |
_g_settings_schema_key_unref0 (_tmp34_);
|
2562 | |
v = _tmp38_;
|
|
2585 |
_tmp39_ = g_settings_schema_key_get_value_type (_tmp38_);
|
|
2586 |
_tmp40_ = value;
|
|
2587 |
_tmp41_ = g_variant_parse (_tmp39_, _tmp40_, NULL, NULL, &_inner_error_);
|
|
2588 |
_tmp42_ = _tmp41_;
|
|
2589 |
_g_settings_schema_key_unref0 (_tmp38_);
|
|
2590 |
v = _tmp42_;
|
2563 | 2591 |
if (G_UNLIKELY (_inner_error_ != NULL)) {
|
|
2592 |
gint _tmp43_ = 0;
|
2564 | 2593 |
g_propagate_error (error, _inner_error_);
|
2565 | 2594 |
_g_settings_schema_unref0 (schema);
|
2566 | 2595 |
_g_object_unref0 (profile);
|
|
2568 | 2597 |
_g_free0 (value);
|
2569 | 2598 |
_g_free0 (key);
|
2570 | 2599 |
_g_free0 (uuid);
|
2571 | |
return 0;
|
2572 | |
}
|
2573 | |
_tmp39_ = profile;
|
2574 | |
_tmp40_ = key;
|
2575 | |
_tmp41_ = v;
|
2576 | |
g_settings_set_value (_tmp39_, _tmp40_, _tmp41_);
|
|
2600 |
return _tmp43_;
|
|
2601 |
}
|
|
2602 |
_tmp44_ = profile;
|
|
2603 |
_tmp45_ = key;
|
|
2604 |
_tmp46_ = v;
|
|
2605 |
g_settings_set_value (_tmp44_, _tmp45_, _tmp46_);
|
2577 | 2606 |
g_settings_sync ();
|
2578 | 2607 |
result = EXIT_SUCCESS;
|
2579 | 2608 |
_g_variant_unref0 (v);
|
|
2652 | 2681 |
_tmp7_ = gterminal_apply_map (map, map_length1, _tmp5_ + 1, _tmp6__length1 - 1, &_inner_error_);
|
2653 | 2682 |
_tmp4_ = _tmp7_;
|
2654 | 2683 |
if (G_UNLIKELY (_inner_error_ != NULL)) {
|
|
2684 |
gint _tmp8_ = 0;
|
2655 | 2685 |
g_propagate_error (error, _inner_error_);
|
2656 | 2686 |
map = (_vala_GTerminalVerb_array_free (map, map_length1), NULL);
|
2657 | |
return 0;
|
|
2687 |
return _tmp8_;
|
2658 | 2688 |
}
|
2659 | 2689 |
result = _tmp4_;
|
2660 | 2690 |
map = (_vala_GTerminalVerb_array_free (map, map_length1), NULL);
|
|
2786 | 2816 |
gchar** _tmp0_ = NULL;
|
2787 | 2817 |
gint _tmp0__length1 = 0;
|
2788 | 2818 |
gchar* uuid = NULL;
|
2789 | |
gchar** _tmp3_ = NULL;
|
2790 | |
gint _tmp3__length1 = 0;
|
2791 | |
const gchar* _tmp4_ = NULL;
|
2792 | |
gchar* _tmp5_ = NULL;
|
2793 | |
const gchar* _tmp6_ = NULL;
|
2794 | |
gboolean _tmp7_ = FALSE;
|
|
2819 |
gchar** _tmp4_ = NULL;
|
|
2820 |
gint _tmp4__length1 = 0;
|
|
2821 |
const gchar* _tmp5_ = NULL;
|
|
2822 |
gchar* _tmp6_ = NULL;
|
|
2823 |
const gchar* _tmp7_ = NULL;
|
|
2824 |
gboolean _tmp8_ = FALSE;
|
2795 | 2825 |
TerminalSettingsList* service = NULL;
|
2796 | |
TerminalSettingsList* _tmp10_ = NULL;
|
2797 | |
TerminalSettingsList* _tmp11_ = NULL;
|
2798 | |
const gchar* _tmp12_ = NULL;
|
|
2826 |
TerminalSettingsList* _tmp12_ = NULL;
|
|
2827 |
TerminalSettingsList* _tmp13_ = NULL;
|
|
2828 |
const gchar* _tmp14_ = NULL;
|
2799 | 2829 |
GError * _inner_error_ = NULL;
|
2800 | 2830 |
_tmp0_ = argv;
|
2801 | 2831 |
_tmp0__length1 = argv_length1;
|
2802 | 2832 |
if (_tmp0__length1 < 2) {
|
2803 | 2833 |
const gchar* _tmp1_ = NULL;
|
2804 | 2834 |
GError* _tmp2_ = NULL;
|
|
2835 |
gint _tmp3_ = 0;
|
2805 | 2836 |
_tmp1_ = _ ("Missing argument");
|
2806 | 2837 |
_tmp2_ = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_UNKNOWN_OPTION, _tmp1_);
|
2807 | 2838 |
_inner_error_ = _tmp2_;
|
2808 | 2839 |
g_propagate_error (error, _inner_error_);
|
2809 | |
return 0;
|
2810 | |
}
|
2811 | |
_tmp3_ = argv;
|
2812 | |
_tmp3__length1 = argv_length1;
|
2813 | |
_tmp4_ = _tmp3_[1];
|
2814 | |
_tmp5_ = g_strdup (_tmp4_);
|
2815 | |
uuid = _tmp5_;
|
2816 | |
_tmp6_ = uuid;
|
2817 | |
_tmp7_ = terminal_settings_list_valid_uuid (_tmp6_);
|
2818 | |
if (!_tmp7_) {
|
2819 | |
const gchar* _tmp8_ = NULL;
|
2820 | |
GError* _tmp9_ = NULL;
|
2821 | |
_tmp8_ = uuid;
|
2822 | |
_tmp9_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile UUID", _tmp8_);
|
2823 | |
_inner_error_ = _tmp9_;
|
|
2840 |
return _tmp3_;
|
|
2841 |
}
|
|
2842 |
_tmp4_ = argv;
|
|
2843 |
_tmp4__length1 = argv_length1;
|
|
2844 |
_tmp5_ = _tmp4_[1];
|
|
2845 |
_tmp6_ = g_strdup (_tmp5_);
|
|
2846 |
uuid = _tmp6_;
|
|
2847 |
_tmp7_ = uuid;
|
|
2848 |
_tmp8_ = terminal_settings_list_valid_uuid (_tmp7_);
|
|
2849 |
if (!_tmp8_) {
|
|
2850 |
const gchar* _tmp9_ = NULL;
|
|
2851 |
GError* _tmp10_ = NULL;
|
|
2852 |
gint _tmp11_ = 0;
|
|
2853 |
_tmp9_ = uuid;
|
|
2854 |
_tmp10_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile UUID", _tmp9_);
|
|
2855 |
_inner_error_ = _tmp10_;
|
2824 | 2856 |
g_propagate_error (error, _inner_error_);
|
2825 | 2857 |
_g_free0 (uuid);
|
2826 | |
return 0;
|
2827 | |
}
|
2828 | |
_tmp10_ = terminal_profiles_list_new ();
|
2829 | |
service = _tmp10_;
|
2830 | |
_tmp11_ = service;
|
2831 | |
_tmp12_ = uuid;
|
2832 | |
terminal_settings_list_set_default_child (_tmp11_, _tmp12_);
|
|
2858 |
return _tmp11_;
|
|
2859 |
}
|
|
2860 |
_tmp12_ = terminal_profiles_list_new ();
|
|
2861 |
service = _tmp12_;
|
|
2862 |
_tmp13_ = service;
|
|
2863 |
_tmp14_ = uuid;
|
|
2864 |
terminal_settings_list_set_default_child (_tmp13_, _tmp14_);
|
2833 | 2865 |
g_settings_sync ();
|
2834 | 2866 |
result = EXIT_SUCCESS;
|
2835 | 2867 |
_g_object_unref0 (service);
|
|
2846 | 2878 |
TerminalSettingsList* _tmp1_ = NULL;
|
2847 | 2879 |
gchar* _tmp2_ = NULL;
|
2848 | 2880 |
const gchar* _tmp3_ = NULL;
|
2849 | |
const gchar* _tmp5_ = NULL;
|
|
2881 |
const gchar* _tmp6_ = NULL;
|
2850 | 2882 |
GError * _inner_error_ = NULL;
|
2851 | 2883 |
_tmp0_ = terminal_profiles_list_new ();
|
2852 | 2884 |
service = _tmp0_;
|
|
2856 | 2888 |
_tmp3_ = new_uuid;
|
2857 | 2889 |
if (_tmp3_ == NULL) {
|
2858 | 2890 |
GError* _tmp4_ = NULL;
|
|
2891 |
gint _tmp5_ = 0;
|
2859 | 2892 |
_tmp4_ = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_FAILED, "Failed to create new profile");
|
2860 | 2893 |
_inner_error_ = _tmp4_;
|
2861 | 2894 |
g_propagate_error (error, _inner_error_);
|
2862 | 2895 |
_g_free0 (new_uuid);
|
2863 | 2896 |
_g_object_unref0 (service);
|
2864 | |
return 0;
|
2865 | |
}
|
2866 | |
_tmp5_ = new_uuid;
|
2867 | |
gterminal_output_print ("%s\n", _tmp5_);
|
|
2897 |
return _tmp5_;
|
|
2898 |
}
|
|
2899 |
_tmp6_ = new_uuid;
|
|
2900 |
gterminal_output_print ("%s\n", _tmp6_);
|
2868 | 2901 |
g_settings_sync ();
|
2869 | 2902 |
result = EXIT_SUCCESS;
|
2870 | 2903 |
_g_free0 (new_uuid);
|
|
2878 | 2911 |
gchar** _tmp0_ = NULL;
|
2879 | 2912 |
gint _tmp0__length1 = 0;
|
2880 | 2913 |
gchar* uuid = NULL;
|
2881 | |
gchar** _tmp3_ = NULL;
|
2882 | |
gint _tmp3__length1 = 0;
|
2883 | |
const gchar* _tmp4_ = NULL;
|
2884 | |
gchar* _tmp5_ = NULL;
|
2885 | |
const gchar* _tmp6_ = NULL;
|
2886 | |
gboolean _tmp7_ = FALSE;
|
|
2914 |
gchar** _tmp4_ = NULL;
|
|
2915 |
gint _tmp4__length1 = 0;
|
|
2916 |
const gchar* _tmp5_ = NULL;
|
|
2917 |
gchar* _tmp6_ = NULL;
|
|
2918 |
const gchar* _tmp7_ = NULL;
|
|
2919 |
gboolean _tmp8_ = FALSE;
|
2887 | 2920 |
TerminalSettingsList* service = NULL;
|
2888 | |
TerminalSettingsList* _tmp10_ = NULL;
|
2889 | |
TerminalSettingsList* _tmp11_ = NULL;
|
2890 | |
const gchar* _tmp12_ = NULL;
|
2891 | |
gboolean _tmp13_ = FALSE;
|
|
2921 |
TerminalSettingsList* _tmp12_ = NULL;
|
|
2922 |
TerminalSettingsList* _tmp13_ = NULL;
|
|
2923 |
const gchar* _tmp14_ = NULL;
|
|
2924 |
gboolean _tmp15_ = FALSE;
|
2892 | 2925 |
gchar* new_uuid = NULL;
|
2893 | |
TerminalSettingsList* _tmp16_ = NULL;
|
2894 | |
const gchar* _tmp17_ = NULL;
|
2895 | |
gchar* _tmp18_ = NULL;
|
2896 | |
const gchar* _tmp19_ = NULL;
|
|
2926 |
TerminalSettingsList* _tmp19_ = NULL;
|
|
2927 |
const gchar* _tmp20_ = NULL;
|
|
2928 |
gchar* _tmp21_ = NULL;
|
2897 | 2929 |
const gchar* _tmp22_ = NULL;
|
|
2930 |
const gchar* _tmp26_ = NULL;
|
2898 | 2931 |
GError * _inner_error_ = NULL;
|
2899 | 2932 |
_tmp0_ = argv;
|
2900 | 2933 |
_tmp0__length1 = argv_length1;
|
2901 | 2934 |
if (_tmp0__length1 < 2) {
|
2902 | 2935 |
const gchar* _tmp1_ = NULL;
|
2903 | 2936 |
GError* _tmp2_ = NULL;
|
|
2937 |
gint _tmp3_ = 0;
|
2904 | 2938 |
_tmp1_ = _ ("Missing argument");
|
2905 | 2939 |
_tmp2_ = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_UNKNOWN_OPTION, _tmp1_);
|
2906 | 2940 |
_inner_error_ = _tmp2_;
|
2907 | 2941 |
g_propagate_error (error, _inner_error_);
|
2908 | |
return 0;
|
2909 | |
}
|
2910 | |
_tmp3_ = argv;
|
2911 | |
_tmp3__length1 = argv_length1;
|
2912 | |
_tmp4_ = _tmp3_[1];
|
2913 | |
_tmp5_ = g_strdup (_tmp4_);
|
2914 | |
uuid = _tmp5_;
|
2915 | |
_tmp6_ = uuid;
|
2916 | |
_tmp7_ = terminal_settings_list_valid_uuid (_tmp6_);
|
2917 | |
if (!_tmp7_) {
|
2918 | |
const gchar* _tmp8_ = NULL;
|
2919 | |
GError* _tmp9_ = NULL;
|
2920 | |
_tmp8_ = uuid;
|
2921 | |
_tmp9_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile UUID", _tmp8_);
|
2922 | |
_inner_error_ = _tmp9_;
|
|
2942 |
return _tmp3_;
|
|
2943 |
}
|
|
2944 |
_tmp4_ = argv;
|
|
2945 |
_tmp4__length1 = argv_length1;
|
|
2946 |
_tmp5_ = _tmp4_[1];
|
|
2947 |
_tmp6_ = g_strdup (_tmp5_);
|
|
2948 |
uuid = _tmp6_;
|
|
2949 |
_tmp7_ = uuid;
|
|
2950 |
_tmp8_ = terminal_settings_list_valid_uuid (_tmp7_);
|
|
2951 |
if (!_tmp8_) {
|
|
2952 |
const gchar* _tmp9_ = NULL;
|
|
2953 |
GError* _tmp10_ = NULL;
|
|
2954 |
gint _tmp11_ = 0;
|
|
2955 |
_tmp9_ = uuid;
|
|
2956 |
_tmp10_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile UUID", _tmp9_);
|
|
2957 |
_inner_error_ = _tmp10_;
|
2923 | 2958 |
g_propagate_error (error, _inner_error_);
|
2924 | 2959 |
_g_free0 (uuid);
|
2925 | |
return 0;
|
2926 | |
}
|
2927 | |
_tmp10_ = terminal_profiles_list_new ();
|
2928 | |
service = _tmp10_;
|
2929 | |
_tmp11_ = service;
|
2930 | |
_tmp12_ = uuid;
|
2931 | |
_tmp13_ = terminal_settings_list_has_child (_tmp11_, _tmp12_);
|
2932 | |
if (!_tmp13_) {
|
2933 | |
const gchar* _tmp14_ = NULL;
|
2934 | |
GError* _tmp15_ = NULL;
|
2935 | |
_tmp14_ = uuid;
|
2936 | |
_tmp15_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "No profile with UUID \"%s\" exists", _tmp14_);
|
2937 | |
_inner_error_ = _tmp15_;
|
|
2960 |
return _tmp11_;
|
|
2961 |
}
|
|
2962 |
_tmp12_ = terminal_profiles_list_new ();
|
|
2963 |
service = _tmp12_;
|
|
2964 |
_tmp13_ = service;
|
|
2965 |
_tmp14_ = uuid;
|
|
2966 |
_tmp15_ = terminal_settings_list_has_child (_tmp13_, _tmp14_);
|
|
2967 |
if (!_tmp15_) {
|
|
2968 |
const gchar* _tmp16_ = NULL;
|
|
2969 |
GError* _tmp17_ = NULL;
|
|
2970 |
gint _tmp18_ = 0;
|
|
2971 |
_tmp16_ = uuid;
|
|
2972 |
_tmp17_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "No profile with UUID \"%s\" exists", _tmp16_);
|
|
2973 |
_inner_error_ = _tmp17_;
|
2938 | 2974 |
g_propagate_error (error, _inner_error_);
|
2939 | 2975 |
_g_object_unref0 (service);
|
2940 | 2976 |
_g_free0 (uuid);
|
2941 | |
return 0;
|
2942 | |
}
|
2943 | |
_tmp16_ = service;
|
2944 | |
_tmp17_ = uuid;
|
2945 | |
_tmp18_ = terminal_settings_list_clone_child (_tmp16_, _tmp17_);
|
2946 | |
new_uuid = _tmp18_;
|
2947 | |
_tmp19_ = new_uuid;
|
2948 | |
if (_tmp19_ == NULL) {
|
2949 | |
const gchar* _tmp20_ = NULL;
|
2950 | |
GError* _tmp21_ = NULL;
|
2951 | |
_tmp20_ = uuid;
|
2952 | |
_tmp21_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_FAILED, "Failed to clone profile \"%s\"", _tmp20_);
|
2953 | |
_inner_error_ = _tmp21_;
|
|
2977 |
return _tmp18_;
|
|
2978 |
}
|
|
2979 |
_tmp19_ = service;
|
|
2980 |
_tmp20_ = uuid;
|
|
2981 |
_tmp21_ = terminal_settings_list_clone_child (_tmp19_, _tmp20_);
|
|
2982 |
new_uuid = _tmp21_;
|
|
2983 |
_tmp22_ = new_uuid;
|
|
2984 |
if (_tmp22_ == NULL) {
|
|
2985 |
const gchar* _tmp23_ = NULL;
|
|
2986 |
GError* _tmp24_ = NULL;
|
|
2987 |
gint _tmp25_ = 0;
|
|
2988 |
_tmp23_ = uuid;
|
|
2989 |
_tmp24_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_FAILED, "Failed to clone profile \"%s\"", _tmp23_);
|
|
2990 |
_inner_error_ = _tmp24_;
|
2954 | 2991 |
g_propagate_error (error, _inner_error_);
|
2955 | 2992 |
_g_free0 (new_uuid);
|
2956 | 2993 |
_g_object_unref0 (service);
|
2957 | 2994 |
_g_free0 (uuid);
|
2958 | |
return 0;
|
2959 | |
}
|
2960 | |
_tmp22_ = new_uuid;
|
2961 | |
gterminal_output_print ("%s\n", _tmp22_);
|
|
2995 |
return _tmp25_;
|
|
2996 |
}
|
|
2997 |
_tmp26_ = new_uuid;
|
|
2998 |
gterminal_output_print ("%s\n", _tmp26_);
|
2962 | 2999 |
g_settings_sync ();
|
2963 | 3000 |
result = EXIT_SUCCESS;
|
2964 | 3001 |
_g_free0 (new_uuid);
|
|
2973 | 3010 |
gchar** _tmp0_ = NULL;
|
2974 | 3011 |
gint _tmp0__length1 = 0;
|
2975 | 3012 |
gchar* uuid = NULL;
|
2976 | |
gchar** _tmp3_ = NULL;
|
2977 | |
gint _tmp3__length1 = 0;
|
2978 | |
const gchar* _tmp4_ = NULL;
|
2979 | |
gchar* _tmp5_ = NULL;
|
2980 | |
const gchar* _tmp6_ = NULL;
|
2981 | |
gboolean _tmp7_ = FALSE;
|
|
3013 |
gchar** _tmp4_ = NULL;
|
|
3014 |
gint _tmp4__length1 = 0;
|
|
3015 |
const gchar* _tmp5_ = NULL;
|
|
3016 |
gchar* _tmp6_ = NULL;
|
|
3017 |
const gchar* _tmp7_ = NULL;
|
|
3018 |
gboolean _tmp8_ = FALSE;
|
2982 | 3019 |
TerminalSettingsList* service = NULL;
|
2983 | |
TerminalSettingsList* _tmp10_ = NULL;
|
2984 | |
const gchar* _tmp11_ = NULL;
|
2985 | |
gboolean _tmp12_ = FALSE;
|
2986 | |
const gchar* _tmp15_ = NULL;
|
|
3020 |
TerminalSettingsList* _tmp12_ = NULL;
|
|
3021 |
const gchar* _tmp13_ = NULL;
|
|
3022 |
gboolean _tmp14_ = FALSE;
|
|
3023 |
const gchar* _tmp18_ = NULL;
|
2987 | 3024 |
GError * _inner_error_ = NULL;
|
2988 | 3025 |
_tmp0_ = argv;
|
2989 | 3026 |
_tmp0__length1 = argv_length1;
|
2990 | 3027 |
if (_tmp0__length1 < 2) {
|
2991 | 3028 |
const gchar* _tmp1_ = NULL;
|
2992 | 3029 |
GError* _tmp2_ = NULL;
|
|
3030 |
gint _tmp3_ = 0;
|
2993 | 3031 |
_tmp1_ = _ ("Missing argument");
|
2994 | 3032 |
_tmp2_ = g_error_new_literal (G_OPTION_ERROR, G_OPTION_ERROR_UNKNOWN_OPTION, _tmp1_);
|
2995 | 3033 |
_inner_error_ = _tmp2_;
|
2996 | 3034 |
g_propagate_error (error, _inner_error_);
|
2997 | |
return 0;
|
2998 | |
}
|
2999 | |
_tmp3_ = argv;
|
3000 | |
_tmp3__length1 = argv_length1;
|
3001 | |
_tmp4_ = _tmp3_[1];
|
3002 | |
_tmp5_ = g_strdup (_tmp4_);
|
3003 | |
uuid = _tmp5_;
|
3004 | |
_tmp6_ = uuid;
|
3005 | |
_tmp7_ = terminal_settings_list_valid_uuid (_tmp6_);
|
3006 | |
if (!_tmp7_) {
|
3007 | |
const gchar* _tmp8_ = NULL;
|
3008 | |
GError* _tmp9_ = NULL;
|
3009 | |
_tmp8_ = uuid;
|
3010 | |
_tmp9_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile UUID", _tmp8_);
|
3011 | |
_inner_error_ = _tmp9_;
|
|
3035 |
return _tmp3_;
|
|
3036 |
}
|
|
3037 |
_tmp4_ = argv;
|
|
3038 |
_tmp4__length1 = argv_length1;
|
|
3039 |
_tmp5_ = _tmp4_[1];
|
|
3040 |
_tmp6_ = g_strdup (_tmp5_);
|
|
3041 |
uuid = _tmp6_;
|
|
3042 |
_tmp7_ = uuid;
|
|
3043 |
_tmp8_ = terminal_settings_list_valid_uuid (_tmp7_);
|
|
3044 |
if (!_tmp8_) {
|
|
3045 |
const gchar* _tmp9_ = NULL;
|
|
3046 |
GError* _tmp10_ = NULL;
|
|
3047 |
gint _tmp11_ = 0;
|
|
3048 |
_tmp9_ = uuid;
|
|
3049 |
_tmp10_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "\"%s\" is not a valid profile UUID", _tmp9_);
|
|
3050 |
_inner_error_ = _tmp10_;
|
3012 | 3051 |
g_propagate_error (error, _inner_error_);
|
3013 | 3052 |
_g_free0 (uuid);
|
3014 | |
return 0;
|
3015 | |
}
|
3016 | |
_tmp10_ = terminal_profiles_list_new ();
|
3017 | |
service = _tmp10_;
|
3018 | |
_tmp11_ = uuid;
|
3019 | |
_tmp12_ = terminal_settings_list_has_child (service, _tmp11_);
|
3020 | |
if (!_tmp12_) {
|
3021 | |
const gchar* _tmp13_ = NULL;
|
3022 | |
GError* _tmp14_ = NULL;
|
3023 | |
_tmp13_ = uuid;
|
3024 | |
_tmp14_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "No profile with UUID \"%s\" exists", _tmp13_);
|
3025 | |
_inner_error_ = _tmp14_;
|
|
3053 |
return _tmp11_;
|
|
3054 |
}
|
|
3055 |
_tmp12_ = terminal_profiles_list_new ();
|
|
3056 |
service = _tmp12_;
|
|
3057 |
_tmp13_ = uuid;
|
|
3058 |
_tmp14_ = terminal_settings_list_has_child (service, _tmp13_);
|
|
3059 |
if (!_tmp14_) {
|
|
3060 |
const gchar* _tmp15_ = NULL;
|
|
3061 |
GError* _tmp16_ = NULL;
|
|
3062 |
gint _tmp17_ = 0;
|
|
3063 |
_tmp15_ = uuid;
|
|
3064 |
_tmp16_ = g_error_new (G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, "No profile with UUID \"%s\" exists", _tmp15_);
|
|
3065 |
_inner_error_ = _tmp16_;
|
3026 | 3066 |
g_propagate_error (error, _inner_error_);
|
3027 | 3067 |
_g_object_unref0 (service);
|
3028 | 3068 |
_g_free0 (uuid);
|
3029 | |
return 0;
|
3030 | |
}
|
3031 | |
_tmp15_ = uuid;
|
3032 | |
terminal_settings_list_remove_child (service, _tmp15_);
|
|
3069 |
return _tmp17_;
|
|
3070 |
}
|
|
3071 |
_tmp18_ = uuid;
|
|
3072 |
terminal_settings_list_remove_child (service, _tmp18_);
|
3033 | 3073 |
g_settings_sync ();
|
3034 | 3074 |
result = EXIT_SUCCESS;
|
3035 | 3075 |
_g_object_unref0 (service);
|
|
3122 | 3162 |
_tmp10_ = gterminal_apply_map (map, map_length1, _tmp8_ + 1, _tmp9__length1 - 1, &_inner_error_);
|
3123 | 3163 |
_tmp7_ = _tmp10_;
|
3124 | 3164 |
if (G_UNLIKELY (_inner_error_ != NULL)) {
|
|
3165 |
gint _tmp11_ = 0;
|
3125 | 3166 |
g_propagate_error (error, _inner_error_);
|
3126 | 3167 |
map = (_vala_GTerminalVerb_array_free (map, map_length1), NULL);
|
3127 | |
return 0;
|
|
3168 |
return _tmp11_;
|
3128 | 3169 |
}
|
3129 | 3170 |
result = _tmp7_;
|
3130 | 3171 |
map = (_vala_GTerminalVerb_array_free (map, map_length1), NULL);
|
|
3236 | 3277 |
}
|
3237 | 3278 |
__finally0:
|
3238 | 3279 |
if (G_UNLIKELY (_inner_error_ != NULL)) {
|
|
3280 |
gint _tmp15_ = 0;
|
3239 | 3281 |
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
|
3240 | 3282 |
g_clear_error (&_inner_error_);
|
3241 | |
return 0;
|
|
3283 |
return _tmp15_;
|
3242 | 3284 |
}
|
3243 | 3285 |
result = status;
|
3244 | 3286 |
return result;
|