Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

JanBessai/OpenWithHack

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenWithHack

Allows using any application you like for opening files in Gnome.

In Gtk+-3.11 (upward) opening files with GtkAppChooser does not allow choosing an application from disk anymore. Gnome people do not consider this a bug, see https://bugzilla.gnome.org/show_bug.cgi?id=650284

Here are two small scripts to circumvent this.

Starts a file selection dialog and spawns the selected file, forwarding its commandline arguments.

Requires pygobject to work. Tested with python-3.5.3 and pygobject-3.22.0.

Place (or symlink) this into ~/.local/share/applications/openwith.desktop or /usr/share/applications/openwith.desktop for a local or global installation. It creates an entry in GtkAppChooser, which will then open openwith.py where you select the application to open your file with.

You need to adapt Exec according to your needs/file locations! The %f is the file name as selected by GtkAppChooser. It is documented here.

Contributions

Just open an issue and or pull-request. Especially distribution-specific packages might be nice.

About

Allows using any application you like for opening files in Gnome

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.