Session/startup custom code does not run (correctly) on Xubuntu 16.04/18.04












0















In a nutshell: it appears code I add to my session & startup menu does not get run (correctly). Some examples:



compiz --replace & 
dropbox stop && dbus-launch dropbox start &
pactl load-module module-bluetooth-discover &


When I a) reboot or b) log out, I have to run this code via xfrun regardless to have it function. I have been having this issue in my previous install of Xubuntu 16.04 and now still in my new install 18.04 & I would like to finally fix it.



I have been searching on google trying to find some sort of log to try and trouble shoot this, but so far no dice. I have been using search terms like:



xubuntu autostart applications log
xubuntu session log
xubuntu startup log
xubuntu troubleshoot application autostart
xubuntu application autostart not working


I found and tried the solutions in:




  • Edit .desktop files in /etc/xdg/autostart

  • compiz specific a) add & -> can't find source anymore, sorry

  • compiz specific b) dconf reset -f /org/compiz/

  • I never save sessions, and clearing the session does not help

  • Suggestion I have found in multiple places (e.g. here) is that it might have to do with the order in which scripts are run. However, this seems unlikely to me as these are multiple unrelated commands with the same problem. To check, I renamed all my custom fixes with zz_ to get them last in the list (although opinions seem divided on whether that affects the load order) and restarted my session. No dice.


  • desktop files in ~/.config/autostart/ are all created and fine None of the names contain spaces (a bug I read about elsewhere, can’t find source back, sorry).

  • As a sanity check, I added the ~/.config/autostart/ files to /etc/xdg/autostart but as I suspected that did not do anything at all.

  • I could not find any mention of logs of the commands in autorun, although that would be insanely useful


I am running out of ideas. Perhaps I am missing something, or I do not know the one search term that would give me the solution. I am not a pro linux user by any stretch of the imagination, but I am trying to learn :). Any and all help much appreciated.



Thank you,
Narameh










share|improve this question























  • Welcome to AskUbuntu! You are muddying the water needlessly by running several commands in the background and not providing output from each command. This is too broad IMHO. I recommend that you run each command separately and examine the output from each one to provide clues. Then open a new question as necessary for each failure. Cheers!

    – Elder Geek
    Jun 12 '18 at 14:20











  • Hi! Thank you for your answer. Whether I add the commands 'in the background' or not does actually not make a difference at all. The result is the same when I remove the end &'s. Secondly: if you could tell me how and where I could access the output of commands run on autostart that would be amazing. For reference, the commands run absolutely fine if run via xfrun or in terminal after startup.

    – Narameh
    Jun 12 '18 at 14:23
















0















In a nutshell: it appears code I add to my session & startup menu does not get run (correctly). Some examples:



compiz --replace & 
dropbox stop && dbus-launch dropbox start &
pactl load-module module-bluetooth-discover &


When I a) reboot or b) log out, I have to run this code via xfrun regardless to have it function. I have been having this issue in my previous install of Xubuntu 16.04 and now still in my new install 18.04 & I would like to finally fix it.



I have been searching on google trying to find some sort of log to try and trouble shoot this, but so far no dice. I have been using search terms like:



xubuntu autostart applications log
xubuntu session log
xubuntu startup log
xubuntu troubleshoot application autostart
xubuntu application autostart not working


I found and tried the solutions in:




  • Edit .desktop files in /etc/xdg/autostart

  • compiz specific a) add & -> can't find source anymore, sorry

  • compiz specific b) dconf reset -f /org/compiz/

  • I never save sessions, and clearing the session does not help

  • Suggestion I have found in multiple places (e.g. here) is that it might have to do with the order in which scripts are run. However, this seems unlikely to me as these are multiple unrelated commands with the same problem. To check, I renamed all my custom fixes with zz_ to get them last in the list (although opinions seem divided on whether that affects the load order) and restarted my session. No dice.


  • desktop files in ~/.config/autostart/ are all created and fine None of the names contain spaces (a bug I read about elsewhere, can’t find source back, sorry).

  • As a sanity check, I added the ~/.config/autostart/ files to /etc/xdg/autostart but as I suspected that did not do anything at all.

  • I could not find any mention of logs of the commands in autorun, although that would be insanely useful


I am running out of ideas. Perhaps I am missing something, or I do not know the one search term that would give me the solution. I am not a pro linux user by any stretch of the imagination, but I am trying to learn :). Any and all help much appreciated.



Thank you,
Narameh










share|improve this question























  • Welcome to AskUbuntu! You are muddying the water needlessly by running several commands in the background and not providing output from each command. This is too broad IMHO. I recommend that you run each command separately and examine the output from each one to provide clues. Then open a new question as necessary for each failure. Cheers!

    – Elder Geek
    Jun 12 '18 at 14:20











  • Hi! Thank you for your answer. Whether I add the commands 'in the background' or not does actually not make a difference at all. The result is the same when I remove the end &'s. Secondly: if you could tell me how and where I could access the output of commands run on autostart that would be amazing. For reference, the commands run absolutely fine if run via xfrun or in terminal after startup.

    – Narameh
    Jun 12 '18 at 14:23














0












0








0








In a nutshell: it appears code I add to my session & startup menu does not get run (correctly). Some examples:



compiz --replace & 
dropbox stop && dbus-launch dropbox start &
pactl load-module module-bluetooth-discover &


When I a) reboot or b) log out, I have to run this code via xfrun regardless to have it function. I have been having this issue in my previous install of Xubuntu 16.04 and now still in my new install 18.04 & I would like to finally fix it.



I have been searching on google trying to find some sort of log to try and trouble shoot this, but so far no dice. I have been using search terms like:



xubuntu autostart applications log
xubuntu session log
xubuntu startup log
xubuntu troubleshoot application autostart
xubuntu application autostart not working


I found and tried the solutions in:




  • Edit .desktop files in /etc/xdg/autostart

  • compiz specific a) add & -> can't find source anymore, sorry

  • compiz specific b) dconf reset -f /org/compiz/

  • I never save sessions, and clearing the session does not help

  • Suggestion I have found in multiple places (e.g. here) is that it might have to do with the order in which scripts are run. However, this seems unlikely to me as these are multiple unrelated commands with the same problem. To check, I renamed all my custom fixes with zz_ to get them last in the list (although opinions seem divided on whether that affects the load order) and restarted my session. No dice.


  • desktop files in ~/.config/autostart/ are all created and fine None of the names contain spaces (a bug I read about elsewhere, can’t find source back, sorry).

  • As a sanity check, I added the ~/.config/autostart/ files to /etc/xdg/autostart but as I suspected that did not do anything at all.

  • I could not find any mention of logs of the commands in autorun, although that would be insanely useful


I am running out of ideas. Perhaps I am missing something, or I do not know the one search term that would give me the solution. I am not a pro linux user by any stretch of the imagination, but I am trying to learn :). Any and all help much appreciated.



Thank you,
Narameh










share|improve this question














In a nutshell: it appears code I add to my session & startup menu does not get run (correctly). Some examples:



compiz --replace & 
dropbox stop && dbus-launch dropbox start &
pactl load-module module-bluetooth-discover &


When I a) reboot or b) log out, I have to run this code via xfrun regardless to have it function. I have been having this issue in my previous install of Xubuntu 16.04 and now still in my new install 18.04 & I would like to finally fix it.



I have been searching on google trying to find some sort of log to try and trouble shoot this, but so far no dice. I have been using search terms like:



xubuntu autostart applications log
xubuntu session log
xubuntu startup log
xubuntu troubleshoot application autostart
xubuntu application autostart not working


I found and tried the solutions in:




  • Edit .desktop files in /etc/xdg/autostart

  • compiz specific a) add & -> can't find source anymore, sorry

  • compiz specific b) dconf reset -f /org/compiz/

  • I never save sessions, and clearing the session does not help

  • Suggestion I have found in multiple places (e.g. here) is that it might have to do with the order in which scripts are run. However, this seems unlikely to me as these are multiple unrelated commands with the same problem. To check, I renamed all my custom fixes with zz_ to get them last in the list (although opinions seem divided on whether that affects the load order) and restarted my session. No dice.


  • desktop files in ~/.config/autostart/ are all created and fine None of the names contain spaces (a bug I read about elsewhere, can’t find source back, sorry).

  • As a sanity check, I added the ~/.config/autostart/ files to /etc/xdg/autostart but as I suspected that did not do anything at all.

  • I could not find any mention of logs of the commands in autorun, although that would be insanely useful


I am running out of ideas. Perhaps I am missing something, or I do not know the one search term that would give me the solution. I am not a pro linux user by any stretch of the imagination, but I am trying to learn :). Any and all help much appreciated.



Thank you,
Narameh







xubuntu compiz autostart






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 12 '18 at 14:07









NaramehNarameh

6110




6110













  • Welcome to AskUbuntu! You are muddying the water needlessly by running several commands in the background and not providing output from each command. This is too broad IMHO. I recommend that you run each command separately and examine the output from each one to provide clues. Then open a new question as necessary for each failure. Cheers!

    – Elder Geek
    Jun 12 '18 at 14:20











  • Hi! Thank you for your answer. Whether I add the commands 'in the background' or not does actually not make a difference at all. The result is the same when I remove the end &'s. Secondly: if you could tell me how and where I could access the output of commands run on autostart that would be amazing. For reference, the commands run absolutely fine if run via xfrun or in terminal after startup.

    – Narameh
    Jun 12 '18 at 14:23



















  • Welcome to AskUbuntu! You are muddying the water needlessly by running several commands in the background and not providing output from each command. This is too broad IMHO. I recommend that you run each command separately and examine the output from each one to provide clues. Then open a new question as necessary for each failure. Cheers!

    – Elder Geek
    Jun 12 '18 at 14:20











  • Hi! Thank you for your answer. Whether I add the commands 'in the background' or not does actually not make a difference at all. The result is the same when I remove the end &'s. Secondly: if you could tell me how and where I could access the output of commands run on autostart that would be amazing. For reference, the commands run absolutely fine if run via xfrun or in terminal after startup.

    – Narameh
    Jun 12 '18 at 14:23

















Welcome to AskUbuntu! You are muddying the water needlessly by running several commands in the background and not providing output from each command. This is too broad IMHO. I recommend that you run each command separately and examine the output from each one to provide clues. Then open a new question as necessary for each failure. Cheers!

– Elder Geek
Jun 12 '18 at 14:20





Welcome to AskUbuntu! You are muddying the water needlessly by running several commands in the background and not providing output from each command. This is too broad IMHO. I recommend that you run each command separately and examine the output from each one to provide clues. Then open a new question as necessary for each failure. Cheers!

– Elder Geek
Jun 12 '18 at 14:20













Hi! Thank you for your answer. Whether I add the commands 'in the background' or not does actually not make a difference at all. The result is the same when I remove the end &'s. Secondly: if you could tell me how and where I could access the output of commands run on autostart that would be amazing. For reference, the commands run absolutely fine if run via xfrun or in terminal after startup.

– Narameh
Jun 12 '18 at 14:23





Hi! Thank you for your answer. Whether I add the commands 'in the background' or not does actually not make a difference at all. The result is the same when I remove the end &'s. Secondly: if you could tell me how and where I could access the output of commands run on autostart that would be amazing. For reference, the commands run absolutely fine if run via xfrun or in terminal after startup.

– Narameh
Jun 12 '18 at 14:23










1 Answer
1






active

oldest

votes


















0














I think the question Narameh may be asking is similar to the one I have: where/how can I intercept the initial startup process for the Xfce4 GUI/Desktop? I'm just trying to find a reliable way to insure that my laptop workstation defaults to the external monitor. And while I have determined that arandr can create an auto-config script which will accomplish this for a given user, I still haven't found the point at which the system makes its initial default monitor/x display device selection (presumably using xrandr), on which to display the default select-user-I-want-to-login-as screen.



In simple terms: being able to force the selection of the external monitor for a given user (by using arandr to write a script into ~/.screenlayout) doesn't help if I cant see the initial login screen for that user.






share|improve this answer








New contributor




cosmo6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    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',
    autoActivateHeartbeat: false,
    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%2f1045928%2fsession-startup-custom-code-does-not-run-correctly-on-xubuntu-16-04-18-04%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









    0














    I think the question Narameh may be asking is similar to the one I have: where/how can I intercept the initial startup process for the Xfce4 GUI/Desktop? I'm just trying to find a reliable way to insure that my laptop workstation defaults to the external monitor. And while I have determined that arandr can create an auto-config script which will accomplish this for a given user, I still haven't found the point at which the system makes its initial default monitor/x display device selection (presumably using xrandr), on which to display the default select-user-I-want-to-login-as screen.



    In simple terms: being able to force the selection of the external monitor for a given user (by using arandr to write a script into ~/.screenlayout) doesn't help if I cant see the initial login screen for that user.






    share|improve this answer








    New contributor




    cosmo6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      I think the question Narameh may be asking is similar to the one I have: where/how can I intercept the initial startup process for the Xfce4 GUI/Desktop? I'm just trying to find a reliable way to insure that my laptop workstation defaults to the external monitor. And while I have determined that arandr can create an auto-config script which will accomplish this for a given user, I still haven't found the point at which the system makes its initial default monitor/x display device selection (presumably using xrandr), on which to display the default select-user-I-want-to-login-as screen.



      In simple terms: being able to force the selection of the external monitor for a given user (by using arandr to write a script into ~/.screenlayout) doesn't help if I cant see the initial login screen for that user.






      share|improve this answer








      New contributor




      cosmo6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        I think the question Narameh may be asking is similar to the one I have: where/how can I intercept the initial startup process for the Xfce4 GUI/Desktop? I'm just trying to find a reliable way to insure that my laptop workstation defaults to the external monitor. And while I have determined that arandr can create an auto-config script which will accomplish this for a given user, I still haven't found the point at which the system makes its initial default monitor/x display device selection (presumably using xrandr), on which to display the default select-user-I-want-to-login-as screen.



        In simple terms: being able to force the selection of the external monitor for a given user (by using arandr to write a script into ~/.screenlayout) doesn't help if I cant see the initial login screen for that user.






        share|improve this answer








        New contributor




        cosmo6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        I think the question Narameh may be asking is similar to the one I have: where/how can I intercept the initial startup process for the Xfce4 GUI/Desktop? I'm just trying to find a reliable way to insure that my laptop workstation defaults to the external monitor. And while I have determined that arandr can create an auto-config script which will accomplish this for a given user, I still haven't found the point at which the system makes its initial default monitor/x display device selection (presumably using xrandr), on which to display the default select-user-I-want-to-login-as screen.



        In simple terms: being able to force the selection of the external monitor for a given user (by using arandr to write a script into ~/.screenlayout) doesn't help if I cant see the initial login screen for that user.







        share|improve this answer








        New contributor




        cosmo6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        cosmo6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 9 hours ago









        cosmo6cosmo6

        1




        1




        New contributor




        cosmo6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        cosmo6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        cosmo6 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045928%2fsession-startup-custom-code-does-not-run-correctly-on-xubuntu-16-04-18-04%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

            GameSpot

            日野市

            Tu-95轟炸機