usr/local/lib/secpanel/termdefs.txt:set termtype(GNOME-Terminal_path) "gnome-terminal"
stage/usr/local/share/secpanel/termdefs.txt:set termtype(GNOME-Terminal_path) "gnome-terminal"
will fail in a mate-only installation where gnome-terminal is not installed (eg; no terminal window opens up and the requested action fails)
a) add make code to the Makefile to force a choice of "gnome-terminal", "mate-terminal", or soemthing else (eg; xterm ?)
b) mate system user creates a link between "mate-terminal" and "gnome-terminal" in the path above; this would imply a friendly suggestion in the port "pkg-descr" file
c) mate system user installs "gnome-terminal" and everything thing is "hunkey-dorey"; this probably won't cause any undesirable side affect of installing more of Gnome as all of the gnome-terminal requisites also can be found in the "mate" environment
Hmm - spoke too soon about installing gnome-terminal not requiring more non-mate programs. Looking further down the gnome-terminal Makefile I now see:
and mention of nautilus.
Suggestions a) and b) offered earlier would seem to be better so as to not "contaminate" a mate-only installation with more "gnome" applications.
Hmmm - can't find the reference to "stage/usr/local....." so just the usr/ports/security/secpanel/work/usr/local...." reference is relevant (as it is a subdirectory of "secpanel/work").
One could also apply a 'diff -c' patch to the installed "/usr/local/share/secpanel/termdefs.txt" file, but this is then a user function rather than a port Makefile option.
(In reply to Jim D. from comment #1)
I don't really understand what happens.
Does gnome-terminal not install or not start?
Post the exact error-message.
It is not a problem of gnome-terminal failing to be installed.
The issue is that secpanel's default configuration specifically uses "gnome-terminal" as its runtime option. I do not have the Gnome desktop installed - I have the Mate desktop installed. Hence - "gnome-terminal" is not installed. This makes secpanel unusable as it attempts to invoke "gnome-terminal" which doesn't exist.
By changing the secpanel default terminal definition to "mate-terminal", I can now get the full secpanel functionality without the Gnome desktop.
The suggestions offered were to modify the Makefile to provide a port installer the option of which terminal application to define for secpanel to use.
Created attachment 206687 [details]
You mean something like that?
Created attachment 206688 [details]
Was a typo in.
Created attachment 206689 [details]
Yes - v3 looks good and provides for either/both gnome-terminal and mate-terminal.
Will that also change the 'work/usr/local/lib/secpanel/termdefs.txt:set termtype(GNOME-Terminal_path) "gnome-terminal"' definition? For Mate it's just replacing "gnome-terminal" with "mate-terminal".
Of course, one could be more explicit and also replace "GNOME-Terminal_path" but that would probably force other changes. It is the later part that is important as it is the system command that gets executed.
I don't know if adding xterm would be useful or not.
Created attachment 206726 [details]
You have to test by yourself. Secpanel does not start on my system.
Patches are good.
Looking at results...
Am in the middle of massive local ports updates and numereous issues.
Will get back to you when able to.
Have found some things in the runtime script to look at.
Now that I have TK and TCL reinstalled, there is one change needed in file patch (case change):
set termtype(Mate-Terminal_...).. => set termtype(MATE-Terminal_...) ..
Application works with patches and local modifications.
Still need to do more testing from application removal to application installation as there seems to be some differences in the "config" file that gets created versus what I had after making simple "Gnome" => "Mate" change in the "<home>.secpanel/config" file. By default, the inital "config" file has only 2 lines whereas my "in-use config" file has 20 lines.
FWIW - I also modified the 'set termtype(MATE...path) "mate-terminal"' to include a geometry paramater " --geometry=97x26". Don't know of an easy way to provide another Makefile option to select a "default terminal window size". May be able to specify a mate-terminal profile as defined by user (profile/General "Use custom default terminal size") using the mate-terminal "--profile=" parameter rather than raw geometry parameter.
P.S. I use this application A LOT and it is VERY HANDY. I only have 15 entries ("secpanel profiles") but it saves me a lot of work opening up multiple, concurent, SSH sessions which I use just about every day for my own PHP/Apache development).
Created attachment 206813 [details]
Change set termtype math-terminal to MATE-terminal.
Created attachment 206821 [details]
v5 was the wrong change.