LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 06-28-2020, 11:44 AM   #1
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,405

Rep: Reputation: 563Reputation: 563Reputation: 563Reputation: 563Reputation: 563Reputation: 563
gtk-launch doesnt work on new .desktop files until reboot


gtk-launch is supposed to launch any desktop file from /usr/share/applications or ~/.local/share/applications.

Every document and every single piece of info online says that it should work immediately, put the desktop file in the right folder, then can gtk-launch.

Not happening for me.
Code:
gtk-launch: no such application
Dunno if its something bodhi is missing or a problem with my system or what. As soon as I put the desktop file in appropriate folder it appears on menu, works fine, etc. But can't gtk-launch it until reboot.

Is there some service that should be running? Is there a command I can run to update the cache it uses or something? (ctrl-alt-end doesn't do it)

Last edited by enigma9o7; 06-28-2020 at 02:58 PM.
 
Old 06-28-2020, 09:22 PM   #2
The Squash
Member
 
Registered: Apr 2020
Distribution: Gentoo GNU/Linux x86 (32 bit)
Posts: 31

Rep: Reputation: Disabled
Like I am wont to do, I just read the source code for gtk-launch and have noted that gtk-launch by itself does next to nothing. It signals some other program to launch the application.

Try logging out and then logging back in, instead of rebooting. This is not the solution; it is a way of getting to the bottom of the issue.

Thank you.
 
Old 06-28-2020, 10:29 PM   #3
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,003

Rep: Reputation: 474Reputation: 474Reputation: 474Reputation: 474Reputation: 474
The cause is most likely a stale mime database. You can update it manually with update-mime-database.

Code:
% strace gtk-launch gtk3-demo |& grep ^open | grep -v ENOENT | grep mime
openat(AT_FDCWD, "/home/ed/.config/mimeapps.list", O_RDONLY) = 10
openat(AT_FDCWD, "/usr/share//mime//mime.cache", O_RDONLY) = 10
openat(AT_FDCWD, "/usr/share/applications/mimeinfo.cache", O_RDONLY) = 10
Ed
 
2 members found this post helpful.
Old 06-28-2020, 11:31 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
.desktop files execute automagically on my filemanager, no gtk-launch required.
Is this something Bodhi-specific?
 
Old 06-29-2020, 12:01 PM   #5
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,405

Original Poster
Rep: Reputation: 563Reputation: 563Reputation: 563Reputation: 563Reputation: 563Reputation: 563
Quote:
Originally Posted by ondoho View Post
.desktop files execute automagically on my filemanager, no gtk-launch required.
It's a tool for launching desktop files from command line, so that it uses your exec line and working path and icon etc just like openining it from file-manager.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not launch application 'user-dirs-update-gtk.desktop' cccc Debian 1 05-02-2011 02:38 PM
Gnome desktop does not refresh until reboot FlyingSmurf Debian 3 01-03-2007 01:41 PM
Adobe reader installed but doesnt work, GTK UI toolkit ver 2.4 missing humtum06 Linux - Software 4 05-24-2006 02:42 PM
Why doesnt my USB mouse doesnt work? barkha Linux - Hardware 2 08-16-2005 11:31 AM
3D graph.manipulation slows my computer until turn off & on again(reboot doesnt work) linuxero Linux - General 2 09-01-2004 05:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 01:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration