You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To install on Linux or FreeBSD (any desktop Unix using Xorg and following standard XDG specifications)
2
-
you can use the files provided here.
1
+
# Installing desktop files for freedesktop
2
+
3
+
This directory contains files for desktop integration (icons, associations, menu entries) on https://freedesktop.org/ desktops, which practically means: desktops on Linux, FreeBSD and other free software Unix.
4
+
5
+
# How to install
6
+
3
7
It is advised to build and install by executing this in the top-level view3dscene directory:
4
8
5
-
make
6
-
sudo make install
9
+
```
10
+
make
11
+
sudo make install
12
+
```
7
13
8
-
The latter command makes a system-wide installation,
9
-
copying the view3dscene and tovrmlx3d binaries to /usr/local/bin , to make them available on $PATH.
10
-
It also installs some desktop files under /usr/local/share .
11
-
You can undo it by
14
+
The latter command makes a system-wide installation, copying the view3dscene and tovrmlx3d binaries to `/usr/local/bin` , to make them available on `$PATH`. It also installs some desktop files under `/usr/local/share`. You can undo it by
12
15
13
-
sudo make uninstall
16
+
```
17
+
sudo make uninstall
18
+
```
14
19
15
-
If you would prefer to make an installation only for your used,
16
-
and not use root privileges, you can also just run
20
+
If you would prefer to make an installation only for your used, and not use root privileges, you can also just run
17
21
18
-
cd desktop/
19
-
./install.sh
22
+
```
23
+
cd freedesktop/
24
+
./install.sh
25
+
```
20
26
21
-
But in the latter case, it is your responsibility to make the binaries
22
-
actually visible by X session.
23
-
Note that you will need to modify $PATH used by the X session,
24
-
which usually means you need to create and use the ~/.Xsession file.
25
-
( Adjusting path of your shell, e.g. in ~/.bashrc, is *not* enough. )
27
+
But in the latter case, it is your responsibility to make the binaries actually visible by X session. Note that you will need to modify `$PATH` used by the X session, which usually means you need to create and use the `~/.Xsession` file. (Adjusting path of your shell, e.g. in `~/.bashrc`, is *not* enough.)
makes it clear that implementation will try appending various extensions
68
77
on it's own. Besides, as noted above, we have both SVG and PNG versions of
69
78
the icon, so we do not know what extension to specify.
70
79
71
-
Mime file
80
+
Mime file:
81
+
72
82
- Should be copied to /usr/share/mime/packages/,
73
83
local user location is ~/.local/share/mime/packages/.
84
+
74
85
- After copying you should run
75
86
update-mime-database /usr/share/mime
76
87
or equivalent for local user location.
88
+
77
89
- Note that our mime XML file describes "model/x3d+binary", but it's
78
90
not yet listed in our desktop file --- because we do not handle x3db yet.
79
91
80
92
Thumbnailer script:
93
+
81
94
- It works :)
82
95
83
96
- Beware that loading arbitrary 3D scene may take a lot of time,
@@ -102,9 +115,10 @@ Thumbnailer script:
102
115
slowdowns when using this thumbnailer.
103
116
104
117
You may want to run
105
-
killall gnome-panel
106
-
killall nautilus
107
-
to refresh icons and mime types everywhere without relogging to GNOME.
108
-
(If anyone knows a cleaner to do this, please let me know.) Without these
109
-
kills, only the menu entry is actomatically updated. I.e. changes to *.desktop
110
-
files dir are picked up automatically, but icon and mime files not (it seems).
118
+
119
+
```
120
+
killall gnome-panel
121
+
killall nautilus
122
+
```
123
+
124
+
to refresh icons and mime types everywhere without relogging to GNOME. (If anyone knows a cleaner to do this, please let me know.) Without these kills, only the menu entry is actomatically updated. I.e. changes to *.desktop files dir are picked up automatically, but icon and mime files not (it seems).
0 commit comments