Application crashes from command line but runs fine from Unity
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
add a comment |
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
add a comment |
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
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
unity launcher pidgin
edited Jan 10 at 1:03
Pablo Bianchi
2,66511532
2,66511532
asked May 23 '13 at 5:52
ChaimKutChaimKut
1205
1205
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
Turns out it was terminal's 'DISPLAY=:0' vs. Unity's 'DISPLAY=:0.0'
– ChaimKut
May 23 '13 at 7:59
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Turns out it was terminal's 'DISPLAY=:0' vs. Unity's 'DISPLAY=:0.0'
– ChaimKut
May 23 '13 at 7:59
add a comment |
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.
Turns out it was terminal's 'DISPLAY=:0' vs. Unity's 'DISPLAY=:0.0'
– ChaimKut
May 23 '13 at 7:59
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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