Application crashes from command line but runs fine from Unity












1















General question: How can I most closely mimic via the terminal the way in which Unity executes a program?



I'm able to successfully run pidgin (2.10.3) from the Unity interface (Ubuntu 12.04 LTS), but when I simply run 'pidgin' from the command line I receive a segfault. Ideally, I would like to run 'pidgin' from the command line with the '-d' (debug) flag to see debug output. I thought perhaps Unity was using some special flags, etc. but the standard /usr/share/applications/pidgin.desktop file simply says:




[Desktop Entry] 
Name=Pidgin Internet Messenger
GenericName=Internet Messenger
Comment=Chat over IM. Supports AIM, Google Talk, Jabber/XMPP, MSN, Yahoo and more
Exec=pidgin
Icon=pidgin
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;InstantMessaging;
X-Ubuntu-Gettext-Domain=pidgin





Segfault text:




** (Pidgin:12897): WARNING **: Could not connect: Connection refused

(Pidgin:12897): LIBDBUSMENU-GLIB-WARNING **: Unable to get session
bus: Could not connect: Connection refused

(Pidgin:12897): libnotify-WARNING **: Failed to connect to proxy

(Pidgin:12897): libindicate-ERROR **: Unable to get session bus: Could
not connect: Connection refused Trace/breakpoint trap (core dumped)










