![]() # the first argument is required both for history, but also when invoking to bg # without duplicating the function with only a different name # TODO: generalize gedit() to allow the same treatment for several commands # TODO: use a list of warnings instead of cramming all of them to a single grep. Displays the entered command name when it terminates as a background task.Ĭan still be generalized a bit, but for now, if you need the same treatment for other commands, duplicate the gedit() function for each other command name which needs the same filter.) without needing to use F12 or some other shortcut (to invoke unfiltered use /usr/bin/gedit. I came up with the following code which so far seems to behave exactly how I'd expect it to, and is based on the answer by TuKsn, but enhances it a bit to: These workarounds are not acceptable as they have to be applied individually to each Gnome application - gedit is not the only one that likes to mess up the terminal.įirst, I also find it annoying that these warnings show up on an out-of-the-box Ubuntu, with no "proper" method to disable them which I could find (it seems that the most common "solution" is either to install gir1.2-gtksource-3.0 which doesn't seem to work since it's already installed, or to ignore them - but I want to suppress them completely since they just make my terminal noisy). creating an alias that pipes the output of gedit into /dev/null.writing a wrapper script that pipes the output of gedit into /dev/null.piping the output of gedit into /dev/null. ![]() How can I turn off this kind of warning? By "turn off", I don't mean any of these or similar workarounds: I understand the meaning of this warning and I have decided that it doesn't matter to me. It outputs messages like this all over my terminal whenever I hit enter or save or on various other occasions: (gedit:5700): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error.ServiceUnknown: The name was not provided by any. When I execute gedit from a terminal like this: gedit file My desktop environment intentionally does not have all the Gnome / Freedesktop daemons running - I don't want them. I am running the awesome window manager on trusty after having upgraded from raring.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |