사용자 도구

사이트 도구


linux:lxde

문서의 이전 판입니다!


LXDE

시작 프로그램(start up) 등록하기

how to auto start a program in LXDE at login | Debian Ubuntu Linux Solutions Blog를 참조하여 ~/.config/autostart 디렉토리에 이름.desktop 파일을 생성하고 아래와 같이 편집한다.

[Desktop Entry]
Encoding=UTF-8
Name=이름
Comment=설명
Exec=실행할 명령
Terminal=false

이제 로그아웃 후 다시 로그인하면 Exec 항목의 명령이 실행됐음을 알 수 있다.

혹은 ~/.config/lxsession/LXDE(or Lubuntu)/autostart 파일을 생성하고 로그인시 실행할 명령을 나열해도 된다.

시작 프로그램을 직접 등록하는 경우, 새로 부팅할 때는 무관하나 로그아웃/로그인하면 해당 프로램이 이중 실행되는 문제가 발생한다(부모 프로세스가 init(1)이라서 발생하는 문제). 이 문제는 프로그램을 한 번만 실행하기 스크립트를 사용하여 해결하면 된다.

사용자 정의 메뉴 추가하기(custom menu)

http://wiki.lxde.org/en/Main_Menu 를 참조한다.

  1. ~/.local/share/applications을 생성한다.
  2. 해당 디렉토리에서 *.desktop 파일을 만들어준다.
    [Desktop Entry]
    Type=Application
    Icon=/home/jeremy/dev/tools/idea/idea-IU-95.627/bin/idea128.png
    Name=Intellij Idea
    Comment=Java Ide
    Categories=Utility;Development
    Exec=/home/jeremy/bin/idea.sh %U
    StartupNotify=true
    Terminal=false
  3. Categories 항목의 설정에 따라 해당하는 메뉴에 나오게 된다. 다양한 카테고리는 이미 존재하는 메뉴의 desktop 파일을 참조한다.

Window Manager 변경하기

  • ~/.config/lxsession/LXDE/desktop.conf 혹은 /etc/xdg/lxsession/LXDE/desktop.conf에서 변경한다. Lubuntu에서는 디렉토리명 LXDE 대신 Lubuntu로 대체.
  • [Session]
    window_manager=openbox-lxde
    # metacity용은
    window_manager=metacity
    # Compiz는
    window_manager=compiz ccp --indirect-rendering
linux/lxde.1320201642.txt.gz · 마지막으로 수정됨: 2011/11/02 11:40 저자 kwon37xi