-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdejatop.1
More file actions
233 lines (231 loc) · 5.66 KB
/
Copy pathdejatop.1
File metadata and controls
233 lines (231 loc) · 5.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
.TH DEJATOP 1 "June 2026" "Version 1.0.0" "User Commands"
.SH NAME
dejatop \- Desktop entry creator for Linux apps, AppImages, and Windows games
.SH SYNOPSIS
.B dejatop
.IR <path/to/executable> " [" \fIoptions\fR ]
.br
.B dejatop
.B --show
.IR <name>
.br
.B --rename
.IR <name> " " <new_name>
.br
.B dejatop
.B --replace-icon
.IR <name> " " <icon_path>
.br
.B dejatop
.B --delete
.IR <name>
.br
.B dejatop
.B --list
.SH DESCRIPTION
.B DejaTop
generates
.I .desktop
entries for Linux native apps, AppImages, GOG games, and Windows games
run through Wine or Steam Proton (including GE-Proton). Given a path to
an executable it detects the runner, discovers an existing Proton prefix,
picks the best available icon, and writes the entry with no user interaction
required.
.SH OPTIONS
.TP
.BR \-\-name " \fIname\fR"
Override the auto-detected name. Defaults to the executable directory name.
.TP
.BR \-\-icon " \fIpath\fR"
Override the icon. Absolute path to an image file, or a freedesktop
icon-theme name (no extension). Relative paths are resolved automatically.
.TP
.BR \-\-runner " \fInative\fR|\fIwine\fR|\fIproton\fR"
Override the runner.
.I .sh
and
.I .AppImage
files default to
.BR native .
.I .exe
files default to
.BR proton .
.TP
.B \-\-prefix \fIpath\fR
Override the Wine/Proton prefix.
.TP
.BR \-\-category " \fIname\fR"
Set the
.B Categories=
field. Defaults to
.B Game;
for Wine/Proton runners and for native apps installed under paths that
suggest a game directory
.RI ( GOG ,
.IR games ,
.IR Heroic ,
.IR Lutris ,
.IR Bottles ).
All other native apps default to
.BR Utility;Application; .
.TP
.BR \-\-env " \fIKEY=VALUE\fR"
Pass an environment variable at launch. Repeatable.
For
.B native
and
.B wine
runners the variable is prepended to
.B Exec=
via
.BR env .
For
.B proton
it is written as an
.B export
line in the wrapper script. Values containing spaces are quoted correctly.
.TP
.BR \-\-force
Overwrite an existing entry. Without this flag DejaTop exits with an
error rather than silently replacing a managed entry.
.SH COMMANDS
.TP
.B \-\-show \fIname\fR
Display the full state of a managed entry: display name, exec path,
icon (with live existence check), category, and — for Proton entries —
the Proton version and prefix path parsed from the wrapper script.
Also shows the launch log size if a log exists.
.PP
.RS
.I name
is matched case-insensitively against the
.B Name=
field of every managed entry, so
.B \-\-show "portal 2"
finds an entry named
.IR "Portal 2" .
.RE
.TP
.B \-\-rename \fIname\fR \fInew_name\fR
Rename a managed entry. Updates
.B Name=
inside the
.I .desktop
file, renames the file itself if the sanitized identifier changes, and
renames the associated Proton wrapper script and launch log to match.
.TP
.B \-\-replace\-icon \fIname\fR \fIicon_path\fR
Replace the icon of a managed entry. The icon path must exist and is
resolved to an absolute path before writing.
.TP
.B \-\-delete \fIname\fR
Delete a managed entry. Removes both the
.I .desktop
file and the associated Proton wrapper script. The launch log in
.I ~/.local/share/DejaTop/logs/
is not removed.
.TP
.B \-\-list
List all managed entries, showing the display name alongside the
sanitized file identifier in brackets.
.SH PROTON SELECTION
For
.I .exe
files, Proton is selected in this order:
.PP
1. Latest GE-Proton (numeric version comparison —
.I GE-Proton10-34
beats
.IR GE-Proton9-27 )
.br
2. Proton - Experimental or latest official Proton
.br
3. Error if nothing found
.SH PREFIX DISCOVERY
For
.I .exe
files:
.PP
1. Steam native —
.I ~/.local/share/Steam/userdata/*/config/shortcuts.vdf
.br
2. Steam Flatpak —
.I ~/.var/app/com.valvesoftware.Steam/data/Steam/userdata/
.br
3. Heroic —
.I ~/.config/heroic/GamesConfig/*.json
.br
4. Lutris —
.I ~/.config/lutris/games/*.yml
.br
5. Interactive prompt to create a shared prefix if none found
.SH STEAM LAUNCH OPTIONS
For games added to Steam as non-Steam shortcuts with launch options
configured in Steam's Properties dialog, DejaTop reads the
.B LaunchOptions
field from
.I shortcuts.vdf
and incorporates it into the generated Proton wrapper. The
.B %command%
placeholder is replaced with the actual Proton invocation.
.PP
This feature has no effect for games not present in
.I shortcuts.vdf
(e.g. GOG games launched directly without Steam involvement).
Use
.B \-\-env
to set options manually for those games.
.SH ICON DISCOVERY
DejaTop scores every candidate icon file found recursively under the
game directory. Factors:
.PP
\(bu Format: SVG (+100) > PNG (+80) > ICO (+40) > XPM (+20) > JPEG (+10)
.br
\(bu PNG and ICO binary headers parsed for actual pixel dimensions
.br
\(bu Square, high-resolution images score higher
.br
\(bu Files in subdirectories whose name matches the game title score higher
.br
\(bu
.IR steam-runtime/ ,
.IR /usr/ ,
and
.I /help/
paths are excluded entirely
.SH WRAPPER LOGGING
Proton wrapper output is logged to
.I ~/.local/share/DejaTop/logs/<name>.log
on every launch. Use
.B \-\-show
to check the current log size, or inspect the file directly to diagnose
launch failures.
.SH EXAMPLES
.TP
Native GOG game:
.B dejatop ~/GOG\-Games/Portal/start.sh \-\-name "Portal"
.TP
Windows game, auto-discovers Proton and prefix:
.B dejatop /mnt/Games/MyGame/game.exe \-\-name "My Game"
.TP
With MangoHud:
.B dejatop /path/game.exe \-\-name "My Game" \-\-env MANGOHUD=1
.TP
Override category:
.B dejatop ~/apps/mpv.AppImage \-\-name "mpv" \-\-category "AudioVideo;Video;"
.TP
Inspect an entry:
.B dejatop \-\-show portal
.TP
Rename an entry:
.B dejatop \-\-rename "Portal" "Portal (GOG)"
.TP
Fix a wrong icon:
.B dejatop \-\-replace\-icon portal /path/to/icon.png
.TP
Remove an entry:
.B dejatop \-\-delete portal
.SH AUTHOR
Created by DejaTop Contributors.
.SH LICENSE
GNU General Public License v3.0.