hawaii-desktop / hawaii-shell

:shell: QtQuick and Wayland desktop shell for Hawaii support convergence between different form factors including mobile (tablet and phone)
http://hawaiios.org
GNU General Public License v2.0
73 stars 9 forks source link

Can't launch applications #231

Open dvc94ch opened 8 years ago

dvc94ch commented 8 years ago

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;
    }
dvc94ch commented 8 years ago

Where you able to reproduce this?

dvc94ch commented 8 years ago

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