share|improve this question





























    1















    General question: How can I most closely mimic via the terminal the way in which Unity executes a program?



    I'm able to successfully run pidgin (2.10.3) from the Unity interface (Ubuntu 12.04 LTS), but when I simply run 'pidgin' from the command line I receive a segfault. Ideally, I would like to run 'pidgin' from the command line with the '-d' (debug) flag to see debug output. I thought perhaps Unity was using some special flags, etc. but the standard /usr/share/applications/pidgin.desktop file simply says:




    [Desktop Entry] 
    Name=Pidgin Internet Messenger
    GenericName=Internet Messenger
    Comment=Chat over IM. Supports AIM, Google Talk, Jabber/XMPP, MSN, Yahoo and more
    Exec=pidgin
    Icon=pidgin
    StartupNotify=true
    Terminal=false
    Type=Application
    Categories=Network;InstantMessaging;
    X-Ubuntu-Gettext-Domain=pidgin





    Segfault text:




    ** (Pidgin:12897): WARNING **: Could not connect: Connection refused

    (Pidgin:12897): LIBDBUSMENU-GLIB-WARNING **: Unable to get session
    bus: Could not connect: Connection refused

    (Pidgin:12897): libnotify-WARNING **: Failed to connect to proxy

    (Pidgin:12897): libindicate-ERROR **: Unable to get session bus: Could
    not connect: Connection refused Trace/breakpoint trap (core dumped)










    share|improve this question



























      1












      1








      1








      General question: How can I most closely mimic via the terminal the way in which Unity executes a program?



      I'm able to successfully run pidgin (2.10.3) from the Unity interface (Ubuntu 12.04 LTS), but when I simply run 'pidgin' from the command line I receive a segfault. Ideally, I would like to run 'pidgin' from the command line with the '-d' (debug) flag to see debug output. I thought perhaps Unity was using some special flags, etc. but the standard /usr/share/applications/pidgin.desktop file simply says:




      [Desktop Entry] 
      Name=Pidgin Internet Messenger
      GenericName=Internet Messenger
      Comment=Chat over IM. Supports AIM, Google Talk, Jabber/XMPP, MSN, Yahoo and more
      Exec=pidgin
      Icon=pidgin
      StartupNotify=true
      Terminal=false
      Type=Application
      Categories=Network;InstantMessaging;
      X-Ubuntu-Gettext-Domain=pidgin





      Segfault text:




      ** (Pidgin:12897): WARNING **: Could not connect: Connection refused

      (Pidgin:12897): LIBDBUSMENU-GLIB-WARNING **: Unable to get session
      bus: Could not connect: Connection refused

      (Pidgin:12897): libnotify-WARNING **: Failed to connect to proxy

      (Pidgin:12897): libindicate-ERROR **: Unable to get session bus: Could
      not connect: Connection refused Trace/breakpoint trap (core dumped)










      share|improve this question
















      General question: How can I most closely mimic via the terminal the way in which Unity executes a program?



      I'm able to successfully run pidgin (2.10.3) from the Unity interface (Ubuntu 12.04 LTS), but when I simply run 'pidgin' from the command line I receive a segfault. Ideally, I would like to run 'pidgin' from the command line with the '-d' (debug) flag to see debug output. I thought perhaps Unity was using some special flags, etc. but the standard /usr/share/applications/pidgin.desktop file simply says:




      [Desktop Entry] 
      Name=Pidgin Internet Messenger
      GenericName=Internet Messenger
      Comment=Chat over IM. Supports AIM, Google Talk, Jabber/XMPP, MSN, Yahoo and more
      Exec=pidgin
      Icon=pidgin
      StartupNotify=true
      Terminal=false
      Type=Application
      Categories=Network;InstantMessaging;
      X-Ubuntu-Gettext-Domain=pidgin





      Segfault text:




      ** (Pidgin:12897): WARNING **: Could not connect: Connection refused

      (Pidgin:12897): LIBDBUSMENU-GLIB-WARNING **: Unable to get session
      bus: Could not connect: Connection refused

      (Pidgin:12897): libnotify-WARNING **: Failed to connect to proxy

      (Pidgin:12897): libindicate-ERROR **: Unable to get session bus: Could
      not connect: Connection refused Trace/breakpoint trap (core dumped)







      unity launcher pidgin






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 10 at 1:03









      Pablo Bianchi

      2,66511532




      2,66511532










      asked May 23 '13 at 5:52









      ChaimKutChaimKut

      1205




      1205






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Compare environment variables in terminal (env) and by running a script through desktop shortcut.



          Script



          #!/bin/sh
          env > ~/myenv


          Check if value of DBUS_SESSION_BUS_ADDRESS is different, because it seems to be the problem.






          share|improve this answer
























          • Turns out it was terminal's 'DISPLAY=:0' vs. Unity's 'DISPLAY=:0.0'

            – ChaimKut
            May 23 '13 at 7:59











          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%2f298953%2fapplication-crashes-from-command-line-but-runs-fine-from-unity%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









          1














          Compare environment variables in terminal (env) and by running a script through desktop shortcut.



          Script



          #!/bin/sh
          env > ~/myenv


          Check if value of DBUS_SESSION_BUS_ADDRESS is different, because it seems to be the problem.






          share|improve this answer
























          • Turns out it was terminal's 'DISPLAY=:0' vs. Unity's 'DISPLAY=:0.0'

            – ChaimKut
            May 23 '13 at 7:59
















          1














          Compare environment variables in terminal (env) and by running a script through desktop shortcut.



          Script



          #!/bin/sh
          env > ~/myenv


          Check if value of DBUS_SESSION_BUS_ADDRESS is different, because it seems to be the problem.






          share|improve this answer
























          • Turns out it was terminal's 'DISPLAY=:0' vs. Unity's 'DISPLAY=:0.0'

            – ChaimKut
            May 23 '13 at 7:59














          1












          1








          1







          Compare environment variables in terminal (env) and by running a script through desktop shortcut.



          Script



          #!/bin/sh
          env > ~/myenv


          Check if value of DBUS_SESSION_BUS_ADDRESS is different, because it seems to be the problem.






          share|improve this answer













          Compare environment variables in terminal (env) and by running a script through desktop shortcut.



          Script



          #!/bin/sh
          env > ~/myenv


          Check if value of DBUS_SESSION_BUS_ADDRESS is different, because it seems to be the problem.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 23 '13 at 7:27









          Grzegorz ŻurGrzegorz Żur

          748720




          748720













          • Turns out it was terminal's 'DISPLAY=:0' vs. Unity's 'DISPLAY=:0.0'

            – ChaimKut
            May 23 '13 at 7:59



















          • Turns out it was terminal's 'DISPLAY=:0' vs. Unity's 'DISPLAY=:0.0'

            – ChaimKut
            May 23 '13 at 7:59

















          Turns out it was terminal's 'DISPLAY=:0' vs. Unity's 'DISPLAY=:0.0'

          – ChaimKut
          May 23 '13 at 7:59





          Turns out it was terminal's 'DISPLAY=:0' vs. Unity's 'DISPLAY=:0.0'

          – ChaimKut
          May 23 '13 at 7:59


















          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%2f298953%2fapplication-crashes-from-command-line-but-runs-fine-from-unity%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

          mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

          How to change which sound is reproduced for terminal bell?

          Can I use Tabulator js library in my java Spring + Thymeleaf project?