Albert
Loading...
Searching...
No Matches
systemutil.h File Reference

Go to the source code of this file.

Namespaces

namespace  albert
 

Functions

System utility
void albert::openUrl (const QString &url)
 Opens url with the default handler for the scheme.
 
void albert::open (const QUrl &url)
 Opens url with the default handler for the scheme.
 
void albert::open (const QString &path)
 Opens a file at path with the associated default application.
 
void albert::open (const std::filesystem::path &path)
 Opens a file at path with the associated default application.
 
void albert::setClipboardText (const QString &text)
 Sets the system clipboard to text.
 
bool albert::havePasteSupport ()
 Returns the true if the platform supports pasting, else false.
 
void albert::setClipboardTextAndPaste (const QString &text)
 Sets the system clipboard to text and pastes text to the front-most window.
 
long long albert::runDetachedProcess (const QStringList &commandline)
 Starts the commandline in a new process, and detaches from it.
 
long long albert::runDetachedProcess (const QStringList &commandline, const QString &working_dir)
 Starts the commandline in a new process, and detaches from it.
 
QString albert::toQString (const std::filesystem::path &path)
 Returns a QString representation of path.