x11-screen: Use new window class to avoid confusion with Emacs.
authorMatt Birkholz <matt@birchwood-abbey.net>
Sun, 5 Nov 2017 09:36:06 +0000 (02:36 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Sun, 5 Nov 2017 09:36:06 +0000 (02:36 -0700)
Borrow .desktop and icon files from core.  Specify new window class
when creating x11-screens, and in the StartupWMClass key in the
.desktop file.  Also fixed the .desktop file per complaints from
desktop-file-validate, deciding on one main category.

src/x11-screen/debian/mit-scheme-pucked-x11-screen.install [moved from debian/mit-scheme-pucked.install with 100% similarity]
src/x11-screen/debian/mit-scheme-pucked.desktop [moved from debian/mit-scheme-pucked.desktop with 77% similarity]
src/x11-screen/debian/mit-scheme-pucked.svg [moved from debian/mit-scheme-pucked.svg with 100% similarity]
src/x11-screen/x11-screen.scm

similarity index 77%
rename from debian/mit-scheme-pucked.desktop
rename to src/x11-screen/debian/mit-scheme-pucked.desktop
index 7d3172fb22fc172fc326629df2ff27dab35721e9..e93de8f055603580e7ecde2fbab026e24454e928 100644 (file)
@@ -6,4 +6,5 @@ TryExec=mit-scheme-pucked
 Icon=/usr/share/icons/mit-scheme-pucked.svg
 Terminal=false
 Type=Application
-Categories=Development;IDE;Utility;TextEditor;Application;
+StartupWMClass=Pucked
+Categories=Development;IDE;
index e2c36a66e91ecf8a7abb73848db86af086f290af..3d6ba16e881cce290feb26cc729c0427b8079eab 100644 (file)
@@ -97,7 +97,7 @@ USA.
 (define (open-window primary? geometry)
   (let ((display (or (get-x-display) (error "Unable to open display.")))
        (instance (if primary? "edwin" "edwinSecondary"))
-       (class "Emacs"))
+       (class "Pucked"))
     (xterm-open-window display
                       (or geometry
                           (get-geometry display primary? instance class))