backintime icon indicating copy to clipboard operation
backintime copied to clipboard

[XFCE] blanks instead of newlines in paths displayed in systray (backintime-notify)

Open buhtz opened this issue 9 years ago • 5 comments

bit_notify

See the example pictures. This is the backintime from repository one week ago on Siduction GNU/Linux (Debian unstable) with Xfce as desktop. See the blank space I marked with a pink circle.

Currently I have no time for deeper diagnosis. But I think there is something with a newline character. Maybe it depends only on Xfce. I'll take care of it later. This is just for reporting.

buhtz avatar Aug 21 '16 08:08 buhtz

Looks like xfce's systray doesn't support newlines \n. BiT does automatically break lines after 80 chars for the systray menu.

Germar avatar Aug 21 '16 14:08 Germar

You mean this work well on other plattforms?

btw: What means the label ux?

buhtz avatar Aug 21 '16 15:08 buhtz

Jepp, it does.

ux means User eXperience. ui label would indicate a fundamental problem/enhancement with GUI/CUI, ux is more like this could be done better

Germar avatar Aug 21 '16 19:08 Germar

Then it is a Qt-bug I think. Couldn't find something about in their bug-tracker.

But I am unable to create a minimal working example to report the problem. I don't understand the concept of that QtAction thing. :)

buhtz avatar Aug 21 '16 20:08 buhtz

I found an old systray test snipped which could help you debugging.

#!/usr/bin/env python3

import os
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *

class My(object):
    def __init__(self):

        self.qapp = QApplication(sys.argv)
        self.status_icon = QSystemTrayIcon(QIcon.fromTheme('document-save'))
        self.contextMenu = QMenu()

        foo = self.contextMenu.addAction('foo\nbar')
        self.status_icon.setContextMenu(self.contextMenu)

    def run(self):
        self.status_icon.show()
        self.qapp.exec_()

if __name__ == '__main__':
    My().run()

systray

Germar avatar Aug 22 '16 23:08 Germar

I can't reproduce this anymore with Debian 11 and its XFCE. Might have been a bug with an older XFCE or another component involved. This report was coming from an "unstable" Debian.

So I'm closing my own bug after nearly 7 years. 🤣

buhtz avatar Jul 23 '23 14:07 buhtz