Interaction: firewall-applet's icon & firewalld

poma pomidorabelisima at gmail.com
Sun May 3 17:18:55 UTC 2015


On 03.05.2015 09:56, poma wrote:
> 
> In Fedora 22 and Rawhide, when the firewalld.service stops i.e. is not running, firewall-applet's icon in systray just disappears i.e. it does not appear.
> This feature or bug is rather confusing - this way you do not know whether the icon broken, or what.
> 
> 
> In Fedora 21, when the firewalld.service is not running, there is a status tooltip,
> as part of firewall-applet's icon in systray:
> https://github.com/t-woerner/firewalld/blob/master/src/firewall-applet#L949
>                 _("No connection to firewall daemon") + "</span>"
> 
> with initially "flashing" icon, 
> https://github.com/t-woerner/firewalld/blob/master/src/icons/32x32/apps/firewall-applet-error.png
> 
> This way how it works in Fedora 21 is how it should be.
> 

Correction of inaccurate statement


man 1 firewall-applet

GSETTINGS
       firewall-applet has additional settings to adapt the look and feel. The
       used backend depends on the distribution and can be either dconf or
       GConf. The path to the settings is org.fedoraproject.FirewallApplet.
       You can use dconf-editor or gconf-editor to see and modify them.

       The following settings are supported:

       ...
       show-inactive
           Show applet also if firewalld is not running. If firewalld has been
           stopped or is not running the applet will be hidden and not visible
           in the applet tray. Enable this setting to see the applet all the
           time for example to be sure that the firewall is active.

           This setting defaults to false.

       ...
       blink
           If enabled, the applet icon blinks in these cases:

           ·   Connection to firewalld lost

           ·   Panic mode has been enabled or disabled

           This setting defaults to false.

       ...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

rpm -ql firewall-applet | grep org.fedoraproject.FirewallApplet.gschema.xml
/usr/share/glib-2.0/schemas/org.fedoraproject.FirewallApplet.gschema.xml

~~~
/usr/share/glib-2.0/schemas/org.fedoraproject.FirewallApplet.gschema.xml:
...
<schemalist>
  <schema path="/org/fedoraproject/FirewallApplet/" id="org.fedoraproject.FirewallApplet">
    ...
    <key type="b" name="blink">
      <default>false</default>
      <summary>Applet icon blinks if true blink-count times</summary>
    </key>
    ...
    <key type="b" name="show-inactive">
      <default>false</default>
      <summary>Show applet also if firewalld is not running</summary>
    </key>
  </schema>
</schemalist>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

dconf dump /org/fedoraproject/FirewallApplet/
dconf write /org/fedoraproject/FirewallApplet/show-inactive true
dconf write /org/fedoraproject/FirewallApplet/blink true
dconf dump /org/fedoraproject/FirewallApplet/
[/]
show-inactive=true
blink=true

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Let it be "true", these two settings exposed via GSettings:
"Show applet also if firewalld is not running" i.e. "show-inactive"
&
"Applet icon blinks" i.e. "blink"

In this way, it is more clear what is happening.

Moreover, it is worthwhile to implement them as is "Applet shows notifications"
i.e. "notifications",
so they can be enabled also in the applet with the checkbox in the right mouse menu.

---
 config/org.fedoraproject.FirewallApplet.gschema.xml.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/org.fedoraproject.FirewallApplet.gschema.xml.in b/config/org.fedoraproject.FirewallApplet.gschema.xml.in
index fadf0ca..9695160 100644
--- a/config/org.fedoraproject.FirewallApplet.gschema.xml.in
+++ b/config/org.fedoraproject.FirewallApplet.gschema.xml.in
@@ -14,7 +14,7 @@
       <summary>Shields-down zone</summary>
     </key>
     <key type="b" name="blink">
-      <default>false</default>
+      <default>true</default>
       <summary>Applet icon blinks if true blink-count times</summary>
     </key>
     <key type="i" name="blink-count">
@@ -22,7 +22,7 @@
       <summary>Applet icon blink count</summary>
     </key>
     <key type="b" name="show-inactive">
-      <default>false</default>
+      <default>true</default>
       <summary>Show applet also if firewalld is not running</summary>
     </key>
   </schema>
-- 
2.1.0




More information about the test mailing list