QTodoTxt2 icon indicating copy to clipboard operation
QTodoTxt2 copied to clipboard

No menu displayed in Ubuntu 16.04

Open asitemade4u opened this issue 6 years ago • 10 comments

Hi, and thank you for this excellent software which I have been using since now in version 1.x When switching to version 2, I lost the main menu, which is annoying as there seems to be a lot of new functions in the Preferences dialog -- which I cannot access now. Please help. Best, Stephen

selection_001

asitemade4u avatar Mar 29 '18 01:03 asitemade4u

After looking around for the configuration file, I have found QTodoTxt2.conf Tried to add the show_menu=true instruction, but it did not trigger the menu to be displayed.

asitemade4u avatar Mar 29 '18 01:03 asitemade4u

Older version of Ubuntu use menus on top of screen

oroulet avatar Mar 29 '18 06:03 oroulet

Yes, you are right. However, whatever the way menus are displayed (integrated in the window or not), they are not displayed in QToDoTxt2.

asitemade4u avatar Mar 29 '18 12:03 asitemade4u

Then it is probably a big/limitation of qml on that Linux version and we cannot do anything at qtodotxt2 level

oroulet avatar Mar 29 '18 12:03 oroulet

This is a LTS version.

Stephen Sinclair http://asitemade4u.com/?utm_source=stephen_email&utm_medium=email&utm_content=logolink&utm_campaign=current_stephens_email email: [email protected] mailto:[email protected] web: aSiteMade4U.com http://asitemade4u.com/?utm_source=stephen_email&utm_medium=email&utm_content=logolink&utm_campaign=current_stephens_email cell: (914) 334-2929

On 03/29/2018 08:43 AM, oroulet wrote:

Then it is probably a big/limitation of qml on that Linux version and we cannot do anything at qtodotxt2 level

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/QTodoTxt/QTodoTxt2/issues/96#issuecomment-377223245, or mute the thread https://github.com/notifications/unsubscribe-auth/AK7eChAGprmejKhQKc0V0N-EIAjBNwZoks5tjNcLgaJpZM4S_mWE.

asitemade4u avatar Mar 29 '18 12:03 asitemade4u

Have you tried moving your mouse over the bar at the top of the screen? In Ubuntu 16.04, they often hide the top menu bar until the mouse hovers over it.

If that doesn't help, this might be useful information:

https://askubuntu.com/questions/785238/removing-global-menu-bar-ubuntu-16-04

licquia avatar Mar 29 '18 14:03 licquia

Yes I have, to no avail.

asitemade4u avatar Mar 29 '18 21:03 asitemade4u

Hello, I have the same problem in ubuntu 16.04 LTS: menu is nowhere to be found.

HaaiHenkie avatar Jul 08 '18 10:07 HaaiHenkie

Hello,

I did some further research and found this issue. Right at the end it says that it is a Qt bug that is fixed in Qt 5.9.0. Ubuntu 16.04 is using Qt version 5.5.1. So I upgraded with:

pip3 install --user pyqt5

That brings the version to 5.11.2 which did not work at all, probably because it is not compatible with earlier versions. Then I tried:

pip3 install --user pyqt5==5.10.1

Now the menu appeared but filtering in QTodoTxt2 was not working. If somebody knows a way to properly upgrade PyQT5 under Ubuntu, it might work.

If you start qtodotxt.pyw from a terminal you see the following error:

appmenu-qt: handleReparent 138 The given QWindow has no QMenuBar assigned

I googled and found a working solution: disable appmenu support on a per application basis by setting the UBUNTU_MENUPROXY variable to null. You can do this by giving the following command in a terminal or by launching it with the Alt+F2 shortcut:

env UBUNTU_MENUPROXY= /your-path-to/QTodoTxt2/bin/qtodotxt.pyw

Only if I do this I see another error:

file:///usr/lib/x86_64-linux-gnu/qt5/qml/QtQuick/Controls/Private/MenuContentItem.qml:178: ReferenceError: Acccessible is not defined

I did not yet notice any impact of this error.

Cheers,

Henk

HaaiHenkie avatar Jul 08 '18 16:07 HaaiHenkie

The last error is a typo (Acccessible with 3 c's) in that file. I have corrected it myself. Also, has nothing to do with QTodoTxt2

HaaiHenkie avatar Jul 08 '18 16:07 HaaiHenkie