相关文章推荐
重情义的小马驹  ·  How to fix fatal ...·  1 年前    · 
腹黑的水龙头  ·  vba ...·  2 年前    · 

Years past I would have a simple script to open a second terminal from the one I’m working in to start music. But for some reason the way I do it has a drepricated structure that kicks back instructions.
My simple script gnome-terminal -e “ogg123 /home/moopi/Music/playnow/”
Here are the instructions/objections:

[moopi@localhost ~]$ sh test2.sh 
# Option “-x” is deprecated and might be removed in a later version of gnome-terminal.
# Use “-- ” to terminate the options and put the command line to execute after it.
# _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
# watch_fast: "/org/gnome/desktop/interface/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/settings-daemon/peripherals/mouse/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/sound/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/privacy/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/wm/preferences/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/a11y/" (establishing: 0, active: 0)
# watch_established: "/org/gnome/desktop/interface/" (establishing: 1)
# watch_established: "/org/gnome/settings-daemon/peripherals/mouse/" (establishing: 1)
# watch_established: "/org/gnome/desktop/sound/" (establishing: 1)
# watch_established: "/org/gnome/desktop/privacy/" (establishing: 1)
# watch_established: "/org/gnome/desktop/wm/preferences/" (establishing: 1)
# watch_established: "/org/gnome/settings-daemon/plugins/xsettings/" (establishing: 1)
# watch_established: "/org/gnome/desktop/a11y/" (establishing: 1)
# _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
# watch_fast: "/org/gnome/terminal/legacy/" (establishing: 0, active: 0)
# unwatch_fast: "/org/gnome/terminal/legacy/" (active: 0, establishing: 1)
# watch_established: "/org/gnome/terminal/legacy/" (establishing: 0)

Is there a way to implement my command without the terminal objections to my method ?

Although is says that some options are deprecated, there’s no replacement.

The verbose output is a bug.

Steps to reproduce:

gnome-terminal

Workaround:

gnome-terminal 2>/dev/null

You can report it here:

  • https://bugzilla.redhat.com/
  • GNOME / gnome-terminal · GitLab
  • I thought -e was supposed to have been un-deprecated, since it’s still useful in various scenarios, and has no real replacement?

    I guess looking at my bug again, removing the deprecation was discussed, but it never actually happened. ¯\_(ツ)_/¯

    paulj:
    # Option “-x” is deprecated and might be removed in a later version of gnome-terminal.
    # Use “-- ” to terminate the options and put the command line to execute after it.
    
    gnome-terminal -- ogg123 /home/moopi/Music/playnow
    

    In many cases -e/-x doesn’t have identical behavior to --, but I believe in this case it should.