Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-10-14 16:16:18

N00body
Member
Registered: 2021-11-23
Posts: 31

[SOLVED] XFCE Whisker does not recognize icons set in .directory files

I am on XFCE Arch Linux and on Whiskers menu I want to add two custom menu with subentries. I imported two custom menus from Kali Linux (as .menu files) but the icons specified for the subentries are not applied.

The .menu file that call the two custom menus, Red Team and Blue Team, is "/etc/xdg/menus/xfce-applications.menu":

<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
  "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">

<Menu>
    <Name>Xfce</Name>

    <DefaultAppDirs/>
    <DefaultDirectoryDirs/>

    <Include>
        <Category>X-Xfce-Toplevel</Category>
    </Include>

    <Layout>
        <Filename>xfce4-run.desktop</Filename>
        <Separator/>
        <Filename>xfce4-terminal-emulator.desktop</Filename>
        <Filename>xfce4-file-manager.desktop</Filename>
        <Filename>xfce4-mail-reader.desktop</Filename>
        <Filename>xfce4-web-browser.desktop</Filename>
        <Separator/>
        <Menuname>Settings</Menuname>
        <Separator/>
        <Merge type="all"/>
        <Separator/>
        <Filename>xfce4-about.desktop</Filename>
        <Filename>xfce4-session-logout.desktop</Filename>
    </Layout>

  <Menu>
    <Name>Red Team</Name>
    <Directory>00-red-team.directory</Directory>
    <MergeFile>red-applications.menu</MergeFile>
  </Menu>

  <Menu>
    <Name>Blue Team</Name>
    <Directory>00-blue-team.directory</Directory>
    <MergeFile>blue-applications.menu</MergeFile>
  </Menu>

    <Menu>
        <Name>Settings</Name>
        <Directory>xfce-settings.directory</Directory>
        <Include>
            <Category>Settings</Category>
        </Include>

        <Layout>
            <Filename>xfce-settings-manager.desktop</Filename>
            <Separator/>
            <Merge type="all"/>
        </Layout>

        <Menu>
            <Name>Screensavers</Name>
            <Directory>xfce-screensavers.directory</Directory>
            <Include>
                <Category>Screensaver</Category>
            </Include>
        </Menu>
    </Menu>

    <Menu>
        <Name>Accessories</Name>
        <Directory>xfce-accessories.directory</Directory>
        <Include>
            <Or>
                <Category>Accessibility</Category>
                <Category>Core</Category>
                <Category>Legacy</Category>
                <Category>Utility</Category>
            </Or>
        </Include>
        <Exclude>
            <Or>
                <Filename>xfce4-file-manager.desktop</Filename>
                <Filename>xfce4-terminal-emulator.desktop</Filename>
                <Filename>xfce4-about.desktop</Filename>
                <Filename>xfce4-run.desktop</Filename>
            </Or>
        </Exclude>
    </Menu>

    <Menu>
        <Name>Development</Name>
        <Directory>xfce-development.directory</Directory>
        <Include>
            <Category>Development</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Education</Name>
        <Directory>xfce-education.directory</Directory>
        <Include>
            <Category>Education</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Games</Name>
        <Directory>xfce-games.directory</Directory>
        <Include>
            <Category>Game</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Graphics</Name>
        <Directory>xfce-graphics.directory</Directory>
        <Include>
            <Category>Graphics</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Multimedia</Name>
        <Directory>xfce-multimedia.directory</Directory>
        <Include>
            <Category>Audio</Category>
            <Category>Video</Category>
            <Category>AudioVideo</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Network</Name>
        <Directory>xfce-network.directory</Directory>
        <Include>
            <Category>Network</Category>
        </Include>
        <Exclude>
            <Or>
                <Filename>xfce4-mail-reader.desktop</Filename>
                <Filename>xfce4-web-browser.desktop</Filename>
            </Or>
        </Exclude>
    </Menu>

    <Menu>
        <Name>Office</Name>
        <Directory>xfce-office.directory</Directory>
        <Include>
            <Category>Office</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>Science</Name>
        <Directory>xfce-science.directory</Directory>
        <Include>
            <Category>Science</Category>
        </Include>
    </Menu>

    <Menu>
        <Name>System</Name>
        <Directory>xfce-system.directory</Directory>
        <Include>
            <Or>
                <Category>Emulator</Category>
                <Category>System</Category>
            </Or>
        </Include>
        <Exclude>
            <Or>
                <Filename>xfce4-session-logout.desktop</Filename>
            </Or>
        </Exclude>
    </Menu>

    <Menu>
        <Name>Other</Name>
        <Directory>xfce-other.directory</Directory>
        <OnlyUnallocated/>
        <Include>
            <All/>
        </Include>
    </Menu>
    <DefaultMergeDirs/>

</Menu>

Red Team .menu file "/etc/xdg/menus/red-applications.menu" is:

<?xml version="1.0"?>
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<Menu>
  <Name>Applications</Name>
  <Layout>
    <Menuname>Usual Applications</Menuname>
    <Menuname>Information Gathering</Menuname>
    <Menuname>Vulnerability Analysis</Menuname>
    <Menuname>Web Application Analysis</Menuname>
    <Menuname>Database Assessment</Menuname>
    <Menuname>Password Attacks</Menuname>
    <Menuname>Wireless Attacks</Menuname>
    <Menuname>Reverse Engineering</Menuname>
    <Menuname>Exploit Frameworks</Menuname>
    <Menuname>Sniffing - Spoofing</Menuname>
    <Menuname>Maintaining Access</Menuname>
    <Menuname>Forensic Tools</Menuname>
    <Menuname>Reporting Tools</Menuname>
    <Menuname>Social Engineering Tools</Menuname>
    <Menuname>System Services</Menuname>
    <Menuname>Athena OS Links</Menuname>
    <Merge type="all"/>
  </Layout>

  <Menu>
    <Name>Usual Applications</Name>
    <Directory>usual-apps.directory</Directory>
    <!-- This is the target of <Move> at the end ... -->
  </Menu>

  <Menu>
    <Name>Information Gathering</Name>
    <Directory>01-info-gathering.directory</Directory>
    <Include>
      <And>
        <Category>01-info-gathering</Category>
      </And>
    </Include>
    <Menu>
      <Name>DNS Analysis</Name>
      <Directory>01-01-dns-analysis.directory</Directory>
      <Include>
        <And>
          <Category>01-01-dns-analysis</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>SMTP Analysis</Name>
      <Directory>01-11-smtp-analysis.directory</Directory>
      <Include>
        <And>
          <Category>01-11-smtp-analysis</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>OSINT Analysis</Name>
      <Directory>01-07-osint-analysis.directory</Directory>
      <Include>
        <And>
          <Category>01-07-osint-analysis</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>SMB Analysis</Name>
      <Directory>01-10-smb-analysis.directory</Directory>
      <Include>
        <And>
          <Category>01-10-smb-analysis</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Route Analysis</Name>
      <Directory>01-08-route-analysis.directory</Directory>
      <Include>
        <And>
          <Category>01-08-route-analysis</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Host Identification</Name>
      <Directory>01-02-identify-live-hosts.directory</Directory>
      <Include>
        <And>
          <Category>01-02-identify-live-hosts</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>SSL Analysis</Name>
      <Directory>01-13-ssl-analysis.directory</Directory>
      <Include>
        <And>
          <Category>01-13-ssl-analysis</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Firewall Tools</Name>
      <Directory>01-03-ids-ips-identification.directory</Directory>
      <Include>
        <And>
          <Category>01-03-ids-ips-identification</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>SNMP Analysis</Name>
      <Directory>01-12-snmp-analysis.directory</Directory>
      <Include>
        <And>
          <Category>01-12-snmp-analysis</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Network and Port Scanners</Name>
      <Directory>01-04-network-scanners.directory</Directory>
      <Include>
        <And>
          <Category>01-04-network-scanners</Category>
        </And>
      </Include>
    </Menu>
  </Menu>


  <Menu>
    <Name>Vulnerability Analysis</Name>
    <Directory>02-vulnerability-analysis.directory</Directory>
    <Include>
      <And>
        <Category>02-vulnerability-analysis</Category>
      </And>
    </Include>
    <Menu>
      <Name>Cisco Tools</Name>
      <Directory>02-01-cisco-tools.directory</Directory>
      <Include>
        <And>
          <Category>02-01-cisco-tools</Category>
        </And>
      </Include>
    </Menu>

    <Menu>
      <Name>Fuzzing Tools</Name>
      <Directory>02-02-fuzzers.directory</Directory>
      <Include>
        <And>
          <Category>02-02-fuzzers</Category>
        </And>
      </Include>
    </Menu>

    <Menu>
      <Name>VoIP Tools</Name>
      <Directory>02-03-voip-tools.directory</Directory>
      <Include>
        <And>
          <Category>02-03-voip-tools</Category>
        </And>
      </Include>
    </Menu>

    <Menu>
      <Name>Nessus</Name>
      <Directory>02-05-nessus.directory</Directory>
      <Include>
        <And>
          <Category>02-05-nessus</Category>
        </And>
      </Include>
    </Menu>

    <Menu>
      <Name>OpenVAS</Name>
      <Directory>02-06-openvas.directory</Directory>
      <Include>
        <And>
          <Category>02-06-openvas</Category>
        </And>
      </Include>
    </Menu>

    <Menu>
      <Name>Stress Testing</Name>
      <Directory>02-07-stress-testing.directory</Directory>
      <Include>
        <And>
          <Category>02-07-stress-testing</Category>
        </And>
      </Include>
    </Menu>

  </Menu>


  <Menu>
    <Name>Web Application Analysis</Name>
    <Directory>03-webapp-analysis.directory</Directory>
    <Include>
      <And>
        <Category>03-webapp-analysis</Category>
      </And>
    </Include>
    <Menu>
      <Name>CMS and Site Identification</Name>
      <Directory>03-01-cms-identification.directory</Directory>
      <Include>
        <And>
          <Category>03-01-cms-identification</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Web Crawlers</Name>
      <Directory>03-04-web-crawlers.directory</Directory>
      <Include>
        <And>
          <Category>03-04-web-crawlers</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>WebApp Proxies</Name>
      <Directory>03-06-web-application-proxies.directory</Directory>
      <Include>
        <And>
          <Category>03-06-web-application-proxies</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Web Vulnerability Scanners</Name>
      <Directory>03-05-web-vulnerability-scanners.directory</Directory>
      <Include>
        <And>
          <Category>03-05-web-vulnerability-scanners</Category>
        </And>
      </Include>
    </Menu>
  </Menu>


  <Menu>
    <Name>Database Assessment</Name>
    <Directory>04-database-assessment.directory</Directory>
    <Include>
      <And>
        <Category>04-database-assessment</Category>
      </And>
    </Include>
  </Menu>



  <Menu>
    <Name>Password Attacks</Name>
    <Directory>05-password-attacks.directory</Directory>
    <Include>
      <And>
        <Category>05-password-attacks</Category>
      </And>
    </Include>
    <Menu>
      <Name>Online Attacks</Name>
      <Directory>05-01-online-attacks.directory</Directory>
      <Include>
        <And>
          <Category>05-01-online-attacks</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Offline Attacks</Name>
      <Directory>05-02-offline-attacks.directory</Directory>
      <Include>
        <And>
          <Category>05-02-offline-attacks</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Passing the Hash</Name>
      <Directory>05-04-pass-hash.directory</Directory>
      <Include>
        <And>
          <Category>05-04-pass-hash</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Password Profiling</Name>
      <Directory>05-05-profile.directory</Directory>
      <Include>
        <And>
          <Category>05-05-profile</Category>
        </And>
      </Include>
    </Menu>
  </Menu>


  <Menu>
    <Name>Wireless Attacks</Name>
    <Directory>06-wireless-attacks.directory</Directory>
    <Include>
      <And>
        <Category>06-wireless-attacks</Category>
      </And>
    </Include>
    <Menu>
      <Name>802.11 Wireless Analysis</Name>
      <Directory>06-01-wireless-tools.directory</Directory>
      <Include>
        <And>
          <Category>06-01-wireless-tools</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Bluetooth Tools</Name>
      <Directory>06-02-bluetooth-tools.directory</Directory>
      <Include>
        <And>
          <Category>06-02-bluetooth-tools</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Software Defined Radio</Name>
      <Directory>06-05-radio-tools.directory</Directory>
      <Include>
        <And>
          <Category>06-05-radio-tools</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>RFID NFC Tools</Name>
      <Directory>06-03-rfid-nfc-tools.directory</Directory>
      <Include>
        <And>
          <Category>06-03-rfid-nfc-tools</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Other Wireless Tools</Name>
      <Directory>06-04-other-wireless.directory</Directory>
      <Include>
        <And>
          <Category>06-04-other-wireless</Category>
        </And>
      </Include>
    </Menu>
  </Menu>


  <Menu>
    <Name>Reverse Engineering</Name>
    <Directory>07-reverseengineer.directory</Directory>
    <Include>
      <And>
        <Category>07-reverseengineer</Category>
      </And>
    </Include>
  </Menu>


  <Menu>
    <Name>Exploit Frameworks</Name>
    <Directory>08-exploitation-tools.directory</Directory>
    <Include>
      <And>
        <Category>08-exploitation-tools</Category>
      </And>
    </Include>
  </Menu>

 <Menu>
    <Name>Sniffing - Spoofing</Name>
    <Directory>09-sniffing-spoofing.directory</Directory>
    <Include>
      <And>
        <Category>09-sniffing-spoofing</Category>
      </And>
    </Include>
    <Menu>
      <Name>Network Sniffers</Name>
      <Directory>09-01-network-sniffers.directory</Directory>
      <Include>
        <And>
          <Category>09-01-network-sniffers</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Network Spoofing</Name>
      <Directory>09-02-network-spoofing.directory</Directory>
      <Include>
        <And>
          <Category>09-02-network-spoofing</Category>
        </And>
      </Include>
    </Menu>
  </Menu>

  <Menu>
    <Name>Maintaining Access</Name>
    <Directory>10-maintaining-access.directory</Directory>
    <Include>
      <And>
        <Category>10-maintaining-access</Category>
      </And>
    </Include>
    <Menu>
      <Name>OS Backdoors</Name>
      <Directory>10-01-os-backdoors.directory</Directory>
      <Include>
        <And>
          <Category>10-01-os-backdoors</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Web Backdoors</Name>
      <Directory>10-03-web-backdoors.directory</Directory>
      <Include>
        <And>
          <Category>10-03-web-backdoors</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Command and Control</Name>
      <Directory>10-04-command-control.directory</Directory>
      <Include>
        <And>
          <Category>10-04-command-control</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Tunneling</Name>
      <Directory>10-02-tunneling.directory</Directory>
      <Include>
        <And>
          <Category>10-02-tunneling</Category>
        </And>
      </Include>
    </Menu>
  </Menu>


  <Menu>
    <Name>Forensic Tools</Name>
    <Directory>11-forensics.directory</Directory>
    <Include>
      <And>
        <Category>11-forensics</Category>
      </And>
    </Include>
    <Menu>
      <Name>PDF Forensics Tools</Name>
      <Directory>11-11-pdf-forensics-tools.directory</Directory>
      <Include>
        <And>
          <Category>11-11-pdf-forensics-tools</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Forensics Analysis Suites</Name>
      <Directory>11-08-forensic-suites.directory</Directory>
      <Include>
        <And>
          <Category>11-08-forensic-suites</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Digital Forensics</Name>
      <Directory>11-03-digital-forensics.directory</Directory>
      <Include>
        <And>
          <Category>11-03-digital-forensics</Category>
        </And>
      </Include>
      <Include>
        <And>
          <Category>11-04-forensic-analysis-tools</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Forensic Carving Tools</Name>
      <Directory>11-05-forensic-carving-tools.directory</Directory>
      <Include>
        <And>
          <Category>11-05-forensic-carving-tools</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Forensic Imaging Tools</Name>
      <Directory>11-07-forensic-imaging-tools.directory</Directory>
      <Include>
        <And>
          <Category>11-07-forensic-imaging-tools</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Forensic Hashing Tools</Name>
      <Directory>11-06-forensic-hashing-tools.directory</Directory>
      <Include>
        <And>
          <Category>11-06-forensic-hashing-tools</Category>
        </And>
      </Include>
    </Menu>
  </Menu>

  <Menu>
    <Name>Reporting Tools</Name>
    <Directory>12-reporting.directory</Directory>
    <Include>
      <And>
        <Category>12-reporting</Category>
      </And>
    </Include>
  </Menu>
 
  <Menu>
    <Name>Social Engineering Tools</Name>
    <Directory>13-social-engineering-tools.directory</Directory>
    <Include>
      <And>
        <Category>13-social-engineering-tools</Category>
      </And>
    </Include>
  </Menu>

  <Menu>
    <Name>System Services</Name>
    <Directory>14-services.directory</Directory>
    <Include>
      <And>
        <Category>14-services</Category>
      </And>
    </Include>
    <Menu>
      <Name>BEEF XSS Framework</Name>
      <Directory>14-08-beef-service.directory</Directory>
      <Include>
        <And>
          <Category>14-08-beef-service</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Metasploit</Name>
      <Directory>14-09-metasploit-service.directory</Directory>
      <Include>
        <And>
          <Category>14-09-metasploit-service</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Dradis</Name>
      <Directory>14-10-dradis-service.directory</Directory>
      <Include>
        <And>
          <Category>14-10-dradis-service</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>OpenVas</Name>
      <Directory>14-11-openvas-service.directory</Directory>
      <Include>
        <And>
          <Category>14-11-openvas-service</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Xplico</Name>
      <Directory>14-12-xplico-service.directory</Directory>
      <Include>
        <And>
          <Category>14-12-xplico-service</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>GVM</Name>
      <Directory>14-13-gvm-service.directory</Directory>
      <Include>
        <And>
          <Category>14-13-gvm-service</Category>
        </And>
      </Include>
    </Menu>
    <Menu>
      <Name>Defectdojo</Name>
      <Directory>14-16-defectdojo-service.directory</Directory>
      <Include>
        <And>
          <Category>14-16-defectdojo-service</Category>
        </And>
      </Include>
    </Menu>
  </Menu>


  <Menu>
    <Name>Athena OS Links</Name>
    <Directory>15-athena-links.directory</Directory>
    <Include>
      <And>
        <Category>15-athena-offsec-links</Category>
      </And>
    </Include>
  </Menu>

  <!-- Move default top-level menus one level deeper -->
  <Move>
    <Old>Accessories</Old>
    <New>Usual Applications/Accessories</New>
  </Move>
  <Move>
    <Old>Universal Access</Old>
    <New>Usual Applications/Universal Access</New>
  </Move>
  <Move>
    <Old>Electronics</Old>
    <New>Usual Applications/Electronics</New>
  </Move>
  <Move>
    <Old>Development</Old>
    <New>Usual Applications/Development</New>
  </Move>
  <Move>
    <Old>Education</Old>
    <New>Usual Applications/Education</New>
  </Move>
  <Move>
    <Old>Science</Old>
    <New>Usual Applications/Science</New>
  </Move>
  <Move>
    <Old>Games</Old>
    <New>Usual Applications/Games</New>
  </Move>
  <Move>
    <Old>Graphics</Old>
    <New>Usual Applications/Graphics</New>
  </Move>
  <Move>
    <Old>Internet</Old>
    <New>Usual Applications/Internet</New>
  </Move>
  <Move>
    <Old>Web Applications</Old>
    <New>Usual Applications/Web Applications</New>
  </Move>
  <Move>
    <Old>Multimedia</Old>
    <New>Usual Applications/Multimedia</New>
  </Move>
  <Move>
    <Old>Office</Old>
    <New>Usual Applications/Office</New>
  </Move>
  <Move>
    <Old>Sundry</Old>
    <New>Usual Applications/Sundry</New>
  </Move>
  <Move>
    <Old>System</Old>
    <New>Usual Applications/System</New>
  </Move>
  <Move>
    <Old>System Settings</Old>
    <New>Usual Applications/System Settings</New>
  </Move>
  <Move>
    <Old>Utilities</Old>
    <New>Usual Applications/Utilities</New>
  </Move>
  <Move>
    <Old>Other</Old>
    <New>Usual Applications/Other</New>
  </Move>
  <Move>
    <Old>Hamradio</Old>
    <New>Usual Applications/Hamradio</New>
  </Move>
</Menu>

and Blue Menu file "/etc/xdg/menus/blue-applications.menu" is:

<?xml version="1.0"?>
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN" "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
<Menu>
  <Name>Applications</Name>
  <Layout>
    <Menuname>Usual Applications</Menuname>
    <Menuname>Identify</Menuname>
    <Menuname>Protect</Menuname>
    <Menuname>Detect</Menuname>
    <Menuname>Respond</Menuname>
    <Menuname>Recover</Menuname>
    <Merge type="all"/>
  </Layout>

  <Menu>
    <Name>Usual Applications</Name>
    <Directory>usual-apps.directory</Directory>
    <!-- This is the target of <Move> at the end ... -->
  </Menu>


  <Menu>
    <Name>Identify</Name>
    <Directory>001-identify.directory</Directory>
    <Include>
      <And>
        <Category>001-identify</Category>
      </And>
    </Include>
  </Menu>

  <Menu>
    <Name>Protect</Name>
    <Directory>002-protect.directory</Directory>
    <Include>
      <And>
        <Category>002-protect</Category>
      </And>
    </Include>
  </Menu>

  <Menu>
    <Name>Detect</Name>
    <Directory>003-detect.directory</Directory>
    <Include>
      <And>
        <Category>003-detect</Category>
      </And>
    </Include>
  </Menu>

  <Menu>
    <Name>Respond</Name>
    <Directory>004-respond.directory</Directory>
    <Include>
      <And>
        <Category>004-respond</Category>
      </And>
    </Include>
  </Menu>

  <Menu>
    <Name>Recover</Name>
    <Directory>005-recover.directory</Directory>
    <Include>
      <And>
        <Category>005-recover</Category>
      </And>
    </Include>
  </Menu>

  <!-- Move default top-level menus one level deeper -->
  <Move>
    <Old>Accessories</Old>
    <New>Usual Applications/Accessories</New>
  </Move>
  <Move>
    <Old>Universal Access</Old>
    <New>Usual Applications/Universal Access</New>
  </Move>
  <Move>
    <Old>Electronics</Old>
    <New>Usual Applications/Electronics</New>
  </Move>
  <Move>
    <Old>Development</Old>
    <New>Usual Applications/Development</New>
  </Move>
  <Move>
    <Old>Education</Old>
    <New>Usual Applications/Education</New>
  </Move>
  <Move>
    <Old>Science</Old>
    <New>Usual Applications/Science</New>
  </Move>
  <Move>
    <Old>Games</Old>
    <New>Usual Applications/Games</New>
  </Move>
  <Move>
    <Old>Graphics</Old>
    <New>Usual Applications/Graphics</New>
  </Move>
  <Move>
    <Old>Internet</Old>
    <New>Usual Applications/Internet</New>
  </Move>
  <Move>
    <Old>Web Applications</Old>
    <New>Usual Applications/Web Applications</New>
  </Move>
  <Move>
    <Old>Multimedia</Old>
    <New>Usual Applications/Multimedia</New>
  </Move>
  <Move>
    <Old>Office</Old>
    <New>Usual Applications/Office</New>
  </Move>
  <Move>
    <Old>Sundry</Old>
    <New>Usual Applications/Sundry</New>
  </Move>
  <Move>
    <Old>System</Old>
    <New>Usual Applications/System</New>
  </Move>
  <Move>
    <Old>System Settings</Old>
    <New>Usual Applications/System Settings</New>
  </Move>
  <Move>
    <Old>Utilities</Old>
    <New>Usual Applications/Utilities</New>
  </Move>
  <Move>
    <Old>Other</Old>
    <New>Usual Applications/Other</New>
  </Move>
  <Move>
    <Old>Hamradio</Old>
    <New>Usual Applications/Hamradio</New>
  </Move>
</Menu>

and, for example, if we consider Information Gathering subentry stored in "/usr/share/desktop-directories" and its .directory file as:

[Desktop Entry]
Name=Information Gathering
Name[fr]=Récupération d'informations
Name[es]=Recopilación de Información
Name[hr]=Prikupljanje Informacija
Name[de]=Informationsbeschaffung
Name[it]=Recupero Informazioni
Name[zh_CN]=信息收集
Name[zh_HK]=信息收集
Name[zh_TW]=信息收集
Type=Directory
Icon=kali-info-gathering-trans

and kali-info-gathering-trans icon is stored in "/usr/share/icons/hicolor/scalable/categories/kali-info-gathering-trans.svg". Despite this, submenu entry, like the other ones in this red and blue-applications menu, don't appear. The strange fact is that in GNOME they work. Furthermore, if I try to change icon name or Icon= value to an icon named "blueteam" that is in the same folder of "kali-info-gathering-trans.svg" icon (and same pixel size and permission (755), it works. Why XFCE or Whisker is not able to detect the icon of subentries by particular names?

Note that the icons like kali-info-gathering-trans.svg that dont appear in Whisker submenus, in GNOME they work well.

Last edited by N00body (2023-10-17 19:04:21)

Offline

#2 2023-10-14 21:24:41

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] XFCE Whisker does not recognize icons set in .directory files

Where did you (or did you) put the "00-red-team.directory" and "00-blue-team.directory" files?

Note that the icons like kali-info-gathering-trans.svg that dont appear in Whisker submenus, in GNOME they work well.

That would depend on the icon themes that are being used in the respective environments. Perhaps the icon theme in Gnome has them, but not the one in Xfce.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-10-14 22:26:42

N00body
Member
Registered: 2021-11-23
Posts: 31

Re: [SOLVED] XFCE Whisker does not recognize icons set in .directory files

ToZ wrote:

Where did you (or did you) put the "00-red-team.directory" and "00-blue-team.directory" files?

Note that the icons like kali-info-gathering-trans.svg that dont appear in Whisker submenus, in GNOME they work well.

That would depend on the icon themes that are being used in the respective environments. Perhaps the icon theme in Gnome has them, but not the one in Xfce.

I stored both of those files in "/usr/share/desktop-directories/"

The icon theme where I stored those icons is "hicolor" that I think it is possible to find in a lot of distros.

Last edited by N00body (2023-10-14 22:27:15)

Offline

#4 2023-10-14 23:00:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] XFCE Whisker does not recognize icons set in .directory files

Can you post the output of the following commands:

ls -l /usr/share/desktop-directories
ls -l /etc/xdg/menus
ls -l ~/.local/share/desktop-directories
ls -l ~/.config/menus
fgrep -ri 01-info-gathering /usr/share/applications
xfconf-query -c xsettings -lv

The icon theme where I stored those icons is "hicolor" that I think it is possible to find in a lot of distros.

Did you rebuild the icon cache after putting the files there?

sudo gtk-update-icon-cache -f /usr/share/icons/hicolor

...and are the icon files you put in there the same type (extension)?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2023-10-15 02:07:24

N00body
Member
Registered: 2021-11-23
Posts: 31

Re: [SOLVED] XFCE Whisker does not recognize icons set in .directory files

Sure:

ls -l /usr/share/desktop-directories

.rw-r--r-- root root   60 B  Sat Oct 14 13:02:28 2023  00-blue-team.directory
.rw-r--r-- root root   58 B  Sat Oct 14 13:02:28 2023  00-red-team.directory
.rw-r--r-- root root  240 B  Sat Oct 14 16:46:10 2023  001-identify.directory
.rw-r--r-- root root  226 B  Sat Oct 14 13:02:28 2023  002-protect.directory
.rw-r--r-- root root  222 B  Sat Oct 14 13:02:28 2023  003-detect.directory
.rw-r--r-- root root  226 B  Sat Oct 14 13:02:28 2023  004-respond.directory
.rw-r--r-- root root  234 B  Sat Oct 14 13:02:28 2023  005-recover.directory
.rw-r--r-- root root  298 B  Sat Oct 14 13:02:28 2023  01-01-dns-analysis.directory
.rw-r--r-- root root  409 B  Sat Oct 14 13:02:28 2023  01-02-identify-live-hosts.directory
.rw-r--r-- root root  376 B  Sat Oct 14 13:02:28 2023  01-03-ids-ips-identification.directory
.rw-r--r-- root root  336 B  Sat Oct 14 13:02:28 2023  01-04-network-scanners.directory
.rw-r--r-- root root  338 B  Sat Oct 14 13:02:28 2023  01-07-osint-analysis.directory
.rw-r--r-- root root  322 B  Sat Oct 14 13:02:28 2023  01-08-route-analysis.directory
.rw-r--r-- root root  291 B  Sat Oct 14 13:02:28 2023  01-10-smb-analysis.directory
.rw-r--r-- root root  300 B  Sat Oct 14 13:02:28 2023  01-11-smtp-analysis.directory
.rw-r--r-- root root  274 B  Sat Oct 14 13:02:28 2023  01-12-snmp-analysis.directory
.rw-r--r-- root root  291 B  Sat Oct 14 13:02:28 2023  01-13-ssl-analysis.directory
.rw-r--r-- root root  346 B  Sat Oct 14 16:03:38 2023  01-info-gathering.directory
.rw-r--r-- root root  320 B  Sat Oct 14 13:02:28 2023  02-01-cisco-tools.directory
.rw-r--r-- root root  332 B  Sat Oct 14 13:02:28 2023  02-02-fuzzers.directory
.rw-r--r-- root root  307 B  Sat Oct 14 13:02:28 2023  02-03-voip-tools.directory
.rw-r--r-- root root  258 B  Sat Oct 14 13:02:28 2023  02-05-nessus.directory
.rw-r--r-- root root  267 B  Sat Oct 14 13:02:28 2023  02-06-openvas.directory
.rw-r--r-- root root  314 B  Sat Oct 14 13:02:28 2023  02-07-stress-testing.directory
.rw-r--r-- root root  223 B  Sat Oct 14 13:02:28 2023  02-08-gvm.directory
.rw-r--r-- root root  341 B  Sat Oct 14 13:02:28 2023  02-vulnerability-analysis.directory
.rw-r--r-- root root  323 B  Sat Oct 14 13:02:28 2023  03-01-cms-identification.directory
.rw-r--r-- root root  325 B  Sat Oct 14 13:02:28 2023  03-04-web-crawlers.directory
.rw-r--r-- root root  413 B  Sat Oct 14 13:02:28 2023  03-05-web-vulnerability-scanners.directory
.rw-r--r-- root root  368 B  Sat Oct 14 13:02:28 2023  03-06-web-application-proxies.directory
.rw-r--r-- root root  306 B  Sat Oct 14 13:02:28 2023  03-webapp-analysis.directory
.rw-r--r-- root root  362 B  Sat Oct 14 13:02:28 2023  04-database-assessment.directory
.rw-r--r-- root root  334 B  Sat Oct 14 13:02:28 2023  05-01-online-attacks.directory
.rw-r--r-- root root  343 B  Sat Oct 14 13:02:28 2023  05-02-offline-attacks.directory
.rw-r--r-- root root  228 B  Sat Oct 14 13:02:28 2023  05-04-pass-hash.directory
.rw-r--r-- root root  162 B  Sat Oct 14 13:02:28 2023  05-05-profile.directory
.rw-r--r-- root root  316 B  Sat Oct 14 13:02:28 2023  05-password-attacks.directory
.rw-r--r-- root root  317 B  Sat Oct 14 13:02:28 2023  06-01-wireless-tools.directory
.rw-r--r-- root root  344 B  Sat Oct 14 13:02:28 2023  06-02-bluetooth-tools.directory
.rw-r--r-- root root  370 B  Sat Oct 14 13:02:28 2023  06-03-rfid-nfc-tools.directory
.rw-r--r-- root root  283 B  Sat Oct 14 13:02:28 2023  06-04-other-wireless.directory
.rw-r--r-- root root  235 B  Sat Oct 14 13:02:28 2023  06-05-radio-tools.directory
.rw-r--r-- root root  298 B  Sat Oct 14 13:02:28 2023  06-wireless-attacks.directory
.rw-r--r-- root root  319 B  Sat Oct 14 13:02:28 2023  07-reverseengineer.directory
.rw-r--r-- root root   84 B  Sat Oct 14 13:02:28 2023  08-01-metasploit-framework.directory
.rw-r--r-- root root  357 B  Sat Oct 14 13:02:28 2023  08-exploitation-tools.directory
.rw-r--r-- root root  330 B  Sat Oct 14 13:02:28 2023  09-01-network-sniffers.directory
.rw-r--r-- root root  306 B  Sat Oct 14 13:02:28 2023  09-02-network-spoofing.directory
.rw-r--r-- root root  324 B  Sat Oct 14 13:02:28 2023  09-sniffing-spoofing.directory
.rw-r--r-- root root  334 B  Sat Oct 14 13:02:28 2023  10-01-os-backdoors.directory
.rw-r--r-- root root  335 B  Sat Oct 14 13:02:28 2023  10-02-tunneling.directory
.rw-r--r-- root root  316 B  Sat Oct 14 13:02:28 2023  10-03-web-backdoors.directory
.rw-r--r-- root root   95 B  Sat Oct 14 13:02:28 2023  10-04-command-control.directory
.rw-r--r-- root root  319 B  Sat Oct 14 13:02:28 2023  10-maintaining-access.directory
.rw-r--r-- root root  345 B  Sat Oct 14 13:02:28 2023  11-01-network-forensics.directory
.rw-r--r-- root root  345 B  Sat Oct 14 13:02:28 2023  11-03-digital-forensics.directory
.rw-r--r-- root root  417 B  Sat Oct 14 13:02:28 2023  11-04-forensic-analysis-tools.directory
.rw-r--r-- root root  426 B  Sat Oct 14 13:02:28 2023  11-05-forensic-carving-tools.directory
.rw-r--r-- root root  425 B  Sat Oct 14 13:02:28 2023  11-07-forensic-imaging-tools.directory
.rw-r--r-- root root  355 B  Sat Oct 14 13:02:28 2023  11-08-forensic-suites.directory
.rw-r--r-- root root  373 B  Sat Oct 14 13:02:28 2023  11-11-pdf-forensics-tools.directory
.rw-r--r-- root root  267 B  Sat Oct 14 13:02:28 2023  11-forensics.directory
.rw-r--r-- root root  308 B  Sat Oct 14 13:02:28 2023  12-reporting.directory
.rw-r--r-- root root  146 B  Sat Oct 14 13:02:28 2023  13-social-engineering-tools.directory
.rw-r--r-- root root  232 B  Sat Oct 14 13:02:28 2023  14-01-gpsd-service.directory
.rw-r--r-- root root  232 B  Sat Oct 14 13:02:28 2023  14-02-httpd-service.directory
.rw-r--r-- root root  241 B  Sat Oct 14 13:02:28 2023  14-03-mysqld-service.directory
.rw-r--r-- root root  241 B  Sat Oct 14 13:02:28 2023  14-04-pcscd-service.directory
.rw-r--r-- root root  223 B  Sat Oct 14 13:02:28 2023  14-06-sshd-service.directory
.rw-r--r-- root root  250 B  Sat Oct 14 13:02:28 2023  14-07-radius-service.directory
.rw-r--r-- root root  232 B  Sat Oct 14 13:02:28 2023  14-08-beef-service.directory
.rw-r--r-- root root  286 B  Sat Oct 14 13:02:28 2023  14-09-metasploit-service.directory
.rw-r--r-- root root   81 B  Sat Oct 14 13:02:28 2023  14-10-dradis-service.directory
.rw-r--r-- root root   82 B  Sat Oct 14 13:02:28 2023  14-11-openvas-service.directory
.rw-r--r-- root root   81 B  Sat Oct 14 13:02:28 2023  14-12-xplico-service.directory
.rw-r--r-- root root   78 B  Sat Oct 14 13:02:28 2023  14-13-gvm-service.directory
.rw-r--r-- root root   82 B  Sat Oct 14 13:02:28 2023  14-14-faraday-service.directory
.rw-r--r-- root root   81 B  Sat Oct 14 13:02:28 2023  14-15-nessus-service.directory
.rw-r--r-- root root   85 B  Sat Oct 14 13:02:28 2023  14-16-defectdojo-service.directory
.rw-r--r-- root root  289 B  Sat Oct 14 13:02:28 2023  14-services.directory
.rw-r--r-- root root   64 B  Sat Oct 14 13:02:28 2023  15-athena-links.directory
.rw-r--r-- root root  8.1 KB Fri Oct 13 23:53:34 2023  AudioVideo.directory
.rw-r--r-- root root  9.9 KB Fri Oct 13 23:53:34 2023  Development.directory
.rw-r--r-- root root  2.7 KB Fri Oct 13 23:53:34 2023  Education.directory
.rw-r--r-- root root  6.9 KB Fri Oct 13 23:53:34 2023  Game.directory
.rw-r--r-- root root  7.7 KB Fri Oct 13 23:53:34 2023  Graphics.directory
.rw-r--r-- root root  2.2 KB Sun Oct  1 01:09:17 2023  kf5-development-translation.directory
.rw-r--r-- root root  3.0 KB Sun Oct  1 01:09:17 2023  kf5-development-webdevelopment.directory
.rw-r--r-- root root  2.4 KB Sun Oct  1 01:09:17 2023  kf5-development.directory
.rw-r--r-- root root  2.4 KB Sun Oct  1 01:09:17 2023  kf5-editors.directory
.rw-r--r-- root root  1.8 KB Sun Oct  1 01:09:17 2023  kf5-edu-languages.directory
.rw-r--r-- root root  2.1 KB Sun Oct  1 01:09:17 2023  kf5-edu-mathematics.directory
.rw-r--r-- root root  1.9 KB Sun Oct  1 01:09:17 2023  kf5-edu-miscellaneous.directory
.rw-r--r-- root root  2.0 KB Sun Oct  1 01:09:17 2023  kf5-edu-science.directory
.rw-r--r-- root root  3.2 KB Sun Oct  1 01:09:17 2023  kf5-edu-tools.directory
.rw-r--r-- root root  1.4 KB Sun Oct  1 01:09:17 2023  kf5-education.directory
.rw-r--r-- root root  2.1 KB Sun Oct  1 01:09:17 2023  kf5-games-arcade.directory
.rw-r--r-- root root  2.8 KB Sun Oct  1 01:09:17 2023  kf5-games-board.directory
.rw-r--r-- root root  2.7 KB Sun Oct  1 01:09:17 2023  kf5-games-card.directory
.rw-r--r-- root root  3.3 KB Sun Oct  1 01:09:17 2023  kf5-games-kids.directory
.rw-r--r-- root root  2.6 KB Sun Oct  1 01:09:17 2023  kf5-games-logic.directory
.rw-r--r-- root root  3.2 KB Sun Oct  1 01:09:17 2023  kf5-games-roguelikes.directory
.rw-r--r-- root root  3.5 KB Sun Oct  1 01:09:17 2023  kf5-games-strategy.directory
.rw-r--r-- root root  1.8 KB Sun Oct  1 01:09:17 2023  kf5-games.directory
.rw-r--r-- root root  2.2 KB Sun Oct  1 01:09:17 2023  kf5-graphics.directory
.rw-r--r-- root root  2.2 KB Sun Oct  1 01:09:17 2023  kf5-internet-terminal.directory
.rw-r--r-- root root  2.2 KB Sun Oct  1 01:09:17 2023  kf5-internet.directory
.rw-r--r-- root root  2.3 KB Sun Oct  1 01:09:17 2023  kf5-main.directory
.rw-r--r-- root root  2.0 KB Sun Oct  1 01:09:17 2023  kf5-more.directory
.rw-r--r-- root root  2.6 KB Sun Oct  1 01:09:17 2023  kf5-multimedia.directory
.rw-r--r-- root root 1017 B  Sun Oct  1 01:09:17 2023  kf5-network.directory
.rw-r--r-- root root  2.2 KB Sun Oct  1 01:09:17 2023  kf5-office.directory
.rw-r--r-- root root  3.5 KB Sun Oct  1 01:09:17 2023  kf5-science.directory
.rw-r--r-- root root  2.3 KB Sun Oct  1 01:09:17 2023  kf5-settingsmenu.directory
.rw-r--r-- root root  2.2 KB Sun Oct  1 01:09:17 2023  kf5-system-terminal.directory
.rw-r--r-- root root  1.3 KB Sun Oct  1 01:09:17 2023  kf5-system.directory
.rw-r--r-- root root  2.2 KB Sun Oct  1 01:09:17 2023  kf5-toys.directory
.rw-r--r-- root root  3.0 KB Sun Oct  1 01:09:17 2023  kf5-unknown.directory
.rw-r--r-- root root  5.9 KB Sun Oct  1 01:09:17 2023  kf5-utilities-accessibility.directory
.rw-r--r-- root root  3.1 KB Sun Oct  1 01:09:17 2023  kf5-utilities-desktop.directory
.rw-r--r-- root root  2.4 KB Sun Oct  1 01:09:17 2023  kf5-utilities-file.directory
.rw-r--r-- root root  5.5 KB Sun Oct  1 01:09:17 2023  kf5-utilities-peripherals.directory
.rw-r--r-- root root  4.0 KB Sun Oct  1 01:09:17 2023  kf5-utilities-pim.directory
.rw-r--r-- root root  5.7 KB Sun Oct  1 01:09:17 2023  kf5-utilities-xutils.directory
.rw-r--r-- root root  3.0 KB Sun Oct  1 01:09:17 2023  kf5-utilities.directory
.rw-r--r-- root root   14 KB Fri Oct 13 23:53:34 2023  Network.directory
.rw-r--r-- root root  7.2 KB Fri Oct 13 23:53:34 2023  Office.directory
.rw-r--r-- root root   11 KB Fri Oct 13 23:53:34 2023  System-Tools.directory
.rw-r--r-- root root  9.9 KB Fri Oct 13 23:53:34 2023  Utility-Accessibility.directory
.rw-r--r-- root root  8.3 KB Fri Oct 13 23:53:34 2023  Utility.directory
.rw-r--r-- root root  6.4 KB Fri Oct 13 23:53:34 2023  X-GNOME-Menu-Applications.directory
.rw-r--r-- root root   11 KB Fri Oct 13 23:53:34 2023  X-GNOME-Other.directory
.rw-r--r-- root root  1.6 KB Fri Oct 13 23:53:34 2023  X-GNOME-Sundry.directory
.rw-r--r-- root root   87 B  Fri Oct 13 23:53:34 2023  X-GNOME-SystemSettings.directory
.rw-r--r-- root root  7.1 KB Fri Oct 13 23:53:34 2023  X-GNOME-Utilities.directory
.rw-r--r-- root root  8.9 KB Fri Oct 13 23:53:34 2023  X-GNOME-WebApplications.directory
.rw-r--r-- root root  5.9 KB Tue Mar 28 20:54:03 2023  xfce-accessories.directory
.rw-r--r-- root root  4.9 KB Tue Mar 28 20:54:03 2023  xfce-development.directory
.rw-r--r-- root root  4.0 KB Tue Mar 28 20:54:03 2023  xfce-education.directory
.rw-r--r-- root root  5.5 KB Tue Mar 28 20:54:03 2023  xfce-games.directory
.rw-r--r-- root root  5.8 KB Tue Mar 28 20:54:03 2023  xfce-graphics.directory
.rw-r--r-- root root  5.5 KB Tue Mar 28 20:54:03 2023  xfce-hardware.directory
.rw-r--r-- root root  5.6 KB Tue Mar 28 20:54:03 2023  xfce-multimedia.directory
.rw-r--r-- root root  4.9 KB Tue Mar 28 20:54:03 2023  xfce-network.directory
.rw-r--r-- root root  4.8 KB Tue Mar 28 20:54:03 2023  xfce-office.directory
.rw-r--r-- root root  5.8 KB Tue Mar 28 20:54:03 2023  xfce-other.directory
.rw-r--r-- root root  3.8 KB Tue Mar 28 20:54:03 2023  xfce-personal.directory
.rw-r--r-- root root  2.2 KB Tue Mar 28 20:54:03 2023  xfce-science.directory
.rw-r--r-- root root  5.0 KB Tue Mar 28 20:54:03 2023  xfce-screensavers.directory
.rw-r--r-- root root  6.2 KB Tue Mar 28 20:54:03 2023  xfce-settings.directory
.rw-r--r-- root root  4.5 KB Tue Mar 28 20:54:03 2023  xfce-system.directory

