-
check if
dex
is installed:vimes ~ » [ -x "$(which dex)" ] && echo "Dex is installed." || echo "Dex is not installed." Dex is not installed. vimes ~ »
-
so, install
dex
:vimes ~ » sudo apt install dex [sudo] Passwort für schtobia: […] vimes ~ »
-
check if
dex
is working:vimes ~ » dex .local/share/applications/<your desktop file in here> <should open in a new window>
-
create desktop file for
dex
:vimes ~ » dex -c "$(which dex)" -t ~/.local/share/applications/ vimes ~ » cat ~/.local/share/applications/dex.desktop [Desktop Entry] Exec=/usr/bin/dex Name=dex Comment=DesktopEntry Execution Type=Application vimes ~ »
-
check if
xdg-mime
is set forapplication/x-desktop
:vimes ~ » xdg-mime query default application/x-desktop vimes ~ »
-
set
xdg-mime
forapplication/x-desktop
:vimes ~ » xdg-mime default dex.desktop application/x-desktop vimes ~ »
-
make the desktop file executable:
vimes ~ » chmod +x .local/share/applications/<your desktop file in here> vimes ~ »
-
now, call the desktop file directly:
vimes ~ » .local/share/applications/<your desktop file in here> <should open in a new window>
-
optionally, you can symlink this desktop file in a
$PATH
enabled directory
Created
May 29, 2018 09:08
-
-
Save schtobia/d44f4a52ddfed0dae4506dd69d931275 to your computer and use it in GitHub Desktop.
Open .desktop files under bash
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment