Announcement

Collapse
No announcement yet.

adept_notifier for admin users only [solved]

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    adept_notifier for admin users only [solved]

    Hello all !

    For my first post here, I would first like to congratulate Kubuntu and Ubuntu developers for their great job. I am an ex-Gentoo user, very impressed by the job here 

    Here is my problem :

    I noticed that the adept_notifier.desktop file is put in /usr/share/autostart , which make it run for every user.
    My wife was a bit surprised about this, as she does not know much about all those "Linux stuffs" 

    I would much prefer to make the adept_notifier only available for members of the group admin and was wondering what is the best way to do this ?

    I was thinking about moving the adept_notifier.desktop file to .kde/Autostart/ for each admin of my system. But I am afraid that the adept_notifier.desktop will come back again to /usr/share/autostart at the next adept update.

    I would like to ask you what to you think about this point ? Is there an elegant way to enable adept_notifier only for members of the group "admin" ? Maybe change the permissions of the file /usr/share/autostart/adept_notifer.desktop ?

    Thank you very much for your help !

    #2
    Re: adept_notifier for admin users only

    Well, you could edit /usr/share/autostart/adept_notifier_auto.desktop by changing

    X-KDE-autostart-condition=adept_notifierrc:General:Autostart:true
    to
    X-KDE-autostart-condition=adept_notifierrc:General:Autostart:false

    And edit (for admin users):
    ~/.kde/share/config/adept_notifierrc
    [General]
    Autostart=true

    Alternatively don't edit /usr/share/autostart/adept_notifier_auto.desktop
    and edit (for normal users):
    ~/.kde/share/config/adept_notifierrc
    [General]
    Autostart=false

    This might not be the best way (if you have a lot of user accounts), but it should prevent updates/upgrades from messing with it.

    As usual, there probably are many ways to accomplish what you're trying to do




    Comment


      #3
      Re: adept_notifier for admin users only

      Hi Kublice !

      Thank you very much for your answer ! Indeed you gave me two elegant way to do the thing 8)

      I prefer the second solution : it will not be broken by an adept update which will overwrite the changes in /usr/share/autostart. I will try this as soon as I can and tell you the result.

      Thank you again.
      Cheers.

      Comment


        #4
        Re: adept_notifier for admin users only

        Actually adept_notifier does not load everytime a user logs in, AFAIK. Programs in /usr/share/autostart only load once, that is, when KDE is started. Logging out and logging back in or logging into a new user does not make adept_notifier run again. Programs in /home/<user>/.kde/Autostart are those that run whenever that particular <user> logs in.

        So unless you quit KDE (by shutting down KDM or restarting X or rebooting), adept_notifier will not run again. It will continue to sleep in the background.
        Jucato&#39;s Data Core

        Comment


          #5
          Re: adept_notifier for admin users only

          Hello Jucato !

          I may be wrong, but I noticed 2 instances of adept_notifier running when doing a "ps aux | grep adept", when 2 users were logged in a kde session.

          I will test that again and come back with the results.

          I tought that /usr/share/autostart was a common directy for every users equivalent to the personal .kde/Autostart ? I am wrong ?

          Comment


            #6
            Re: adept_notifier for admin users only

            Are you getting something like this:

            jucato 4530 0.1 2.2 31092 14760 ? S 12:45 0:31 adept_notifier -caption Adept Notifier
            jucato 15457 0.0 0.1 2800 764 pts/1 S+ 20:15 0:00 grep adept_notifier
            That's normal. The first process is for adept notifier. The second process is for grep searching for the string "adept". So you only have one adept_notifier process running.

            I'm not sure about /usr/share/autostart being common to all users in the sense that it loads everytime a new user logs in. /usr is a system directory, belonging to root/admin, so it make sense that it only loads once, when KDE is started by root. It's common in the sense that all users are affected by it, but not all users can run it, without root privileges.
            Jucato&#39;s Data Core

            Comment


              #7
              Re: adept_notifier for admin users only

              No I am getting two lignes for adept_notifier and one for grep.

              I am not under my dear kubuntu at now (I am at work), but as soon as possible I will verify this problem and post my "ps" result with several users logged in a KDE session.

              I am really intersted in understanding this problem

              Thank you very much for your help Jucato.
              Cheers !

              Comment


                #8
                Re: adept_notifier for admin users only

                Originally posted by kubicle
                Alternatively don't edit /usr/share/autostart/adept_notifier_auto.desktop
                and edit (for normal users):
                ~/.kde/share/config/adept_notifierrc
                [General]
                Autostart=false
                Hello !

                Kubicle's solution works perfectly ! Thank you very much for your help 
                Thank you also Jucato for your help.

                For info I have checked out and I confirm : one instance of adept_notifer is run for each user. Files in /usr/share/autostart are run at the begin of each user session with the related user's permissions.

                I would say that this is a bug or at least an issue : a current user should not now about updates for at least two reasons :

                1- He knows that a potential security hole exists on the system and could try to exploite it.
                2- He does not have the rights to perform the update, so why notify him of an update is available ?

                The problem can easely be fixed by either :

                1- At the installation put the adept_notifier.desktop file in the admin's ".kde/share/config" directory instead of "/usr/share/autostart".
                2- keep the adept_notifier.desktop in "/usr/share/autostart" and put the ".kde/share/config/adept_notifierrc" mentionned above in the /etc/skel ...

                What do you think about that ? Do you agree ?
                Do you think I could open a bug report for this (as a feature request for example) ?

                Comment

                Working...
                X