Hacker News new | past | comments | ask | show | jobs | submit login

How does this work exactly? Are there anythings that an app needs to do for it to work fully?

"Nemo vir est qui mundum non reddat meliorem" translates to "No one man is that the world doesn't render better". Weird.




This probably uses Gtk introspection to enumerate the main menu of the application.

> Documentation on GTK+ modules is essentially nonexisting. Without gtkparasite and gnome-globalmenu to learn from, it would have been a lot harder to get this project off the ground.

-

> Nemo vir est qui mundum non reddat meliorem

Going of my very unused latin knowledge. "Nemo vir est" = "There is no man", "qui mundum non reddat meliorem" -> "There is no man, who doesn't return betterment to the world" (had to look meliorem up tho)


Nobody who does not improve the world is a man


This code seems to be pretty hacky, it works by injecting a dynamic library into the program and then looping on a timeout to rescan every window and attach a key handler: https://github.com/p-e-w/plotinus/blob/master/src/Keybinder....

Newer Gtk apps that use app menus with GAction and GMenuModel should work fine, and will be forward-compatible with other similar tools, since those will export the menu over d-bus.


>> How does this work exactly? Are there anythings that an app needs to do for it to work fully?

> Plotinus brings that power to every application on your system (that is, to those that use the GTK+ 3 toolkit). It automatically extracts all available commands by introspecting a running application, instantly adapting to UI changes and showing only relevant actions. Using Plotinus requires no modifications to the application itself!


> "Nemo vir est qui mundum non reddat meliorem"

That quote is present in (originates from ?) the movie "Kingdom Of Heaven", in the workshop of the main character Balian, where it is translated as "What man is a man who does not make the world better?".


I'd translate it to portuguese like "Não há homem que não torne o mundo melhor" -> "there is no man that doesn't make the world better".




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: