Run my application as default without showing the original 'Desktop application'



  • I would like to run my application as default application .
    Now , I can run my application after the QT shows default 'Desktop application'.
    How should I do the hide the original 'Desktop application'?
    ( In Android , my application is called 'Launcher' . In QT5 , I don't know .)


  • Moderators

    @xyaw I don't understand the question. What do you mean by "default application"? Do you mean associate your application with some file type, so it is open when you double click on such a file?
    What do you mean by "Desktop application" you want to hide?



  • @jsulm
    After booting , QT will show an application and it's title is called 'Desktop' .
    Such as like below:
    Desktop application

    I want to auto run my application after booting without showing the 'Desktop application'.
    In Android , my application will be called as 'Launcher'. In QT , I don't know.

    I have added my application into the /etc/rc.local .And it auto run after booting. But the LCD will show the 'Desktop' and then show my application. I would like to hide(or disable ) the 'Desktop application' .



  • Hi @xyaw,

    If I understand correctly, you're options would be:

    1. keep your window manager, but configure it to not be visible (at least to begin with), with only your app visible; how to do this (where possible) will depend on your window manager (are you using Gnome? KDE? etc); or
    2. replace your window manager with your app; this should be possible, but the implementation will depend on the distro (eg probably a lot easier under Arch, than say Ubuntu); or
    3. replace the whole OS with just you're app with minimal dependencies - for that, I'd start by looking at Boot to Qt.

    Of course, I may be totally misunderstanding your question, but hopefully that helps a little.

    Cheers.



  • @Paul-Colby
    If I would like to use the way 1(keep the window manager). Could you please share more detail?
    (
    I use the cmd as " ls /usr/bin/session "
    Below is the information :
    /usr/bin/ck-launch-session /usr/bin/matchbox-session
    /usr/bin/ck-list-sessions /usr/bin/mini-x-session
    /usr/bin/dbus-run-session /usr/bin/session-test
    /usr/bin/lttng-sessiond /usr/bin/x-session-manager
    )


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.