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

It can not open file after clicking edit file #13

Open
Zesko opened this issue Jul 19, 2021 · 2 comments
Open

It can not open file after clicking edit file #13

Zesko opened this issue Jul 19, 2021 · 2 comments

Comments

@Zesko
Copy link

Zesko commented Jul 19, 2021

But the Edit file icon is invisible in the widget.
If you click this icon of Edit file, then it shows the error-dialog:

Malformed URL
/home/zesko/Documents/test.yml

Operating System: Manjaro Linux
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.4.131-1-MANJARO (64-bit)
Graphics Platform: X11

@Zesko
Copy link
Author

Zesko commented Jul 19, 2021

The file StackDelegate.qml:

        ToolButton {
            id: editButton;
            icon.name: "edit";  // ----> It is not available in KDE icons list.
            icon.width: units.iconSizes.small;
            icon.height: units.iconSizes.small;
            ToolTip.text: qsTr("Edit file");
            ToolTip.visible: hovered;
            onClicked: stackProcess.editFile(composeFile); // ---> It does not work for me.
        }

You can change icon.name: "edit"; to icon.name: "edittext";.
And
Can you fix the codeline onClicked: stackProcess.editFile(composeFile); ?

@Zesko
Copy link
Author

Zesko commented Jul 19, 2021

The file process.cpp

void Process::editFile(const QString &file) {
    KRun::runUrl(file, "application/x-yaml", 0, KRun::RunFlags()); // It does not work for me
}

Can you change it to start("xdg-open", file)? xdg-utilsis already installed in many Linux distros.

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

No branches or pull requests

1 participant