Warning: compact(): Undefined variable $post_id in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $order in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $meta_key in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $featured in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $attachment in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $scan in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $scan_raw in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $callback in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $default in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $split_content in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $size in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $srcset_sizes in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $link in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $link_class in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $image_class in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $width in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $height in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $before in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $after in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $min_width in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $min_height in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $caption in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $meta_key_save in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $thumbnail_id_save in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $cache in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $format in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $echo in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $custom_key in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $default_size in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $the_post_thumbnail in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $image_scan in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $default_image in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $order_of_image in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Warning: compact(): Undefined variable $link_to_post in /srv/http/nickmcummins.com/wp-content/themes/epic-base/vendor/composer/justintadlock/hybrid-core/ext/get-the-image.php on line 307

Plank is a popular application launcher dock in Linux. By default, most application desktop entries do not provide any additional actions. Say we want to add an open ‘new window’ action to our desktop entry for pkgbrowser:

/usr/share/applications/pkgbrowser.desktop

Our desktop entry file looks as follows:

[Desktop Entry]
Name=PkgBrowser
GenericName=Package Browser
Comment=A utility for browsing pacman databases and the AUR
Exec=pkgbrowser
Terminal=false
Type=Application
Icon=pkgbrowser
StartupNotify=false
Categories=Qt;System;

Simply add the following to the end of the file. Of course, if your desktop entry already has a defined Actions property, you’ll want to add this new-window to it.

Actions=new-window;

[Desktop Action new-window]
Name=New Window
Exec=pkgbrowser

Now, right-clicking the desktop entry will appear as follows:

By default, any desktop entries that come from packages for your Linux distro will be overwritten during a package update. To prevent this from happening, you can made the file read-only using chattr:

sudo chattr +i /usr/share/applications/pkgbrowser.desktop