Description:

This is a modification of the lock/logout plasmoid. It's for those like me, who just need the logout button on the desktop or panel.

Installation:
- untar the archive
- cd ~/logout
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
- make
- make install (as root)

All credits should go to the plasma-team, because I've just edited and deleted a few lines of code.

Leave a comment if you like it.

artemisfowl2007

8 years ago

That's something I too like but I really think that it would be better to create a patch for the "official" lock/logout plasmoid (eg. in the config dialog the user should be able to choose which buttons to show - some users could probably want only the lock button to appear) rather than creating duplicates.

The KDE Team is really nice and would accept such a reasonable feature. Don't be afraid to contact them. If I had more free time, I could probably do this...

Report

painkiller101

8 years ago

Thank you for your comment.

I'm also not a fan of duplicates, but this one is just a quick and dirty solution for me, which i wanted to share with others.
I'm unfortunately not able to provide a patch with a configuration option, because i'm not really keen on it.
Even though I've read some month ago that this feature will be added to the lock/logout widget.
But when you got the time to do this it would be really nice :-)

Report

Emdek

8 years ago

It don't need to be plasmoid. ;-)
I've created simple desktop file some months ago when I've problems with layout of official plasmoid (you can drag it to panel or somewhere).
I don't know if it still works, but maybe it would be useful for someone.

[Desktop Entry]
Comment[pl]=Zakończ pracę
Comment=Zakończ pracę
Exec=dbus-send --print-reply --dest=org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout int32:1 int32:0 int32:1
GenericName[pl]=Zakończ pracę
GenericName=Zakończ pracę
Icon=system-shutdown
MimeType=
Name[pl]=Zakończ pracę
Name=Zakończ pracę
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

Report

artemisfowl2007

8 years ago

Actually I created the patch and sent it to the plasma devs to review it. It should probably hit trunk soon. I will let you know as soon as I commit it to SVN.

Report

painkiller101

8 years ago

Nice and thank you!
In that case i think it wasn't almost useless to upload this plasmoid;-)

Thanks for your effort!

Report

artemisfowl2007

8 years ago

The patch hit the trunk.

Revision 923911: http://websvn.kde.org/?view=rev&revision=923911

It was no big deal, don't worry.

Report

F1L0

8 years ago

hi, this is my first time that i try to compile a plasmoid and i have this error while compile LogOut 1.0:
[root@localhost build]# cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:72 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/root/.kde4/share/apps;/var/lib/mandriva/kde4-profiles/powerpack/share/apps;/var/lib/mandriva/kde4-profiles/common/share/apps;/usr/share/apps
Call Stack (most recent call first):
CMakeLists.txt:3 (find_package)


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
[root@localhost build]#


can you help me, pls?

Report

painkiller101

8 years ago

Hi,

i guess you haven't installed the kde-devel-packages on your system.
I'm using openSUSE, so i can't tell you how to install it on fedora.

Report

painkiller101

8 years ago

Sorry, not fedora, i mean mandriva.

Report

F1L0

8 years ago

oki thanks a lot, i try to install it...

Report

product-maker 6 13

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
1.0
updated Feb 07 2009
added Feb 06 2009
downloads today
0
page views today 0