Questions tagged [xdgutils]

The xdg-utils package is a set of simple scripts that provide basic desktop integration functions for any Free Desktop, such as Linux. They are intended to provide a set of defacto standards.

This version of xdg-utils contains the following commands:

  • xdg-desktop-menu: command line tool for (un)installing desktop menu items
  • xdg-desktop-icon: command line tool for (un)installing icons to the desktop
  • xdg-mime: command line tool for querying information about file type handling and adding descriptions for new file types
  • xdg-icon-resource: command line tool for (un)installing icon resources
  • xdg-open: opens a file or URL in the user's preferred application
  • xdg-email: command line tool for sending mail using the user's preferred e-mail composer
  • xdg-screensaver: command line tool for controlling the screensaver
68 questions
0
votes
0 answers

GO: wait for application to quit using xdg-open

xdg-open does not wait for application to return and quits on exec. I have a script that creates a temporary file and opens it using xdg-open, and delete the tempfile once it's done for viewing. However, due to the design of xdg-open that does not…
0
votes
1 answer

Is there a way to change git's default configuration file?

I see git allows me to choose any file I want as a global exclude file but it can't see that you can change the default global configuration file ? Did I miss it or is it impossible? Are there workarounds ?
0
votes
0 answers

How to set xdg-settings (or some other setting) to launch different web browsers based on launching application

I would like to have default launching of a browser to be different when launching from different programs. For instance: when I open a link from Discord I'd like it to be launched in Firefox. When I run npm run dev, I want my development app…
earth2jason
  • 715
  • 1
  • 9
  • 20
0
votes
0 answers

Flutter external URL open fails for AppImage Ubuntu 22.10 - cannot open path of the current working directory

I've built: flutter build linux --release Flutter app on Ubuntu 22.10. When app is bundled as AppImage, the call to: # https://pub.dev/packages/url_launcher if (await canLaunchUrl(url)) { launchUrl(url); } fails with: cannot open path of the…
Tom Raganowicz
  • 2,169
  • 5
  • 27
  • 41
0
votes
2 answers

Bash script paths behaving differently from command-line paths

currently what I'm trying to do in Bash on my Ubuntu machine is utilize xdg-open to find a certain path or file. In the command line, here's what typically happens; When I run xdg-open ~/Downloads/, This opens the file manager in the ~/Downloads/…
0
votes
3 answers

Copying all .desktop files to ~/.local/share/applications/

I'm trying to write a bash script to copy all .desktop files under /nix/store to ~/.local/share/applications/. I'm not particular good with bash, so I would like assistance. I used the find command to find all files. Now I'm trying to create an…
MrBear
  • 175
  • 7
0
votes
1 answer

How to kill child process exec?

I want to open a link in my browser after which I want the program to terminate. To do this I am making a child process that runs xdg-open on the link using exec. I have found that if a browser is already open, Then closing the browser doesn't…
0
votes
1 answer

xdg-open URL from text file

I have a python script that writes a url to a txt file every x minutes. I'm looking to open this url on browser by xdg-open. xdg-open /home/user/test.txt (opens the txt file) xdg-open https://example.url (opens the url) I've tried to combine cat…
zemmsoares
  • 313
  • 1
  • 8
  • 27
0
votes
0 answers

Clip Studio Paint Assets download on Linux

Ok so I installed Clip Studio Paint a few weeks ago on Linux Mint using PlayOnLinux and everything has been working great but for some reason, I can't download Assets, not from the application itself or through the website…
0
votes
1 answer

spyder4 beta5 reports missing dependencies which are already installed

I installed spyder4 in ubuntu using pip install --pre -U spyder. When I run it I get a pop-up window which states: You have missing dependencies! xdg >=0.26: None (NOK) I'm sure xdg-utils is installed. Does anyone knows how to solve this…
mm_
  • 1,566
  • 2
  • 18
  • 37
0
votes
2 answers

Open Windows native exe program via xdg-open in WSL

When using man in Linux, many commands list URLs, which in some terminals like gnome-terminal or terminator are clickable. For example, man ls shows: Which allows to click on http://www.gnu.org/software/coreutils. Clicking on it in Gnome terminator…
nephewtom
  • 2,941
  • 3
  • 35
  • 49
0
votes
1 answer

xdg-open multiple files without extension

I want to open multiple files with xdg-open with the following codes me@host:~/Downloads$ find . -type f -iregex…
Alice
  • 1,360
  • 2
  • 13
  • 28
0
votes
0 answers

Qt app cannot open selected file from sandbox

I'm writing a Qt app to run in Flatpak sandbox. I'm stuck with opening files, as it opens the file chooser dialog, I select the file and then the app crashes with File Not Found error. I checked the /run/user/1000/doc/ directory, the correct folder…
compiler
  • 486
  • 1
  • 4
  • 14
0
votes
2 answers

Google Chrome not launching on Ubuntu even after installing it

OS: Ubuntu 16.04.3 LTS I was trying to run unit test for an angular project using ng test but it failed to start browser giving error ERROR [launcher]: Cannot start Chrome. Even puppteer only runs in headless mode, for headless: false it gives…
Tripti Rawat
  • 645
  • 7
  • 19
0
votes
1 answer

XDG-Shell: how to change window size?

I added xdg-shell v5 to app to draw windows. When I send set_fullscreen or set_maximize commands, I see correctly set window states and correct sizes in configure event but nothing is happens. My configure event function: static…
Robotex
  • 1,064
  • 6
  • 17
  • 41