Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is it possible to set Razor Qt to use notify-osd instead of its built in notification system?

share|improve this question
    
I thought notification is freedesktop standard (using dbus...). I renamed /usr/bin/razor-notificationd then killed its running daemon. then launched /usr/lib/x86_64-linux-gnu/notify-osd &. Tested from "Razor Notification Configuration", Clicked "Test Notification" button. It works! Did I miss something? or if you have tested it already, Doesn't it work with all type of notification? –  Sneetsher May 13 at 7:35
    
Could you also mention why you do not want to use the built-in notification system? –  DK Bose May 13 at 11:21
    
Also, isn't Razor Qt now part of LXQt? –  DK Bose May 13 at 11:53
    
@DKBose the built in system is intrusive and not consistent (sometimes notifications don't show at all, sometimes they don't go away until you click them, sometimes they let clicks pass through. And yes, it is now part of LXQt but that is irrelevant. –  RolandiXor May 15 at 6:16
    
@Sneetsher I haven't tested that yet. You should have posted an answer btw. –  RolandiXor May 15 at 6:16

1 Answer 1

up vote 2 down vote accepted

Desktop notification is freedesktop standard (using dbus). See Desktop Notifications Specification. It should be a easy to replace.

The following procedure works for me in Ubuntu 14.04:

  1. Rename razor-notificationd

    sudo mv /usr/bin/razor-notificationd /usr/bin/razor-notificationd.orig
    
  2. Make a symbolic link to notify-osd (to replace razor-notificationd)

    For 64bit edition:

    sudo ln -s /usr/lib/x86_64-linux-gnu/notify-osd /usr/bin/razor-notificationd
    

    For 32bit edition:

    sudo ln -s /usr/lib/i386-linux-gnu/notify-osd /usr/bin/razor-notificationd
    
  3. Kill its running daemon.

    pkill -f razor-notificationd
    
  4. Check using:

    Razor Configuration Center → Razor Notification Configuration → Click "Test Notification" button

Notification using razor-notificationd (Before)

Notification using razor-notificationd

Notification using notify-osd (After)

Notification using notify-osd

share|improve this answer
2  
Could you please mention if you've actually done this? If you have, then I suggest you modify the second sentence to something like "The following procedure works for me". –  DK Bose May 16 at 4:30
    
@DKBose, I have updated answer to reflect that, indicating the used Ubuntu version 14.04 and may be better with result screen-shot. Thank you –  Sneetsher May 16 at 5:40
1  
I tested it and it works perfectly. One suggestion I have is to update the answer so you provide the paths for both 32 and 64 bit systems. Otherwise, perfect. –  RolandiXor May 27 at 4:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.