Mailinglist Archive: yast-devel (42 mails)

< Previous Next >
Re: [yast-devel] apparmor: Texteditor
Dne 3.4.2017 v 16:25 Josef Reidinger napsal(a):
On Mon, 3 Apr 2017 09:13:27 -0500 Goldwyn Rodrigues <rgoldwyn@xxxxxxx> wrote:
While hacking on yast-apparmor to remove perl library dependency, we
on apparmor mailing list that we cannot have all possible options and the
information in yast to facilitate modification of configuration files. So, a
dumb text editor would be the best option to configuration. After the user
modifies the file, it would checked by apparmor_parser for validity.

However, I could not find any options in Yast which would provide a text
or I din't look in the right places.

There is no full text editor in YaST. But as a workaround you could use the
MultiLineEdit widget [1]. It's a simple text field but allows editing multi line
text. In GUI you can use at least the basic shortcuts like Ctrl+C and Ctrl+V.
Another advantage is that is works also in the text mode and does not need any
external tools.

In the past we used this trick in the bootloader module, you could display the
proposed configuration and manually edit it. Then it was read and parsed back.
way you could set the options which were otherwise not available in the UI.

However I'd avoid this approach, see below.

In general I think yast goal is to allows non-expert to do common
so support options that majority of users find useful. Of course, it is not
to judge what is still common and what is expert only, but we should keep
sense. For example enabling debugging is probably not something common user
another example is OWLSM enablement can be there with proper info that it can
break setup.

I fully agree with that. The goal should not be covering 100% of the
available options and configuration possibilities in YaST.

That leads to overly complex UI which is hard to use by non-experts.
On the other hand experts would probably use a terminal and their favorite
avoiding YaST completely.

Focus on the common cases, make them easy and understandable. For complex or
cases point users to the documentation and manual tools.

The only important thing for YaST is to keep the manual changes, or at least
users when they will be overwritten if keeping them would be too complex or




Ladislav Slezák
YaST Developer

SUSE LINUX, s.r.o.
Corso IIa
Křižíkova 148/34
18600 Praha 8
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups