deadbeef icon indicating copy to clipboard operation
deadbeef copied to clipboard

There's no way to disable Log Window popping up on errors

Open Oleksiy-Yakovenko opened this issue 6 years ago • 9 comments

Steps to reproduce the problem

  • Run deadbeef
  • Make it display any error message -- e.g. "Failed to play track"

What's going on? Describe the problem in as much detail as possible.

  • The user may become annoyed by any error messages that automatically popup

Information about the software:

Deadbeef version: 1.8.2 OS: Linux, Mac

Relates to: #2339, #2229, #2193, #2272

Oleksiy-Yakovenko avatar Feb 21 '20 18:02 Oleksiy-Yakovenko

The user may become annoyed by any error messages that automatically popup

True. It really annoys me when I connect or disconnect headphones a few times per day. (OS X)

f1xmAn avatar Mar 12 '20 08:03 f1xmAn

There is an option to permanently add the log to the main deadbeef window (in the design mode) and resize it small... The errors will not create popups anymore.

dikonov avatar Mar 26 '21 10:03 dikonov

It's been quite a long time! I found that we can simply replace the log layer 0 with 1 in "coreaudio.c". That will prevent the Log Window from auto popping up.

That is, in line 32, coreaudio.c, change

#define trace(...) { deadbeef->log_detailed (&plugin.plugin, 0, __VA_ARGS__); }

to

#define trace(...) { deadbeef->log_detailed (&plugin.plugin, 1, __VA_ARGS__); }

Is that alright? Will that cause any unexpected behavior? I tried myself on Mac and it works.

coolKIH avatar Aug 17 '21 03:08 coolKIH

The behavior will be that this would disable all coreaudio error messages for all users, and it would not be possible to turn this back on.

Oleksiy-Yakovenko avatar Aug 17 '21 09:08 Oleksiy-Yakovenko

Although, since it would still log the messages maybe it's ok. But, of course, this would not solve the problem "globally". I applied this change on master.

Oleksiy-Yakovenko avatar Aug 17 '21 09:08 Oleksiy-Yakovenko

Arch -> Aur / Repo doesn't matter -> deadbeef-git-r10930.4dd17a826-1 Please, add options like "Don't show log on start by default" and "Don't show it if track is missing".

br3eze avatar Aug 20 '22 14:08 br3eze

Please consider adding an option to disable the log window entirely.

I'm using i3 as a window manager and have deadbeef in a scratchpad (invisible) window that can be made visible/invisible with a keyboard shortcut. The problem is that the log window also go into the scratchpad, thus sometimes when I make the scratchpad window visible, it shows the log window rather than the deadbeef main window.

bubbleguuum avatar Aug 31 '22 13:08 bubbleguuum

To prevent the log window from popping up on startup: Remove these lines from /plugins/gtkui/gtkui.c. The log can still be manually invoked from the View tab.

If you do this, do not waste anyone's time with a support ticket. You mess with this and run into an issue, that's your problem to solve.

dobosken avatar Mar 08 '23 16:03 dobosken

To prevent the log window from popping up on startup: Remove these lines from /plugins/gtkui/gtkui.c. The log can still be manually invoked from the View tab.

Do you by any chance know how to prevent it from flooding the journal with logs?

ppw0 avatar Feb 06 '24 17:02 ppw0