« Return to Thread: [Bug 143149] New: kde screensaver list empty with custom menu

[Bug 143149] New: kde screensaver list empty with custom menu

by Troyo Boyo :: Rate this Message:

| View in Thread

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=143149         
           Summary: kde screensaver list empty with custom menu
           Product: kscreensaver
           Version: unspecified
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: howells kde org
        ReportedBy: troxor gmail com


Version:            (using KDE KDE 3.5.5)
Installed from:    Gentoo Packages
Compiler:          g++ (GCC) 4.1.1 (Gentoo 4.1.1-r3)  gentoo latest
OS:                Linux

when adding a submenu and adding all existing submenus to it, the screen saver module searches the wrong path for screensaver .desktop files. For example, I want my custom application menu to be as follows. to do this, I use kmenuedit to make a subdir called custom123, and organize the submenus into this structure.
Opera
Home Dir
Control Center
custom123
-Development
-Graphics
-Internet
-... etc
----separator----
Settings
Log out

it turns out, somewhere in kdebase-3.5.5/kcontrol/screensaver/scrnsave.cpp and this function ->
KScreenSaver::KScreenSaver(QWidget *parent, const char *name, const QStringList&)
    : KCModule(KSSFactory::instance(), parent, name)

it wants to search in the wrong directory as per an strace:
access("/usr/kde/3.5/share/applnk/custom123/System/ScreenSavers", F_OK) = -1 ...

to fix this, restore the original menu by deleting ~/.local/share/desktop-directories/custom123.directory and the menu file in ~/.config/menus


(sorry for language coherency, it took ~12 hours to find the cause of this bug, and it's quite late here at the time of this writing ;)

 « Return to Thread: [Bug 143149] New: kde screensaver list empty with custom menu