Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7998043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:07:08+00:00 2026-06-04T15:07:08+00:00

i am writing (using C++ and GTKmm) a simple photo browser that is available

  • 0

i am writing (using C++ and GTKmm) a simple photo browser that is available on GitHub:

https://github.com/jjkrol/ZPR

Currently i am working on creating a button, which will allow user to open currently displayed photo in external editor (for example GIMP). Because of this, i have two questions:

  • Are there any examples of using Gtk::AppChooserDialog class? I couldn’t find any and it’s hard to start working on choosing the editor without them.

  • Most important question – i am thinking about a way to launch an application with photo in command line. The only solution that comes to my mind is using system() call to do something like this: system(“gimp /path/to/current/photo.jpg”); , but it is probably not the best way of doing this. Anybody knows a better way? I would like to port my application to Windows someday and a more portable way would be great.

Thank you very much in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T15:07:11+00:00Added an answer on June 4, 2026 at 3:07 pm

    Thank you very much for answers, gpoo and ergosys! In the end i decided to use Gio::Appinfo as it looks more OOP-like. If anyone would face the same problem – this is what i have end up with:

    Glib::RefPtr<Gio::AppInfo> editor = Gio::AppInfo::create_from_commandline("gimp", 
                                        "GIMP", Gio::APP_INFO_CREATE_SUPPORTS_URIS);
    Glib::RefPtr<Gio::File> photo = Gio::File::create_for_path(
                                    (*currentPhoto)->getPath().string());  
    editor->launch(photo);
    

    Of course choosing the editor with Gtk::AppChooserDialog is not yet implemented.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a simple photo viewer in C++ using gtkmm and I can
I'am writing with my friends a simple photo viewer in C++ using gtkmm. Everything
I'm writing an application using gtkmm. I wrote a simple widget class, that I
I'm writing code using Oracle SQL Developer. I have a simple select statement that
I am writing an application in C++ with using GTK+ (not gtkmm) so I
I am writing a program using RedGate SQL Compare that syncs data between nodes
The application I'm currently writing is using MVVM with the ViewModel-first pattern. I have
I am very new to unit testing and writing/using exceptions. I am currently making
I am writing a basic app that interacts with a webservice I'm writing using
A problem I regularly come across writing javascript using jQuery is that when a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.