Skip to content

Tray icon size broken on Linux, locked to 22px. #23287

Closed

Description

@exander77

Broken by this pull request (details there):
#21904

Screenshot_2020-04-27_00-14-48

The icon should have a proper size.

I am using Xfce, but it is probably broken for anybody using larger than 22px icons (which I would say is pretty common with current display resolution).

Activity

  1. self-assigned this
    on Apr 27, 2020
  2. exander77 commented on Apr 27, 2020

    @exander77
    Author

    I have made an instruction-level patch, to jump over the code as a workaround:

    #!/usr/bin/env python3
    import sys
    import re
    
    # 17b4693:      85 c9                   test   %ecx,%ecx
    # 17b4695:      74 6f                   je     17b4706 <_ZN2v88internal17ExternalReference18address_of_jslimitEPNS0_7IsolateE@@Base+0x93d6>
    # 17b4697:      83 f9 16                cmp    $0x16,%ecx
    # 17b469a:      74 6a                   je     17b4706 <_ZN2v88internal17ExternalReference18address_of_jslimitEPNS0_7IsolateE@@Base+0x93d6>
    
    f = open(sys.argv[1], 'rb+')
    data = f.read()
    match = re.search(rb'(\x85\xc9.\x6f\x83\xf9\x16\x74)', data)
    if match:
        result = match.group(1)
        print('Found:');
        print(match.span());
        new = list(result)
        print(new);
        # Change je into jmp
        new[7] = 0xeb
        print(new);
        result = bytes(new)
        f.seek(match.span()[0])
        f.write(result)
        print('Replaced.')
    else:
        print('No match.')
    f.close()
    print('Done.');
    

    It is small and should probably work with newer versions as well. I didn't want to recompile the whole electron to get rid of that stupid 22px.

    I can paraphrase Donald Trump: "My icons are great again!"

  3. removed their assignment
    on Apr 28, 2020
  4. electron-triage commented on Mar 10, 2021

    @electron-triage

    The Electron version reported on this issue is no longer supported. See our supported versions documentation.

    If you're still experiencing this issue on a supported version, please open a new issue with an updated repro - a Fiddle is very appreciated.

    Electron has a large issues backlog. To help our team prioritize, we're closing older issues and asking for new issues with updated repro steps if it affects a supported version. This helps sort what issues are still relevant and helps us fix them more quickly.

    Thanks for your patience and understanding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions