Skip to content

Commit

Permalink
Add .desktop entry for XSession
Browse files Browse the repository at this point in the history
Add a (minimal) .desktop file of type XSession, so fvwm3 is discoverable
for display managers following freedesktop.org standards.

Fixes #12
  • Loading branch information
Zirias authored and ThomasAdam committed Aug 2, 2023
1 parent 804fb86 commit b3bd394
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ config.h.in
config.log
config.status
configure
contrib/xsession/fvwm3.desktop
core
doc/footer.html
doc/fvwm.ent
Expand Down
13 changes: 11 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,21 @@ SUBDIRS = \
doc \
$(POSUB)

XSESSIONFILE = contrib/xsession/fvwm3.desktop
xsessionsdir = $(datarootdir)/xsessions
xsessions_DATA = $(XSESSIONFILE)

CLEANFILES = $(XSESSIONFILE)

EXTRA_DIST = CHANGELOG.md $(XSESSIONFILE).in

## ---------------------------------------------------------------------------
## Manage bzip2 archive together with gzip archive
# Usage:
# make dist2 # instead of make dist
# make distcheck2 # instead of make distcheck
# make distclean2 # instead of make distclean

EXTRA_DIST = CHANGELOG.md

DISTCHECK_CONFIGURE_FLAGS = --enable-mandoc

distcheck2: distcheck
Expand All @@ -41,3 +47,6 @@ distclean2: distclean

uninstall-hook:
-rmdir @FVWM_DATADIR@

$(XSESSIONFILE): $(XSESSIONFILE).in
${SED} -e 's|[@]bindir@|$(bindir)|g' < "$@.in" > "$@"
5 changes: 5 additions & 0 deletions contrib/xsession/fvwm3.desktop.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Desktop Entry]
Name=FVWM3
Comment=The fvwm3 window manager
Type=Application
Exec=@bindir@/fvwm3

0 comments on commit b3bd394

Please sign in to comment.