Skip to content

[ubuntu] ofSystemLoadDialog doesn't work #7143

Description

@jaysonh

I'm using Ubuntu 22.04 with OF version: of_v0.11.2_linux64gcc6_release

When I try running the command ofSystemLoadDialog nothing happens, no error messages or any other indications of a problem.

This is a simplified version illustrating the problem:

`#include "ofApp.h"

//--------------------------------------------------------------
void ofApp::setup(){

}

//--------------------------------------------------------------
void ofApp::update(){

}

//--------------------------------------------------------------
void ofApp::draw(){

}

//--------------------------------------------------------------
void ofApp::keyPressed(int key){
if(key==' ')
{

	ofFileDialogResult result = ofSystemLoadDialog("Load file");
	if(result.bSuccess) {
	  string path = result.getPath();
	  // load your file at `path`
	}
}

}
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions