Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't launch applications #231

Open
dvc94ch opened this issue Sep 7, 2016 · 2 comments
Open

Can't launch applications #231

dvc94ch opened this issue Sep 7, 2016 · 2 comments
Assignees
Labels

Comments

@dvc94ch
Copy link

dvc94ch commented Sep 7, 2016

I've spent a while trying to debug this, but I'm not getting anywhere. Do you have an idea why this is happening?

hawaii.launcher: Launching "/run/current-system/profile/bin/env" from "/gnu/store/mjj6n921hm6n0agllpf34dayvf73bryi-dump-environment-1/share/applications/dump-environment.desktop"
hawaii.launcher: Failed to launch "/gnu/store/mjj6n921hm6n0agllpf34dayvf73bryi-dump-environment-1/share/applications/dump-environment.desktop" (dump-environment)

The relevant code seems to be here, and QProcess::ForwardedChannels should let me see the environment in the log.

QProcess *process = new QProcess(this);
    process->setProgram(command);
    process->setArguments(args);
    process->setProcessEnvironment(env);
    process->setProcessChannelMode(QProcess::ForwardedChannels);
    m_apps[entry.fileName()] = process;
    connect(process, SIGNAL(finished(int)), this, SLOT(finished(int)));
    process->start();
    if (!process->waitForStarted()) {
        qCWarning(LAUNCHER,
                  "Failed to launch \"%s\" (%s)",
                  qPrintable(entry.fileName()),
                  qPrintable(entry.name()));
        return false;
    }
@plfiorini plfiorini added the bug label Sep 7, 2016
@plfiorini plfiorini self-assigned this Sep 7, 2016
@dvc94ch
Copy link
Author

dvc94ch commented Sep 18, 2016

Where you able to reproduce this?

@dvc94ch
Copy link
Author

dvc94ch commented Sep 18, 2016

Another problem I'm having is that it doesn't find some of the icons.
screenshot from 2016-09-18 16-43-55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants