- 1 year ago
open .url windows file in a browser on kde plasma 5 gracefully without having terminal closure kill browser
Comment
1 / 1
To open a .url
file in a browser on KDE Plasma 5 without having the terminal closure kill the browser, you can use the following command:
javascriptxdg-open file.url >/dev/null 2>&1 &
Here's what the command does:
xdg-open
: This command is a cross-desktop utility in Linux that opens a file or URL using the default application associated with the file type.file.url
: Replacefile.url
with the actual path to your.url
file.>/dev/null 2>&1
: This redirects the command's output and error messages to/dev/null
, effectively discarding them and preventing them from being displayed in the terminal.&
: This runs the command in the background, allowing the terminal to remain open after executing the command.
By using the xdg-open
command in this way, the .url
file will be opened in the default browser associated with KDE Plasma 5, and the terminal will remain open without killing the browser.
Note: The behavior may vary depending on your specific system configuration and default browser settings. If the above command does not work as expected, you may need to adjust the command or explore alternative methods to achieve the desired result.