then

ls -l /etc/xdg/menus

drwxr-xr-x root root   0 B  Sat Oct 14 13:32:28 2023  applications-merged
.rw-r--r-- root root 9.7 KB Sat Oct 14 15:08:53 2023  applications.menu
.rw-r--r-- root root 3.1 KB Sat Oct 14 16:12:01 2023  blue-applications.menu
drwxr-xr-x root root   0 B  Tue Oct 10 21:15:22 2023  gnome-applications-merged
.rw-r--r-- root root  16 KB Sat Oct 14 18:22:14 2023  gnome-applications.menu
.rw-r--r-- root root 4.1 KB Sun Aug  8 20:18:50 2021  mate-applications.menu
.rw-r--r-- root root 3.2 KB Sun Aug  8 20:18:50 2021  mate-preferences-categories.menu
.rw-r--r-- root root 1.5 KB Sun Aug  8 20:18:50 2021  mate-settings.menu
.rw-r--r-- root root  17 KB Sat Oct 14 00:35:37 2023  red-applications.menu
.rw-r--r-- root root 4.7 KB Sat Oct 14 19:09:16 2023  xfce-applications.menu
.rw-r--r-- root root 2.2 KB Tue Jul  4 12:32:09 2023  xfce-settings-manager.menu

then

ls -l ~/.local/share/desktop-directories

<empty>

then

ls -l ~/.config/menus

<empty>

Then:

fgrep -ri 01-info-gathering /usr/share/applications

fgrep: warning: fgrep is obsolescent; using grep -F
/usr/share/applications/kali-amass.desktop:Categories=01-info-gathering;001-identify;
/usr/share/applications/kali-dmitry.desktop:Categories=01-info-gathering;
/usr/share/applications/kali-ike-scan.desktop:Categories=01-info-gathering;
/usr/share/applications/kali-legion.desktop:Categories=01-info-gathering;02-vulnerability-analysis;
/usr/share/applications/kali-maltego.desktop:Categories=01-info-gathering;01-07-osint-analysis;12-reporting;13-social-engineering-tools;001-identify;
/usr/share/applications/kali-netdiscover.desktop:Categories=01-info-gathering;01-08-route-analysis;
/usr/share/applications/kali-nmap.desktop:Categories=01-info-gathering;01-04-network-scanners;02-vulnerability-analysis;
/usr/share/applications/kali-recon-ng.desktop:Categories=01-info-gathering;
/usr/share/applications/kali-spiderfoot.desktop:Categories=01-info-gathering;01-07-osint-analysis;001-identify;

then:

xfconf-query -c xsettings -lv

/Gdk/WindowScalingFactor        1
/Gtk/ButtonImages               true
/Gtk/CanChangeAccels            false
/Gtk/ColorPalette               black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90
/Gtk/CursorThemeName            Bibata-Modern-Ice
/Gtk/CursorThemeSize            0
/Gtk/DecorationLayout           menu:minimize,maximize,close
/Gtk/DialogsUseHeader           false
/Gtk/FontName                   Sans 10
/Gtk/IconSizes                  
/Gtk/KeyThemeName               
/Gtk/MenuBarAccel               F10
/Gtk/MenuImages                 true
/Gtk/MonospaceFontName          Monospace 10
/Gtk/TitlebarMiddleClick        lower
/Gtk/ToolbarIconSize            3
/Gtk/ToolbarStyle               icons
/Net/CursorBlink                true
/Net/CursorBlinkTime            1200
/Net/DndDragThreshold           8
/Net/DoubleClickDistance        5
/Net/DoubleClickTime            400
/Net/EnableEventSounds          false
/Net/EnableInputFeedbackSounds  false
/Net/IconThemeName              Tela-circle-black-dark
/Net/SoundThemeName             default
/Net/ThemeName                  Graphite-Rimless-Dark
/Xfce/SyncThemes                true
/Xft/Antialias                  1
/Xft/Hinting                    -1
/Xft/HintStyle                  hintfull
/Xft/RGBA                       none

