[apparmor] Factorize Qt and GTK themes abstractions?

John Johansen john.johansen at canonical.com
Thu Aug 23 00:23:01 UTC 2012


On 08/22/2012 12:48 PM, intrigeri wrote:
> Hi,
> 
> it was reported as Debian bug #682431 [0] that the AppArmor profile
> we've been shipping for Vidalia is incomplete: given a system with Qt
> configured to use the GTK theme, which is the Debian Wheezy default,
> Vidalia (a Qt application) needs to read files such as
> /usr/share/themes/*/gtk-2.0/gtkrc and various ~/.gtk* and friends that
> are listed in the gnome abstraction.
> 
> On the short term, I could copy these lines from the gnome abstraction
> into the Vidalia profile, but for obvious reasons I'd hate doing this
> without having better mid-term plans.
> 
> So, I think the lines about themes and gtkrc should be extracted from
> the gnome abstraction into another abstraction ("gtk"?), that can be
> sourced by:
> 
>   * the existing "gnome" abstraction
>   * a new "qt" abstraction (to be used by the kde abstraction, as well
>     as by non-KDE Qt applications)
> 
> Thoughts?
> 
While I haven't looked at it, in any great detail generally I agree
that refactorying of the abstractions is needed and this seems like a
reasonable change.
 
> If the above makes sense, and given there are tools to do the contrary
> (GTK applications using the configured Qt theme), I guess Qt theme
> configuration -related lines shall be somehow extracted from the kde
> abstraction as well.
> 
that would make sense to me as well

>  [0] http://bugs.debian.org/682431
> 
thanks





More information about the AppArmor mailing list