close Warning: Can't synchronize with repository "keplertools" (/srv/svn/keplertools does not appear to be a Subversion repository.). Look in the Trac log for more information.

Changes between Version 53 and Version 54 of AdminClientAufsetzen


Ignore:
Timestamp:
May 16, 2016, 3:25:42 PM (10 years ago)
Author:
Rüdiger Kupper
Comment:

devilspie

Legend:

Unmodified
Added
Removed
Modified
  • AdminClientAufsetzen

    v53 v54  
    659659
    660660
    661 == TODO: devilspie
    662 (siehe #2131)
     661== Devilspie
     662Wir benutzen devilspie, um das Logout-Fenster im Vordergrund zu halten. (Siehe #2131. Wenn der automatische Logout irgendwann entfallen kann, wird auch devilspie nicht mehr gebraucht.)
     663  {{{
     664  # mkdir /etc/devilspie2/
     665
     666  # cat > /etc/devilspie2/debug.lua <<EOF
     667-- the debug_print command does only print anything to stdout
     668-- if devilspie2 is run using the --debug option
     669debug_print("---------------------------------------------");
     670debug_print("Window Name: " .. get_window_name());
     671debug_print("Application name: " .. get_application_name());
     672debug_print("Window Type: " .. get_window_type());
     673debug_print("Window Role: " .. get_window_role());
     674debug_print("Window Class: " .. get_window_class());
     675EOF
     676
     677  # cat > /etc/devilspie2/logout-dialog.lua <<EOF
     678-- Keep logout dialog on top
     679
     680if (get_window_class()=="Zenity" and get_window_name()=="Sicherheitsabfrage") then
     681   make_always_on_top();
     682   stick_window();
     683end
     684EOF
     685}}}
     686
     687devilspie2 wird beim Einloggen in der Usersession der einzelnen Nutzer gestartet (weil es einen laufenden X-Server braucht):
     688  {{{
     689  # cat > /etc/xdg/autostart/devilspie2.desktop <<EOF
     690[Desktop Entry]
     691Type=Application
     692Exec=devilspie2 --folder=/etc/devilspie2/
     693Hidden=false
     694NoDisplay=false
     695X-GNOME-Autostart-enabled=true
     696Name[de_DE]=Devilspie2
     697Name=Devilspie2
     698Comment[de_DE]=
     699Comment=Perform scripted actions on windows as they are created
     700EOF
     701  }}}
    663702
    664703