Can't start Goldendict to system tray on Kubuntu











up vote
0
down vote

favorite












I've just tried out Kubuntu 18.04 and somehow I cannot start Goldendict to system tray on start up. It's so weird because when I run goldendict in terminal or from dash, it starts to system tray without problem. But only on start up it shows the whole window with a very long number (screenshot below).



enter image description here










share|improve this question




















  • 1




    If you want goldendict to autostart use System Settings > Startup and Shutdown > Autostart > Add Program In the GUI that appears, look under Education > Miscellaneous. I don't know why you see this weird long string in the search box by default. Did you set up your dictionaries correctly? Also, with goldendict not running, have you tried renaming ~/.goldendict to ~/.goldendict.bak and then starting goldendict? Perhaps something in your ~/.goldendict is corrupted?
    – DK Bose
    May 22 at 11:09






  • 1




    Yes, that's the problem. I remove the .goldendict directory and now everything is fine. Except one thing, that it always drops down the File menu everytime it runs, but I can workaround by hiding the menu with Ctrl+M
    – Nguyen Duc Toan
    May 22 at 15:00












  • Well, now it happens again, deleting .goldendict only helps one time.
    – Nguyen Duc Toan
    May 23 at 2:37















up vote
0
down vote

favorite












I've just tried out Kubuntu 18.04 and somehow I cannot start Goldendict to system tray on start up. It's so weird because when I run goldendict in terminal or from dash, it starts to system tray without problem. But only on start up it shows the whole window with a very long number (screenshot below).



enter image description here










share|improve this question




















  • 1




    If you want goldendict to autostart use System Settings > Startup and Shutdown > Autostart > Add Program In the GUI that appears, look under Education > Miscellaneous. I don't know why you see this weird long string in the search box by default. Did you set up your dictionaries correctly? Also, with goldendict not running, have you tried renaming ~/.goldendict to ~/.goldendict.bak and then starting goldendict? Perhaps something in your ~/.goldendict is corrupted?
    – DK Bose
    May 22 at 11:09






  • 1




    Yes, that's the problem. I remove the .goldendict directory and now everything is fine. Except one thing, that it always drops down the File menu everytime it runs, but I can workaround by hiding the menu with Ctrl+M
    – Nguyen Duc Toan
    May 22 at 15:00












  • Well, now it happens again, deleting .goldendict only helps one time.
    – Nguyen Duc Toan
    May 23 at 2:37













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I've just tried out Kubuntu 18.04 and somehow I cannot start Goldendict to system tray on start up. It's so weird because when I run goldendict in terminal or from dash, it starts to system tray without problem. But only on start up it shows the whole window with a very long number (screenshot below).



enter image description here










share|improve this question















I've just tried out Kubuntu 18.04 and somehow I cannot start Goldendict to system tray on start up. It's so weird because when I run goldendict in terminal or from dash, it starts to system tray without problem. But only on start up it shows the whole window with a very long number (screenshot below).



enter image description here







kubuntu kde indicator system-tray goldendict






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 27 at 5:48









karel

55.7k11124141




55.7k11124141










asked May 22 at 10:31









Nguyen Duc Toan

1868




1868








  • 1




    If you want goldendict to autostart use System Settings > Startup and Shutdown > Autostart > Add Program In the GUI that appears, look under Education > Miscellaneous. I don't know why you see this weird long string in the search box by default. Did you set up your dictionaries correctly? Also, with goldendict not running, have you tried renaming ~/.goldendict to ~/.goldendict.bak and then starting goldendict? Perhaps something in your ~/.goldendict is corrupted?
    – DK Bose
    May 22 at 11:09






  • 1




    Yes, that's the problem. I remove the .goldendict directory and now everything is fine. Except one thing, that it always drops down the File menu everytime it runs, but I can workaround by hiding the menu with Ctrl+M
    – Nguyen Duc Toan
    May 22 at 15:00












  • Well, now it happens again, deleting .goldendict only helps one time.
    – Nguyen Duc Toan
    May 23 at 2:37














  • 1




    If you want goldendict to autostart use System Settings > Startup and Shutdown > Autostart > Add Program In the GUI that appears, look under Education > Miscellaneous. I don't know why you see this weird long string in the search box by default. Did you set up your dictionaries correctly? Also, with goldendict not running, have you tried renaming ~/.goldendict to ~/.goldendict.bak and then starting goldendict? Perhaps something in your ~/.goldendict is corrupted?
    – DK Bose
    May 22 at 11:09






  • 1




    Yes, that's the problem. I remove the .goldendict directory and now everything is fine. Except one thing, that it always drops down the File menu everytime it runs, but I can workaround by hiding the menu with Ctrl+M
    – Nguyen Duc Toan
    May 22 at 15:00












  • Well, now it happens again, deleting .goldendict only helps one time.
    – Nguyen Duc Toan
    May 23 at 2:37








1




1




If you want goldendict to autostart use System Settings > Startup and Shutdown > Autostart > Add Program In the GUI that appears, look under Education > Miscellaneous. I don't know why you see this weird long string in the search box by default. Did you set up your dictionaries correctly? Also, with goldendict not running, have you tried renaming ~/.goldendict to ~/.goldendict.bak and then starting goldendict? Perhaps something in your ~/.goldendict is corrupted?
– DK Bose
May 22 at 11:09




If you want goldendict to autostart use System Settings > Startup and Shutdown > Autostart > Add Program In the GUI that appears, look under Education > Miscellaneous. I don't know why you see this weird long string in the search box by default. Did you set up your dictionaries correctly? Also, with goldendict not running, have you tried renaming ~/.goldendict to ~/.goldendict.bak and then starting goldendict? Perhaps something in your ~/.goldendict is corrupted?
– DK Bose
May 22 at 11:09




1




1




Yes, that's the problem. I remove the .goldendict directory and now everything is fine. Except one thing, that it always drops down the File menu everytime it runs, but I can workaround by hiding the menu with Ctrl+M
– Nguyen Duc Toan
May 22 at 15:00






Yes, that's the problem. I remove the .goldendict directory and now everything is fine. Except one thing, that it always drops down the File menu everytime it runs, but I can workaround by hiding the menu with Ctrl+M
– Nguyen Duc Toan
May 22 at 15:00














Well, now it happens again, deleting .goldendict only helps one time.
– Nguyen Duc Toan
May 23 at 2:37




Well, now it happens again, deleting .goldendict only helps one time.
– Nguyen Duc Toan
May 23 at 2:37










1 Answer
1






active

oldest

votes

















up vote
0
down vote













I got this problem as well. If you dig into it deeper you'd notice goldendict starts (the same wrong way) even being removed from autostart! The only way to stop it from start on login is




  1. remove from autostart

  2. kill (not just close into tray, but kill like pkill goldendict)

  3. relog/reboot


Why? Because the default (before you ever touch the setting) KDE start behavior is "restore previous session" (at least in 18.04)! And when it "restores" previouly running apps it supplies "-session XXXXXXXXXXXXXXXXXXX_XXXX_XXXXX" argument to those. Try running goldendict -session hello and you'll see it will start not into systray and with "hello" word in the search field. Here is how it did start for me on login and here is what I saw in pstree.



Now to the fix. Go System settings/Startup and Shutdown and set On Login=Start with an empty session.



DONT SET IT TO "RESTORE MANUALLY SAVED SESSION"!!



I tried it and on relog there only was a black screen (probably because I left with Ctrl+Alt+Bksp). To fix that I Ctrl+Alt+F2 to a virtual console and changed loginMode to default in ~/.config/ksmserverrc (it says "default" but the meaning is "empty session").



Thanks for posting your question so I didn't feel lonely dealing with it!






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1038995%2fcant-start-goldendict-to-system-tray-on-kubuntu%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I got this problem as well. If you dig into it deeper you'd notice goldendict starts (the same wrong way) even being removed from autostart! The only way to stop it from start on login is




    1. remove from autostart

    2. kill (not just close into tray, but kill like pkill goldendict)

    3. relog/reboot


    Why? Because the default (before you ever touch the setting) KDE start behavior is "restore previous session" (at least in 18.04)! And when it "restores" previouly running apps it supplies "-session XXXXXXXXXXXXXXXXXXX_XXXX_XXXXX" argument to those. Try running goldendict -session hello and you'll see it will start not into systray and with "hello" word in the search field. Here is how it did start for me on login and here is what I saw in pstree.



    Now to the fix. Go System settings/Startup and Shutdown and set On Login=Start with an empty session.



    DONT SET IT TO "RESTORE MANUALLY SAVED SESSION"!!



    I tried it and on relog there only was a black screen (probably because I left with Ctrl+Alt+Bksp). To fix that I Ctrl+Alt+F2 to a virtual console and changed loginMode to default in ~/.config/ksmserverrc (it says "default" but the meaning is "empty session").



    Thanks for posting your question so I didn't feel lonely dealing with it!






    share|improve this answer



























      up vote
      0
      down vote













      I got this problem as well. If you dig into it deeper you'd notice goldendict starts (the same wrong way) even being removed from autostart! The only way to stop it from start on login is




      1. remove from autostart

      2. kill (not just close into tray, but kill like pkill goldendict)

      3. relog/reboot


      Why? Because the default (before you ever touch the setting) KDE start behavior is "restore previous session" (at least in 18.04)! And when it "restores" previouly running apps it supplies "-session XXXXXXXXXXXXXXXXXXX_XXXX_XXXXX" argument to those. Try running goldendict -session hello and you'll see it will start not into systray and with "hello" word in the search field. Here is how it did start for me on login and here is what I saw in pstree.



      Now to the fix. Go System settings/Startup and Shutdown and set On Login=Start with an empty session.



      DONT SET IT TO "RESTORE MANUALLY SAVED SESSION"!!



      I tried it and on relog there only was a black screen (probably because I left with Ctrl+Alt+Bksp). To fix that I Ctrl+Alt+F2 to a virtual console and changed loginMode to default in ~/.config/ksmserverrc (it says "default" but the meaning is "empty session").



      Thanks for posting your question so I didn't feel lonely dealing with it!






      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        I got this problem as well. If you dig into it deeper you'd notice goldendict starts (the same wrong way) even being removed from autostart! The only way to stop it from start on login is




        1. remove from autostart

        2. kill (not just close into tray, but kill like pkill goldendict)

        3. relog/reboot


        Why? Because the default (before you ever touch the setting) KDE start behavior is "restore previous session" (at least in 18.04)! And when it "restores" previouly running apps it supplies "-session XXXXXXXXXXXXXXXXXXX_XXXX_XXXXX" argument to those. Try running goldendict -session hello and you'll see it will start not into systray and with "hello" word in the search field. Here is how it did start for me on login and here is what I saw in pstree.



        Now to the fix. Go System settings/Startup and Shutdown and set On Login=Start with an empty session.



        DONT SET IT TO "RESTORE MANUALLY SAVED SESSION"!!



        I tried it and on relog there only was a black screen (probably because I left with Ctrl+Alt+Bksp). To fix that I Ctrl+Alt+F2 to a virtual console and changed loginMode to default in ~/.config/ksmserverrc (it says "default" but the meaning is "empty session").



        Thanks for posting your question so I didn't feel lonely dealing with it!






        share|improve this answer














        I got this problem as well. If you dig into it deeper you'd notice goldendict starts (the same wrong way) even being removed from autostart! The only way to stop it from start on login is




        1. remove from autostart

        2. kill (not just close into tray, but kill like pkill goldendict)

        3. relog/reboot


        Why? Because the default (before you ever touch the setting) KDE start behavior is "restore previous session" (at least in 18.04)! And when it "restores" previouly running apps it supplies "-session XXXXXXXXXXXXXXXXXXX_XXXX_XXXXX" argument to those. Try running goldendict -session hello and you'll see it will start not into systray and with "hello" word in the search field. Here is how it did start for me on login and here is what I saw in pstree.



        Now to the fix. Go System settings/Startup and Shutdown and set On Login=Start with an empty session.



        DONT SET IT TO "RESTORE MANUALLY SAVED SESSION"!!



        I tried it and on relog there only was a black screen (probably because I left with Ctrl+Alt+Bksp). To fix that I Ctrl+Alt+F2 to a virtual console and changed loginMode to default in ~/.config/ksmserverrc (it says "default" but the meaning is "empty session").



        Thanks for posting your question so I didn't feel lonely dealing with it!







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 27 at 23:04

























        answered Nov 27 at 22:46









        Zonmi

        11




        11






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1038995%2fcant-start-goldendict-to-system-tray-on-kubuntu%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Quarter-circle Tiles

            build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

            Mont Emei