Bug 91911 - Cannot execute program xdiskusage by clicking its icon from konqueror
Summary: Cannot execute program xdiskusage by clicking its icon from konqueror
Status: RESOLVED WORKSFORME
Alias: None
Product: unknown
Classification: Bugzilla Internals
Component: general (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-22 17:25 UTC by Vlad C.
Modified: 2007-12-18 11:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vlad C. 2004-10-22 17:25:34 UTC
Version:           Konqueror 3.3 (Using KDE 3.3.0) (using KDE KDE 3.3.0)
Installed from:    Debian stable Packages
OS:                Linux

I downloaded xdiskusage from http://xdiskusage.sourceforge.net/xdiskusage.gz. I can successfully run it from Konsole by typing ./xdiskusage.

However, when I click on its gear icon from konqueror, a new window pops up and freezes. I have to close that new window by pressing the x on the upper right corner.

The permissions for xdiskusage are:
-rwxr-xr-x

Thanks!
Comment 1 Lubos Lunak 2004-11-29 16:10:44 UTC
Please report applications problems to developers of the application.
Comment 2 David Faure 2005-03-21 11:58:12 UTC
You can find out why the app can't run from konqueror by looking at your ~/.xsession-errors
Comment 3 Vlad C. 2005-06-27 20:38:01 UTC
Unfortunately, there's nothing in ~/.xsession-errors about xdiskusage. I even tried 'tail -f ~/.xsession-errors' while reproducing the error and ~/.xsession-errors did not change.
Comment 4 Vlad C. 2005-06-28 03:59:18 UTC
I've talked to the author of Xdiskusage and he said that Xdiskusage thinks it is being piped du output through a tty, not stdin. Since Konqueror only provides stdin, the current version of Xdiskusage will not run in Konqueror.

One way to get around this issue would be to add an “Open in Terminal” option when a user right-clicks on a file that meets the following criteria:
1) has an executable metadata (i.e. it shows up as a gear icon) and 
2) has file permissions that would allow the user to actually execute it.

I realize that adding a new option to the right-click menu will make it more crowded, but as long as the option only appears when the above criteria is met, I think it is worth to include it.

It wouldn't be advisable to attach a tty console to everything by default because some programs might want to know whether or not they're running in a GUI. It would, however, make sense to give the user a choice as to whether they want to run the program from a terminal (just like the “Run Command” in K menu gives users that choice).
Comment 5 Vlad C. 2007-01-13 03:11:25 UTC
Running xdiskusage in a terminal already works as expected. Withdrawing the bug report.