I triied to rebuild the icon cache also yesterday but with still getting the same issue.

The icons are all the same extension ".svg" and same pixel size.

Offline

#6 2023-10-15 09:57:16

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] XFCE Whisker does not recognize icons set in .directory files

kali-info-gathering-trans icon is stored in "/usr/share/icons/hicolor/scalable/categories/kali-info-gathering-trans.svg".

Try putting the icon in the non-scalable side of hicolor - specifically in the hicolor/64x64/categories folder then rebuild the icon cache again. You may need to add variations of the icon size into each of the other sizes, but try this one first.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2023-10-15 10:12:51

N00body
Member
Registered: 2021-11-23
Posts: 31

Re: [SOLVED] XFCE Whisker does not recognize icons set in .directory files

Tried copying the icon there and trying also to resize it as 64x64 but, even if I rebuilt the icon cache and restart the xfce4 panel, I get the same result sadly.

Offline

#8 2023-10-15 13:29:28

N00body
Member
Registered: 2021-11-23
Posts: 31

Re: [SOLVED] XFCE Whisker does not recognize icons set in .directory files

@ToZ I noted that this issue occurs only on Whisker menu. If I use the traditional Applications menu of xfce, the icons are shown correctly. If i use Whisker menu, no.

Offline

#9 2023-10-15 19:34:23

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] XFCE Whisker does not recognize icons set in .directory files

Hmm. I can't replicate this, but my process is slightly different. Here is my test:

1. Create a test directory file in ~/.local/share/desktop-directories called "toz.directory" with the following content:

[Desktop Entry]
Name=ToZ
Comment=Toz Test Category
Icon=toz-category
Type=Directory

2. Create a "toz-category.png" icon file, put it into /usr/share/icons/hicolor/16x16/apps and rebuild the cache:

sudo gtk-update-icon-cache -f /usr/share/icons/hicolor

3. Create a merged applications menu file in ~/.config/menus/applications-merged called "toz-category.menu" with the following content:

<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
    "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<!-- Do not edit manually - generated and managed by xdg-desktop-menu -->
<Menu>
    <Name>ToZ</Name>
<Menu>
    <Name>ToZ Apps</Name>
    <Directory>toz.directory</Directory>
    <Include>
        <Filename>galculator.desktop</Filename>
    </Include>
</Menu>
</Menu>

...(note: I've created an entry here for galculator).

4. Copy /usr/share/icons/galculator.desktop (you can use any file here, just make sure you edit the menu file in step 3 to accomodate) to ~/.local/share/applications and change the Categories= line to read:

Categories=toz-category;

Any both the applications menu and thee whiskermenu both automatically adapt to display the category and the menu.

I understand that your process is a little different, but can you try the test steps above to see if it works?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#10 2023-10-15 19:39:42

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] XFCE Whisker does not recognize icons set in .directory files

N00body wrote:

@ToZ I noted that this issue occurs only on Whisker menu. If I use the traditional Applications menu of xfce, the icons are shown correctly. If i use Whisker menu, no.

Try restarting the panel:

xfce4-panel -r

What version of the whiskermenu are you using?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#11 2023-10-15 21:02:18

N00body
Member
Registered: 2021-11-23
Posts: 31

Re: [SOLVED] XFCE Whisker does not recognize icons set in .directory files

I did your test above. But your test is done on a .desktop file. Indeed if I apply the icon on a .desktop file it works, even if I call the Icon from my hicolor path.

It seems that the issue occurs only when the Icon is applied to .directory file that I use as subentry of an existing menu.

Whisker version:

xfce4-popup-whiskermenu --version

xfce4-popup-whiskermenu 2.8.0
Copyright © 2013-2023 Graeme Gott

Last edited by N00body (2023-10-15 21:30:15)

Offline

#12 2023-10-15 21:38:21

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [SOLVED] XFCE Whisker does not recognize icons set in .directory files

N00body wrote:

It seems that the issue occurs only when the Icon is applied to .directory file that I use as subentry of an existing menu.

Since this seems to only be happening with the whiskermenu (the applications menu doesn't have the problem), perhaps best to create a bug report.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#13 2023-10-15 22:36:31

N00body
Member
Registered: 2021-11-23
Posts: 31

Re: [SOLVED] XFCE Whisker does not recognize icons set in .directory files

Bug opened: https://gitlab.xfce.org/panel-plugins/x … issues/116

I also attached one of the icon images involved in this issue.

UPDATE: the cause has been discovered on the issue ticket opened. It seems to be still a bug but the cause has been discovered.

Last edited by N00body (2023-10-17 20:05:25)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 777.41 KiB (Peak: 846.25 KiB) ]