Option “-e” is deprecated and might be removed in a later version of gnome-terminal in Ubuntu 18.04












2















This title has a duplicated question and confirmed as a bug. But it was in Ubuntu 17, mine is Ubuntu 18.04 LTS. So I guess the bug in the old question is fixed. Bug I still encounter it, so here is my problem:



File disk.desktop >>



[Desktop Entry]
Name=Disk Manager
Comment=Open df cmd in Terminal
Icon=harddisk
Type=Application
Categories=Utility;Management;
Keywords=disk; manager; terminal;
StartupNotify=true
Exec=gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"


The star is in the last line:
gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"



My command is run gnome-terminal which execute the df app with a few arguments of it. The .desktop file has a very weird behavior. It simply does nothing, not even firing error code.



If I remove all of its arguments except the -h, it works some times. If I run df app in a running terminal, it runs very well. So my money's on gnome-terminal's fault.



I decided copy my whole command to an running terminal. And the result is half-title:



# Option “-e” 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.


Since I got no error code. I have no idea what to do next. Please tell me how to fix it. Thanks.



Update 7-Feb-2019 ::



Follow @vidarlo advise, I've changed to option flag --. Here is the result:





  • -- doesn't work with command within the " " quote. It returns a fail execution error: Fail to execute child process "df -h"

  • I couldn't find any doc for this option. Not in man not in --help-all. It seems to me that this flag is not standard yet.


What I look for is an option allow me to pass command with a few arguments. In Lubuntu, it looks like this lxterminal -e "df -h -x devtmpfs -x tmpfs -x squashfs".










share|improve this question





























    2















    This title has a duplicated question and confirmed as a bug. But it was in Ubuntu 17, mine is Ubuntu 18.04 LTS. So I guess the bug in the old question is fixed. Bug I still encounter it, so here is my problem:



    File disk.desktop >>



    [Desktop Entry]
    Name=Disk Manager
    Comment=Open df cmd in Terminal
    Icon=harddisk
    Type=Application
    Categories=Utility;Management;
    Keywords=disk; manager; terminal;
    StartupNotify=true
    Exec=gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"


    The star is in the last line:
    gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"



    My command is run gnome-terminal which execute the df app with a few arguments of it. The .desktop file has a very weird behavior. It simply does nothing, not even firing error code.



    If I remove all of its arguments except the -h, it works some times. If I run df app in a running terminal, it runs very well. So my money's on gnome-terminal's fault.



    I decided copy my whole command to an running terminal. And the result is half-title:



    # Option “-e” 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.


    Since I got no error code. I have no idea what to do next. Please tell me how to fix it. Thanks.



    Update 7-Feb-2019 ::



    Follow @vidarlo advise, I've changed to option flag --. Here is the result:





    • -- doesn't work with command within the " " quote. It returns a fail execution error: Fail to execute child process "df -h"

    • I couldn't find any doc for this option. Not in man not in --help-all. It seems to me that this flag is not standard yet.


    What I look for is an option allow me to pass command with a few arguments. In Lubuntu, it looks like this lxterminal -e "df -h -x devtmpfs -x tmpfs -x squashfs".










    share|improve this question



























      2












      2








      2








      This title has a duplicated question and confirmed as a bug. But it was in Ubuntu 17, mine is Ubuntu 18.04 LTS. So I guess the bug in the old question is fixed. Bug I still encounter it, so here is my problem:



      File disk.desktop >>



      [Desktop Entry]
      Name=Disk Manager
      Comment=Open df cmd in Terminal
      Icon=harddisk
      Type=Application
      Categories=Utility;Management;
      Keywords=disk; manager; terminal;
      StartupNotify=true
      Exec=gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"


      The star is in the last line:
      gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"



      My command is run gnome-terminal which execute the df app with a few arguments of it. The .desktop file has a very weird behavior. It simply does nothing, not even firing error code.



      If I remove all of its arguments except the -h, it works some times. If I run df app in a running terminal, it runs very well. So my money's on gnome-terminal's fault.



      I decided copy my whole command to an running terminal. And the result is half-title:



      # Option “-e” 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.


      Since I got no error code. I have no idea what to do next. Please tell me how to fix it. Thanks.



      Update 7-Feb-2019 ::



      Follow @vidarlo advise, I've changed to option flag --. Here is the result:





      • -- doesn't work with command within the " " quote. It returns a fail execution error: Fail to execute child process "df -h"

      • I couldn't find any doc for this option. Not in man not in --help-all. It seems to me that this flag is not standard yet.


      What I look for is an option allow me to pass command with a few arguments. In Lubuntu, it looks like this lxterminal -e "df -h -x devtmpfs -x tmpfs -x squashfs".










      share|improve this question
















      This title has a duplicated question and confirmed as a bug. But it was in Ubuntu 17, mine is Ubuntu 18.04 LTS. So I guess the bug in the old question is fixed. Bug I still encounter it, so here is my problem:



      File disk.desktop >>



      [Desktop Entry]
      Name=Disk Manager
      Comment=Open df cmd in Terminal
      Icon=harddisk
      Type=Application
      Categories=Utility;Management;
      Keywords=disk; manager; terminal;
      StartupNotify=true
      Exec=gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"


      The star is in the last line:
      gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"



      My command is run gnome-terminal which execute the df app with a few arguments of it. The .desktop file has a very weird behavior. It simply does nothing, not even firing error code.



      If I remove all of its arguments except the -h, it works some times. If I run df app in a running terminal, it runs very well. So my money's on gnome-terminal's fault.



      I decided copy my whole command to an running terminal. And the result is half-title:



      # Option “-e” 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.


      Since I got no error code. I have no idea what to do next. Please tell me how to fix it. Thanks.



      Update 7-Feb-2019 ::



      Follow @vidarlo advise, I've changed to option flag --. Here is the result:





      • -- doesn't work with command within the " " quote. It returns a fail execution error: Fail to execute child process "df -h"

      • I couldn't find any doc for this option. Not in man not in --help-all. It seems to me that this flag is not standard yet.


      What I look for is an option allow me to pass command with a few arguments. In Lubuntu, it looks like this lxterminal -e "df -h -x devtmpfs -x tmpfs -x squashfs".







      gnome-terminal






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 7 at 21:15







      Star Light

















      asked Feb 7 at 12:54









      Star LightStar Light

      306




      306






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Read the error message:




          # Option “-e” 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.



          The error message tells you that -e is deprecated, and may be removed in future versions, and the alternative to -e.



          You have the following command line:



          Exec=gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h -- output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"


          Change this to



          Exec=gnome-terminal -t "Disk Manager" --hide-menubar -- "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"





          share|improve this answer
























          • The -- only work without " to me. Which means I cannot use arguments. If I do like this: gnome-terminal -- "df -h", it will open a new terminal with an error: "Fail to execute child process"... Also, I found no man for the option -- of gnome-terminal at all.

            – Star Light
            Feb 7 at 14:43











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1116385%2foption-e-is-deprecated-and-might-be-removed-in-a-later-version-of-gnome-termi%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          Read the error message:




          # Option “-e” 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.



          The error message tells you that -e is deprecated, and may be removed in future versions, and the alternative to -e.



          You have the following command line:



          Exec=gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h -- output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"


          Change this to



          Exec=gnome-terminal -t "Disk Manager" --hide-menubar -- "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"





          share|improve this answer
























          • The -- only work without " to me. Which means I cannot use arguments. If I do like this: gnome-terminal -- "df -h", it will open a new terminal with an error: "Fail to execute child process"... Also, I found no man for the option -- of gnome-terminal at all.

            – Star Light
            Feb 7 at 14:43
















          2














          Read the error message:




          # Option “-e” 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.



          The error message tells you that -e is deprecated, and may be removed in future versions, and the alternative to -e.



          You have the following command line:



          Exec=gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h -- output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"


          Change this to



          Exec=gnome-terminal -t "Disk Manager" --hide-menubar -- "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"





          share|improve this answer
























          • The -- only work without " to me. Which means I cannot use arguments. If I do like this: gnome-terminal -- "df -h", it will open a new terminal with an error: "Fail to execute child process"... Also, I found no man for the option -- of gnome-terminal at all.

            – Star Light
            Feb 7 at 14:43














          2












          2








          2







          Read the error message:




          # Option “-e” 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.



          The error message tells you that -e is deprecated, and may be removed in future versions, and the alternative to -e.



          You have the following command line:



          Exec=gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h -- output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"


          Change this to



          Exec=gnome-terminal -t "Disk Manager" --hide-menubar -- "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"





          share|improve this answer













          Read the error message:




          # Option “-e” 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.



          The error message tells you that -e is deprecated, and may be removed in future versions, and the alternative to -e.



          You have the following command line:



          Exec=gnome-terminal -t "Disk Manager" --hide-menubar -e "df -h -- output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"


          Change this to



          Exec=gnome-terminal -t "Disk Manager" --hide-menubar -- "df -h --output=source,used,size,avail,target -x devtmpfs -x tmpfs -x squashfs"






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 7 at 13:32









          vidarlovidarlo

          10.8k52748




          10.8k52748













          • The -- only work without " to me. Which means I cannot use arguments. If I do like this: gnome-terminal -- "df -h", it will open a new terminal with an error: "Fail to execute child process"... Also, I found no man for the option -- of gnome-terminal at all.

            – Star Light
            Feb 7 at 14:43



















          • The -- only work without " to me. Which means I cannot use arguments. If I do like this: gnome-terminal -- "df -h", it will open a new terminal with an error: "Fail to execute child process"... Also, I found no man for the option -- of gnome-terminal at all.

            – Star Light
            Feb 7 at 14:43

















          The -- only work without " to me. Which means I cannot use arguments. If I do like this: gnome-terminal -- "df -h", it will open a new terminal with an error: "Fail to execute child process"... Also, I found no man for the option -- of gnome-terminal at all.

          – Star Light
          Feb 7 at 14:43





          The -- only work without " to me. Which means I cannot use arguments. If I do like this: gnome-terminal -- "df -h", it will open a new terminal with an error: "Fail to execute child process"... Also, I found no man for the option -- of gnome-terminal at all.

          – Star Light
          Feb 7 at 14:43


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1116385%2foption-e-is-deprecated-and-might-be-removed-in-a-later-version-of-gnome-termi%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

           ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